Jump to content
  • 0

[Help]npc aggresive to specific player


Question

Posted

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?

2 answers to this question

Recommended Posts

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock