blahs44

Untitled

Sep 28th, 2013
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.10 KB | None | 0 0
  1. public class whatever extends Script {
  2.         ArrayList<Position> toMine = new ArrayList();
  3.  
  4.         public static Position[] MinePos = { new Position(2845, 2961, 0),
  5.                 new Position(2831, 2969, 0), new Position(2827, 2981, 0),
  6.                 new Position(2823, 2998, 0) };
  7.  
  8.         public void onStart() {
  9.  
  10.                 loadPath(this.toMine, MinePos);
  11.  
  12.         }
  13.  
  14.         private void doWalk(ArrayList<Position> posList)
  15.                         throws InterruptedException {
  16.                 for (Iterator localIterator = posList.iterator(); localIterator
  17.                                 .hasNext(); this.client.getMyPlayer().isMoving()) {
  18.                         Position pos = (Position) localIterator.next();
  19.                         walkMiniMap(pos);
  20.                         sleep(1300 + random(600));
  21.                 }
  22.         }
  23.  
  24.         private void loadPath(ArrayList<Position> list, Position[] pos) {
  25.                 for (Position path : pos)
  26.                         list.add(path);
  27.         }
  28. }
  29.  
  30.  
  31. try {
  32.     doWalk(this.toMine);
  33. } catch (Exception localException) {
  34. }
Advertisement
Add Comment
Please, Sign In to add comment