Package com.l2jfrozen.gameserver.network.serverpackets

Examples of com.l2jfrozen.gameserver.network.serverpackets.ExSetCompassZoneCode


    if(isInsideZone(ZONE_SIEGE))
    {
      if(_lastCompassZone == ExSetCompassZoneCode.SIEGEWARZONE2)
        return;
      _lastCompassZone = ExSetCompassZoneCode.SIEGEWARZONE2;
      ExSetCompassZoneCode cz = new ExSetCompassZoneCode(ExSetCompassZoneCode.SIEGEWARZONE2);
      sendPacket(cz);
      cz = null;
    }
    else if(isInsideZone(ZONE_PVP))
    {
      if(_lastCompassZone == ExSetCompassZoneCode.PVPZONE)
        return;
      _lastCompassZone = ExSetCompassZoneCode.PVPZONE;
      ExSetCompassZoneCode cz = new ExSetCompassZoneCode(ExSetCompassZoneCode.PVPZONE);
      sendPacket(cz);
      cz = null;
    }
    else if(isInsideZone(ZONE_EVENT))
    {
      if(_lastCompassZone == ExSetCompassZoneCode.EVENTZONE)
        return;
      _lastCompassZone = ExSetCompassZoneCode.EVENTZONE;
      ExSetCompassZoneCode cz = new ExSetCompassZoneCode(ExSetCompassZoneCode.EVENTZONE);
      sendPacket(cz);
      cz = null;
    }
    else if(isIn7sDungeon())
    {
      if(_lastCompassZone == ExSetCompassZoneCode.SEVENSIGNSZONE)
        return;
      _lastCompassZone = ExSetCompassZoneCode.SEVENSIGNSZONE;
      ExSetCompassZoneCode cz = new ExSetCompassZoneCode(ExSetCompassZoneCode.SEVENSIGNSZONE);
      sendPacket(cz);
      cz = null;
    }
    else if(isInsideZone(ZONE_PEACE))
    {
      if(_lastCompassZone == ExSetCompassZoneCode.PEACEZONE)
        return;
      _lastCompassZone = ExSetCompassZoneCode.PEACEZONE;
      ExSetCompassZoneCode cz = new ExSetCompassZoneCode(ExSetCompassZoneCode.PEACEZONE);
      sendPacket(cz);
      cz = null;
    }
    else if(isInsideZone(ZONE_CHAOTIC)){
      if(_lastCompassZone == ExSetCompassZoneCode.CHAOTICZONE)
        return;
      _lastCompassZone = ExSetCompassZoneCode.CHAOTICZONE;
      ExSetCompassZoneCode cz = new ExSetCompassZoneCode(ExSetCompassZoneCode.CHAOTICZONE);
                sendPacket(cz);
                 cz = null;
          }
    else
    {
      if(_lastCompassZone == ExSetCompassZoneCode.GENERALZONE)
        return;
      if(_lastCompassZone == ExSetCompassZoneCode.SIEGEWARZONE2)
      {
        updatePvPStatus();
      }
      _lastCompassZone = ExSetCompassZoneCode.GENERALZONE;
      ExSetCompassZoneCode cz = new ExSetCompassZoneCode(ExSetCompassZoneCode.GENERALZONE);
      sendPacket(cz);
      cz = null;
    }
  }
View Full Code Here

TOP

Related Classes of com.l2jfrozen.gameserver.network.serverpackets.ExSetCompassZoneCode

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.