that code is only showing what type of attackstyle he is doing and is selecting the attack style randomly. Are all npcs having this problem of not doing non null damage? Or just this specific npc? Where is the code that actually applies the damage?
|
My NPCHandler case:
Code:case 8282: random = Misc.random(1); if (random == 0) { npcs[i].projectileId = -1; npcs[i].endGfx = 1986; npcs[i].attackType = 0; hitThrough = true; } else { npcs[i].attackType = 0; } break;
that code is only showing what type of attackstyle he is doing and is selecting the attack style randomly. Are all npcs having this problem of not doing non null damage? Or just this specific npc? Where is the code that actually applies the damage?
Have you even assign it to deal any type of damage? Is something in your code preventing the damage from showing? Is there any error on the prompt?
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |