Package l2p.gameserver.model.L2Zone.ZoneType

Examples of l2p.gameserver.model.L2Zone.ZoneType.Siege


    lostexp *= deathPenaltyBonus;
    lostexp = (int) calcStat(Stats.EXP_LOST, lostexp, killer, null);
    // На зарегистрированной осаде нет потери опыта, на чужой осаде - как при обычной смерти от *моба*
    if(isInZone(Siege))
    {
      Siege siege = SiegeManager.getSiege(this, true);
      if(siege != null && siege.isParticipant(this))
      {
        lostexp = 0;
      }
      if(getTerritorySiege() > -1 && TerritorySiege.checkIfInZone(this))
      {
View Full Code Here


            player.sendMessage(new CustomMessage("l2p.gameserver.clientpackets.EnterWorld.TeleportedReasonNoRestart", player));
            player.setXYZInvisible(MapRegion.getTeleToClosestTown(player));
          }
          if(player.isInZone(Siege))
          {
            Siege siege = SiegeManager.getSiege(player, true);
            if(siege != null && !siege.checkIsDefender(player.getClan()))
            {
              if(siege.getHeadquarter(player.getClan()) == null)
              {
                player.setXYZInvisible(MapRegion.getTeleToClosestTown(player));
              }
              else
              {
View Full Code Here

  {
    if(isInZone(no_landing))
    {
      return false;
    }
    Siege siege = SiegeManager.getSiege(this, false);
    if(siege != null)
    {
      Residence unit = siege.getSiegeUnit();
      if(unit != null && getClan() != null && isClanLeader() && (getClan().getHasCastle() == unit.getId() || getClan().getHasFortress() == unit.getId()))
      {
        return true;
      }
      return false;
View Full Code Here

    }
    L2Clan clan1 = getClan();
    L2Clan clan2 = target.getClan();
    if(clan1 != null && clan2 != null)
    {
      Siege siege1 = clan1.getSiege();
      Siege siege2 = clan2.getSiege();
      int state1 = getSiegeState();
      int state2 = target.getSiegeState();
      if(siege1 != null && siege2 != null && siege1 == siege2 && siege1.isInProgress() && state1 != 0 && state2 != 0)
      {
        result |= RelationChanged.RELATION_INSIEGE;
View Full Code Here

TOP

Related Classes of l2p.gameserver.model.L2Zone.ZoneType.Siege

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.