- How does it works?
It will deposit your loots (from loot list) on the depot boxes - as shown on the image above -, since the latest update you can put as many items as you wish on each box, so it makes an infite depositer!
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
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
wait(100)
end
01-22-2016, 03:42 PM
Borges
Good Job ;)
01-22-2016, 04:02 PM
blakw
Well done Dehan!
01-22-2016, 09:53 PM
Dworak
Good Job ! :D
01-23-2016, 08:21 PM
Kostek
This is great, thank you Dehan. Would it be too much to ask for one that sorts Rashid/Djinns into separate boxes?
01-28-2016, 01:27 AM
pirudma
good job man xD
01-29-2016, 10:05 PM
mave
how this action gonna know which items are rare and stackable? where to edit it? :D
01-29-2016, 10:17 PM
Dehan
Quote:
Originally Posted by mave
how this action gonna know which items are rare and stackable? where to edit it? :D
It is based on your Loot List. Don't need to edit anywhere, it checks automatically if it is stackable or not.
03-03-2016, 06:58 PM
antieboy
Well done! thx
03-03-2016, 10:26 PM
Voltzin
Can make something to sort djinn/rashid?
03-07-2016, 12:23 AM
vinizera
What if I separate my dropped itens in 2 different backpacks?
Also, how it re-open backpacks if any of them are full and bot opened 'next backpack'?
03-11-2016, 11:29 PM
ercacique
I am new using this bot. Where is the code that you have to change? I am trying to implement new depot system in scripts with old depot system but i can't. Could someone help me?
03-13-2016, 03:45 AM
mantribal
@DehanHelp-me? I would like the action acknowledges my LootBP of setup
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
wait(100)
end
03-13-2016, 05:32 AM
Dani Scripts
Thanks a lot @Dehan, this is an awesome action, would be interesting if this put rashid items on 1 depot and blue on other one and green djinns on other one D:, that would be f.... awesome but i think that's too much to ask XD
Man I am struggling with a problem I changed a little bit this action to make it changeable in cavebot settings, it looks like this.
--### Dehan's Depot Boxes Depositer v1.0.0 ###
local lootingBp = getlootingdestination('lootbp') local nonstackableNumber = getlootingdestination('nonstackdp') local stackableNumber = getlootingdestination('stackdp')
--[[DO NOT EDIT BELOW THIS LINE]]--
setsetting('Looting/OpenNextBP', 'no') waitping() while windowcount("Depot Chest") == 0 do opendepot(true) wait(300) openitem(3502) wait(500) end
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 wait(100) end
But there is one problem, when he reaches depo, he openes the locker, and he doesnt open previous loot bp, if he has loot in last loot bp he deposits it corectly, if he doesnt have loot he skips previous bp and goes to next wpt. he doesnt open previous bpacks in both situation, why is that ?
03-13-2016, 09:43 PM
preula
I suggest adding the underlined part to the code:
Code:
while (true) do
foreach lootingitem i do
while itemcount(i.id, lootingBp) > 0 and i.id ~= 3035 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
I guess it wouldn't be nice to deposit platinum coins.
03-15-2016, 08:49 PM
siwylkw
@Dehan Can you create depot box withdrawer? For example thunderstorm runes.
Thanks a lot @Dehan, this is an awesome action, would be interesting if this put rashid items on 1 depot and blue on other one and green djinns on other one D:, that would be f.... awesome but i think that's too much to ask XD
I implemented this code but it is only depositing loots from the first loot backpack.
How do I solve it please?
Thanks
<code>
local main = getuseroption('mainbp')
local loot = getuseroption('lootbp')
local supplies = getuseroption('supplybp')
local gold = getuseroption('goldbp')
wait(1200)
closewindows()
wait(200)
setsetting('Cavebot/WalkingMethod', 'Walk With Map-Clicks')
setsetting('Looting/OpenNextBP', 'no')
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) and (emptycount(lootingBp) == 0) then
openitem(lootingBp, lootingBp, false)
waitcontainer(lootingBp, false)
else
break
end
wait(100)
end
-- Close windows and open main & supplies
closewindows()
wait(2000)
while(windowcount() < 2) do
openitem(main, 'back')
wait(500,1000)
openitem(supplies, main, true)
wait(500,1000)
end
resizewindows()
-- Check if we have supplies, if < maxbuy go buy, else go spawn
</code>
05-07-2016, 08:24 PM
Dehan
@sek you should change the lootingBp = 'jewelled backpack' on the third line of my code to getuseroption('lootbp') aswell
05-11-2016, 10:04 PM
sek
Hello Dehan,
this is a nice code. I edited it, but it only take loots from my first lootbp. I have a lot or beach backpacks one inside the other.
How do I make it deposit ALL loots from ALL lootbp i have?
Thanks a lot and congrats!
05-11-2016, 10:09 PM
Borges
Quote:
Originally Posted by sek
Hello Dehan,
this is a nice code. I edited it, but it only take loots from my first lootbp. I have a lot or beach backpacks one inside the other.
How do I make it deposit ALL loots from ALL lootbp i have?
Thanks a lot and congrats!
pickup your lootbps and run script
05-11-2016, 11:55 PM
sek
what do u mean?
05-12-2016, 12:19 AM
sek
Can anyone help me to this script send ALL loots from my 10 lootbp ( beach backpacks ).
Thanks
05-12-2016, 01:21 AM
Cisco
Quote:
Originally Posted by sek
Can anyone help me to this script send ALL loots from my 10 lootbp ( beach backpacks ).
Thanks
--OpenBP Deposit
closewindows()
wait(1000)
while windowcount(lootbp) == 0 do
closewindows()
wait(1000)
openitem(0, 'back')
wait(1000)
openitem(lootbp, mainbp, false)
wait(1000)
end
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
wait(100)
end
05-13-2016, 01:02 AM
sek
Still the same results. It only deposit loots from the first lootbp
05-13-2016, 01:33 AM
Dehan
Quote:
Originally Posted by sek
what do u mean?
can you please stop spamming on my thread?
on the THIRD (3rd) line of the code there is lootingBp = 'jewelled backpack' change it to lootingBp = 'beach backpack'
also, make sure your bot has the first beach backpack opened with OpenNextBP disabled (find your own code, since this code just deposit items)
05-13-2016, 02:28 AM
sek
Thanks CISCO. It worked.
Valeu CIscoooooooooo.
Sorry Dehan, but only his last code worked as my needs.
BTW, congratz both and thanks!
06-10-2016, 07:02 PM
saweh
I have 2 or more backpacks where i put my loot in while hunting, is it possible to add more bps as lootbp ? Like set 3 backpacks and use command like "moveitems from bp1, bp2, bp3" into 1 box, would it be possible ?
06-23-2016, 09:24 AM
crashzin
hello, i have a problem with this script he only deposit the last bp