ECH0 Posted June 7, 2019 Posted June 7, 2019 Hello, I'm trying to make a bot to walk to a position, which is on the second floor on the map, but with the webWalk it doesn't find the route. Any help? Code snippet to walk there (it first walks to an area nearby, then attempts walk ladder up, but it doesnt move from that area and in debugger it writes, that no rout found to destination) else if(chaosTemplate.contains(myPlayer())) { getWalking().webWalk(stealerPosition); }
ECH0 Posted June 7, 2019 Author Posted June 7, 2019 Fixed it with this: else if(chaosTemplate.contains(myPlayer())) { RS2Object ladder = objects.closest("Ladder"); ladder.interact("Climb"); }
Gunman Posted June 8, 2019 Posted June 8, 2019 3 hours ago, ECH0 said: Hello, I'm trying to make a bot to walk to a position, which is on the second floor on the map, but with the webWalk it doesn't find the route. Any help? Code snippet to walk there (it first walks to an area nearby, then attempts walk ladder up, but it doesnt move from that area and in debugger it writes, that no rout found to destination) else if(chaosTemplate.contains(myPlayer())) { getWalking().webWalk(stealerPosition); } 2 hours ago, ECH0 said: Fixed it with this: else if(chaosTemplate.contains(myPlayer())) { RS2Object ladder = objects.closest("Ladder"); ladder.interact("Climb"); } That's because the second floor of the chaos temple is not in webwalking. I learned this when I made a telegrabber.
FuryShark Posted June 8, 2019 Posted June 8, 2019 4 hours ago, ECH0 said: Fixed it with this: else if(chaosTemplate.contains(myPlayer())) { RS2Object ladder = objects.closest("Ladder"); ladder.interact("Climb"); } add a if(ladder != null) { interact } 1
ECH0 Posted June 8, 2019 Author Posted June 8, 2019 9 hours ago, FuryShark said: add a if(ladder != null) { interact } Done, thanks