Advertisement
Guest User

Untitled

a guest
Mar 6th, 2015
190
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.00 KB | None | 0 0
  1. // Decompiled by: Fernflower v0.6
  2. // Date: 15.07.2011 00:23:56
  3. // Copyright: 2008-2009, Stiver
  4. // Home page: http://www.reversed-java.com
  5. package server.model.npcs.impl;
  6.  
  7. import server.model.Attackable;
  8. import server.model.hits.Hit;
  9. import server.model.npcs.NPC;
  10. import server.model.npcs.NPCHandler;
  11. import server.model.players.Client;
  12. import server.model.players.combat.CombatUtil;
  13. import server.util.Misc;
  14.  
  15. public class Zulrah extends NPC {
  16.  
  17. public Zulrah(int npcId, int npcType) {
  18. super(npcId, npcType);
  19. super.followDistance = 6;
  20. super.attackRange = 8;
  21. }
  22.  
  23. Client c;
  24.  
  25. public void attack(Attackable a) {
  26. if (a != null) {
  27. this.startAnimation(NPCHandler.npcDef[this.npcType].attackEmote);
  28. this.facePlayer(a.getFace());
  29. int delay = CombatUtil.getDelayForDistance(Misc.distanceBetween(this, a)) + 1;
  30. Hit h;
  31. }
  32. this.attackTimer = 6;
  33. }
  34. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement