Log in

View Full Version : walker going to next label after checking supplies



dean015
01-19-2016, 03:20 AM
Hello i really have no idea what im doing but iv worked most stuff out by watching tutorials (big credit to Xtrmjosh) and just looking at other scripts




elseif (labelName == "Checker") then
if (Self.Cap() < CapLeave) then
Walker.Goto("Leave")
elseif (Self.ItemCount(ManaPots) < MPLeave) then
Walker.Goto("Leave")
elseif (Self.ItemCount(HPID) < HPLeave) then
Walker.Goto("Leave")
else
Walker.Goto("Hunt")
end

anyway everything else works fine just after the walker gets to the checker it carrys on to leave regardless of supplies are good or not i believe it should say something llike walker.gotolabel ? or something also the pot IDs are all correct


any help is appreciated

thanks

xairam
01-20-2016, 11:03 AM
Use this:

gotoLabel("Leave")

L!p3
01-20-2016, 01:15 PM
Walker.ConditionalGoto(Self.Cap() < CapLeave or Self.ItemCount(ManaPots) < MPLeave or Self.ItemCount(HPID) < HPLeave, "Leave", "Hunt")

or

if Self.Cap() < CapLeave or Self.ItemCount(ManaPots) < MPLeave or Self.ItemCount(HPID) < HPLeave then
Walker.Goto("Leave")
else
Walker.Goto("Hunt")
end