Okay.. so I added bandos boss NPC to the server, the problem is, the boss has 2 attack styles: Melee and Range
When the Boss uses the range attack it works as it should, but when it attacks with melee no hit-splat is show in or HP bar above my character and it doesn't count me as im in combat, just the boss does his attack animation but with no result
Sever base is: Rune Fusion
My boss ID is: 6260
Here is what I have in NPCHandler:
multi attack part:
Code:
public boolean multiAttacks(int i) {
switch (npcs[i].npcType) {
case 6260:
if (npcs[i].attackType == 1)
return true;
case 6247://saradomin
if (npcs[i].attackType == 2)
return true;
case 1160://KQ
if (npcs[i].attackType == 1)
return true;
case 6222://armadyl
return true;
default:
return false;
}
}
Attack action:
Code:
case 6260://bandos
random = Misc.random(3);
if (random == 0 || random == 1 || random == 2)
npcs[i].attackType = 0;
else {
npcs[i].attackType = 1;
npcs[i].projectileId = 1200;
}
break;
case 1160: //KQ
random = Misc.random(2);
if (random == 0 || random == 1) {
npcs[i].attackType = 0;
npcs[i].projectileId = -1; }
else {
npcs[i].attackType = 1;
npcs[i].projectileId = 288;
}
max hit place:
Code:
case 1160:
if (npcs[i].attackType == 1)
return 33;
else
return 30;
case 6260:
if (npcs[i].attackType == 1)
return 35;
else
return 64;
Bandos, Saradomin, KQ bosses all have same problem, Melee doesn't work while mage and range works only
I also added their death, attack animations etc.. but I'm not showing it because I dont think it can make the problem