npc aggresive to specific players

Support for the latest build of L2J Server, get help here with installations, upgrades, problems.
Do not post bugs reports here, use viewforum.php?f=77 instead.
There is no support for other server builds than the official provided by l2jserver.com
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
darkzonenet
Posts: 42
Joined: Mon Oct 26, 2009 9:22 pm

npc aggresive to specific players

Post 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?
Post Reply