Jump to content
  • 0

Disabling Provoke Skill inside a Zone


oiuouoiuiou

Question

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?

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

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)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...