go no
"attacktype is eaither 0-melee, 1-range, 2-mage, that should worknpchandler.java and add this case #of npc:
random = Misc.random(1);
if (random == 1) {
npcs[i].attackType = 0;
} else {
npcs[i].forceChat("You will never defeat me!");
npcs[i].attackType = 1;
npcs[i].forceChat("Taste my Wrath!");
npcs[i].attackType = 2;
}
break;