Package l2p.gameserver.serverpackets

Examples of l2p.gameserver.serverpackets.PlaySound


        statement = con.prepareStatement("UPDATE clan_data SET hasFortress=? WHERE clan_id=? LIMIT 1");
        statement.setInt(1, getId());
        statement.setInt(2, getOwnerId());
        statement.execute();
        clan.broadcastClanStatus(false, true, true);
        clan.broadcastToOnlineMembers(new PlaySound("Siege_Victory"));
      }
    }
    catch(Exception e)
    {
      _log.warning("Exception: updateOwnerInDB(L2Clan clan): " + e.getMessage());
View Full Code Here


    if(npc == null || text == null || npc.isEmpty() || text.isEmpty())
    {
      return;
    }
    Say2 s1 = new Say2(0, Say2C.SHOUT, npc, text);
    PlaySound s2 = sound == null ? null : new PlaySound(0, sound, 1, getObjectId(), getLoc());
    for(L2Player player : L2World.getAroundPlayers(this, 10000, 1000))
    {
      if(player != null)
      {
        player.sendPacket(s1);
View Full Code Here

    for(L2Player temp : t2)
    {
      broadcastToOppositTeam(temp, new ExDuelUpdateUserInfo(temp));
    }
    // play duel music
    PlaySound ps = new PlaySound("B04_S01");
    broadcastToTeam(ps, _team1);
    broadcastToTeam(ps, _team2);
    // start duelling task
    ThreadPoolManager.getInstance().scheduleAi(new ScheduleDuelTask(this), 1000, true);
  }
View Full Code Here

        statement = con.prepareStatement("UPDATE clan_data SET hasCastle=? WHERE clan_id=? LIMIT 1");
        statement.setInt(1, getId());
        statement.setInt(2, getOwnerId());
        statement.execute();
        clan.broadcastClanStatus(false, true, true);
        clan.broadcastToOnlineMembers(new PlaySound("Siege_Victory"));
      }
    }
    catch(Exception e)
    {
      _log.warning("Exception: updateOwnerInDB(L2Clan clan): " + e.getMessage());
View Full Code Here

  @Override
  public void spawnMe()
  {
    super.spawnMe();
    setTeleported(false);
    broadcastPacketToOthers(new PlaySound(1, "BS01_A", 1, 0, getLoc()));
  }
View Full Code Here

  }

  @Override
  public void doDie(L2Character killer)
  {
    broadcastPacketToOthers(new PlaySound(1, "BS02_D", 1, 0, getLoc()));
    super.doDie(killer);
  }
View Full Code Here

  }

  @Override
  public void doDie(L2Character killer)
  {
    broadcastPacketToOthers(new PlaySound(1, "BS02_D", 1, 0, getLoc()));
    Functions.deSpawnNPCs(_spawns);
    Larva = null;
    super.doDie(killer);
  }
View Full Code Here

  @Override
  public void spawnMe()
  {
    super.spawnMe();
    getLarva();
    broadcastPacketToOthers(new PlaySound(1, "BS01_A", 1, 0, getLoc()));
  }
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(SystemMessage.obtainItems(itemId, count, 0));
          player.sendStatusUpdate(false, StatusUpdate.CUR_LOAD);
        }
        else
        {
View Full Code Here

  protected void onEvtDead(L2Character killer)
  {
    L2NpcInstance actor = getActor();
    if(actor != null)
    {
      actor.broadcastPacket(new PlaySound(1, "BS02_D", 1, actor.getObjectId(), actor.getLoc()));
    }
    super.onEvtDead(killer);
  }
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.