Originally Posted by
Ivan
Copy and Paste (from npchandler.java) everything you have under:
Code:
} else if (npcs[i].IsDead == true) {
Please use the 'code' BBC when you post it.
I'm haveing same problem as him, so ill post it
Code:
if (npcs[i].isDead == true) {
if (npcs[i].actionTimer == 0 && npcs[i].applyDead == false && npcs[i].needRespawn == false) {
npcs[i].updateRequired = true;
npcs[i].facePlayer(0);
npcs[i].killedBy = getNpcKillerId(i);
npcs[i].animNumber = getDeadEmote(i); // dead emote
npcs[i].animUpdateRequired = true;
npcs[i].freezeTimer = 0;
npcs[i].applyDead = true;
killedBarrow(i);
if (isFightCaveNpc(i))
killedTzhaar(i);
npcs[i].actionTimer = 4; // delete time
resetPlayersInCombat(i);
} else if (npcs[i].actionTimer == 0 && npcs[i].applyDead == true && npcs[i].needRespawn == false) {
npcs[i].needRespawn = true;
npcs[i].actionTimer = getRespawnTime(i); // respawn time
dropItems(i); // npc drops items!
appendSlayerExperience(i);
appendKillCount(i);
appendJailKc(i);
npcs[i].absX = npcs[i].makeX;
npcs[i].absY = npcs[i].makeY;
npcs[i].HP = npcs[i].MaxHP;
npcs[i].animNumber = 0x328;
npcs[i].updateRequired = true;
npcs[i].animUpdateRequired = true;
if (npcs[i].npcType >= 2440 && npcs[i].npcType <= 2446) {
Server.objectManager.removeObject(npcs[i].absX, npcs[i].absY);
}
if (npcs[i].npcType == 2745) {
handleJadDeath(i);
}
} else if (npcs[i].actionTimer == 0 && npcs[i].needRespawn == true) {
if(npcs[i].spawnedBy > 0) {
npcs[i] = null;
} else {
int old1 = npcs[i].npcType;
int old2 = npcs[i].makeX;
int old3 = npcs[i].makeY;
int old4 = npcs[i].heightLevel;
int old5 = npcs[i].walkingType;
int old6 = npcs[i].MaxHP;
int old7 = npcs[i].maxHit;
int old8 = npcs[i].attack;
int old9 = npcs[i].defence;
npcs[i] = null;
newNPC(old1, old2, old3, old4, old5, old6, old7, old8, old9);
}
}
}
}
}
}
Think thats it..