Apoptosis
06-10-2012, 09:29 PM
When using function Self.DepositItems({3031,1}), I get this error message:
luaContainerUse Invalid number of arguments [3 supplied, 2 required]!
It opens Depot, but won't open depot chest and the error message appears.
Anyone know what's worng? It worked earlier today. :/
Jakob Miller
06-10-2012, 09:32 PM
cant you copy the entire code you got?
Apoptosis
06-10-2012, 09:34 PM
MinCap = 90 -- How much cap to leave cave?
MinMana = 40 -- How much mana pots to leave cave?
-----------------------------------------------------------------------------------
dofile("Forgee.lua")
registerEventListener(WALKER_SELECTLABEL, "onWalkerSelectLabel")
function onWalkerSelectLabel(labelName)
if (labelName == "Check") then
if (Self.Cap() < MinCap) or (Self.ItemCount(268) < MinMana) then
gotoLabel("Gobank")
else
gotoLabel("Start")
end
elseif (labelName == "Sell") then
delayWalker(10000)
Self.SayToNpc({"Hi", "Trade"}, 65)
wait(900, 1200)
Self.ShopSellItem(3269, Self.ItemCount(3269))
wait(900, 1200)
elseif (labelName == "Buy") then
delayWalker(10000)
Self.SayToNpc({"Hi", "Trade"}, 65)
wait(900, 1200)
Self.ShopSellItem(285, Self.ItemCount(285))
wait(900, 1200)
Self.ShopBuyItemsUpTo(268, 300)
wait(900, 1200)
elseif (labelName == "Depot") then
delayWalker(3000)
Self.DepositItems(
{3028,0}, --Small Diamond
{3032,0}, --Small Emerald
{3030,0}, --Small Ruby
{3029,0}, --Small Sapphire
{11492,0}, --Rope Belt
{9638,0}, --Cultish Mask
{9639,0}, --Cultish Robe
{11455,0}, --Cultish Symbol
{11652,0}, --Broken Key Ring
{5801,0}, --Jewelled Backpack
{2995,1}, --Piggy Bank
{3566,1}, --Red Robe
{7426,1}, --Amber Staff
{3324,1}, --Skull Staff
{3071,1}, --Wand of Inferno
{5668,1}, --Mysterious Voodoo Skull
{3065,1}, --Terra Rod
{7424,1}, --Lunarstaff
{3055,1}, --Platinum Amulet
{3567,1}, --Blue Robe
{3067,1}, --Hailstorm Rod
{5810,2}, --Pirate Voodoo Doll
{6090,3}, --Music Sheet
{6089,3}, --Music Sheet
{6088,3}, --Music Sheet
{6087,3}, --Music Sheet
{3097,4}, --Dwarven Ring
{3053,4}, --Time Ring
{3051,4}, --Energy Ring
{3052,4}) --Life Ring
delayWalker(2500)
elseif (labelName == "Bank") then
delayWalker(3000)
Self.SayToNpc("Hi")
sleep(math.random(700, 1400))
Self.SayToNpc("Deposit all")
sleep(math.random(700, 1400))
Self.SayToNpc("Yes")
elseif (labelName == "WithBank") then
delayWalker(3000)
Self.SayToNpc("Hi")
sleep(math.random(700, 1400))
Self.SayToNpc("Withdraw 15000")
sleep(math.random(700, 1400))
Self.SayToNpc("Yes")
sleep(math.random(700, 1400))
Self.SayToNpc("Bye")
elseif (labelName == "End") then
delayWalker(3000)
gotoLabel("WalktoSpawn")
end
end
Jakob Miller
06-10-2012, 09:43 PM
elseif (labelName == "Sell") then
delayWalker(10000)
Self.SayToNpc({"Hi", "Trade"}, 65)
wait(900, 1200)
Self.ShopSellItem(3269, Self.ItemCount(3269))
wait(900, 1200)
elseif (labelName == "Buy") then
delayWalker(10000)
Self.SayToNpc({"Hi", "Trade"}, 65)
wait(900, 1200)
Self.ShopSellItem(285, Self.ItemCount(285))
wait(900, 1200)
Self.ShopBuyItemsUpTo(268, 300)
wait(900, 1200)
Think the problem lies within this part. Not the deposit
Apoptosis
06-10-2012, 09:47 PM
I don't think that's it, i tried using this:
registerEventListener(WALKER_SELECTLABEL, "onWalkerSelectLabel")
function onWalkerSelectLabel(labelName)
if (labelName == "Depot") then
delayWalker(3000)
Self.DepositItems({7426,1})
delayWalker(2500)
end
end
Still getting the same error message.
Apoptosis
06-10-2012, 09:54 PM
Problem solved. Reinstalled Xenobot, now everything is working just fine. Thanks for all the help!
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.