So I've used the code beneath in a waypoint action but when it gets to it it gets stuck on this action without any errors.
Does anyone have a clue why? I've also tried it with isinrange but the same happens when it gets to that action waypoints it just stops there without any errors.
Btw if I just use gotolabel it works without anything else.
local playerPos = g_game.getLocalPlayer():getPosition()
local templeX = 32727
local templeY = 31627
if playerPos.x >= templeX and playerPos.y => templeY then
gotolabel("Temple", "Training")
else
gotolabel("Start", "Training")
end