Package com.l2jfrozen.gameserver.model.zone.type

Examples of com.l2jfrozen.gameserver.model.zone.type.L2TownZone


          }

          Collection<L2PcInstance> pls = L2World.getInstance().getAllPlayers();
          {
              int xx, yy, zz;
              L2TownZone Town;
              byte zonaPaz = 1;

              for (L2PcInstance onlinePlayer : pls) {
                  if (onlinePlayer.isOnline() == 1) {
                      xx = onlinePlayer.getX();
                      yy = onlinePlayer.getY();
                      zz = onlinePlayer.getZ();

                      Town = TownManager.getInstance().getTown(xx, yy, zz);
                      if (Town != null) {
                          if (Town.getTownId() == Config.TW_TOWN_ID && !Config.TW_ALL_TOWNS) {
                              onlinePlayer.setInsideZone(zonaPaz, true);
                              onlinePlayer.revalidateZone(true);
                          } else if (Config.TW_ALL_TOWNS) {
                              onlinePlayer.setInsideZone(zonaPaz, true);
                              onlinePlayer.revalidateZone(true);
View Full Code Here


      {
        int _x,_y,_z;
        _x = cha.getX();
        _y = cha.getY();
        _z = cha.getZ();
        L2TownZone Town;
        Town = TownManager.getInstance().getTown(_x, _y, _z);
        if(Town != null)
        {
          int townId = Town.getTownId();
          if(townId != 33 && townId != 22)
          {
            L2Clan clan;
            clan = ClanTable.getInstance().getClan(cha.getCastle().getOwnerId());
            _clanCrest = clan.getCrestId();
View Full Code Here

TOP

Related Classes of com.l2jfrozen.gameserver.model.zone.type.L2TownZone

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.