
ScriptZone
Forum rules
READ NOW: L2j Forums Rules of Conduct
READ NOW: L2j Forums Rules of Conduct
- XavierElf
- Posts: 92
- Joined: Wed May 14, 2008 3:39 am
- Location: Russia
- devo
- Posts: 798
- Joined: Mon Jun 15, 2009 1:19 pm
Re: ScriptZone
You need to make jython script to handle onEnter() onExit().
Its just a zone to set player in or out of zone, all effects are handled by script.
Its just a zone to set player in or out of zone, all effects are handled by script.
A hero of war is that what they see...
- XavierElf
- Posts: 92
- Joined: Wed May 14, 2008 3:39 am
- Location: Russia
Re: ScriptZone
And how to specify to a script to be activated in a certain zone?
Sry for my bad english...
- devo
- Posts: 798
- Joined: Mon Jun 15, 2009 1:19 pm
Re: ScriptZone
just quick example, you have to add also onExitZone.
Code: Select all
private static final int[] ZONES = {zoneid1,zoneid2}; public String onEnterZone(L2Character character, L2ZoneType zone){ if (character instanceof L2PcInstance) { switch(zone.getId()) case zoneid1: action break; case zoneid: action break; default: return super.onEnterZone(character,zone); } return super.onEnterZone(character,zone); } for (int zones : ZONES){ addEnterZoneId(zones); addExitZoneId(zones);}
A hero of war is that what they see...