blahs44

Untitled

Oct 21st, 2013
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.47 KB | None | 0 0
  1. package BGDK;
  2.  
  3. import org.osbot.script.Script;
  4. import org.osbot.script.rs2.utility.ConditionalSleep;
  5.  
  6. public class CombatConditionalSleep extends ConditionalSleep {
  7.  
  8.     private final Script SCRIPT;
  9.  
  10.     public CombatConditionalSleep(int arg0, Script script) {
  11.         super(arg0);
  12.         this.SCRIPT = script;
  13.     }
  14.  
  15.     @Override
  16.     public boolean condition() {
  17.         return SCRIPT.client.getMyPlayer().getFacing() != null
  18.                 && SCRIPT.client.getMyPlayer().getFacing().isUnderAttack();
  19.     }
  20.  
  21. }
Advertisement
Add Comment
Please, Sign In to add comment