PDA

View Full Version : Refill



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 :)

rusio
02-13-2014, 10:02 PM
just type 'end' at the end

jompa123
02-13-2014, 10:39 PM
just type 'end' at the end
Does not work :/ if you know how it is supposed to look could you rewrite it for me?