server.npcHandler.npcs[attacknpc].hitDiff = hitDiff;
server.npcHandler.npcs[attacknpc].HP -= hitDiff;
server.npcHandler.npcs[attacknpc].updateRequired = true;
server.npcHandler.npcs[attacknpc].hitUpdateRequired = true;
|
|
I'm working on a nice pest control for my server- I have the NPC id's and HP and everything and I have the void knight's HP going down too.Now I need to know how to make it show what the shifter hits(Like red splash- blue splash) on the knight.Any help or even ideas would be appreciated.

server.npcHandler.npcs[attacknpc].hitDiff = hitDiff;
server.npcHandler.npcs[attacknpc].HP -= hitDiff;
server.npcHandler.npcs[attacknpc].updateRequired = true;
server.npcHandler.npcs[attacknpc].hitUpdateRequired = true;

No problem, but you might need to delete the server.npcHandler.npcs[attacknpc].HP -= hitDiff;
If you already added it, other wise its gunna do double damage.
And if i was you i would move NPCvsNpc into NPC.java if you havent already.
NpcHandler is likely to make it buggy.

| « Throwing Knives emote ID | Help me get my server running global?? » |
| Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |