i will explain what ive done
ive added kbd { king black dragon} to autospawn and autospawncodes.java and added the emote but the dragon doesnt attack me back or deal no damge but i looked in the NPChandler and i find this
Code:
if (npcs[NPCID].npcType == 50) { // KBD
try {
p.animation(0, p.absY, p.absX); // Flames
client player = (client) server.playerHandler.players[Player];
int bonus = misc.random(player.playerBonus[5]);
int dragon_bonus = misc.random(828);
if (dragon_bonus > bonus) {
hitDiff = misc.random(56);
}
int random = misc.random(5);
if (random == 1) {
for (int i = 0; i < npcs[NPCID].Killing.length; i++) {
client player2 = (client) server.playerHandler.players[i];
if ((player2 != null)
&& (npcs[NPCID].Killing[i] > 0)) {
int x = player2.absX;
int y = player2.absY;
// if(Math.abs(npcs[NPCID].absX
// - x) <= 50 ||
// Math.abs(npcs[NPCID].absY -
// y) <= 50){
player2.hitDiff = misc.random(60);
player2.updateRequired = true;
player2.hitUpdateRequired = true;
player2.appearanceUpdateRequired = true;
try {
player2
.sendMessage("The enraged dragon's flames burn you!");
} catch (Exception e) {
e.printStackTrace();
}
do you have to link the autospawn to npc handler or something? because ive spawned it as
Code:
spawn = 50 2717 9816 0 0 0 0 0 1
and in the npc.java the npc id is 50 ..
Code:
npc = 50 King_black_dragon 600 600 60
so does anyone know why it doesnt do what NPChandler.java has told it to do ?