daily pastebin goal
78%
SHARE
TWEET

Untitled

a guest Jan 12th, 2018 55 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. double angle = Calculations.angleToTile(to);
  2.         double current = org.zbscripts.script.methods.ui.Camera.getAngle();
  3.         double difference = current - angle;
  4.         if(difference < 0)
  5.             difference += 360;
  6.         Script.log.severe("Angle: " + difference);
  7.         Task.sleep(2000);
  8.         if(difference > 337.5 || difference < 22.5)
  9.             return moveCamera(Camera.FORWARD, useKeys);
  10.         if(difference >= 22.5 && difference < 45)
  11.             return moveCamera(Camera.FORWARD, useKeys) && moveCamera(Camera.RIGHT, useKeys);
  12.         if(difference >= 45 && difference < 147.5)
  13.             return moveCamera(Camera.RIGHT, useKeys);
  14.         if(difference >= 135 && difference < 157.5)
  15.             return moveCamera(Camera.BACK, useKeys) && moveCamera(Camera.RIGHT, useKeys);
  16.         if(difference >= 157.5 && difference < 202.5)
  17.             return moveCamera(Camera.BACK, useKeys);
  18.         if(difference >= 202.5 && difference < 225)
  19.             return moveCamera(Camera.BACK, useKeys) && moveCamera(Camera.LEFT, useKeys);
  20.         if(difference >= 225 && difference < 315)
  21.             return moveCamera(Camera.LEFT, useKeys);
  22.         if(difference >= 315 && difference < 337.5)
  23.             return moveCamera(Camera.FORWARD, useKeys) && moveCamera(Camera.LEFT, useKeys);
  24.         Script.log.severe("Could not get angle!");
  25.         return false;
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top