[Help] Peace Zone Issue
Posted: Thu Jun 17, 2010 9:37 pm
L2J Revision n/a
L2JDP Revision n/a
Hi everyone,
I have a question regarding peace zones. Before I write down my queries I'll explain in short what I'm willing to do:
Peace zones on various locations (rectangular) The part with DP is not a problem, all I need is to make sure where is the core part responsible for player's behaviour inside the PZ.
I already found class PeaceZone in com.l2jserver.gameserver.model.zone.type and method OnEnter
but if I edit it like this:
If I'm not wrong this should work partially - I mean if a flagged player will be inside the PZ others inside the PZ won't be able to hit him and not sure, but after the flag is away he'd be still vulnerable to attacks
I'd be grateful if somebody could direct me into the right path...
Best Regards
Tom
L2JDP Revision n/a
Hi everyone,
I have a question regarding peace zones. Before I write down my queries I'll explain in short what I'm willing to do:
Peace zones on various locations (rectangular) The part with DP is not a problem, all I need is to make sure where is the core part responsible for player's behaviour inside the PZ.
I already found class PeaceZone in com.l2jserver.gameserver.model.zone.type and method OnEnter
but if I edit it like this:
Code: Select all
protected void onEnter(L2Character character) { L2PcInstance player = (L2PcInstance)character; if(player.getPvpFlag() > 0) { character.setInsideZone(L2Character.ZONE_PEACE, false); character.isAutoAttackable(character); } else character.setInsideZone(L2Character.ZONE_PEACE, true); }
I'd be grateful if somebody could direct me into the right path...
Best Regards
Tom