Package l2p.gameserver.model

Examples of l2p.gameserver.model.L2Zone$DamageTask


        break;
      case admin_clanhallclosedoors:
        clanhall.openCloseDoors(activeChar, false);
        break;
      case admin_clanhallteleportself:
        L2Zone zone = clanhall.getZone();
        if(zone != null)
        {
          activeChar.teleToLocation(zone.getSpawn());
        }
        break;
    }
    showClanHallPage(activeChar, clanhall);
    return true;
View Full Code Here


  }

  @Override
  protected void onEvtSpawn()
  {
    L2Zone buffZone = ZoneManager.getInstance().getZoneById(ZoneType.dummy, 999222, false);
    L2Zone debuffZone = ZoneManager.getInstance().getZoneById(ZoneType.damage, 999223, false);
    if(buffZone != null && debuffZone != null)
    {
      buffZone.setActive(false);
      debuffZone.setActive(true);
    }
    super.onEvtSpawn();
  }
View Full Code Here

  }

  @Override
  protected void onEvtDead(L2Character killer)
  {
    L2Zone buffZone = ZoneManager.getInstance().getZoneById(ZoneType.dummy, 999222, false);
    L2Zone debuffZone = ZoneManager.getInstance().getZoneById(ZoneType.damage, 999223, false);
    if(buffZone != null && debuffZone != null)
    {
      buffZone.setActive(true);
      debuffZone.setActive(false);
    }
    super.onEvtDead(killer);
  }
View Full Code Here

   */
  @Override
  public final void methodInvoked(MethodEvent e)
  {
    L2ZoneEnterLeaveEvent event = (L2ZoneEnterLeaveEvent) e;
    L2Zone owner = event.getOwner();
    L2Object actor = event.getArgs()[0];
    if(e.getMethodName().equals(L2ZoneObjectEnter))
    {
      objectEntered(owner, actor);
    }
View Full Code Here

    }
    if(getSiegeUnit() != null && getSiegeUnit().checkIfInZone(x, y))
    {
      return true;
    }
    L2Zone zone = getZone();
    return zone != null && zone.checkIfInZone(x, y);
  }
View Full Code Here

  {
    if(!_type.hasBuffer())
    {
      return;
    }
    L2Zone zone = ZoneManager.getInstance().getZoneById(L2Zone.ZoneType.OlympiadStadia, 3001 + _id, false);
    if(zone == null || zone.getSpawns() == null || zone.getSpawns().size() == 0)
    {
      _log.warning("Olympiad zone or spawns is null!!!");
      return;
    }
    _buffers = new GArray<L2Spawn>();
    for(int[] loc : zone.getSpawns())
    {
      try
      {
        L2NpcTemplate template = NpcTable.getTemplate(36402); // Olympiad Host
        //TODO исправить координаты и heading
View Full Code Here

    }
  }

  public void clearArena()
  {
    L2Zone zone = ZoneManager.getInstance().getZoneById(L2Zone.ZoneType.OlympiadStadia, 3001 + getId(), false);
    if(zone != null)
    {
      for(L2Player player : zone.getInsidePlayers())
      {
        player.teleToClosestTown();
      }
    }
  }
View Full Code Here

    _fortress.putAll(FortressManager.getInstance().getFortresses());
    TerritorySiegeDatabase.loadSiegeMembers();
    TerritorySiegeDatabase.loadSiegeFlags();
    for(int unitId : _castles.keySet())
    {
      L2Zone zone = getZone(unitId);
      if(zone != null)
      {
        zone.setActive(false);
      }
    }
    for(int unitId : _fortress.keySet())
    {
      L2Zone zone = getZone(unitId);
      if(zone != null)
      {
        zone.setActive(false);
      }
    }
    for(int unitId : _castles.keySet())
    {
      _defenderRespawnPenalty.put(unitId, 0);
View Full Code Here

  {
    if(!_isInProgress)
    {
      for(int unitId : _castles.keySet())
      {
        L2Zone zone = getZone(unitId);
        if(zone != null)
        {
          zone.setActive(true);
        }
        getResidenseZone(unitId).setActive(true);
      }
      for(int unitId : _fortress.keySet())
      {
        L2Zone zone = getZone(unitId);
        if(zone != null)
        {
          zone.setActive(true);
        }
      }
      // Кланы, владеющие замком, автоматически регистрируются за свои земли.
      for(Castle castle : _castles.values())
      {
View Full Code Here

  public static void endSiege()
  {
    for(int unitId : _castles.keySet())
    {
      L2Zone zone = getZone(unitId);
      if(zone != null)
      {
        zone.setActive(false);
      }
      getResidenseZone(unitId).setActive(false);
    }
    for(int unitId : _fortress.keySet())
    {
      L2Zone zone = getZone(unitId);
      if(zone != null)
      {
        zone.setActive(false);
      }
    }
    if(_isInProgress)
    {
      announceToPlayer(Msg.TERRITORY_WAR_HAS_ENDED, false);
View Full Code Here

TOP

Related Classes of l2p.gameserver.model.L2Zone$DamageTask

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.