oualid64966 Posted April 12, 2022 Share Posted April 12, 2022 (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, 2022 by oualid64966 Link to comment Share on other sites More sharing options...
Tokumei Posted April 12, 2022 Share Posted April 12, 2022 @oualid64966You could try toggle/pause the walker at the start of the script then toggle/unpause it at the end. Link to comment Share on other sites More sharing options...
Tokumei Posted April 12, 2022 Share Posted April 12, 2022 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 comment Share on other sites More sharing options...
oualid64966 Posted April 12, 2022 Author Share Posted April 12, 2022 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 comment Share on other sites More sharing options...
Tokumei Posted April 12, 2022 Share Posted April 12, 2022 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 comment Share on other sites More sharing options...
Tokumei Posted April 30, 2022 Share Posted April 30, 2022 @oualid64966 I stand corrected. All you need to do is place a "stand" wpt before the action for the same co-ordinates. Link to comment Share on other sites More sharing options...
Recommended Posts