DEPRECATED, THIS NO LONGER WORKS.
Description
I made an action to withdraw items from DP.
It also opens the next BP if the BP is empty so you can have more than 20 items (stacks) stored in your DP.
I made it to store multiple BPs of rings in my DP for longer botting sessions
Configuration
This action is only for 1 type of item, in this case life rings. If you want to withdraw 2 types of items from different BPs (example: mushrooms & rings) you'll have to copy and modify some code.
You can paste the code after your depositer action or put it inside a new action waypoint. Don't forget to change the lootingdestinations to your own settings!
Here's an image of the BP setup in the depot.
Code
local bp = {
to = getlootingdestination('mainbp'),
from = getlootingdestination('ringbpdp')
}
local item = ('life ring')
local itemamount = getuseroption('ringamount') -- You can also change this to a number like 5.
while (windowcount('Locker') == 0) do
openitem('depot')
wait(700,800)
end
while (windowcount('Depot Chest') == 0) do
openitem(3502, 'locker')
wait(800,1200)
end
openitem(bp.from, 'Depot Chest', false)
wait(800,1000)
amounttowithdraw = itemamount-itemcount(item, bp.to)
while itemcount(item, bp.to) < itemamount and (itemcount(item, bp.from) >= 1 or itemcount(bp.from, bp.from) == 1) do
moveitems(item, bp.to, bp.from, amounttowithdraw)
wait(500,1000)
if itemcount(item, bp.from) == 0 and itemcount(bp.from, bp.from) == 1 then
openitem(bp.from, bp.from, false)
end
amounttowithdraw = itemamount-itemcount(item, bp.to)
end
If there's any bug/it doesn't work for you please let me know so I can fix it!