Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Decompiled by: Fernflower v0.6
- // Date: 15.07.2011 00:23:56
- // Copyright: 2008-2009, Stiver
- // Home page: http://www.reversed-java.com
- package server.model.npcs.impl;
- import server.model.Attackable;
- import server.model.hits.Hit;
- import server.model.npcs.NPC;
- import server.model.npcs.NPCHandler;
- import server.model.players.Client;
- import server.model.players.combat.CombatUtil;
- import server.util.Misc;
- public class Zulrah extends NPC {
- public Zulrah(int npcId, int npcType) {
- super(npcId, npcType);
- super.followDistance = 6;
- super.attackRange = 8;
- }
- Client c;
- public void attack(Attackable a) {
- if (a != null) {
- this.startAnimation(NPCHandler.npcDef[this.npcType].attackEmote);
- this.facePlayer(a.getFace());
- int delay = CombatUtil.getDelayForDistance(Misc.distanceBetween(this, a)) + 1;
- Hit h;
- }
- this.attackTimer = 6;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement