Signup Now
Page 1 of 2 12 LastLast
Results 1 to 10 of 18
  1. #1
    Moderator Dehan's Avatar
    Join Date
    Dec 2013
    Posts
    1,404
    Reputation
    315
    Rep Power
    26

    Depot Box Withdrawer

    Depot Box Withdrawer

    Description:
    It will withdraw any item (runes, potions, rings, amulets, ...) from your depot box

    How to setup:
    ItemName = item name or ID to withdraw
    ItemMax = amount of items to withdraw

    BptoMove = backpack to move the items on
    depotBoxNumber = depot box where the items are located

    Code:
    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

    Level Latest Scripts by Dehan
    250+
    [EK & ED & MS & RP] [Navigation] Prison -1
    200+
    [EK & ED & MS] [Navigation] Asura Palace
    200+
    [EK & ED] [Navigation] Lower Roshamuul Softcore

  2. #2
    Wind Powered
    Join Date
    Dec 2013
    Location
    dvscripts.com
    Posts
    7,105
    Reputation
    433
    Rep Power
    39
    Gj !

  3. #3
    Free User sadak's Avatar
    Join Date
    Apr 2015
    Location
    Brazil
    Posts
    49
    Reputation
    28
    Rep Power
    0
    @Dehan thanks bro!
    I made one improvised based on Depositer box to use in my rune maker script.
    But this one is for sure more easy to edit. thanks again

  4. #4
    Free User siwylkw's Avatar
    Join Date
    Dec 2013
    Posts
    289
    Reputation
    15
    Rep Power
    21
    Thank you Dehan Its really nice :P. Need that when using many UHP for example. Its really cool way.

  5. #5
    Free User
    Join Date
    Jan 2016
    Posts
    51
    Reputation
    10
    Rep Power
    17
    @Dehan I am very new to this windbot and I would like it to withdraw the amount of thunderstorms I have set in useroption for example so I don't have to change it in the waypoint action and instead just change the amount to withdraw in cavebot settings. Would appreciate help since I want to make my own script. Really nice one though!

  6. #6
    Free User glowingstick's Avatar
    Join Date
    Jan 2014
    Posts
    335
    Reputation
    36
    Rep Power
    21
    Quote Originally Posted by Pumparen View Post
    @Dehan I am very new to this windbot and I would like it to withdraw the amount of thunderstorms I have set in useroption for example so I don't have to change it in the waypoint action and instead just change the amount to withdraw in cavebot settings. Would appreciate help since I want to make my own script. Really nice one though!
    Rightclick on the useroption and copy getuseroption


    local ItemName = "thunderstorm rune"
    local ItemMax = getuseroption("ThunderStormMin") -- Your useroption goes here

  7. #7
    Free User Boobies's Avatar
    Join Date
    Feb 2015
    Posts
    45
    Reputation
    2
    Rep Power
    0
    Sorry bro but isn't "depot chest" instantiated in the variable BpFrom? Why aren't you using it? Just asking :/

  8. #8
    Free User
    Join Date
    Sep 2014
    Posts
    12
    Reputation
    10
    Rep Power
    0
    @Dehan

    One question, what if i need to withdraw for example prismatic rings, supreme potions and prismatic necklace?

    Just 1 type of item i can withdraw with ur code?

  9. #9
    Moderator Dehan's Avatar
    Join Date
    Dec 2013
    Posts
    1,404
    Reputation
    315
    Rep Power
    26
    Quote Originally Posted by Mietowka View Post
    @Dehan

    One question, what if i need to withdraw for example prismatic rings, supreme potions and prismatic necklace?

    Just 1 type of item i can withdraw with ur code?
    With the code posted here, yes. But it would be easy to implement a table to search for items and navigate through it, feel free to do so.

    Level Latest Scripts by Dehan
    250+
    [EK & ED & MS & RP] [Navigation] Prison -1
    200+
    [EK & ED & MS] [Navigation] Asura Palace
    200+
    [EK & ED] [Navigation] Lower Roshamuul Softcore

  10. #10
    Free User
    Join Date
    Sep 2014
    Posts
    12
    Reputation
    10
    Rep Power
    0
    @Dehan

    Maybe you could add this options to this code ?:>

 

 

Posting Permissions

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