Package l2p.gameserver.serverpackets

Examples of l2p.gameserver.serverpackets.PlaySound


  protected void onEvtDead(L2Character killer)
  {
    L2NpcInstance actor = getActor();
    if(actor != null)
    {
      actor.broadcastPacket(new PlaySound(1, "BS02_D", 1, 0, actor.getLoc()));
      Functions.npcSay(actor, "Произошла фатальная ошибка");
      Functions.npcSay(actor, "Система выключается...");
      Functions.npcSay(actor, "......");
    }
    try
View Full Code Here


    }
    else if(event.equals("6") && temp_npc != null)
    {
      Functions.npcSay(temp_npc, TEXT[6]);
      temp_npc.moveToLocation(new Location(-56511, -56647, -2008, 36863), 0, true);
      temp_npc.broadcastPacket(new PlaySound(1, "NS22_F", 0, 0, new Location()));
      L2NpcInstance elf = addSpawn(singer1, -56344, -56328, -2008, 32768);
      elf.moveToLocation(new Location(-56657, -56338, -2008, 33102), 0, true);
      L2NpcInstance elf1 = addSpawn(singer2, -56552, -56245, -2008, 36863);
      L2NpcInstance elf2 = addSpawn(singer2, -56546, -56426, -2008, 28672);
      L2NpcInstance elf3 = addSpawn(singer2, -56570, -56473, -2008, 28672);
      L2NpcInstance elf4 = addSpawn(singer2, -56594, -56516, -2008, 28672);
      L2NpcInstance elf5 = addSpawn(singer2, -56580, -56203, -2008, 36863);
      L2NpcInstance elf6 = addSpawn(singer2, -56606, -56157, -2008, 36863);
      startQuestTimer("social1", 6000, elf);
      startQuestTimer("social1", 6000, elf1);
      startQuestTimer("social1", 6000, elf2);
      startQuestTimer("social1", 6000, elf3);
      startQuestTimer("social1", 6000, elf4);
      startQuestTimer("social1", 6000, elf5);
      startQuestTimer("social1", 6000, elf6);
      startQuestTimer("7", 215000, temp_npc);
      startQuestTimer("7", 215000, elf);
      startQuestTimer("7", 215000, elf1);
      startQuestTimer("7", 215000, elf2);
      startQuestTimer("7", 215000, elf3);
      startQuestTimer("7", 215000, elf4);
      startQuestTimer("7", 215000, elf5);
      startQuestTimer("7", 215000, elf6);
    }
    else if(event.equals("7") && temp_npc != null)
    {
      if(temp_npc.getNpcId() == MC)
      {
        Functions.npcSay(temp_npc, TEXT[7]);
        temp_npc.moveToLocation(new Location(-56698, -56430, -2008, 32768), 0, true);
        startQuestTimer("8", 12000, temp_npc);
      }
      else
      {
        //cancelQuestTimer("social1", npc, null);
        temp_npc.moveToLocation(new Location(-56594, -56064, -2008), 0, true);
        startQuestTimer("clean_npc", 9000, temp_npc);
      }
    }
    else if(event.equals("10") && temp_npc != null)
    {
      temp_npc.moveToLocation(new Location(-56483, -56665, -2034), 0, true);
      L2NpcInstance npc1 = addSpawn(circus1, -56495, -56375, -2008, 32768);
      L2NpcInstance npc2 = addSpawn(circus1, -56491, -56289, -2008, 32768);
      L2NpcInstance npc3 = addSpawn(circus2, -56502, -56246, -2008, 32768);
      L2NpcInstance npc4 = addSpawn(circus2, -56496, -56429, -2008, 32768);
      L2NpcInstance npc5 = addSpawn(circus3, -56505, -56334, -2008, 32768);
      L2NpcInstance npc6 = addSpawn(circus4, -56545, -56427, -2008, 32768);
      L2NpcInstance npc7 = addSpawn(circus4, -56552, -56248, -2008, 32768);
      L2NpcInstance npc8 = addSpawn(circus5, -56493, -56473, -2008, 32768);
      L2NpcInstance npc9 = addSpawn(circus5, -56504, -56201, -2008, 32768);
      temp_npc.broadcastPacket(new PlaySound(1, "TP05_F", 0, 0, new Location()));
      startQuestTimer("npc1_1", 3000, npc1);
      startQuestTimer("npc2_1", 3000, npc2);
      startQuestTimer("npc3_1", 3000, npc3);
      startQuestTimer("npc4_1", 3000, npc4);
      startQuestTimer("npc5_1", 3500, npc5);
View Full Code Here

    }
    else if(state == 0)
    {
      state++;
      activeChar.sendPacket(Msg.THEYRE_OFF);
      activeChar.broadcastPacket(new PlaySound("S_Race"));
      activeChar.broadcastPacket(new PlaySound(0, "ItemSound2.race_start", 1, 121209259, new Location(12125, 182487, -3559)));
      activeChar.broadcastPacket(new MonRaceInfo(codes[state][0], codes[state][1], race.getMonsters(), race.getSpeeds()));
      ThreadPoolManager.getInstance().scheduleGeneral(new RunRace(codes, activeChar), 5000);
    }
  }
