Joe
07-15-2012, 03:02 PM
Could anyone help me to fix this?
It doesn't even give error msg ingame.
function onWalkerSelectLabel(labelName)
if (labelName == "check") then
delayWalker(1000)
setWalkerEnabled(false)
if (Self.ItemCount(MPotID) <= MinMPots) or (Self.Cap() < MinCap) or (Self.ItemCount(BoltId) <= MinBolts) then
setWalkerEnabled(true)
gotoLabel("refill")
else
setWalkerEnabled(true)
gotoLabel("KeepHunting")
end
elseif (labelName == "passcemetery") then
setWalkerEnabled(false)
wait(900, 1200)
Self.SayToNpc({"Hi", "pass", "cemetery", "yes"}, 65)
sleep(math.random(2000, 2400))
elseif (labelName == "passmagician") then
wait(900, 1200)
Self.SayToNpc({"Hi", "pass", "magician", "yes"}, 65)
sleep(math.random(2000, 2400))
elseif (labelName == "bank") then
setWalkerEnabled(false)
NpcConv("hi","deposit all","yes","balance")
wait(900, 1200)
Self.WithdrawMoney((MPotprice*(MPots-Self.ItemCount(MPotID))))
wait(900, 1200)
Self.SayToNpc("yes")
wait(900, 1200)
Self.WithdrawMoney((Boltprice*(bolts-Self.ItemCount(BoltId))))
wait(900, 1200)
Self.SayToNpc("yes")
wait(15000,19000)
setWalkerEnabled(true)
elseif (labelName == "deposit") then
setWalkerEnabled(false)
Self.DepositItems({10281,1}, {3313,1}, {3007,1}, {8093,1}, {816,1}, {8043,1}, {8092,1}, {8045,1}, {9304,1}, {7430,1}, {8027,1}, {7449,1}, {3073,1}, {3415,1}, {9665, 2}, {237, 2}, {236, 2}, {3028, 2}, {3287, 2}, {3033, 2})
wait(1500,1900)
setWalkerEnabled(true)
elseif (labelName == "trademp") then
setWalkerEnabled(false)
wait(900, 1200)
Self.SayToNpc({"Hi", "flasks", "yes", "yes", "yes", "yes", "yes", "Trade"}, 65)
sleep(math.random(2000, 2400))
buyAlotOfItemsBecauseItsSuchAGodDamnBigDeal(MPotID , (MPots-Self.ItemCount(MPotID)))
sleep(math.random(2000, 2400))
setWalkerEnabled(true)
elseif (labelName == "check2") then
if (Self.ItemCount(MPotID) <= MinMPots) or (Self.Cap() < MinCap) or (Self.ItemCount(BoltId) <= MinBolts) then
setWalkerEnabled(true)
gotoLabel("goBank")
else
setWalkerEnabled(true)
gotoLabel("KeepHunting")
end
elseif (labelName == "buybolt") then
setWalkerEnabled(false)
Self.SayToNpc({"Hi", "Trade"}, 65)
wait(900, 1200)
buyAlotOfItemsBecauseItsSuchAGodDamnBigDeal(bolts, (bolts-Self.ItemCount(BoltId)))
wait(200, 500)
setWalkerEnabled(true)
end
end
It doesn't even give error msg ingame.
function onWalkerSelectLabel(labelName)
if (labelName == "check") then
delayWalker(1000)
setWalkerEnabled(false)
if (Self.ItemCount(MPotID) <= MinMPots) or (Self.Cap() < MinCap) or (Self.ItemCount(BoltId) <= MinBolts) then
setWalkerEnabled(true)
gotoLabel("refill")
else
setWalkerEnabled(true)
gotoLabel("KeepHunting")
end
elseif (labelName == "passcemetery") then
setWalkerEnabled(false)
wait(900, 1200)
Self.SayToNpc({"Hi", "pass", "cemetery", "yes"}, 65)
sleep(math.random(2000, 2400))
elseif (labelName == "passmagician") then
wait(900, 1200)
Self.SayToNpc({"Hi", "pass", "magician", "yes"}, 65)
sleep(math.random(2000, 2400))
elseif (labelName == "bank") then
setWalkerEnabled(false)
NpcConv("hi","deposit all","yes","balance")
wait(900, 1200)
Self.WithdrawMoney((MPotprice*(MPots-Self.ItemCount(MPotID))))
wait(900, 1200)
Self.SayToNpc("yes")
wait(900, 1200)
Self.WithdrawMoney((Boltprice*(bolts-Self.ItemCount(BoltId))))
wait(900, 1200)
Self.SayToNpc("yes")
wait(15000,19000)
setWalkerEnabled(true)
elseif (labelName == "deposit") then
setWalkerEnabled(false)
Self.DepositItems({10281,1}, {3313,1}, {3007,1}, {8093,1}, {816,1}, {8043,1}, {8092,1}, {8045,1}, {9304,1}, {7430,1}, {8027,1}, {7449,1}, {3073,1}, {3415,1}, {9665, 2}, {237, 2}, {236, 2}, {3028, 2}, {3287, 2}, {3033, 2})
wait(1500,1900)
setWalkerEnabled(true)
elseif (labelName == "trademp") then
setWalkerEnabled(false)
wait(900, 1200)
Self.SayToNpc({"Hi", "flasks", "yes", "yes", "yes", "yes", "yes", "Trade"}, 65)
sleep(math.random(2000, 2400))
buyAlotOfItemsBecauseItsSuchAGodDamnBigDeal(MPotID , (MPots-Self.ItemCount(MPotID)))
sleep(math.random(2000, 2400))
setWalkerEnabled(true)
elseif (labelName == "check2") then
if (Self.ItemCount(MPotID) <= MinMPots) or (Self.Cap() < MinCap) or (Self.ItemCount(BoltId) <= MinBolts) then
setWalkerEnabled(true)
gotoLabel("goBank")
else
setWalkerEnabled(true)
gotoLabel("KeepHunting")
end
elseif (labelName == "buybolt") then
setWalkerEnabled(false)
Self.SayToNpc({"Hi", "Trade"}, 65)
wait(900, 1200)
buyAlotOfItemsBecauseItsSuchAGodDamnBigDeal(bolts, (bolts-Self.ItemCount(BoltId)))
wait(200, 500)
setWalkerEnabled(true)
end
end