Examples of PlaySound


Examples of com.l2jfrozen.gameserver.network.serverpackets.PlaySound

  {
    MonsterRace race = MonsterRace.getInstance();
    if(_state == STARTING_RACE)
    {
      //state++;
      PlaySound SRace = new PlaySound(1, "S_Race", 0, 0, 0, 0, 0);
      broadcast(SRace);
      SRace = null;
      PlaySound SRace2 = new PlaySound(0, "ItemSound2.race_start", 1, 121209259, 12125, 182487, -3559);
      broadcast(SRace2);
      SRace2 = null;
      _packet = new MonRaceInfo(_codes[1][0], _codes[1][1], race.getMonsters(), race.getSpeeds());
      sendMonsterInfo();
View Full Code Here

Examples of com.l2jfrozen.gameserver.network.serverpackets.PlaySound

   *
   * @param sound
   */
  public void playSound(String sound)
  {
    getPlayer().sendPacket(new PlaySound(sound));
  }
View Full Code Here

Examples of com.l2jfrozen.gameserver.network.serverpackets.PlaySound

    getPlayer().sendPacket(new TutorialShowQuestionMark(number));
  }

  public void playTutorialVoice(String voice)
  {
    getPlayer().sendPacket(new PlaySound(2, voice, 0, 0, getPlayer().getX(), getPlayer().getY(), getPlayer().getZ()));
  }
View Full Code Here

Examples of com.l2jfrozen.gameserver.network.serverpackets.PlaySound

    packet = null;
  }

  private void playAdminSound(L2PcInstance activeChar, String sound)
  {
    PlaySound _snd = new PlaySound(1, sound, 0, 0, 0, 0, 0);
    activeChar.sendPacket(_snd);
    activeChar.broadcastPacket(_snd);
    activeChar.sendMessage("Playing " + sound + ".");
    _snd = null;
  }
View Full Code Here

Examples of com.l2jfrozen.gameserver.network.serverpackets.PlaySound

    _mode = Rnd.get(100) >= 80 ? 1 : 0;

    ExFishingStartCombat efsc = new ExFishingStartCombat(_fisher, _time, _fishMaxHp, _mode, _lureType, _deceptiveMode);
    _fisher.broadcastPacket(efsc);
    _fisher.sendPacket(new PlaySound(1, "SF_S_01", 0, 0, 0, 0, 0));
    // Succeeded in getting a bite
    _fisher.sendPacket(new SystemMessage(SystemMessageId.GOT_A_BITE));

    if(_fishAiTask == null)
    {
View Full Code Here

Examples of com.l2jfrozen.gameserver.network.serverpackets.PlaySound

    else if (event.equalsIgnoreCase("check_hp"))
    {
      if (npc.isDead())
      {
        _OnMorph = 1;
        _Zone.broadcastPacket(new PlaySound(1, "BS01_D", 1, npc.getObjectId(), npc.getX(), npc.getY(), npc.getZ()));
       
        startQuestTimer("attack_stop", 0, frintezza, null);
        startQuestTimer("stop_pc", 0, npc, null);
        startQuestTimer("stop_npc", 0, npc, null);
        startQuestTimer("morph_16", 0, npc, null);
View Full Code Here

Examples of com.l2jfrozen.gameserver.network.serverpackets.PlaySound

      log.warning("Zaken AI failed to load, missing Zaken in grandboss_data.sql");
      return;
    }
    GrandBossManager.getInstance().addBoss(npc);
   
    npc.broadcastPacket(new PlaySound(1, "BS01_A", 1, npc.getObjectId(), npc.getX(), npc.getY(), npc.getZ()));
    _ai0 = 0;
    _ai1 = npc.getX();
    _ai2 = npc.getY();
    _ai3 = npc.getZ();
    _quest0 = 0;
View Full Code Here

Examples of com.l2jfrozen.gameserver.network.serverpackets.PlaySound

   
    Integer status = GrandBossManager.getInstance().getBossStatus(ZAKEN);
   
    if (npcId == ZAKEN)
    {
      npc.broadcastPacket(new PlaySound(1, "BS02_D", 1, npc.getObjectId(), npc.getX(), npc.getY(), npc.getZ()));
     
      if (!npc.getSpawn().is_customBossInstance())
      {
        GrandBossManager.getInstance().setBossStatus(ZAKEN, DEAD);
        // time is 36hour +/- 17hour
View Full Code Here

Examples of com.l2jfrozen.gameserver.network.serverpackets.PlaySound

        return super.onAttack(npc, attacker, damage, isPet);
    }

    @Override
    public String onKill(L2NpcInstance npc, L2PcInstance killer, boolean isPet) {
        npc.broadcastPacket(new PlaySound(1, "BS01_D", 1, npc.getObjectId(), npc.getX(), npc.getY(), npc.getZ()));

        if (!npc.getSpawn().is_customBossInstance()) {
            cancelQuestTimer("baium_despawn", npc, null);
            // spawn the "Teleportation Cubic" for 15 minutes (to allow players to exit the lair)
            addSpawn(29055, 115203, 16620, 10078, 0, false, 900000); ////should we teleport everyone out if the cubic despawns??
View Full Code Here

Examples of com.l2jfrozen.gameserver.network.serverpackets.PlaySound

    int npcId = npc.getNpcId();
    String name = npc.getName();
    if(npcId == CORE)
    {
      int objId = npc.getObjectId();
      npc.broadcastPacket(new PlaySound(1, "BS02_D", 1, objId, npc.getX(), npc.getY(), npc.getZ()));
      npc.broadcastPacket(new CreatureSay(objId, 0, name, "A fatal error has occurred."));
      npc.broadcastPacket(new CreatureSay(objId, 0, name, "System is being shut down..."));
      npc.broadcastPacket(new CreatureSay(objId, 0, name, "......"));
      _FirstAttacked = false;
     
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.