Put this just after your class extends script declaration (replace names and coordinates with your own):
ArrayList<Position> toMine = new ArrayList();
public static Position[] MinePos = { new Position(2845, 2961, 0),
new Position(2831, 2969, 0), new Position(2827, 2981, 0),
new Position(2823, 2998, 0) };
Put this in your onStart(); statement:
loadPath(this.toMine, MinePos);
Put this after your onStart(); statement:
private void doWalk(ArrayList<Position> posList)
throws InterruptedException {
for (Iterator localIterator = posList.iterator(); localIterator
.hasNext(); this.client.getMyPlayer().isMoving()) {
Position pos = (Position) localIterator.next();
walkMiniMap(pos);
sleep(1300 + random(600));
}
}
private void loadPath(ArrayList<Position> list, Position[] pos) {
for (Position path : pos)
list.add(path);
}
Put this wherever you want to execute the walk:
try {
doWalk(this.toMine);
} catch (Exception localException) {
}