Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

Sign up now!

Resolved RegionPath - Increase walk distance

Joined
Jun 20, 2015
Messages
161
I'm trying to walk somewhere right on the edge of the minimap, but RegionPath.step() clicks very close to me on the minimap, about 10 tiles away. It doesn't seem very humanlike and causes me to waste a lot of time. How do I make it so that step() clicks much further away, right at the edge of the minimap if possible?

e: Found this: Question - How to walk efficiently?
It's not clicking on the edge of the minimap though, it's clicking about 1/4 of the way to the edge. It's a totally clear path so it's not because of obstacles or anything. Happens whether I use step(true) or step(false).
 
Last edited:
Joined
Jul 20, 2017
Messages
7
You'll need to create your own wrapper over CoordinatePath. The default path generator generates a lot of coordinates super close to each other which leads to the issue you mention, and un-humanlike/unoptimal walking.

class FurthestVisibleCoordinatePath extends Coordinate Path ... then override getNext() to get the furthest coordinate which is still visible, i.e. scan through the list until we reach a coordinate which is not visible on the minimap, then use the previous coordinate as the next step.
 
Top