Package lineage2.gameserver.network.serverpackets

Examples of lineage2.gameserver.network.serverpackets.EventTrigger


      if(cha instanceof Player)
      {
        Player player = cha.getPlayer();
        if(ArcanManager.getStage() == _RED)
        {
          player.sendPacket(new EventTrigger(_BLUE, false));
          player.sendPacket(new EventTrigger(_RED, true));
        }
        else
        {
          player.sendPacket(new EventTrigger(_RED, false));
          player.sendPacket(new EventTrigger(_BLUE, true));
        }
      }
    }
View Full Code Here


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

  }
View Full Code Here

      Player player = cha.getPlayer();
      if ((player == null) || !cha.isPlayer())
      {
        return;
      }
      player.broadcastPacket(new EventTrigger(21100100, true));
      if (!done)
      {
        done = true;
        player.showQuestMovie(ExStartScenePlayer.SCENE_SSQ2_SOLINA_TOMB_OPENING);
      }
View Full Code Here

  private void manageStorm(boolean active)
  {
    for(Player p : getPlayers())
      for(int _eventTrigger : _eventTriggers)
        p.sendPacket(new EventTrigger(_eventTrigger, active));
  }
View Full Code Here

  private void manageStorm(boolean active)
  {
    for(Player p : getPlayers())
      for(int _eventTrigger : _eventTriggers)
        p.sendPacket(new EventTrigger(_eventTrigger, active));
  }
View Full Code Here

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

  }
View Full Code Here

    else if (event.equalsIgnoreCase("use_staff"))
    {
      if (st.getQuestItemsCount(StaffofBlessing) > 0)
      {
        st.takeAllItems(StaffofBlessing);
        player.broadcastPacket(new EventTrigger(21100206, false));
        removeInvincibility(player, 18953);
        return null;
      }
      htmltext = "powerful_q10295_0.htm";
    }
    else if (event.equalsIgnoreCase("use_book"))
    {
      if (st.getQuestItemsCount(ScrollofAbstinence) > 0)
      {
        st.takeAllItems(ScrollofAbstinence);
        player.broadcastPacket(new EventTrigger(21100200, false));
        removeInvincibility(player, 18954);
        return null;
      }
      htmltext = "powerful_q10295_0.htm";
    }
    else if (event.equalsIgnoreCase("use_sword"))
    {
      if (st.getQuestItemsCount(SwordofHolySpirit) > 0)
      {
        st.takeAllItems(SwordofHolySpirit);
        player.broadcastPacket(new EventTrigger(21100204, false));
        removeInvincibility(player, 18955);
        return null;
      }
      htmltext = "powerful_q10295_0.htm";
    }
    else if (event.equalsIgnoreCase("use_shield"))
    {
      if (st.getQuestItemsCount(ShieldofSacrifice) > 0)
      {
        st.takeAllItems(ShieldofSacrifice);
        player.broadcastPacket(new EventTrigger(21100202, false));
        removeInvincibility(player, 18952);
        return null;
      }
      htmltext = "powerful_q10295_0.htm";
    }
View Full Code Here

  {
    int npcId = npc.getNpcId();
    Player player = st.getPlayer();
    if (ArrayUtils.contains(SolinaGuardians, npcId) && checkGuardians(player, SolinaGuardians))
    {
      player.broadcastPacket(new EventTrigger(21100100, false));
      player.showQuestMovie(ExStartScenePlayer.SCENE_SSQ2_SOLINA_TOMB_CLOSING);
      player.broadcastPacket(new EventTrigger(21100102, true));
    }
    if (ArrayUtils.contains(TombGuardians, npcId))
    {
      if (checkGuardians(player, TombGuardians))
      {
View Full Code Here

      {
        actor.sendPacket(new SystemMessage(getEnteringMessageId()));
      }
      if (getTemplate().getEventId() != 0)
      {
        actor.sendPacket(new EventTrigger(getTemplate().getEventId(), true));
      }
      if (getTemplate().getBlockedActions() != null)
      {
        ((Player) actor).blockActions(getTemplate().getBlockedActions());
      }
View Full Code Here

      {
        actor.sendPacket(new SystemMessage(getLeavingMessageId()));
      }
      if ((getTemplate().getEventId() != 0) && actor.isPlayer())
      {
        actor.sendPacket(new EventTrigger(getTemplate().getEventId(), false));
      }
      if (getTemplate().getBlockedActions() != null)
      {
        ((Player) actor).unblockActions(getTemplate().getBlockedActions());
      }
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.