- Thread Author
- #1
I recently started creating a bot that simply buys select items at the Varrock General Store and banks them for a cheesy and low cost way of getting some starter cash. However, I am experiencing and issue that involves my path occasionally returning null for seemingly inexplicable reasons. I have been searching around for a solution but if there is already a solution posted somewhere I haven't had any luck finding it. Let me know if I'm doing something wrong.
Code:
public class GoToBank extends LeafTask {
private Path path;
private Coordinate bank = new Coordinate(3183, 3436, 0);
@Override
public void execute() {
path = Traversal.getDefaultWeb().getPathBuilder().buildTo(bank);
if (path != null) {
path.step();
}
}
}