Package lineage2.gameserver.model

Examples of lineage2.gameserver.model.Zone$ZoneListenerList


   * Method clearArena.
   * @param zoneName String
   */
  public void clearArena(String zoneName)
  {
    Zone zone = ReflectionUtils.getZone(zoneName);
    if (zone != null)
    {
      for (Creature cha : zone.getObjects())
      {
        if (cha.isPlayer() && (cha.getPlayer().getBlockCheckerArena() < 0))
        {
          cha.getPlayer().teleToClosestTown();
        }
View Full Code Here


    Player player = env.character.getPlayer();
    if (player == null)
    {
      return false;
    }
    Zone zone = player.getZone(Zone.ZoneType.RESIDENCE);
    if (zone != null)
    {
      return false;
    }
    zone = player.getZone(Zone.ZoneType.SIEGE);
    if (zone == null)
    {
      return false;
    }
    SiegeEvent<?, ?> event = player.getEvent(SiegeEvent.class);
    if (event == null)
    {
      return false;
    }
    if (event instanceof CastleSiegeEvent)
    {
      if (zone.getParams().getInteger("residence") != event.getId())
      {
        return false;
      }
      if (event.getSiegeClan(SiegeEvent.ATTACKERS, player.getClan()) == null)
      {
View Full Code Here

    Player activeChar = getClient().getActiveChar();
    if (activeChar == null)
    {
      return;
    }
    Zone zone = activeChar.getZone(ZoneType.JUMPING);
    if (zone == null)
    {
      return;
    }
    JumpTrack track = JumpTracksHolder.getInstance().getTrack(zone.getTemplate().getJumpTrackId());
    if (track == null)
    {
      return;
    }
    Location destLoc = track.getStartLocation();
View Full Code Here

     */
    @Override
    public void runImpl()
    {
      final NpcInstance npc = _npc;
      Zone zones;
      if (_ring != 0)
      {
        npc.broadcastPacket(new EventTrigger(GREEN_RING, true));
        npc.broadcastPacket(new EventTrigger(RED_RING, true));
        zones = BLUE_RING_LOC;
View Full Code Here

  {
    if(--first_room_mobs_count == 0)
    {
      openDoor(DOOR1_ID);
      spawnByGroup(FIRST_ROOM_SECOND_GROUP);
      Zone z = getZone(ZONE_1);
      if(z != null)
      {
        z.setActive(true);
        z.addListener(new ZoneListener(1));
      }
    }
  }
View Full Code Here

      spawnByGroup(SECOND_ROOM_SOURCE_POWER);
    }
    else if(secondRoomGroup == 4)
    {
      openDoor(DOOR2_ID);
      Zone z = getZone(ZONE_2);
      if(z != null)
      {
        z.setActive(true);
        z.addListener(new ZoneListener(2));
      }
    }
  }
View Full Code Here

    _spawns.add(spawn);
    _zoneListener = new ZoneListener();
    _zone.addListener(_zoneListener);
    _zone.setReflection(ReflectionManager.GIRAN_HARBOR);
    _zone.setActive(true);
    Zone zone = ReflectionUtils.getZone("[giran_harbor_peace_alt]");
    zone.setReflection(ReflectionManager.GIRAN_HARBOR);
    zone.setActive(true);
    zone = ReflectionUtils.getZone("[giran_harbor_no_trade]");
    zone.setReflection(ReflectionManager.GIRAN_HARBOR);
    zone.setActive(true);
  }
View Full Code Here

   * @see lineage2.gameserver.scripts.ScriptFile#onLoad()
   */
  @Override
  public void onLoad()
  {
    Zone zone = ReflectionUtils.getZone("[keucereus_alliance_base_town_peace]");
    zone.setActive(true);
    ThreadPoolManager.getInstance().scheduleAtFixedRate(new ShowLindviorMovie(zone), movieDelay, movieDelay);
  }
View Full Code Here

    _spawns.add(spawn);
    _zoneListener = new ZoneListener();
    _zone.addListener(_zoneListener);
    _zone.setReflection(ReflectionManager.PARNASSUS);
    _zone.setActive(true);
    Zone zone = ReflectionUtils.getZone("[parnassus_peace]");
    zone.setReflection(ReflectionManager.PARNASSUS);
    zone.setActive(true);
    zone = ReflectionUtils.getZone("[parnassus_no_trade]");
    zone.setReflection(ReflectionManager.PARNASSUS);
    zone.setActive(true);
    System.out.println("Loaded Service: Teleport to Parnassus");
  }
View Full Code Here

    {
      return false;
    }
    for (ZoneType zoneType : FORBIDDEN_ZONES)
    {
      Zone zone = player.getZone(zoneType);
      if (zone != null)
      {
        player.sendPacket(Msg.YOU_CANNOT_USE_MY_TELEPORTS_TO_REACH_THIS_AREA);
        return false;
      }
View Full Code Here

TOP

Related Classes of lineage2.gameserver.model.Zone$ZoneListenerList

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.