oualid64966 0 Posted April 12 Share Posted April 12 (edited) 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 Edited April 12 by oualid64966 Link to post Share on other sites
Tokumei 5 Posted April 12 Share Posted April 12 @oualid64966You could try toggle/pause the walker at the start of the script then toggle/unpause it at the end. Link to post Share on other sites
Tokumei 5 Posted April 12 Share Posted April 12 For example: local playerPos = g_game.getLocalPlayer():getPosition() local templeX = 32727 local templeY = 31627 setOption("Cavebot/Enabled", "false") if playerPos.x >= templeX and playerPos.y => templeY then gotolabel("Temple", "Training") else gotolabel("Start", "Training") end And then have an action script after your other labels that enables it again. setOption("Cavebot/Enabled", "true") Let me know if it works or not. Link to post Share on other sites
oualid64966 0 Posted April 12 Author Share Posted April 12 1 hour ago, Tokumei said: For example: local playerPos = g_game.getLocalPlayer():getPosition() local templeX = 32727 local templeY = 31627 setOption("Cavebot/Enabled", "false") if playerPos.x >= templeX and playerPos.y => templeY then gotolabel("Temple", "Training") else gotolabel("Start", "Training") end And then have an action script after your other labels that enables it again. setOption("Cavebot/Enabled", "true") Let me know if it works or not. Do you mean after the labels at the cavebot part? Because that would never reach it right if you disabled the cavebot. Link to post Share on other sites
Tokumei 5 Posted April 12 Share Posted April 12 7 hours ago, oualid64966 said: Do you mean after the labels at the cavebot part? Because that would never reach it right if you disabled the cavebot. Correct. And again I haven't tested it. I only just got the bot again yesterday and haven't had a chance to play around with it. Alternatively you could add some delays in your script. Link to post Share on other sites
Tokumei 5 Posted April 30 Share Posted April 30 @oualid64966 I stand corrected. All you need to do is place a "stand" wpt before the action for the same co-ordinates. Link to post Share on other sites
Recommended Posts