Most of the dragons except for the bosses on project insanity dont use dragon fire they only attack with melee......how do i make it so an npc uses dragon fire and they need either a dragon fire shield or an anti-dragon shield to not get hit high by it??
The code to get burnt by dragon fire is already in the coding i just need to know how to make an npc use dragon fire here is the code to make em get burned though
Code:
if (npcs[i].attackType == 3) { //fire breath
int anti = c.getPA().antiFire();
if (anti == 0) {
damage = Misc.random(30) + 10;
c.sendMessage("You are badly burnt by the dragon fire!");
} else if (anti == 1)
damage = Misc.random(20);
else if (anti == 2)
damage = Misc.random(5);
if (c.playerLevel[3] - damage < 0)
damage = c.playerLevel[3];
c.gfx100(npcs[i].endGfx);
}