Log in

View Full Version : how change action label ?



fruktas
06-17-2012, 01:11 PM
what i need do idk who can help me ?

fruktas
06-17-2012, 02:06 PM
someone know ??

fruktas
06-17-2012, 02:10 PM
change action

fruktas
06-17-2012, 02:17 PM
thx men!

fruktas
06-17-2012, 02:22 PM
i don't see what is wrong why he leave allways from cave if pots and cap enuogh maybe u see what is wrong ?

function onWalkerSelectLabel(labelName)
if (labelName == "check") then
delayWalker(10000)
if (count(268) < 30) then
gotoLabel("leave")
else
gotoLabel("check1")
end

elseif (labelName == "check1") then
delayWalker(10000)
if (Self.Cap() < 30) then
gotoLabel("leave")
else
gotoLabel("continue")
end
end
end

Infernal Bolt
06-17-2012, 11:50 PM
there is no function called count.
you can also combine both checkers into one.



function onWalkerSelectLabel(labelName)
if (labelName == "check") then
if (Self.ItemCount(268) < 30 or Self.Cap() < 30) then
gotoLabel("leave")
else
gotoLabel("continue")
end
end
end


Edit:
Moved to help section.