you can use:
- Code: Select all
/code player.Out.SendSoundEffect(ID, 0, 0, 0, 0, 0);

I think this is usefull for GMS to find usable sound ids

- Code: Select all
/* * DAWN OF LIGHT - The first free open source DAoC server emulator * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * */ using System; using DOL.GS.PacketHandler; namespace DOL.GS.Commands { [CmdAttribute( "&playsound", //command to handle ePrivLevel.GM, //minimum privelege level "playsound [ID]", //command description "'/PlaySound ID <SoundID> usable code for play sound are: player.Out.SendSoundEffect(ID, 0, 0, 0, 0, 0); ")] //usage public class PlaySoundIDCommandHandler : AbstractCommandHandler, ICommandHandler { public void OnCommand(GameClient client, string[] args) { if (args.Length == 1) { DisplaySyntax(client); return; } GamePlayer player = client.Player.TargetObject as GamePlayer; if (player == null) player = client.Player; ushort ID; if (ushort.TryParse(args[1], out ID) == false) { DisplaySyntax(client); return; } player.Out.SendSoundEffect(ID, 0, 0, 0, 0, 0); } } }
MFG
Elcotek