- This is my general idea:
Without affect the lvl zone/retail zone:
create a instance with pvp flag, if you are +61, you can enter to the pvp zone, if you no are 61-80, you get back to normal zone, in the pvp zone appear 24 hours and next day, open other zone
the problem, is the next:
I am a new player and I want to go to Cruma Tower to level up, but there is a PvP zone in Cruma Tower, so through an instance, new players will not encounter top players but I want make it via EXT, why make a flag zone via zone is global and not only for instance...
I create this code:
Java:package instances; import l2.gameserver.listener.zone.OnZoneEnterLeaveListener; import l2.gameserver.model.Creature; import l2.gameserver.model.Player; import l2.gameserver.model.Zone; import l2.gameserver.model.entity.Reflection; public class CrumaTowerPvP extends Reflection { private ZoneListener _zoneListener = new ZoneListener(); @Override protected void onCreate() { super.onCreate(); getZone("[cruma_tower_pvp_zone]").addListener(_zoneListener); } @Override public void onPlayerEnter(Player player) { super.onPlayerEnter(player); player.startPvPFlag(null); player.sendMessage("You have entered the PvP zone! Be careful."); } @Override public void onPlayerExit(Player player) { super.onPlayerExit(player); player.stopPvPFlag(); player.sendMessage("You have left the PvP zone."); } public class ZoneListener implements OnZoneEnterLeaveListener { @Override public void onZoneEnter(Zone zone, Creature actor) { if (actor.isPlayer()) { Player player = (Player) actor; player.startPvPFlag(null); } } @Override public void onZoneLeave(Zone zone, Creature actor) { if (actor.isPlayer()) { Player player = (Player) actor; player.stopPvPFlag(); } } } }
Someone can help me?, thx!