Examples of Fortress


Examples of lineage2.gameserver.model.entity.residence.Fortress

        }
        break;
      case TO_FORTRESS:
        if ((clan != null) && (clan.getHasFortress() != 0))
        {
          Fortress fort = activeChar.getFortress();
          loc = TeleportUtils.getRestartLocation(activeChar, RestartType.TO_FORTRESS);
          if (fort.getFunction(ResidenceFunction.RESTORE_EXP) != null)
          {
            activeChar.restoreExp(fort.getFunction(ResidenceFunction.RESTORE_EXP).getLevel());
          }
        }
        break;
      case TO_VILLAGE:
      default:
View Full Code Here

Examples of lineage2.gameserver.model.entity.residence.Fortress

   */
  @Override
  public void onSpawn()
  {
    super.onSpawn();
    Fortress f = getFortress();
    FortressSiegeEvent event = f.getSiegeEvent();
    List<DoorObject> objects = event.getObjects(FortressSiegeEvent.ENTER_DOORS);
    for (DoorObject d : objects)
    {
      d.getDoor().addListener(_doorDeathListener);
    }
View Full Code Here

Examples of lineage2.gameserver.model.entity.residence.Fortress

   */
  @Override
  public void onDecay()
  {
    super.onDecay();
    Fortress f = getFortress();
    FortressSiegeEvent event = f.getSiegeEvent();
    List<DoorObject> objects = event.getObjects(FortressSiegeEvent.ENTER_DOORS);
    for (DoorObject d : objects)
    {
      d.getDoor().removeListener(_doorDeathListener);
    }
View Full Code Here

Examples of lineage2.gameserver.model.entity.residence.Fortress

      case admin_fortress_spawn_flags:
        if (wordList.length != 2)
        {
          return false;
        }
        final Fortress fortress = ResidenceHolder.getInstance().getResidence(Fortress.class, Integer.parseInt(wordList[1]));
        if (fortress == null)
        {
          return false;
        }
        final FortressSiegeEvent siegeEvent = fortress.getSiegeEvent();
        if (!siegeEvent.isInProgress())
        {
          return false;
        }
        final boolean[] f = siegeEvent.getBarrackStatus();
View Full Code Here

Examples of lineage2.gameserver.model.entity.residence.Fortress

    Player player = getClient().getActiveChar();
    if (player == null)
    {
      return;
    }
    Fortress fortress = ResidenceHolder.getInstance().getResidence(Fortress.class, _fortressId);
    if (fortress != null)
    {
      sendPacket(new ExShowFortressMapInfo(fortress));
    }
  }
View Full Code Here

Examples of lineage2.gameserver.model.entity.residence.Fortress

        if (allSize >= CastleSiegeEvent.MAX_SIEGE_CLANS)
        {
          player.sendPacket(SystemMsg.NO_MORE_REGISTRATIONS_MAY_BE_ACCEPTED_FOR_THE_ATTACKER_SIDE);
          return;
        }
        Fortress fortress = player.getFortress();
        if ((fortress != null) && (fortress.getCastleId() == castle.getId()))
        {
          player.sendPacket(SystemMsg.SIEGE_REGISTRATION_IS_NOT_POSSIBLE_DUE_TO_YOUR_CASTLE_CONTRACT);
          return;
        }
        siegeClan = new SiegeClanObject(SiegeEvent.ATTACKERS, playerClan, 0);
View Full Code Here

Examples of org.spout.vanilla.world.generator.nether.structure.fortress.Fortress

        || Math.abs(blockZ % DISTANCE) >= Chunk.BLOCKS.SIZE) {
      return;
    }
    final World world = chunk.getWorld();
    if (random.nextInt(ODD) == 0) {
      final Fortress fortress = new Fortress(random);
      final int x = blockX + random.nextInt(VARIATION * 2 + 1) - VARIATION;
      final int y = random.nextInt(RAND_Y + 1) + BASE_Y;
      final int z = blockZ + random.nextInt(VARIATION * 2 + 1) - VARIATION;
      if (fortress.canPlaceObject(world, x, y, z)) {
        fortress.placeObject(world, x, y, z);
      }
    }
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.