Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
Xolademoness
Wanderer


Joined: 18 Jun 2004
Posts: 73
Location: United Kingdom

PostPosted: Wed Sep 05, 2007 6:49 am   

is there any way to have a background sound for when you are in a room?
 
..that loops when you are in the room but stops (or changes to a different sound for the other room) when you move into another room?
_________________
mhm..
Reply with quote
Fang Xianfu
GURU


Joined: 26 Jan 2004
Posts: 5155
Location: United Kingdom

PostPosted: Wed Sep 05, 2007 12:52 pm   
 
You could probably do this using room scripts and the OnRoomEnter event. It really depends on whether or not room scripts are run before or after OnRoomEnter. You may need to experiment. Perhaps something like this:

#event OnRoomEnter {#untrig PlayAlarm}

Room Script: #alarm PlayAlarm *30 {#play someroom.wav}

Where someroom.wav is 30 seconds long.
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
Reply with quote
Zugg
MASTER


Joined: 25 Sep 2000
Posts: 23379
Location: Colorado, USA

PostPosted: Thu Sep 06, 2007 5:05 pm   
 
Or play a MUD that has MSP (MUD Sound Protocol) support.

Also, keep in mind that in CMUD, you can also play MP3 files using the #PLAY command (something you couldn't do in zMUD).
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net