Package l2p.gameserver.model.entity.siege.fortress

Examples of l2p.gameserver.model.entity.siege.fortress.FortressSiege$CommanderRespawnTask


  private static final L2DropData EPAULETTE = new L2DropData(9912, 50, 150, 100000, 1);

  @Override
  public void doDie(L2Character killer)
  {
    FortressSiege siege = FortressSiegeManager.getSiege(this);
    if(siege != null)
    {
      siege.killedCommander(this);
      if(siege.getSiegeUnit().getType() == ResidenceType.Fortress && killer.isPlayable())
      {
        L2Character topdam = getTopDamager(getAggroList());
        if(topdam == null)
        {
          topdam = killer;
View Full Code Here


  @Override
  public FortressSiege getSiege()
  {
    if(_siege == null)
    {
      _siege = new FortressSiege(this);
    }
    return _siege;
  }
View Full Code Here

    L2Player player = (L2Player) activeChar;
    if(player.getClan() == null)
    {
      return false;
    }
    FortressSiege siege = FortressSiegeManager.getSiege(activeChar);
    if(siege == null || !siege.getCommanders().isEmpty())
    {
      return false;
    }
    if(siege.getAttackerClan(player.getClan()) == null)
    {
      return false;
    }
    if(player.isMounted())
    {
      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 instanceof L2StaticObjectInstance))
        {
          continue;
        }
        L2Player player = (L2Player) activeChar;
        FortressSiege siege = FortressSiegeManager.getSiege(activeChar);
        if(siege != null && siege.getCommanders().isEmpty())
        {
          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

TOP

Related Classes of l2p.gameserver.model.entity.siege.fortress.FortressSiege$CommanderRespawnTask

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.