Advertisement
Guest User

Untitled

a guest
Aug 12th, 2017
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement