04-02-2021, 04:04 AM
i wanted to change the depositer so it works with multiple character loot backpacks open... example i have 4 "backpack" open all filled with battle shield but it wont move any... it only moves the battle shields from "backpack" to "green backpack" if i have exactly 1 "backpack" open.... is there a way for it to move the battle shields even when all 4 backpack open
Code:
Code:
local CHARACTER_LOOT_BP = 'backpack'
local DEPOSITER_LOOT_MAIN_BP = 'green backpack'
local DEPOSITER_LOOT_ITEMS_BP = 'green backpack'
local DEPOSITER_STACKED_BP = 'yellow parcel'
local ITEMS_LOOT = { 'battle shield', 'battle shield', 'dwarven shield' }
local ITEMS_STACKED = { 'bolt', 'hunting bolt' }
reachgrounditem('depot')
wait(500)
openitem('depot')
wait(1000)
if itemcount(DEPOSITER_LOOT_MAIN_BP, 'Locker') > 0 then
local DEPOSITER_LOOT_WINCOUNT = windowcount(DEPOSITER_LOOT_MAIN_BP)
openitem(DEPOSITER_LOOT_MAIN_BP, 'Locker')
wait(1000)
if windowcount(DEPOSITER_LOOT_MAIN_BP) > DEPOSITER_LOOT_WINCOUNT then
if itemcount(DEPOSITER_LOOT_ITEMS_BP, DEPOSITER_LOOT_MAIN_BP) > 0 then
clearlastonto()
for i = 0, #ITEMS_LOOT do
while itemcount(ITEMS_LOOT[i], CHARACTER_LOOT_BP) > 0 do
moveitemsonto(ITEMS_LOOT[i], DEPOSITER_LOOT_ITEMS_BP, getlastonto(), DEPOSITER_LOOT_MAIN_BP, CHARACTER_LOOT_BP, 100)
wait(500)
end
end
end
higherwindow(DEPOSITER_LOOT_MAIN_BP)
wait(1000)
end
end
if itemcount(DEPOSITER_STACKED_BP, 'Locker') > 0 then
local DEPOSITER_STACKED_WINCOUNT = windowcount(DEPOSITER_STACKED_BP)
openitem(DEPOSITER_STACKED_BP, 'Locker')
wait(1000)
if windowcount(DEPOSITER_STACKED_BP) > DEPOSITER_STACKED_WINCOUNT then
stackitems(DEPOSITER_STACKED_BP, false)
for i = 0, #ITEMS_STACKED do
while itemcount(ITEMS_STACKED[i], CHARACTER_LOOT_BP) > 0 do
moveitems(ITEMS_STACKED[i], DEPOSITER_STACKED_BP, CHARACTER_LOOT_BP, 100)
wait(500)
end
end
end
end
