Jump to content
  • 0

[Help]npc to hit only noblesse chars


Question

Posted

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.

10 answers to this question

Recommended Posts

  • 0
Posted

sth like this?

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

   

    public boolean noblChar(L2PcInstance activeChar)

    {

        return activeChar.isNoble();

    }

 

  • 0
Posted

for (L2Npc monster : _monsters)

  {

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

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

  }

 

maybe that way?

  • 0
Posted

-deleted-

there u go :P

 

Those are guards hitting players.. but you can make them the other way around.. easy to understand ^^

Guest
This topic is now closed to further replies.


×
×
  • Create New...