Examples of NpcSay


Examples of l2p.gameserver.serverpackets.NpcSay

            }
            if(text.equals(""))
            {
              return;
            }
            NpcSay cs = new NpcSay(chatNpc, text.startsWith("!") ? 1 : 0, text.startsWith("!") ? text.substring(1, text.length() - 1) : text);
            for(L2Player nearbyPlayer : nearbyPlayers)
            {
              if(nearbyPlayer == null)
              {
                continue;
View Full Code Here

Examples of l2p.gameserver.serverpackets.NpcSay

      }
      if(!_activeChar.isVisible())
      {
        return;
      }
      broadcastPacket(new NpcSay(L2SepulcherMonsterInstance.this, 0, "forgive me!!"));
    }
View Full Code Here

Examples of l2p.gameserver.serverpackets.NpcSay

      if(!_activeChar.isVisible())
      {
        return;
      }
      FourSepulchersSpawn.spawnKeyBox(_activeChar);
      broadcastPacket(new NpcSay(L2SepulcherMonsterInstance.this, 0, "Many thanks for rescue me."));
      if(_victimShout != null)
      {
        _victimShout.cancel(true);
      }
    }
View Full Code Here

Examples of l2p.gameserver.serverpackets.NpcSay

  {
    if(npc == null)
    {
      return;
    }
    NpcSay cs = new NpcSay(npc, 0, text);
    for(L2Player player : L2World.getAroundPlayers(npc, range, 200))
    {
      if(player != null && !player.isBlockAll())
      {
        player.sendPacket(cs);
View Full Code Here

Examples of l2p.gameserver.serverpackets.NpcSay

    }
    for(L2Player player : L2World.getAroundPlayers(npc, range, 200))
    {
      if(player != null && !player.isBlockAll())
      {
        player.sendPacket(new NpcSay(npc, 0, new CustomMessage(address, player, replacements).toString()));
      }
    }
  }
View Full Code Here

Examples of l2p.gameserver.serverpackets.NpcSay

  {
    if(npc == null || player.isBlockAll())
    {
      return;
    }
    player.sendPacket(new NpcSay(npc, 2, text));
  }
View Full Code Here

Examples of l2p.gameserver.serverpackets.NpcSay

  {
    if(npc == null)
    {
      return;
    }
    NpcSay cs = new NpcSay(npc, 1, text);
    if(Config.SHOUT_CHAT_MODE == 1)
    {
      for(L2Player player : L2World.getAroundPlayers(npc, 10000, 1500))
      {
        if(player != null && !player.isBlockAll())
View Full Code Here

Examples of l2p.gameserver.serverpackets.NpcSay

    {
      for(L2Player player : L2World.getAroundPlayers(npc, 10000, 1500))
      {
        if(player != null && !player.isBlockAll())
        {
          player.sendPacket(new NpcSay(npc, 1, new CustomMessage(address, player, replacements).toString()));
        }
      }
    }
    else
    {
      int mapregion = MapRegion.getInstance().getMapRegion(npc.getX(), npc.getY());
      for(L2Player player : L2ObjectsStorage.getAllPlayersForIterate())
      {
        if(player != null && MapRegion.getInstance().getMapRegion(player.getX(), player.getY()) == mapregion && !player.isBlockAll())
        {
          player.sendPacket(new NpcSay(npc, 1, new CustomMessage(address, player, replacements).toString()));
        }
      }
    }
  }
View Full Code Here

Examples of lineage2.gameserver.network.serverpackets.NpcSay

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

Examples of lineage2.gameserver.network.serverpackets.NpcSay

  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
TOP
Copyright © 2018 www.massapi.com. 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.