Originally Posted by
ricardodeelima
IT IS OK??
--Reach Depot/Open Dp/Deposit
setfavoritedepot(2)
stackdp = getlootingdestination('stackdp')
nonstackdp = getlootingdestination('nonstackdp')
lootbp = getlootingdestination('lootbp')
maindpbp = getlootingdestination('maindpbp')
local CONFIG = {
LOOT_BACKPACK = lootbp,
MAIN_DP_BACKPACK = maindpbp,
STACKABLE_BACKPACK = stackdp,
NOT_STACKABLE_BACKPACK = nonstackdp,
}
clearlastonto()
while (true) do
foreach lootingitem ITEM_ENTRY do
while (itemcount(ITEM_ENTRY.id, CONFIG.LOOT_BACKPACK) > 0) do
if (itemproperty(ITEM_ENTRY.id, ITEM_STACKABLE)) then
moveitemsonto(ITEM_ENTRY.id, CONFIG.STACKABLE_BACKPACK, 1, CONFIG.MAIN_DP_BACKPACK, CONFIG.LOOT_BACKPACK) wait(600, 1200)
else
moveitemsonto(ITEM_ENTRY.id, CONFIG.NOT_STACKABLE_BACKPACK, $lastonto, CONFIG.MAIN_DP_BACKPACK, CONFIG.LOOT_BACKPACK) wait(600, 200)
end
end
end
if (itemcount(CONFIG.LOOT_BACKPACK, CONFIG.LOOT_BACKPACK) > 0) then
openitem(CONFIG.LOOT_BACKPACK, CONFIG.LOOT_BACKPACK, false) waitcontainer(CONFIG.LOOT_BACKPACK, false)
else
break
end
wait(100)
end