Jump to content
  • 0

[Help]npc to hit only noblesse chars


Gorion

Question

how can you make a npc to hit only noblesse chars

 

for (L2Npc monster : _monsters)

{

((L2Attackable) monster) addDamageHate(X,9000,9000);

monster getAI() setIntention(CtrlIntention AI_INTENTION_ATTACK,X, null);

}

 

 

I want X to be the noblesse char

 

 

Thank you for any help.

Link to comment
Share on other sites

10 answers to this question

Recommended Posts

  • 0

sth like this?

    public void addDamageHate(L2Character attacker, int damage, int aggro, boolean noblChar)

   

    public boolean noblChar(L2PcInstance activeChar)

    {

        return activeChar.isNoble();

    }

 

Link to comment
Share on other sites

  • 0

for (L2Npc monster : _monsters)

  {

      ((L2Attackable) monster) addDamageHate(_isNoble,9000,9000);

      monster getAI() setIntention(CtrlIntention AI_INTENTION_ATTACK,_isNoble, null);

  }

 

maybe that way?

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.


×
×
  • Create New...