you need to add an action to reopen your backpacks, since this one just deposit.
Printable View
use this in action before depositerQuote:
-- Open Bps
init start
local mainBp = "Backpack Of Holding" -- change these
local goldBp = "Brocade backpack" -- change these
local lootBp = "Jewelled backpack" -- change these
local supplyBp = "Zaoan chess box" -- change these
init end
setsetting('Looting/OpenNextBP', 'no')
closewindows()
wait(400,600)
while windowcount() < 4 do
closewindows()
openitem(0, "back", true)
wait(800,1200) resizewindows()
wait(500)
openitem(supplyBp, mainBp, true)
wait(800,1200) resizewindows()
wait(500)
openitem(lootBp, mainBp, true)
wait(800,1200) resizewindows()
wait(500)
openitem(goldBp, mainBp, true)
wait(800,1200) resizewindows()
wait(500)
end
setsetting('Looting/OpenNextBP', 'no')
you guys do not understand , an example I have 3 backpacks with full loot going to deposit only the last backpack he deposit he open the first backpack and dont back for deposit the anothers only the last he deposit and go next wpt
ty for helping
Here is what is happening: when your char come back from hunting it has the last backpack opened, so since this code is for depositing and not for reopening your backpacks it will just deposit the last one. You need to add a very simple piede of code to reopen your backpacks and set open next bp as No, só it will start depositing from the first backpack until the last one.
Could not give you REP+ @Dehan but great work!
It helped me alot mate, but I have one question:
Maybe this way of depositing happens to be 'easier' to cip detect bot?
tks good job!
I added the opening backpacks after all and marking the opening of the next backpack.Code:--### Dehan's Depot Boxes Depositer v1.0.0 ###
lootingBp = 'yellow backpack'
nonstackableNumber = 1
stackableNumber = 2
--[[DO NOT EDIT BELOW THIS LINE]]--
setsetting('Looting/OpenNextBP', 'no')
waitping()
closewindows() wait(1500)
while windowcount(lootingBp) == 0 do
closewindows() wait(1000)
openitem($back.id,'back') wait(1000)
openitem(lootingBp,itemname($back.id),true) wait(1000)
resizewindows()
end
while windowcount("Depot Chest") == 0 do
opendepot(true)
wait(300)
openitem(3502)
wait(500)
end
depotId = 22796
stackableId = depotId + stackableNumber
nonstackableId = depotId + nonstackableNumber
while (true) do
foreach lootingitem i do
while itemcount(i.id, lootingBp) > 0 do
if itemproperty(i.id, 5) then
moveitemsonto(i.id, stackableId, 1, 'depot chest', lootingBp, 100)
else
moveitemsonto(i.id, nonstackableId, 1, 'depot chest', lootingBp, 100)
end
end
end
if (itemcount(lootingBp, lootingBp) > 0) then
openitem(lootingBp, lootingBp, false)
waitcontainer(lootingBp, false)
else
break
end
while windowcount(lootingBp) == 0 do
closewindows() wait(1000)
waitping()
openitem($back.id,'back') wait(1000)
openitem(2867,itemname($back.id),true) wait(1000)
resizewindows()
openitem(9602,itemname($back.id),true) wait(1000)
resizewindows()
openitem(2866,itemname($back.id),true) wait(1000)
resizewindows()
openitem(8860,itemname($back.id),true) wait(1000)
resizewindows()
wait(1000)
setsetting('Looting/OpenNextBP', 'yes')
end
break
end
wait(100)
end
I do not know why does not work : D
I am also surprised that translates items with only one backpack.
This should move the two. Merging objects and connecting objects.
@Dehan