This is mainly for Scu
NPCHandler Process:
Code:
if(npcs[i].isAggressive(npcs[i].npcType) && npcs[i].attackingPlayer <= 0 && !npcs[i].underAttack && npcs[i].killerId <= 0) {
if(!npcs[i].isDead) {
for(Player p : Server.playerHandler.players) {
if(p != null) {
Client c = (Client) p;
if (c != null) {
if(c.goodDistance(npcs[i].getX(), npcs[i].getY(), c.getX(), c.getY(), 3)) {
if(c.underAttackByNPC <= 0) {
if(npcs[i].attackTimer <= 0) {
followPlayer(i, c.playerId);
attackPlayer(c, i);
}
}
}
}
}
}
}
}
Effective?
Probably not.