On Fri, 15 Jan 1999 14:22:04 +0100 Thomas Henke <ghost@warstein.owl.de>
writes:
>Hello there,
>
>
>I have heard about this "MSP" (Mud Sound Protocol), i saw that several
>muds,
>offer this goodie. So, that many players have a client what supports
>this
>protocol, i started to searched for some more informations on it. But
>i did
>not found much now :(
>
>Perhabs someone of you could help me with following:
>
> * Has someone (good?) experience in it ?
> * Is it worth to implement ?
> * Are there some documents of it existing ?
> * Where can i find some sources for it ?
>
>Thank you for your help.
This is my MSP code, I posted it to the list a while back. Usage:
sound(number, char_to_be_sent to);
Ex:
sound(1, victim);
will send the sound located in c:\msp\filename.wav
you can define the sound names/dirs in the switch block.
/*
************************************************************************
* File: sound.c Part of CircleMUD
*
* Usage: Number codes for sounds to be sent to characters. Prototype
*
* where needed.
*
* Written by Gowron of Star Trek: Armageddon MUD.
*
* All rights reserved. See license.doc for complete information.
*
*
*
* Copyright (C) 1993, 94 by the Trustees of the Johns Hopkins University
*
* CircleMUD is based on DikuMUD, Copyright (C) 1990, 1991.
*
************************************************************************
*/
#include "conf.h"
#include "sysdep.h"
#include "structs.h"
#include "utils.h"
#include "comm.h"
#include "interpreter.h"
#include "handler.h"
/* Local Functions */
void sound(struct char_data *ch, int sound);
void sound(struct char_data *ch, int sound)
{
int sound_num;
if(!PRF_FLAGGED(ch, PRF_SOUND)){
return;
}
switch(sound){
case 1:
send_to_char("!!SOUND(C:\\MSP\\sound1.wav l=1 p=75 v=100)", ch);
break;
case 2:
sound_num = number(0, 2);
switch(sound_num){
case 0:
send_to_char("!!SOUND(C:\\MSP\\tell1.wav l=1 p=100 v=100)", ch);
break;
case 1:
send_to_char("!!SOUND(C:\\MSP\\tell2.wav l=1 p=100 v=100)", ch);
break;
default:
send_to_char("!!SOUND(C:\\MSP\\tell3.wav l=1 p=100 v=100)", ch);
break;
}
default:
send_to_char("Invalid sound code.", ch);
break;
}
}
Phillip Ames | Satisfaction is not guaranteed.
kirk47@juno.com | -Ferengi Rule of Acquisition #19
ICQ: 8778335 | AOL IM: Grathol
http://members.xoom.com/Gowron/index.html
___________________________________________________________________
You don't need to buy Internet access to use free Internet e-mail.
Get completely free e-mail from Juno at http://www.juno.com/getjuno.html
or call Juno at (800) 654-JUNO [654-5866]
+------------------------------------------------------------+
| Ensure that you have read the CircleMUD Mailing List FAQ: |
| http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
+------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/15/00 PST