That's all there is to it! Since zMUD supports MSP, it's also smart enough to know that the actual MSP string it found doesn't need to be displayed. That's why zMUD suppresses it. (I think that's a zMUD option, actually - might be nice to disable that for testing sometimes.) Sort of a side note - I'd definitely recommend using named constants for the sound file names. and wrapping the call for sound and music in functions. A little more work now but almost certainly worth it. -Cj ----- Original Message ----- From: RHS Linux User <carnage@GAMES2.MUDSRUS.COM> To: <CIRCLE@post.queensu.ca> Sent: Thursday, December 17, 1998 4:14 AM Subject: [NEWBIE] MSP question... >Ok I went to the zmud website and got the specs that are used to make MSP >work. This is how I implemented it below: >1) Created PRF_MUSIC and PRF_SOUND in structs.h >2) Gave them names in Constants.c >3) Made toggles for them in act.informative.c and afew other places >4) Add this to my tic counter function which I wrote to display the words, >'Tic Toc' when a tic happens: >/* Sound support here */ > if (PRF_FLAGGED(ch, PRF_SOUND)) { > send_to_char("!!SOUND(aahhhh.wav)", ch); > } > >Now the wave that is specified is one that I have in my /carnage/sounds >dir in zmud. This works BTW and I found out that if you just outright >send !!SOUND(aahhhh.wav) people with MSP capable term progs don't see the >call, but hear the sound while those with terminals that don't support >this option see the call so I figured if I put toggles in those who wanted >to hear the MSP options of our mud could and those who didn't or wasn't >capable could just turn their MSP off. My question was thoe, if this was >in general the way every one else who was using MSP was implementing it >and if not how they were doing it different? Laterz. > > >-Smillie, IMP >MAximum Carnage >Carnage.mudsrus.com 6669 > +------------------------------------------------------------+ | 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