- Joined
- Jul 8, 2020
- Messages
- 3
- Thread Author
- #1
Code:
private final Area areaStart = new Area.Rectangular(
new Coordinate(3226, 3239, 0),
new Coordinate(3233, 3242, 0)
);
// This
final WebPath path = Traversal.getDefaultWeb().getPathBuilder().buildTo(new Coordinate(3228, 3240, 0));
// Or this won't work
final WebPath path = Traversal.getDefaultWeb().getPathBuilder().buildTo(areaStart.getRandomPosition());
if (path != null) {
path.step();
}
else {
System.out.println("Couldn't build a path.");
}
Forgot to mention, I'm walking from rimmington mine to lumbridge in OSRS.
Last edited: