Results 1 to 7 of 7

Thread: Withdraw GFB from depot.

  1. #1
    Normal User
    Join Date
    May 2012
    Posts
    23
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5

    Withdraw GFB from depot.

    PLX
    Need action from withdraw GFB from depot(or mainDPBP) to mainBP.
    I need him to take the gfb DP and mainbp pass to complete the number of X gfb within mainbp. THX

  2. #2
    iScripter Eli's Avatar
    Join Date
    Mar 2012
    Posts
    3,764
    Mentioned
    492 Post(s)
    Tagged
    2 Thread(s)
    Quoted
    955 Post(s)
    Reputation
    586
    Rep Power
    10
    I don't understand what do you want exectly.. Do you want withdraw gfb from GfbBackpack (in depot) to your Main Backpack?

  3. #3
    iScripter Eli's Avatar
    Join Date
    Mar 2012
    Posts
    3,764
    Mentioned
    492 Post(s)
    Tagged
    2 Thread(s)
    Quoted
    955 Post(s)
    Reputation
    586
    Rep Power
    10
    Anyway I'll give you template edit for your needs:

    Lua Code:
    local item = "great fireball rune" -- item name or ID of item
        local location = "backpack name" -- where do you want move item to withdraw
        local DepoLocation = "backpack name" -- name of backapck located in depot with items to withdraw
        local WantedAmount = 2 -- ammount of item to withdraw from depot
     
     
        local Amount = WantedAmount - (itemcount(item, location))
            while windowcount(SuppBP) == 0 do
                closewindows()
                wait(1000)
                openitem(MainBP, 'back')
                wait(500, 1000)
                resizewindows() 
                wait(500, 1000)
                openitem(SuppBP, MainBP, true)
                wait(500, 1000)
                resizewindows()
            end
        if (windowcount(DepoLocation) == 0) then
            if (windowcount("Depot Chest") == 0) then
                reachgrounditem("depot")
                while (windowcount("Locker") ==0) do 
                       openitem("depot")
                       wait(700,900)
                end
     
                while (windowcount("Depot Chest") == 0) do
                    openitem(3502, "locker")
                    wait(800,1000)
                end
            end
     
            while (windowcount(DepoLocation) == 0) do
                openitem(DepoLocation, "Depot Chest", true)
                wait(1800,2000)
            end
        end
        if Amount == 0 then
            return
        else
            while Amount > 0 do
                if itemcount(item, DepoLocation) == 0 then
                    openitem(DepoLocation, DepoLocation, false)
                    wait(1000)
                end
                if Amount <= 0 then
                    return
                else
                    while Amount > 0 and (itemcount(item, DepoLocation) > 0)  do
                        moveitems(item, location, Amount)
                        wait(300)
                        Amount = WantedAmount - (itemcount(item, location))
                    end
                    if itemcount(DepoLocation, DepoLocation) == 0 and itemcount(item, DepoLocation) == 0 then
                        closewindow(DepoLocation)
                        wait(200)
                        return
                    end
                end
            end
        end

  4. #4
    Moderator Furieri's Avatar
    Join Date
    Jun 2012
    Location
    Vitoria - ES / Brasil
    Posts
    792
    Mentioned
    62 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    199 Post(s)
    Reputation
    158
    Rep Power
    7
    This is exactly what he needs, withdraw just amount to comple suplies

  5. #5
    Normal User
    Join Date
    May 2012
    Posts
    23
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5

    His action did not work here.

    Quote Originally Posted by Eli View Post
    Anyway I'll give you template edit for your needs:

    Lua Code:
    local item = "great fireball rune" -- item name or ID of item
        local location = "backpack name" -- where do you want move item to withdraw
        local DepoLocation = "backpack name" -- name of backapck located in depot with items to withdraw
        local WantedAmount = 2 -- ammount of item to withdraw from depot
     
     
        local Amount = WantedAmount - (itemcount(item, location))
            while windowcount(SuppBP) == 0 do
                closewindows()
                wait(1000)
                openitem(MainBP, 'back')
                wait(500, 1000)
                resizewindows() 
                wait(500, 1000)
                openitem(SuppBP, MainBP, true)
                wait(500, 1000)
                resizewindows()
            end
        if (windowcount(DepoLocation) == 0) then
            if (windowcount("Depot Chest") == 0) then
                reachgrounditem("depot")
                while (windowcount("Locker") ==0) do 
                       openitem("depot")
                       wait(700,900)
                end
     
                while (windowcount("Depot Chest") == 0) do
                    openitem(3502, "locker")
                    wait(800,1000)
                end
            end
     
            while (windowcount(DepoLocation) == 0) do
                openitem(DepoLocation, "Depot Chest", true)
                wait(1800,2000)
            end
        end
        if Amount == 0 then
            return
        else
            while Amount > 0 do
                if itemcount(item, DepoLocation) == 0 then
                    openitem(DepoLocation, DepoLocation, false)
                    wait(1000)
                end
                if Amount <= 0 then
                    return
                else
                    while Amount > 0 and (itemcount(item, DepoLocation) > 0)  do
                        moveitems(item, location, Amount)
                        wait(300)
                        Amount = WantedAmount - (itemcount(item, location))
                    end
                    if itemcount(DepoLocation, DepoLocation) == 0 and itemcount(item, DepoLocation) == 0 then
                        closewindow(DepoLocation)
                        wait(200)
                        return
                    end
                end
            end
        end

    I believe that some error occurred. if you give to help me.

    I need an action that when it is open to the depot he mainbpdp (Brocade Backpack) check how many GFB has in mainbp (Backpack Beach), and if necessary reset the gfb to complete 100 gfb in mainbp (Backpack Beach).
    understand?

  6. #6
    Normal User
    Join Date
    Aug 2014
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    3
    I need this too...

    one setup to ckeck if you have 50 or < to suply 50 no more. every 50 in mainbp no more.
    pick gfb from depot chest no backpacks.

    i thinking if i may put this in my depositer


    setsettings("Settings\\Cavebot\\Settings\\OpenNext Bp","no")
    closewindows()
    wait(500, 1000)
    openitem(MainBP, 'back')
    wait(500, 1000)
    resizewindows()
    wait(500, 1000)
    openitem(LootBP, MainBP, true)
    wait(500, 1000)
    resizewindows()
    wait(500, 1000)
    openitem(GoldBP, MainBP, true)
    wait(500, 1000)
    resizewindows()
    wait(500, 1000)
    resizewindows()
    reachgrounditem("depot")
    wait(1000,2000)
    openitem("depot")
    wait(700,900)
    openitem(3502, "locker")
    wait(700,900)
    ------------------------------------------- = in this line. move itens???
    openitem(MainDPBP, "depot chest")
    wait(700,900)
    depotdeposit(StackableDPBP,"spear", "strong mana potion", "small topaz", "small stone")
    wait(700,900)
    depotdeposit(LootDPBP,"Clay Lump")
    setsettings("Settings\\Cavebot\\Settings\\OpenNext Bp","yes")

  7. #7
    iBot User
    Join Date
    Jun 2012
    Posts
    149
    Mentioned
    10 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    107 Post(s)
    Reputation
    22
    Rep Power
    5
    elis action is working. it includes depot and backpack openner. but can make code much simpler if you put seperate open depo and bp action before. and then after it put elis action like this
    local item = "stone shower rune" -- item name or ID of item
    local location = "pirate backpack" -- where do you want move item to withdraw
    local DepoLocation = "minotaur backpack" -- name of backapck located in depot with items to withdraw
    local WantedAmount = 200 -- ammount of item to withdraw from depot


    local Amount = WantedAmount - (itemcount(item, location))

    if Amount == 0 then
    return
    else
    while Amount > 0 do
    if itemcount(item, DepoLocation) == 0 then
    openitem(DepoLocation, DepoLocation, false)
    wait(1000)
    end
    if Amount <= 0 then
    return
    else
    while Amount > 0 and (itemcount(item, DepoLocation) > 0) do
    moveitems(item, location, Amount)
    wait(300)
    Amount = WantedAmount - (itemcount(item, location))
    end
    if itemcount(DepoLocation, DepoLocation) == 0 and itemcount(item, DepoLocation) == 0 then
    closewindow(DepoLocation)
    wait(200)
    return
    end
    end
    end
    end
    cwrex181

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •