Welcome to the Builder Academy

Question MSP

More
20 May 2013 18:14 #2454 by Gahan
MSP was created by Gahan
Just out of curiosity, I had someone ask if I could have MSP installed on my mud. My initial response was, thats odd, I thought TBAMud came stock with MSP, but I'm starting to pour over the protocols, and am not seeing it. Has anyone ever implemented MSP into TBAMud? If so I would be interested in seeing some snippets or hearing about their experiences.

Any thoughts?

Please Log in or Create an account to join the conversation.

More
20 May 2013 19:10 #2455 by rudeboyrave
Replied by rudeboyrave on topic MSP
we could use sounds with our MXP if im not mistaken.

CyberASSAULT
www.cyberassault.org
cyberassault.org 11111
A post-apocalyptic, sci-fi MUD.

Please Log in or Create an account to join the conversation.

More
21 May 2013 03:55 #2467 by Vatiken
Replied by Vatiken on topic MSP

/******************************************************************************
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.


Straight out of ProtocolSystem.txt in tbamud/doc

tbaMUD developer/programmer
The following user(s) said Thank You: Gahan

Please Log in or Create an account to join the conversation.

Time to create page: 0.208 seconds