Examples of PlaySound


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

  }

  public void spawnBoss(L2GrandBossInstance npc)
  {
    GrandBossManager.getInstance().addBoss(npc);
    npc.broadcastPacket(new PlaySound(1, "BS01_A", 1, npc.getObjectId(), npc.getX(), npc.getY(), npc.getZ()));
    //Spawn minions
    for(int i = 0; i < 5; i++)
    {
      int x = 16800 + i * 360;
      Minions.add((L2Attackable) addSpawn(DEATH_KNIGHT, x, 110000, npc.getZ(), 280 + Rnd.get(40), false, 0));
View Full Code Here

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

  @Override
  public String onKill (L2NpcInstance npc, L2PcInstance killer, boolean isPet)
  {
    if (npc.getNpcId() == 29019 || npc.getNpcId() == 29066 || npc.getNpcId() == 29067 || npc.getNpcId() == 29068)
    {
      npc.broadcastPacket(new PlaySound(1, "BS01_D", 1, npc.getObjectId(), npc.getX(), npc.getY(), npc.getZ()));
     
      if(!npc.getSpawn().is_customBossInstance()){
        _cubeSpawnTask = ThreadPoolManager.getInstance().scheduleGeneral(new CubeSpawn(0), 10000);
        GrandBossManager.getInstance().setBossStatus(npc.getNpcId(),DEAD);
        long respawnTime = (Config.ANTHARAS_RESP_FIRST + Rnd.get(Config.ANTHARAS_RESP_SECOND)) * 3600000;
 
View Full Code Here

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

 
  @Override
  public String onKill(L2NpcInstance npc, L2PcInstance killer, boolean isPet)
  {
    npc.broadcastPacket(new SpecialCamera(npc.getObjectId(),1700,2000,130,-1,0));
    npc.broadcastPacket(new PlaySound(1, "B03_D", 1, npc.getObjectId(), npc.getX(), npc.getY(), npc.getZ()));
    startQuestTimer("1111", 500, npc, null);
   
    if(!npc.getSpawn().is_customBossInstance()){
      GrandBossManager.getInstance().setBossStatus(VALAKAS,DEAD);
     
View Full Code Here

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

      {
        if (obj instanceof L2PcInstance)
        {
          if (Util.checkIfInRange(10000, npc, obj, true))
          {
            ((L2Character) obj).sendPacket(new PlaySound(1, "B03_A", 1, npc.getObjectId(), 212852, -114842, -1632));
            ((L2Character) obj).sendPacket(new SocialAction(npc.getObjectId(), 3));
          }
        }
      }
    }
View Full Code Here

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

  @Override
  public String onKill(L2NpcInstance npc, L2PcInstance killer, boolean isPet)
  {
    if (npc.getNpcId() == ORFEN)
    {
      npc.broadcastPacket(new PlaySound(1, "BS02_D", 1, npc.getObjectId(), npc.getX(), npc.getY(), npc.getZ()));
     
      if (!npc.getSpawn().is_customBossInstance())
      {     
        GrandBossManager.getInstance().setBossStatus(ORFEN, DEAD);
        // time is 48hour +/- 20hour
View Full Code Here

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

      ready = null;
      start = null;
    }

    // play sound
    PlaySound ps = new PlaySound(1, "B04_S01", 0, 0, 0, 0, 0);
    broadcastToTeam1(ps);
    broadcastToTeam2(ps);

    ps = null;
View Full Code Here

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

        }
    }

    private void spawnBoss(L2GrandBossInstance npc) {
        startQuestTimer("ACTION", 10000, npc, null, true);
        npc.broadcastPacket(new PlaySound(1, "BS02_D", 1, npc.getObjectId(), npc.getX(), npc.getY(), npc.getZ()));
        startQuestTimer("SPAWN_ROYAL", 1000, npc, null);
        startQuestTimer("NURSES_SPAWN", 1000, npc, null);
        startQuestTimer("CHECK_MINIONS_ZONE", 30000, npc, null, true);
        startQuestTimer("HEAL", 1000, null, null, true);
        _queen = npc;
View Full Code Here

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

        int npcId = npc.getNpcId();

        Integer status = GrandBossManager.getInstance().getBossStatus(QUEEN);

        if (npcId == QUEEN) {
            npc.broadcastPacket(new PlaySound(1, "BS02_D", 1, npc.getObjectId(), npc.getX(), npc.getY(), npc.getZ()));

            if (!npc.getSpawn().is_customBossInstance()) {
                GrandBossManager.getInstance().setBossStatus(QUEEN, DEAD);
                // time is 36hour +/- 17hour
                long respawnTime = (Config.QA_RESP_FIRST + Rnd.get(Config.QA_RESP_SECOND)) * 3600000;
 
View Full Code Here

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

      item = null;

      SystemMessage sm = null;
      if(calcSuccess())
      {
        _activeChar.sendPacket(new PlaySound("Itemsound.quest_itemget"));
        _target.setSeeded();
        sm = new SystemMessage(SystemMessageId.THE_SEED_WAS_SUCCESSFULLY_SOWN);
      }
      else
      {
View Full Code Here

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

      SystemMessage sm = new SystemMessage(SystemMessageId.MONSRACE_RACE_START);
      sm.addNumber(0);
      activeChar.sendPacket(sm);
      sm = null;

      PlaySound SRace = new PlaySound(1, "S_Race", 0, 0, 0, 0, 0);
      activeChar.sendPacket(SRace);
      activeChar.broadcastPacket(SRace);
      SRace = null;

      PlaySound SRace2 = new PlaySound(0, "ItemSound2.race_start", 1, 121209259, 12125, 182487, -3559);
      activeChar.sendPacket(SRace2);
      activeChar.broadcastPacket(SRace2);
      SRace2 = null;

      MonRaceInfo spk = new MonRaceInfo(codes[state][0], codes[state][1], race.getMonsters(), race.getSpeeds());
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.