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'?
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'?
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?
@Dehan Help-me? I would like the action acknowledges my LootBP of setup
--### Dehan's Depot Boxes Depositer v1.0.0 ###
lootingBp = getuseroption('LootBP')
nonstackableNumber = 1
stackableNumber = 2
--[[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
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
wait(100)
end
Last edited by mantribal; 03-13-2016 at 03:48 AM.
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
Wow! I really need that! Thank you so much
@Dehan
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
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
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 ?
I suggest adding the underlined part to the code:
I guess it wouldn't be nice to deposit platinum coins.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
Last edited by preula; 03-13-2016 at 09:47 PM.
@Dehan Can you create depot box withdrawer? For example thunderstorm runes.
Rally nice Dehan!
Great Job!