|
|
Hello,
I made an npc in my server and I wanted it to hit different for each style, like 28 for mage and 38 for melee.
I have put this in spawn-config: spawn = 3300 3100 3100 0 1 38 368 368 Beast
I have put this in npchandler.java under
public int getMaxHit(int i) {
switch (npcs[i].npcType) {
case 3300:
if (npcs[i].attackType == 0)
return 38;
else if (npcs[i].attackType == 1 || npcs[i].attackType == 2)
return 28;
i also tried just: else
return 28;
It is still hitting up to 38 with range or magic
I tried to change the maxhit in spawn-config to 28 but then melee wont hit higher.
Is there a way to let it read the getmaxhit data first above the spawn-config maxhit?
Or is there another solution?
Thanks
| « Anyone can help me with add rank iron man | An extremely nooby question » |
| Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |