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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
WereAllMonkeys
Newbie


Joined: 10 Dec 2003
Posts: 5
Location: USA

PostPosted: Tue Apr 24, 2007 9:16 pm   

Music
 
I would like to "sing" on our muds music channel, how can I add a delay between sends? I want to be able to have soemone request a song and I "sing " it one line at a time.

Thanks
~J
Reply with quote
Fang Xianfu
GURU


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

PostPosted: Tue Apr 24, 2007 9:24 pm   
 
Use #alarm or #wait.

#trig {(%w) says, ~"sing (*) for me!~"} {#if (@CurrentSong) {tell %1 Sorry, I'm singing at the moment. Wait a minute.} {#if (%iskey("%2",@Songs)) {say Sorry, %1, I don't know that song.} {say ok %1, I'll sing %2.;singsong %2}}}

#alias singsong {CurrentSong=%db(@Songs,"%-1");#t+ singAlarm}

#alarm "singAlarm" {*1} {sing %pop(@CurrentSong);#if (!@CurrentSong) {#t- singAlarm;bow}}

Or something like that. This is designed to use the full title of the song, even if it's multiple words. Use "#addkey Songs {Songname} {song lyrics with | separating lines}" to add songs to the list.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD 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