To not have to be always in the script editing my lootbp, I can only for my variable after the "="? So I can only change the setup, and does not need direct changes in action ..?
Exemple:
lootingBp = LootBP
nonstackableNumber = 2
stackableNumber = 1
--### Dehan's Depot Boxes Depositer v1.0.0 ###
lootingBp = 'jewelled backpack'
nonstackableNumber = 2
stackableNumber = 1
--[[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