jompa123
02-13-2014, 09:46 PM
So when I execute this script
-----------------------setting------------------------------------------------------------
healthId = 7643 -- potion id
leaveHealth = 25 --Number of health potion you want to leave your hunt
manaId = 268
leaveMana = 50 --Number of mana potion you want to leave your hunt
------------------------------------------------------------------------------------
registerEventListener(WALKER_SELECTLABEL, "onWalkerSelectLabel")
function onWalkerSelectLabel(labelName)
if (labelName == "check") then
if ((Self.ItemCount(7643) < leaveHealth)) or ((Self.ItemCount(268) < leaveMana)) then
gotoLabel("refill")
else
gotoLabel("start")
end
end
I get this error
Error: 'end' expected (to close 'function' at line 9) near '<eof>'
I was hoping some of you guys might know whats wrong :)
-----------------------setting------------------------------------------------------------
healthId = 7643 -- potion id
leaveHealth = 25 --Number of health potion you want to leave your hunt
manaId = 268
leaveMana = 50 --Number of mana potion you want to leave your hunt
------------------------------------------------------------------------------------
registerEventListener(WALKER_SELECTLABEL, "onWalkerSelectLabel")
function onWalkerSelectLabel(labelName)
if (labelName == "check") then
if ((Self.ItemCount(7643) < leaveHealth)) or ((Self.ItemCount(268) < leaveMana)) then
gotoLabel("refill")
else
gotoLabel("start")
end
end
I get this error
Error: 'end' expected (to close 'function' at line 9) near '<eof>'
I was hoping some of you guys might know whats wrong :)