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