View Full Code Here

      {
        show(Files.read(msgSpawned, player), player, npc);
        return;
      }
    }
    player.sendPacket(new PlaySound(1, "HB01", 0, 0, new Location()));
    try
    {
      Location loc = GeoEngine.findPointToStay(npc.getX(), npc.getY(), npc.getZ(), 40, 60, npc.getReflection().getGeoIndex());
      loc.setH(Util.getHeadingTo(loc, player.getLoc()));
      L2Spawn spawn = new L2Spawn(NpcTable.getTemplate(NPC_ALEGRIA));
View Full Code Here

    if(Dying)
    {
      return;
    }
    Dying = true;
    self.broadcastPacket(new PlaySound(1, "BS02_D", 1, 0, self.getLoc()));
    _state.setRespawnDate(getRespawnInterval());
    _state.setState(EpicBossState.State.INTERVAL);
    _state.update();
    Log.add("Baium died", "bosses");
    deleteArchangels();
View Full Code Here

    _state.update();
    Log.add("Spawned Baium, awake by: " + awake_by, "bosses");
    // set last attack time.
    setLastAttackTime();
    baium.setImobilised(true);
    baium.broadcastPacket(new PlaySound(1, "BS02_A", 1, 0, baium.getLoc()));
    baium.broadcastPacket(new SocialAction(baium.getObjectId(), 2));
    _socialTask = ThreadPoolManager.getInstance().scheduleGeneral(new Social(baium, 3), 15000);
    ThreadPoolManager.getInstance().scheduleGeneral(new EarthquakeTask(baium), 25000);
    _socialTask2 = ThreadPoolManager.getInstance().scheduleGeneral(new Social(baium, 1), 25000);
    _killPcTask = ThreadPoolManager.getInstance().scheduleGeneral(new KillPc(awake_by, baium), 26000);
View Full Code Here

  {
    MonsterRace race = MonsterRace.getInstance();
    if(state == STARTING_RACE)
    {
      //state++;
      PlaySound SRace = new PlaySound("S_Race");
      broadcast(SRace);
      PlaySound SRace2 = new PlaySound(0, "ItemSound2.race_start", 1, 121209259, new Location(12125, 182487, -3559));
      broadcast(SRace2);
      packet = new MonRaceInfo(codes[1][0], codes[1][1], race.getMonsters(), race.getSpeeds());
      sendMonsterInfo();
      ThreadPoolManager.getInstance().scheduleAi(new RunRace(), 5000, false);
    }
View Full Code Here

    return Commands.values();
  }

  public void playAdminSound(L2Player activeChar, String sound)
  {
    activeChar.broadcastPacket(new PlaySound(sound));
    activeChar.sendPacket(new NpcHtmlMessage(5).setFile("data/html/admin/admin.htm"));
    activeChar.sendMessage("Playing " + sound + ".");
  }
View Full Code Here

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

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

TOP

Related Classes of l2p.gameserver.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.