Jump to content
  • 0

Disabling Provoke Skill inside a Zone


Question

Posted

Hey guys, I created a Newbie Zone on my Interlude Server and have multiple mobs inside the specific zone and wanted to know how to disable the Provoke Skill inside that zone so people can not colllect multiple nearby mobs. Where should I look into exactly?

3 answers to this question

Recommended Posts

  • 0
Posted

Are you sure this is a good approach? People could collect mobs in other ways. Maybe make them lose aggro/return to spawn after 200 units or something.

 

Anyway, if you really want to disable provoke, one way is the following (example for l2jmobius):

In the java file that handles your custom zone, inside the onEnter(..) method, call "disableSkill(Skill skill, long delay)". Then you do the opposite inside onExit(..) -> enableSkill(Skill skill)

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


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