npc aggressive

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 aggressive

Post by darkzonenet »

hi i would like to ask you how can i make a npc to hit only specific players like karma guards.

i coded this but i do not know if it is right:

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

_monsters are specific monsters and x should be the character

now i do not know how to make the X to be a player which is noblesse.

any ideas?
Post Reply