TorRS Posted August 21, 2020 Posted August 21, 2020 My problem is that when I use WebWalking it often clicks on another side of a wall and then it walks a long path until it actually goes the right direction. This is very bot like and hurts the overall efficiency of the bot. What i want to ask is is there a way to prevent this?
BravoTaco Posted August 21, 2020 Posted August 21, 2020 (edited) Try to use a WebWalkEvent and call useSimplePath() this will try to take a more direct route to the target. It will use more memory but it might help since it won’t try to follow roads. Otherwise you could set a condition for the WebWalkEvent to break when it ventures to far off the path that it has calculated by retrieving it with getPositions() than looping through that finding the closest point that is closest to you and closest to the target point and having a threshold of a overshoot before restarting the event. Edited August 21, 2020 by BravoTaco 1
OsPlay Posted August 22, 2020 Posted August 22, 2020 I had the same problem... In my case i put the webwalk in a while where generate close path (20 tiles) ahead, but set X to avoid the other side of the wilderness, then i catch when is on the fishing spot... 1