Jump to content
  • 0

Help Npc spanw debuff



Hi all.


I ve been all day looking for the way to do it but I could not, cans give me a suggestion on how to do it?


I want an NPC that when spawn, the zone becomes debuff and when the NPC is death, the debuff disappears.


L2jServer HF

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

Create a new zone type (if none fits your needs) -> create a new zone based on the npc's coordinates on spawn -> add the zone to the manager -> remove the zone from the manager when the npc get killed.

Link to comment
Share on other sites

  • 0

DamageZone type can be enabled/disabled, it's your best go.

  • Create a DamageZone, disable it by default.
  • Create a script, put your npcId on addKillId / addSpawnId, and on onSpawn / onKill, affect the given zoneId (exemple with onSpawn, onKill owuld be simply false)

final DamageZone zone = ZoneManager.getInstance().getZoneById(110000, DamageZone.class);
if (zone != null)


For a debuff, use EffectZone instead. You can affect enable/disable statut with editStatus.

Edited by Tryskell
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.

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

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 Disbaled AdBlock