Here is just a easy depositer wich sort out the loot for you. All depot can be overfilled to about 2k items so you dont need any backpacks while stash loot.
Add in cavebot LUA and add an action inside any depot and write deposit() in that action.
Add in cavebot LUA and add an action inside any depot and write deposit() in that action.
-- Loot backpacks
local LOOT_GREEN_DJINN = 'backpack'
local LOOT_BLUE_DJINN = 'backpack'
local LOOT_RASHID = 'backpack'
local LOOT_GEMS = 'backpack'
-- wich items to deposit
local DEPOSIT_GREEN = { 'giant sword', 'knight legs', 'knight armor' }
local DEPOSIT_BLUE = { 'fire axe', 'blue robe', 'boots of haste' }
local DEPOSIT_RASHID = { 'golden legs', 'demon shield', 'gold ring' }
local DEPOSIT_GEMS = { 'small emerald', 'talon', 'small sapphire' }
-- Where to deposit
local DEPOT_DROP_GREEN = 8402 --- Depot chest I
local DEPOT_DROP_BLUE = 8403 --- Depot chest II
local DEPOT_DROP_RASHID = 8404 --- Depot chest III
local DEPOT_DROP_GEMS = 8405 --- Depot chest IV
function deposit()
closewindow('locker')
wait(800)
closewindow('depot chest')
wait(800)
reachgrounditem('locker')
wait(500)
openitem('locker')
wait(1000)
openitem('depot')
if windowcount('depot chest') > 0 then
for i = 0, #DEPOSIT_GREEN do
while itemcount(DEPOSIT_GREEN[i], LOOT_GREEN_DJINN) > 0 do
moveitemsonto(DEPOSIT_GREEN[i], DEPOT_DROP_GREEN, 0, 'depot chest', LOOT_GREEN_DJINN, 100)
wait(100)
end
end
end
if windowcount('depot chest') > 0 then
for i = 0, #DEPOSIT_BLUE do
while itemcount(DEPOSIT_BLUE[i], LOOT_BLUE_DJINN) > 0 do
moveitemsonto(DEPOSIT_BLUE[i], DEPOT_DROP_BLUE, 0, 'depot chest', LOOT_BLUE_DJINN, 100)
wait(100)
end
end
end
if windowcount('depot chest') > 0 then
for i = 0, #DEPOSIT_RASHID do
while itemcount(DEPOSIT_RASHID[i], LOOT_RASHID) > 0 do
moveitemsonto(DEPOSIT_RASHID[i], DEPOT_DROP_RASHID, 0, 'depot chest', LOOT_RASHID, 100)
wait(100)
end
end
end
if windowcount('depot chest') > 0 then
for i = 0, #DEPOSIT_GEMS do
while itemcount(DEPOSIT_GEMS[i], LOOT_GEMS) > 0 do
moveitemsonto(DEPOSIT_GEMS[i], DEPOT_DROP_GEMS, 0, 'depot chest', LOOT_GEMS, 100)
wait(100)
end
end
end
if itemcount(DEPOSIT_GEMS[i], LOOT_GEMS) > 0
and itemcount(DEPOSIT_RASHID[i], LOOT_RASHID) > 0
and itemcount(DEPOSIT_BLUE[i], LOOT_BLUE_DJINN) > 0
and itemcount(DEPOSIT_GREEN[i], LOOT_GREEN_DJINN) > 0
then
gotolabel('deposit')
else
end
end