Okay, so I made an ::npcreset command for my source, and I get no errors while compiling, but it doesn't work in-game. Here's the code for it;
Code:
if(playerCommand.equalsIgnoreCase("npcreset") && c.playerRights > 0){
for (int i = 0; i < Server.npcHandler.maxNPCs; i++)
{
if (Server.npcHandler.npcs[i] != null) {
if(Server.npcHandler.npcs[i].npcType == 2745 || Server.npcHandler.npcs[i].npcType >= 3493 && Server.npcHandler.npcs[i].npcType <= 3496 || Server.npcHandler.npcs[i].npcType == 3491) {
Server.npcHandler.npcs[i].isDead = false;
}else
Server.npcHandler.npcs[i].isDead = true;
Server.npcHandler.npcs[i].actionTimer = 0;
}
}
}
Please help?