Package l2p.gameserver.model.entity.siege.clanhall

Examples of l2p.gameserver.model.entity.siege.clanhall.ClanHallSiege


  }

  @Override
  public void doDie(L2Character killer)
  {
    ClanHallSiege siege = ClanHallSiegeManager.getSiege(this);
    if(siege != null)
    {
      siege.killedSiegeBoss(this);
    }
    deleteMe();
  }
View Full Code Here


    deleteMe();
  }

  public L2Clan getWinner()
  {
    ClanHallSiege siege = ClanHallSiegeManager.getSiege(this);
    if(siege == null)
    {
      return null;
    }
    int mostdamage = 0;
    L2Player player = null;
    L2Player temp = null;
    FastMap<L2Player, Integer> damagemap = new FastMap<L2Player, Integer>().setShared(true);
    for(AggroInfo info : getAggroList())
    {
      L2Playable killer = info.attacker;
      int damage = info.damage;
      if(killer.isPet() || killer.isSummon())
      {
        temp = killer.getPlayer();
      }
      else if(killer.isPlayer())
      {
        temp = (L2Player) killer;
      }
      if(temp == null || temp.getClan() == null)
      {
        continue;
      }
      if(siege.getAttackerClan(temp.getClan()) == null)
      {
        continue;
      }
      if(!damagemap.containsKey(temp))
      {
View Full Code Here

    {
      return null;
    }
    if(_Siege == null)
    {
      _Siege = new ClanHallSiege(this);
    }
    return _Siege;
  }
View Full Code Here

    ClanHall clanhall = getClanHall();
    if(clanhall == null)
    {
      return;
    }
    ClanHallSiege siege = clanhall.getSiege();
    if(siege == null)
    {
      return;
    }
    if(siege.isInProgress() || siege.isRegistrationOver() || TerritorySiege.isInProgress())
    {
      NpcHtmlMessage html = new NpcHtmlMessage(player, this);
      html.setHtml("<html><body><font color=\"LEVEL\">I can't do anything for you right now.</font></body></html>");
      player.sendPacket(html);
    }
View Full Code Here

TOP

Related Classes of l2p.gameserver.model.entity.siege.clanhall.ClanHallSiege

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.