Package lineage2.gameserver.network.serverpackets

Examples of lineage2.gameserver.network.serverpackets.EventTrigger


    }
  }

  public void broadcastPacket(int value, boolean b, boolean message)
  {
    L2GameServerPacket trigger = new EventTrigger(value, b);
    for (Player player : GameObjectsStorage.getAllPlayersForIterate())
      player.sendPacket(trigger);

    if (message)
    {
View Full Code Here


    {
      introShowed = true;
      for(Player p : getPlayers())
      {
        p.showQuestMovie(ExStartScenePlayer.SCENE_AWAKENING_OPENING);
        p.sendPacket(new EventTrigger(23120700, true));
      }
      ThreadPoolManager.getInstance().schedule(new TeleportTask(), 29500L);
    }
    super.onPlayerEnter(player);
  }
View Full Code Here

  @Override
  public void onPlayerExit(Player player)
  {
    player.setVar("GermunkusUSM", "true", -1);
    player.sendPacket(new EventTrigger(23120700, false));
    super.onPlayerExit(player);
  }
View Full Code Here

    public void runImpl() throws Exception
    {
      for(Player player : getPlayers())
      {
        player.teleToLocation(new Location(116063, -183167, -1488, 64960));
        player.sendPacket(new EventTrigger(23120700, true));
      }
      ThreadPoolManager.getInstance().schedule(new ScreenMessageTask(NpcString.WATCH_THE_DWARVEN_VILLAGE_LAST_STAND), 2000);
      ThreadPoolManager.getInstance().schedule(new SpawnRoginTask(), 7000);
    }
View Full Code Here

    {
      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;
      }
      else if (_ring != 1)
      {
        npc.broadcastPacket(new EventTrigger(BLUE_RING, true));
        npc.broadcastPacket(new EventTrigger(GREEN_RING, true));
        zones = RED_RING_LOC;
      }
      else
      {
        npc.broadcastPacket(new EventTrigger(RED_RING, true));
        npc.broadcastPacket(new EventTrigger(BLUE_RING, true));
        zones = GREEN_RING_LOC;
      }
      for (Player player : _zone.getInsidePlayers())
      {
        if (!player.isInZone(zones))
View Full Code Here

  @Override
  public void onPlayerEnter(Player player)
  {
    super.onPlayerEnter(player);
    for(int i : zoneEventTriggers)
      player.sendPacket(new EventTrigger(i, true));
  }
View Full Code Here

  @Override
  public void onPlayerEnter(Player player)
  {
    super.onPlayerEnter(player);
    for(int i : zoneEventTriggers)
      player.sendPacket(new EventTrigger(i, true));
  }
View Full Code Here

          catch (NumberFormatException e)
          {
            Functions.sendDebugMessage(activeChar, "You must specify id");
            return false;
          }
          activeChar.broadcastPacket(new EventTrigger(triggerid, true));
          break;
        case admin_debug:
          GameObject ob = activeChar.getTarget();
          if (!ob.isPlayer())
          {
View Full Code Here

  }
 
  public void broadcastSend(Castle castle)
  {
    L2GameServerPacket trigger = new ExCastleState(castle);
    for (Player player : GameObjectsStorage.getAllPlayersForIterate())
      player.sendPacket(trigger);

  }
View Full Code Here

      if (castle != null)
      { 
        if(_side.ordinal()==1 || _side.ordinal()==0)
        {
        ((Player) cha).sendPacket(new ExCastleState(castle));
        broadcastPacket(_side.ordinal(),true);
        broadcastSend(castle);
        Announcements.getInstance().announceToAll(new ExCastleState(castle));
        //broadcastPacket(_side.ordinal(),false);
        }
        else
        {
        ((Player) cha).sendPacket(new ExCastleState(castle));
        broadcastPacket(_side.ordinal(),true);
        broadcastSend(castle);
        Announcements.getInstance().announceToAll(new ExCastleState(castle));
        //broadcastPacket(_side.ordinal(),false);
        }
       
        //return;
      }
View Full Code Here

TOP

Related Classes of lineage2.gameserver.network.serverpackets.EventTrigger

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.