Quote:
16:09:00 error in Action script w003:
["local NOT_STACKABLE_LAST_ON_TO, ITEM_INDE..."]:Action: 4:25: '}' expected (to close '{' at line 14) near 'local'
Quote:
w003
if windowcount(LootBP) < 1 then
gotolabel('Bp_depot')
end
resizewindows(100, LootBP, true)
wait(200)
:-( doesnt goto dp and deposit anymore, just ignores it
the bug seems to be in here really.
w004
PHP Code:
reachgrounditem("depot")
wait(1000, 1500)
openitem("depot")
wait(900, 1400)
openitem(3502, "locker")
wait(900, 1400)
openitem(MainDpBp, 'Depot Chest')
wait(900, 1400)
resizewindows(100, MainDpBp, true)
wait(300)
local CONFIG = {
LOOT_BACKPACK = LootBP,
STACKABLE_BACKPACK = StackItems,
STACKABLE_BACKPACK_AMOUNT = itemcount(StackItems),
NOT_STACKABLE_BACKPACK = LootRares,
NOT_STACKABLE_BACKPACK_AMOUNT = itemcount(LootRares),
DEPOSIT_ITEMS = {"velvet tapestry", "black skull", "demonbone amulet", "relic sword", "onyx flail", "shadow sceptre", "dracoyle statue", "knight legs", "spiked squelcher", "wand of cosmic energy", "berserk potion", "white piece of cloth", "shiny stone", "hellspawn tail", "ultimate health potion", "small topaz", "stealth ring", "great health potion", "great mana potion", "great mana potion", "moonlight rod","dark rosary", "soul orb", "velvet tapestry", "ultimate health potion", "great health potion", "hellspawn tail", "gold ingot", "assassin star", "red piece of cloth", "vampire dust", "white pearl", "wolf paw", "werewolf fur", "emerald bangle", "small diamond", "blood preservation", "vampire teeth", "demonic essence", "essence of a bad dream", "scythe leg", "strong mana potion", "hardened bone", "bony tail", "black pearl", "small amethyst", "mutated bat ear", "bat wing", "life crystal", "hair of a banshee", "petrified scream","bat wing", "Berserk potion", "demonic essence", "hardened bone", "emerald bangle", "scythe leg", "mutated bat ear", "werewolf fur", "essence of a bad dream", "hair of a banshee", "talon", "blood preservation", "ultimate health potion", "small diamond", "black pearl", "vampire teeth", "petrified scream", "bony tail", "small amethyst", "white pearl", "life crystal", "strong mana potion", "strong health potion", "small topaz", "golden legs", "butchers axe", "vile axe", "cats paw", "steel boots", "assassin dagger", "noble axe", "terra rod", "knight armor", "paladin armor", "crown armor", "golden armor", "batwing hat", "skeleton decoration", "crystal of focus", "skeleton decoration", "spike sword", "hailstorm rod", "boots of haste", "crown helmet", "ice rapier", "blue robe", "shadow sceptre", "dreaded cleaver", "bonebreaker", "knight legs", "haunted blade", "vampire shield", "epee", "relic sword", "hibiscus dress", "war axe", "death ring", "diamond sceptre", "chaos mace", "mercenary sword", "terra mantle", "platinum amulet", "leather whip", "sweet smelling bait", "red robe", "time ring", "blood goblet", "mysterious voodoo skull", "velvet tapestry", "crystal of balance", "bonebeast trophy", "batwing hat", "focus cape", "ring of healing", "stone skin amulet","Leather whip", "Sweet smelling bait", "Boots of haste", "relic sword", "vampire shield", "dreaded cleaver", "mercenary sword", "terra mantle", "bonebreaker", "blue robe", "shadow sceptre", "chaos mace", "war axe", "batwing hat", "haunted blade", "epee", "focus cape", "bonebeast trophy", "knight legs", "mysterious voodoo skull", "diamond sceptre", "hibiscus dress", "skeleton decoration", "hailstorm rod", "crown helmet", "platinum amulet", "crystal of focus", "ice rapier", "crystal of balance", "death ring", "spike sword", "ancient shield", "black shield", "stone skin amulet", "time ring", "ring of healing", "blood goblet", "bar of chocolate", "red robe", "piggy bank", "knight legs", "Warrior helmet", "spiked squelcher", "black skull", "dracoyle statue", "onyx flail", "Crown legs", "golden legs"}
local NOT_STACKABLE_LAST_ON_TO, ITEM_INDEX = 0, 1
while (#CONFIG.DEPOSIT_ITEMS >= ITEM_INDEX) do
if (type(CONFIG.DEPOSIT_ITEMS[ITEM_INDEX]) == "string") then
local ITEM_ID = itemid(CONFIG.DEPOSIT_ITEMS[ITEM_INDEX])
if (ITEM_ID > 0) then
CONFIG.DEPOSIT_ITEMS[ITEM_INDEX], ITEM_INDEX = ITEM_ID, ITEM_INDEX + 1
else
table.remove(CONFIG.DEPOSIT_ITEMS, ITEM_INDEX)
end
elseif (type(CONFIG.DEPOSIT_ITEMS[ITEM_INDEX]) == "number") then
if (CONFIG.DEPOSIT_ITEMS[ITEM_INDEX] > 0) then
ITEM_INDEX = ITEM_INDEX + 1
else
table.remove(CONFIG.DEPOSIT_ITEMS, ITEM_INDEX)
end
else
table.remove(CONFIG.DEPOSIT_ITEMS, ITEM_INDEX)
end
end
while (true) do
for _, DEPOSIT_ITEM in ipairs(CONFIG.DEPOSIT_ITEMS) do
if (itemcount(DEPOSIT_ITEM, CONFIG.LOOT_BACKPACK) > 0) then
if (iteminfo(DEPOSIT_ITEM).isCumulative) then
local STACKABLE_LAST_ON_TO = 0
while (CONFIG.STACKABLE_BACKPACK_AMOUNT > STACKABLE_LAST_ON_TO) do
local ITEM_COUNT_BEFORE = itemcount(DEPOSIT_ITEM, CONFIG.LOOT_BACKPACK)
moveitemsonto(DEPOSIT_ITEM, CONFIG .STACKABLE_BACKPACK,STACKABLE_LAST_ON_TO, nil, "all", 100)
wait(300, 500)
local ITEM_COUNT_AFTER = itemcount(DEPOSIT_ITEM, CONFIG.LOOT_BACKPACK)
if (ITEM_COUNT_BEFORE == ITEM_COUNT_AFTER and ITEM_COUNT_AFTER > 0) then
STACKABLE_LAST_ON_TO = STACKABLE_LAST_ON_TO + 1
elseif (ITEM_COUNT_AFTER == 0) then
break
end
end
else
while (CONFIG.NOT_STACKABLE_BACKPACK_AMOUNT > NOT_STACKABLE_LAST_ON_TO) do
local ITEM_COUNT_BEFORE = itemcount(DEPOSIT_ITEM, CONFIG.LOOT_BACKPACK)
moveitemsonto(DEPOSIT_ITEM, CONFIG .NOT_STACKABLE_BACKPACK,NOT_STACKABLE_LAST_ON_TO, nil, "all", 100)
wait(300, 500)
local ITEM_COUNT_AFTER = itemcount(DEPOSIT_ITEM, CONFIG.LOOT_BACKPACK)
if (ITEM_COUNT_BEFORE == ITEM_COUNT_AFTER and ITEM_COUNT_AFTER > 0) then
NOT_STACKABLE_LAST_ON_TO = NOT_STACKABLE_LAST_ON_TO + 1
elseif (ITEM_COUNT_AFTER == 0) then
break
end
end
end
end
end
if (itemcount(CONFIG.LOOT_BACKPACK, CONFIG.LOOT_BACKPACK) > 0) then
openitem(CONFIG.LOOT_BACKPACK, CONFIG.LOOT_BACKPACK, false) wait(2000, 3000)
else
break
end
wait(100)
end