Page 1 of 1

npc aggresive to specific players

Posted: Wed Nov 18, 2009 6:06 am
by darkzonenet
Hi, this is a code that make some monsters to atttack _priest

_priest = addSpawn(npcid,X,Y,Z); priest is like that. a npc in these coordinates.

for (L2Npc monster : _monsters)
{
((L2Attackable) monster).addDamageHate(_priest,9000,9000);
monster.getAI().setIntention(CtrlIntention.AI_INTENTION_ATTACK, _priest, null);
}

my question is how can i make these monsters to hit a specific player.

to explain better. to kill only clan leaders. we have guards to kill karma players but i do not want guards but monsters to kill clan leaders.

do you know how can i do this?