Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package scripts.abyssCrafter;
- import org.tribot.api.General;
- import org.tribot.api.interfaces.Positionable;
- import org.tribot.api.rs3.Skills;
- import org.tribot.api.rs3.Skills.SKILLS;
- import org.tribot.api.types.generic.Condition;
- import org.tribot.api2007.Player;
- import org.tribot.api2007.WebWalking;
- public class Walker {
- public static void takePath(Positionable tile) {
- if (WebWalking.walkTo(tile, new Condition(){
- @Override
- public boolean active() {
- return Player.isMoving() || Player.getRSPlayer().getHealth() <
- Skills.getActualLevel(SKILLS.HITPOINTS) - (Skills.getActualLevel(SKILLS.HITPOINTS) * .65);
- }
- }, 2000)){
- General.sleep(1500, 2300);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement