Hey everyone, i don't know if this is what i think because i don't see any reason why it would happen. But what happens is that after system outprint a few players logs out of the server. It prints game saved for player name and it happened a lot of times so i don't think 2-3 players manage to log out at same time when the same thing is printed.
PlayerAssistant class ''CODE''
Code:
}
int[] myNpcs = {2627, 2630, 2631, 2743, 2745, 2741, 4278, 4279, 4280, 4281, 4282, 4283, 4284};
public void killMyNpcs() {
for (int i = 0; i < NPCHandler.maxNPCs; i++) {
if (NPCHandler.getSingleton().npcs[i] != null) {
if (NPCHandler.getSingleton().npcs[i].npcType == 2627 || NPCHandler.getSingleton().npcs[i].npcType == 2630 || NPCHandler.getSingleton().npcs[i].npcType == 2631 || NPCHandler.getSingleton().npcs[i].npcType == 2743
|| NPCHandler.getSingleton().npcs[i].npcType == 2745 || NPCHandler.getSingleton().npcs[i].npcType == 2741 || NPCHandler.getSingleton().npcs[i].npcType == 4278 || NPCHandler.getSingleton().npcs[i].npcType == 4279
|| NPCHandler.getSingleton().npcs[i].npcType == 4280 || NPCHandler.getSingleton().npcs[i].npcType == 4281 || NPCHandler.getSingleton().npcs[i].npcType == 4282 || NPCHandler.getSingleton().npcs[i].npcType == 4283
|| NPCHandler.getSingleton().npcs[i].npcType == 4284) {
if (NPCHandler.getSingleton().npcs[i].spawnedBy == c.getId()) {
NPCHandler.getSingleton().npcs[i].absX = 0;
NPCHandler.getSingleton().npcs[i].absY = 0;
NPCHandler.getSingleton().npcs[i].applyDead = true;
NPCHandler.getSingleton().npcs[i].needRespawn = false;
NPCHandler.getSingleton().npcs[i].heightLevel = -1;
NPCHandler.getSingleton().npcs[i].randomWalk = false;
NPCHandler.getSingleton().npcs[i].facePlayer(0);
c.inAnathema = false;
System.out.println("Npc deleted");
}
}
}
}
}
public void resetDamageDone() {
for (int i = 0; i < PlayerHandler.players.length; i++) {
if (PlayerHandler.players[i] != null) {
PlayerHandler.players[i].damageTaken[c.playerId] = 0;
}
}
}