Package lineage2.gameserver.network.serverpackets

Examples of lineage2.gameserver.network.serverpackets.NpcSay


  {
    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

   * @param npc NpcInstance
   * @param player Player
   */
  private void packet(NpcInstance npc, Player player)
  {
    player.sendPacket(new NpcSay(npc, _chatType, _text));
  }
View Full Code Here

  public void sendInstanceState(int state)
  {
    if(state == 1)
    {
      ADOLPH.get(0).broadcastPacket(new NpcSay(ADOLPH.get(0), ChatType.NPC_SAY, NpcString.CREATURES_HAVE_STOPPED_ATTACKING_USE_THIS_TIME_TO_REST_AND_RECOVER));
      for(Player player : getPlayers())
        player.sendPacket(new ExShowScreenMessage(NpcString.CREATURES_HAVE_STOPPER_THEIR_ATTACK_REST_AND_THEN_SPEEAK_WITH_ADOLPH, 5000, ExShowScreenMessage.ScreenMessageAlign.TOP_CENTER, true, ExShowScreenMessage.STRING_TYPE, 0, true, 0));
    }
    if(state == 2)
    {
      ADOLPH.get(0).broadcastPacket(new NpcSay(ADOLPH.get(0), ChatType.NPC_SAY, NpcString.THE_CRY_OF_FATE_PENDANT_WILL_BE_HELPFUL_TO_YOU_PLEASE_EQUIP_IT_AND_BRING_OUT_THE_POWER_OF_THE_PENDANT_TO_PREPARE_FOR_THE_NEXT_FIGHT));
    }
    if(state == 3)
    {
      for(Player player : getPlayers())
        player.sendPacket(new ExShowScreenMessage(NpcString.AGH_HUMANS_HA_IT_DOES_NOT_MATTER_YOUR_WORLD_WILL_END_ANYWAYS, 5000, ExShowScreenMessage.ScreenMessageAlign.TOP_CENTER, true, ExShowScreenMessage.STRING_TYPE, 0, true, 0));
View Full Code Here

    @Override
    public void runImpl() throws Exception
    {
      List<NpcInstance> npc = getAllByNpcId(npcId, true);
      if(!npc.isEmpty())
        npc.get(0).broadcastPacket(new NpcSay(npc.get(0), ChatType.NPC_SAY, msg));
      if(!sayLocker && !npc.isEmpty())
        ThreadPoolManager.getInstance().schedule(this, 8000);
    }
View Full Code Here

  {
    if (npc == null)
    {
      return;
    }
    NpcSay cs = new NpcSay(npc, ChatType.NPC_SAY, fStringId, params);
    for (Player player : World.getAroundPlayers(npc, range, Math.max(range / 2, 200)))
    {
      if (npc.getReflection() == player.getReflection())
      {
        player.sendPacket(cs);
View Full Code Here

    }
    for (Player player : World.getAroundPlayers(npc, range, Math.max(range / 2, 200)))
    {
      if (npc.getReflection() == player.getReflection())
      {
        player.sendPacket(new NpcSay(npc, ChatType.NPC_SAY, new CustomMessage(address, player, replacements).toString()));
      }
    }
  }
View Full Code Here

  {
    if (npc == null)
    {
      return;
    }
    player.sendPacket(new NpcSay(npc, chatType, npcString, params));
  }
View Full Code Here

  {
    if (npc == null)
    {
      return;
    }
    NpcSay cs = new NpcSay(npc, ChatType.SHOUT, npcString, params);
    int rx = MapUtils.regionX(npc);
    int ry = MapUtils.regionY(npc);
    int offset = Config.SHOUT_OFFSET;
    for (Player player : GameObjectsStorage.getAllPlayersForIterate())
    {
View Full Code Here

TOP

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

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.