Advertisement
joedezzy1

Walker

Jul 30th, 2014
215
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.70 KB | None | 0 0
  1. package scripts.abyssCrafter;
  2.  
  3. import org.tribot.api.General;
  4. import org.tribot.api.interfaces.Positionable;
  5. import org.tribot.api.rs3.Skills;
  6. import org.tribot.api.rs3.Skills.SKILLS;
  7. import org.tribot.api.types.generic.Condition;
  8. import org.tribot.api2007.Player;
  9. import org.tribot.api2007.WebWalking;
  10.  
  11. public class Walker {
  12.     public static void takePath(Positionable tile) {       
  13.     if (WebWalking.walkTo(tile, new Condition(){
  14.         @Override
  15.         public boolean active() {
  16.         return Player.isMoving() ||  Player.getRSPlayer().getHealth() <
  17.             Skills.getActualLevel(SKILLS.HITPOINTS) - (Skills.getActualLevel(SKILLS.HITPOINTS) * .65);
  18.         }      
  19.     }, 2000)){
  20.         General.sleep(1500, 2300);
  21.     }
  22.     }
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement