23 public boolean canAttack(
Mob attacker,
Mob defender) {
24 System.out.println(defender);
26 return super.canAttack(attacker, defender);
29 Npc npc = defender.getNpc();
31 if (npc.id == 3166 || npc.id == 3167 || npc.id == 3168 || npc.id == 3172 || npc.id == 3176 || npc.id == 3183) {
33 attacker.getPlayer().message(
"You can't attack Armadyl with melee!");
38 return super.canAttack(attacker, defender);
42 public void onKill(
Mob attacker,
Mob defender,
Hit hit) {
43 if (defender.
isNpc()) {
44 Npc npc = defender.getNpc();
45 if (npc.npcAssistant.isArmadyl()) {
47 }
else if (npc.npcAssistant.isBandos()) {
49 }
else if (npc.npcAssistant.isSaradomin()) {
51 }
else if (npc.npcAssistant.isZamorak()) {