so guys i took a look at this code:
Code:
public void annoyNpcs(int npcId) {
for(Player p : server.playerHandler.players) {
if(p != null) {
client player = (client)p;
if (player.distanceToPoint(npcs[npcId].absX, npcs[npcId].absY) <= getDistanceForNpc(npcId) && p.heightLevel == npcs[npcId].heightLevel) {
if(npcGetsAnnoyed(npcId) && (npcs[npcId] != null) && (npcs[npcId].StartKilling == 0)) {
npcs[npcId].StartKilling = player.playerId; npcs[npcId].IsUnderAttack = true;
npcs[npcId].RandomWalk = false;
AttackPlayer(player.playerId);
}
}
}
}
}
so for revert it i just nee change the start killing for npc syntaX?