Signup Now
Results 1 to 6 of 6
  1. #1
    Free User
    Join Date
    Jan 2018
    Posts
    3
    Reputation
    10
    Rep Power
    0

    Exclamation Withdraw items from depot box

    Hello i need action to withdraw items form depot box X and if Y cap gotolabel Z

  2. #2
    Wind Powered
    Join Date
    Feb 2017
    Posts
    104
    Reputation
    10
    Rep Power
    15
    1st - withdraw items

    local ItemName = "life ring"
    local ItemMax = 3

    local BptoMove = "jewelled backpack"
    local depotBoxNumber = 4

    --[[DO NOT EDIT BELOW THIS LINE]]--
    setsetting('Looting/OpenNextBP', 'no')
    while windowcount("Depot Chest") == 0 do
    opendepot(true)
    wait(1000)
    openitem(3502)
    wait(1000)
    end

    local BpFrom = "depot chest"
    local depotId = 22796
    local itemDepotId = depotId + depotBoxNumber

    while itemcount(22797) > 0 do
    openitem(itemDepotId, "depot chest", false)
    wait(1000)
    end

    for i = 1, getcontainer("depot chest").lastpage do
    moveTry = 0
    while moveTry < 10 and (ItemMax - itemcount(ItemName,BptoMove) > 0) and (itemcount(ItemName, BpFrom) > 0) and getcontainer(BptoMove).emptycount > 1 do
    moveitems(ItemName, BptoMove, BpFrom,ItemMax - itemcount(ItemName,BptoMove))
    wait(200)
    moveTry = moveTry + 1
    end

    if getcontainer("depot chest").itemcount > 32 then
    nextpage("depot chest")
    wait(200,400)
    end
    end


    2nd - check cap and go label

    if $cap < 20 then
    gotolabel('godeposit')
    end



    both scripts was searched by using search tab xD @flaxir
    Last edited by geptt; 01-30-2018 at 05:19 PM.

  3. #3
    Free User
    Join Date
    Jan 2018
    Posts
    3
    Reputation
    10
    Rep Power
    0
    Quote Originally Posted by geptt View Post
    1st - withdraw items

    local ItemName = "life ring"
    local ItemMax = 3

    local BptoMove = "jewelled backpack"
    local depotBoxNumber = 4

    --[[DO NOT EDIT BELOW THIS LINE]]--
    setsetting('Looting/OpenNextBP', 'no')
    while windowcount("Depot Chest") == 0 do
    opendepot(true)
    wait(1000)
    openitem(3502)
    wait(1000)
    end

    local BpFrom = "depot chest"
    local depotId = 22796
    local itemDepotId = depotId + depotBoxNumber

    while itemcount(22797) > 0 do
    openitem(itemDepotId, "depot chest", false)
    wait(1000)
    end

    for i = 1, getcontainer("depot chest").lastpage do
    moveTry = 0
    while moveTry < 10 and (ItemMax - itemcount(ItemName,BptoMove) > 0) and (itemcount(ItemName, BpFrom) > 0) and getcontainer(BptoMove).emptycount > 1 do
    moveitems(ItemName, BptoMove, BpFrom,ItemMax - itemcount(ItemName,BptoMove))
    wait(200)
    moveTry = moveTry + 1
    end

    if getcontainer("depot chest").itemcount > 32 then
    nextpage("depot chest")
    wait(200,400)
    end
    end


    2nd - check cap and go label

    if $cap < 20 then
    gotolabel('godeposit')
    end



    both scripts was searched by using search tab xD @flaxir
    What i do this on 20+ items from one depot box?

  4. #4
    Wind Powered
    Join Date
    Feb 2017
    Posts
    104
    Reputation
    10
    Rep Power
    15
    Quote Originally Posted by flaxir View Post
    What i do this on 20+ items from one depot box?
    u wanna withdraw 20+ items???

    if yes, just add on line 4... "life ring", "item2", "item3", ....

  5. #5
    Free User
    Join Date
    May 2018
    Posts
    5
    Reputation
    10
    Rep Power
    0
    Could i use ID?

  6. #6
    Free User
    Join Date
    Jan 2019
    Posts
    13
    Reputation
    10
    Rep Power
    0
    This script wont work for more items. You need to customise it or ask somone to write personalised one just for you.

 

 

Posting Permissions

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