The default min distance threshold is 3, and the default mini map distance threshold is 5 so I don't think he really needs to change those values.
Also mini map distance threshold does not affect whether the player walks to the same position or not:
"This method sets the property of this walking event that determines whether the next position you're walking to in the path from A to B will be walked to by using the mini map or the main screen. The next location you're walking to is not necessarily the destination of this event, but the next clickable position in the path from A to B. If the distance to the next clickable position is equal or higher than the mini map distance threshold, this event will walk using the mini map. If not, it will use the main screen. The default value of this property is 5."
This is correct, can be simplified a little though (and you shouldn't create the LinkedList every time you want to walk)
public static final Area HILLS_AREA = new Area(1, 2, 3, 4);
public static final LinkedList<Position> HILLS_PATH = new LinkedList<>(
Arrays.asList(
new Position(1, 2, 0),
new Position(2, 3, 0)
)
);
public final void someMethod() {
WalkingEvent walkingEvent = new WalkingEvent();
walkingEvent.setPath(HILLS_PATH);
walkingEvent.setBreakCondition(new Condition() {
return HILLS_AREA.contains(myPosition());
});
execute(walkingEvent);
}
If you don't need to use setBreakCondition or any of the other functions though, then this will do:
private static final List<Position> HILLS_PATH = Arrays.asList(new Position(1, 2, 0), new Position(2, 3, 0));
public final void someMethod() {
getWalking().walkPath(HILLS_PATH);
}