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
04-20-2016, 03:49 PM
Dworak
Gj ! :)
04-20-2016, 04:26 PM
sadak
@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 :D
04-28-2016, 01:32 PM
siwylkw
Thank you Dehan ;) Its really nice :P. Need that when using many UHP for example. Its really cool way.
05-16-2016, 01:38 PM
Pumparen
@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!
05-16-2016, 01:44 PM
glowingstick
Quote:
Originally Posted by Pumparen
@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
05-16-2016, 04:11 PM
Boobies
Sorry bro but isn't "depot chest" instantiated in the variable BpFrom? Why aren't you using it? Just asking :/