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...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..

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