imancity Posted June 9, 2016 Posted June 9, 2016 Has it been removed in .62? If so, what work-around is there 1
Alek Posted June 9, 2016 Posted June 9, 2016 What do you need INodeRouteFinder for? @Christopher - That's a really bad way to use WebWalkEvent. 1
Chris Posted June 9, 2016 Posted June 9, 2016 What do you need INodeRouteFinder for? @Christopher - That's a really bad way to use WebWalkEvent. Thanks for letting me know WebWalkEvent event = new WebWalkEvent(position); PathPreferenceProfile ppp = new PathPreferenceProfile(); ppp.setAllowTeleports(true); event.setPathPreferenceProfile(ppp); event.prefetchRequirements(bot.getMethods()); execute(event);
imancity Posted June 9, 2016 Author Posted June 9, 2016 What do you need INodeRouteFinder for? @Christopher - That's a really bad way to use WebWalkEvent. Explv helped me with my looter and used it to generate new random paths to look for loot on the ground if none was nearby I believe.
Chris Posted June 9, 2016 Posted June 9, 2016 Explv helped me with my looter and used it to generate new random paths to look for loot on the ground if none was nearby I believe. INodeRouteFinder is for internal client use now. 1
Alek Posted June 9, 2016 Posted June 9, 2016 @Christopher - It was bad because of the way web walking is designed. 1. There are internal distance checks to the destination which are NOT arbitrary numbers, but based on the pathing algorithm. 2. If he's using an area as the destination, I wrote it so it returns if the player is in the area... not checking distance to some random position. 3. It's kind of spaghetti, not really checking and using events properly. Not trying to bash, hopefully that clears some things up. 2
Chris Posted June 9, 2016 Posted June 9, 2016 @Christopher - It was bad because of the way web walking is designed. 1. There are internal distance checks to the destination which are NOT arbitrary numbers, but based on the pathing algorithm. 2. If he's using an area as the destination, I wrote it so it returns if the player is in the area... not checking distance to some random position. 3. It's kind of spaghetti, not really checking and using events properly. Not trying to bash, hopefully that clears some things up. I can take anything you throw at me. I learn by being bashed! Thanks for the helpful information.
Explv Posted June 9, 2016 Posted June 9, 2016 Explv helped me with my looter and used it to generate new random paths to look for loot on the ground if none was nearby I believe. You can still use WebWalkEvent. You just no longer need INodeRouteFinder. So just remove that from your code. 1