Package lineage2.gameserver.network.serverpackets

Examples of lineage2.gameserver.network.serverpackets.PlaySound


   */
  @Override
  public void call(GlobalEvent event)
  {
    GameObject object = event.getCenterObject();
    PlaySound packet = null;
    if (object != null)
    {
      packet = new PlaySound(_type, _sound, 1, object.getObjectId(), object.getLoc());
    }
    else
    {
      packet = new PlaySound(_type, _sound, 0, 0, 0, 0, 0);
    }
    List<Player> players = event.broadcastPlayers(_range);
    for (Player player : players)
    {
      if (player != null)
View Full Code Here


  public void playSound(String sound)
  {
    Player player = getPlayer();
    if (player != null)
    {
      player.sendPacket(new PlaySound(sound));
    }
  }
View Full Code Here

  public void playTutorialVoice(String voice)
  {
    Player player = getPlayer();
    if (player != null)
    {
      player.sendPacket(new PlaySound(PlaySound.Type.VOICE, voice, 0, 0, player.getLoc()));
    }
  }
View Full Code Here

    r.setReenterTime(System.currentTimeMillis());
    for (Player p : r.getPlayers())
    {
      p.sendPacket(new ExSendUIEvent(p, 1, 1, 0, 0));
    }
    actor.broadcastPacket(new PlaySound(PlaySound.Type.MUSIC, "BS02_D", 1, actor.getObjectId(), actor.getLoc()));
    super.onEvtDead(killer);
  }
View Full Code Here

      else
      {
        npc.broadcastPacket(new ExShowScreenMessage(NpcString.ISTINA_SOUL_STONE_STARTS_POWERFULLY_ILLUMINATING_IN_RED, 5000, ExShowScreenMessage.ScreenMessageAlign.TOP_CENTER, true, 1, 0, true));
      }
    }
    npc.broadcastPacket(new PlaySound("istina.istina_voice_01"));
    ThreadPoolManager.getInstance().schedule(new runAuthorityRing(npc), 10000L);
  }
View Full Code Here

      st.playSound(SOUND_MIDDLE);
    }
    else if (event.equalsIgnoreCase("kirikachin_q111_2.htm"))
    {
      st.setCond(7);
      player.sendPacket(new PlaySound("EtcSound.elcroki_song_full"));
    }
    else if (event.equalsIgnoreCase("kirikachin_q111_3.htm"))
    {
      st.setCond(8);
      st.playSound(SOUND_MIDDLE);
View Full Code Here

   * @param killer Creature
   */
  @Override
  protected void onDeath(Creature killer)
  {
    broadcastPacketToOthers(new PlaySound(PlaySound.Type.MUSIC, "BS02_D", 1, 0, getLoc()));
    Functions.deSpawnNPCs(_spawns);
    Larva = null;
    super.onDeath(killer);
  }
View Full Code Here

  @Override
  protected void onSpawn()
  {
    super.onSpawn();
    getLarva();
    broadcastPacketToOthers(new PlaySound(PlaySound.Type.MUSIC, "BS01_A", 1, 0, getLoc()));
  }
View Full Code Here

          }
          player.setVar("NewGuidReward", "1", -1);
          boolean isMage = (player.getRace() != Race.orc) && player.getClassId().isMage();
          if (isMage)
          {
            player.sendPacket(new PlaySound("tutorial_voice_027"));
            Functions.addItem(player, 5790, 100);
          }
          else
          {
            player.sendPacket(new PlaySound("tutorial_voice_026"));
            Functions.addItem(player, 5789, 200);
          }
          Functions.addItem(player, 8594, 2);
          if (player.getLevel() == 1)
          {
View Full Code Here

        long count = _id == ExtractScrollSkill ? 1 : Math.min(10, Rnd.get((int) ((getLevel() * rate) + 1)));
        int itemId = getItemId(target.getNpcId());
        if (count > 0)
        {
          player.getInventory().addItem(itemId, count);
          player.sendPacket(new PlaySound(Quest.SOUND_ITEMGET));
          player.sendPacket(SystemMessage2.obtainItems(itemId, count, 0));
          player.sendChanges();
        }
        else
        {
View Full Code Here

TOP

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

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.