Skip to content

[help][core] Guard npc

Featured Replies

How to make npc what it attacked faction?  (l2jserver gracia final)

Tried to put in L2AttackableAi.java:

 

if (target instanceof L2PcInstance && ((L2PcInstance) target).getFactionId () != 1)

if (target instanceof L2PcInstance && ((L2PcInstance) target).getFactionId () == 1)

 

But npc all the same does not attack. I use faction mod by Laikeriz

 

  • Author

please help.Really not who does not know as to make?

you want an npc which take agro effect against a type of faction right?

  • Author

yes. I would want that they stood on spawn to a zone and did not allow to kill players at once

to have that you need to edit the ai i guess or the L2GuardInstance pm to horus he have something like that so maybe he can help you

Make a new instance.

Make a new KnownList for that Instance and make it only add targets who are on the opposite faction.

Also change the boolean isAutoAttackable.

  • Author

Tried that that to make hour so there is nothing and did not leave. I do not know java = \

Need to Faction Guard for this mod

Sorry. I'm here to help not to give you free features.

 

If you want to make a Faction based Server than I advice you to learn Java.

Sorry. I'm here to help not to give you free features.

 

If you want to make a Faction based Server than I advice you to learn Java.

-beep- Yeah xD

 

Anyway its easyer to do this from attackable ai ^^

-beep- Yeah xD

 

Anyway its easyer to do this from attackable ai ^^

Yes it is.

I adviced him to change the KnownList so that he could understand a bit better how NPCs work ^^

 

But he ain't going to do it so lool..

fuck yeah x2 xD

 

  • Author

Make a new instance.

Make a new KnownList for that Instance and make it only add targets who are on the opposite faction.

Also change the boolean isAutoAttackable.

Many thanks! Thanks to your helps I have made that that wanted!

 

 

 

The theme can be closed

Guest
This topic is now closed to further replies.

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.