Package l2p.gameserver.model.entity.siege

Examples of l2p.gameserver.model.entity.siege.Siege$SiegeFameTask


    L2Player player = (L2Player) activeChar;
    if(player.getClan() == null || !player.isClanLeader())
    {
      return false;
    }
    Siege siege = SiegeManager.getSiege(activeChar, true);
    if(siege == null || siege.getSiegeUnit().getType() != ResidenceType.Castle)
    {
      return false;
    }
    if(siege.getAttackerClan(player.getClan()) == null)
    {
      return false;
    }
    if(player.isMounted())
    {
      return false;
    }
    if(!player.isInRangeZ(target, 120))
    {
      player.sendPacket(Msg.YOUR_TARGET_IS_OUT_OF_RANGE);
      return false;
    }
    if(first)
    {
      for(SiegeClan sc : siege.getDefenderClans().values())
      {
        L2Clan clan = sc.getClan();
        if(clan != null)
        {
          clan.broadcastToOnlineMembers(Msg.THE_OPPONENT_CLAN_HAS_BEGUN_TO_ENGRAVE_THE_RULER);
View Full Code Here


        if(!target.isArtefact())
        {
          continue;
        }
        L2Player player = (L2Player) activeChar;
        Siege siege = SiegeManager.getSiege(activeChar, true);
        if(siege != null)
        {
          siege.announceToPlayer(new SystemMessage(SystemMessage.CLAN_S1_HAS_SUCCEEDED_IN_ENGRAVING_THE_RULER).addString(player.getClan().getName()), false, true);
          siege.Engrave(player.getClan(), target.getObjectId());
        }
      }
    }
  }
View Full Code Here

  /**
   * Отсылает пакеты о состоянии ловушек всем игрокам которые находятся на поле боя
   */
  private void sendTrapStatus()
  {
    Siege s = SiegeManager.getSiege(this, true);
    if(s == null)
    {
      System.err.println("Errow while getting siege zone for L2FlameControlTowerInstance");
      return;
    }
    for(L2Player p : s.getPlayersInZone())
    {
      s.sendTrapStatus(p, true);
    }
  }
View Full Code Here

    if(command.startsWith("CastleMassGK"))
    {
      command = command.substring(13); //срезаем ненужное
      String args[] = command.split("_");
      long delay;
      Siege activeSiege = SiegeManager.getSiege(this, true);
      if(TerritorySiege.isInProgress())
      {
        delay = TerritorySiege.getDefenderRespawnTotal(getCastle().getId());
      }
      else if(activeSiege != null)
      {
        delay = activeSiege.getDefenderRespawnTotal();
      }
      else
      {
        delay = Long.parseLong(args[0]);
      } // аргумент 0 = время телепорта
View Full Code Here

TOP

Related Classes of l2p.gameserver.model.entity.siege.Siege$SiegeFameTask

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.