daily pastebin goal
60%
SHARE
TWEET

Untitled

a guest Aug 12th, 2017 40 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     public static void castSpell(Player player, NPC victim, int spell) {
  2.         int offsetY = (player.getLocation().getX() - victim.getLocation().getX()) * -1;//incorrect values
  3.         int offsetX = (player.getLocation().getY() - victim.getLocation().getY()) * -1;//incorrect values
  4.  
  5.         //TODO: GRAPHICS & DELAYS.
  6.        
  7.         player.getWalkingQueue().reset();
  8.         player.face(Location.create(victim.getLocation().getX(), victim.getLocation().getY(), victim.getLocation().getZ()));
  9.     }
RAW Paste Data
Top