- Posts: 31
- Thank you received: 6
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
/******************************************************************************
How do I use sound?
******************************************************************************/
Place a call to SoundSend() in your code. You should do this before sending
the associated message, because when sending an MSP trigger there is no newline
(you could in theory add one to the SoundSend() function, but then the user
would see a blank line every time they received a sound).
The client can enable sound through ATCP/MSDP by setting SOUND to 1. If the
client supports ATCP or MSDP, then these will be used to send out-of-band sound
triggers to the client, which can then be played using a plugin or script.
For other clients, you will need to provide a command for switching sound on
and off. If the bSound variable in the protocol structure is set to true, and
the client doesn't support ATCP or MSDP, then the snippet will send an old
MSP-style in-band sound trigger.
If a client is using MSP sound triggers, then any text sequences of "!!SOUND("
sent to them will be instead be displayed as "!?SOUND(", so that players can't
trigger sounds through chats, tells, etc.
Please Log in or Create an account to join the conversation.
tbaMUD © 2024