Hello what's action code to leave at x level?
Corrected:
Code:local MinLevel = 8
if ($level >= MinLevel) then gotolabel('Leave')
else gotolabel('Hunt')
end
Printable View
Hello what's action code to leave at x level?
Corrected:
Code:local MinLevel = 8
if ($level >= MinLevel) then gotolabel('Leave')
else gotolabel('Hunt')
end
if you want a persistent you need change your section or u'll get stuck
auto(1000)
if $level >= 8 and $wptsection == 'Hunt' then
gotolabel('Leave','Refill')
end
but if you want in a waypoint action, you can do this:
if $level >= 8 then
gotolabel('Leave','Refill')
end
That's is right, but keep in mind that:
- if the label is on the same waypoint section your bot is currently in, it will get stuck on that label, because the condition will be always true
- it is missing a "end" on your code
a better solution would be making a new waypoint section for Leaving and add this code:
auto(1000)
if $level >= 8 and $wptsection == 'Hunt' then
gotolabel(0, 'Leave')
end
I just wanted to add it to waypoints
i made it like this ->
Also, what is the action code for buying energy ring from market?Quote:
local MinLevel = 8
if ($level >= MinLevel) then gotolabel('Leave')
else gotolabel('Hunt')
end
And code for editing a label for parcels then put labels in parcel?