Package lineage2.gameserver.network.serverpackets.components

Examples of lineage2.gameserver.network.serverpackets.components.ChatType


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

  }
View Full Code Here


  {
    if (npcId != actor.getDisplayId())
    {
      actor.setDisplayId(npcId);
      DeleteObject d = new DeleteObject(actor);
      L2GameServerPacket su = new StatusUpdate(actor).addAttribute(StatusUpdateField.CUR_HP, StatusUpdateField.MAX_HP);
      for (Player player : World.getAroundPlayers(actor))
      {
        player.sendPacket(d, new NpcInfo(actor, player));
        if (player.getTarget() == actor)
        {
View Full Code Here

        effect.get(0).exit();
      }
      skill.getEffects(actor, player, false, false);
      if (animation)
      {
        actor.broadcastPacket(new MagicSkillUse(actor, player, skill.getId(), skill.getLevel(), skill.getHitTime(), 0));
      }
    }
  }
View Full Code Here

      actor.setDisplayId(npcId);
      DeleteObject d = new DeleteObject(actor);
      L2GameServerPacket su = new StatusUpdate(actor).addAttribute(StatusUpdateField.CUR_HP, StatusUpdateField.MAX_HP);
      for (Player player : World.getAroundPlayers(actor))
      {
        player.sendPacket(d, new NpcInfo(actor, player));
        if (player.getTarget() == actor)
        {
          player.setTarget(null);
          player.setTarget(actor);
          player.sendPacket(su);
View Full Code Here

   * Method updateEffectIconsImpl.
   */
  public void updateEffectIconsImpl()
  {
    Player owner = getPlayer();
    PartySpelled ps = new PartySpelled(this, true);
    Party party = owner.getParty();
    if (party != null)
    {
      party.broadCast(ps);
    }
View Full Code Here

   */
  @Override
  protected void onEvtDead(Creature killer)
  {
    final NpcInstance actor = getActor();
    actor.broadcastPacket(new PlaySound(PlaySound.Type.MUSIC, "BS02_D", 1, 0, actor.getLoc()));
    Functions.npcSay(actor, "A fatal error has occurred");
    Functions.npcSay(actor, "System is being shut down...");
    Functions.npcSay(actor, "......");
    try
    {
View Full Code Here

  {
    if (npcId != actor.getDisplayId())
    {
      actor.setDisplayId(npcId);
      DeleteObject d = new DeleteObject(actor);
      L2GameServerPacket su = new StatusUpdate(actor).addAttribute(StatusUpdateField.CUR_HP, StatusUpdateField.MAX_HP);
      for (Player player : World.getAroundPlayers(actor))
      {
        player.sendPacket(d, new NpcInfo(actor, player));
        if (player.getTarget() == actor)
        {
View Full Code Here

          break;
        case 30:
        case 20:
        case 10:
        case 5:
          Announcements.getInstance().announceToAll(new SystemMessage(SystemMessage.THE_SERVER_WILL_BE_COMING_DOWN_IN_S1_SECONDS__PLEASE_FIND_A_SAFE_PLACE_TO_LOG_OUT).addNumber(shutdownCounter));
          break;
        case 0:
          switch (shutdownMode)
          {
            case SHUTDOWN:
View Full Code Here

            spawnRoom(7);
            setReenterTime(System.currentTimeMillis());
            for(Player p : getPlayers())
            {
              p.sendPacket(new ExSendUIEvent(p, 1, 1, 0, 0));
              p.sendPacket(new SystemMessage(SystemMessage.THIS_DUNGEON_WILL_EXPIRE_IN_S1_MINUTES).addNumber(5));
            }
            startCollapseTimer(5 * 60 * 1000L);
            timeSpent = (int) (System.currentTimeMillis() - _savedTime) / 1000;
          }
        }, 10000L);
View Full Code Here

        actions.add(a);
      }
      else if (actionElement.getName().equalsIgnoreCase("npc_say"))
      {
        int npc = Integer.parseInt(actionElement.attributeValue("npc"));
        ChatType chat = ChatType.valueOf(actionElement.attributeValue("chat"));
        int range = Integer.parseInt(actionElement.attributeValue("range"));
        NpcString string = NpcString.valueOf(actionElement.attributeValue("text"));
        NpcSayAction action = new NpcSayAction(npc, range, chat, string);
        actions.add(action);
      }
      else if (actionElement.getName().equalsIgnoreCase("play_sound"))
      {
        int range = Integer.parseInt(actionElement.attributeValue("range"));
        String sound = actionElement.attributeValue("sound");
        PlaySound.Type type = PlaySound.Type.valueOf(actionElement.attributeValue("type"));
        PlaySoundAction action = new PlaySoundAction(range, sound, type);
        actions.add(action);
      }
      else if (actionElement.getName().equalsIgnoreCase("give_item"))
      {
        int itemId = Integer.parseInt(actionElement.attributeValue("id"));
        long count = Integer.parseInt(actionElement.attributeValue("count"));
        GiveItemAction action = new GiveItemAction(itemId, count);
        actions.add(action);
      }
      else if (actionElement.getName().equalsIgnoreCase("announce"))
      {
        String val = actionElement.attributeValue("val");
        if ((val == null) && (time == Integer.MAX_VALUE))
        {
          info("Can't get announce time." + getCurrentFileName());
          continue;
        }
        int val2 = val == null ? time : Integer.parseInt(val);
        EventAction action = new AnnounceAction(val2);
        actions.add(action);
      }
      else if (actionElement.getName().equalsIgnoreCase("if"))
      {
        String name = actionElement.attributeValue("name");
        IfElseAction action = new IfElseAction(name, false);
        action.setIfList(parseActions(actionElement, time));
        actions.add(action);
        lastIf = action;
      }
      else if (actionElement.getName().equalsIgnoreCase("ifnot"))
      {
        String name = actionElement.attributeValue("name");
        IfElseAction action = new IfElseAction(name, true);
        action.setIfList(parseActions(actionElement, time));
        actions.add(action);
        lastIf = action;
      }
      else if (actionElement.getName().equalsIgnoreCase("else"))
      {
        if (lastIf == null)
        {
          info("Not find <if> for <else> tag");
        }
        else
        {
          lastIf.setElseList(parseActions(actionElement, time));
        }
      }
      else if (actionElement.getName().equalsIgnoreCase("say"))
      {
        ChatType chat = ChatType.valueOf(actionElement.attributeValue("chat"));
        int range = Integer.parseInt(actionElement.attributeValue("range"));
        String how = actionElement.attributeValue("how");
        String text = actionElement.attributeValue("text");
        SysString sysString = SysString.valueOf2(how);
        SayAction sayAction = null;
View Full Code Here

TOP

Related Classes of lineage2.gameserver.network.serverpackets.components.ChatType

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.