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
Jared242004
Beginner


Joined: 28 Jul 2004
Posts: 21
Location: Canada

PostPosted: Thu Oct 22, 2009 2:58 am   

Making a timer to count down till the time I quit?
 
I would like to make a timer that will count down and let the group know that i am quiting every 5 mintues till the time i set to quit?
Is this kind of timer possible?

Example:
I want to quit in 30 minutes

tell group i am quitting in 30 minutes

tell group i am quitting in 20 minutes

tell group i am quitting in 10 minutes

tell group i am quitting in 5 minutes

tell group i am quitting now

Thanks in advance
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4689
Location: Pensacola, FL, USA

PostPosted: Thu Oct 22, 2009 6:12 am   
 
#ALIAS quittingSoon {minutesLeft=30;#T+ quitCountDown}
#ALARM "quitCountDown" -60 {#IF (@minutesLeft) {#IF (%ismember(@minutesLeft, {5|10|15|20|25|30})) {tell group i am quitting in @minutesLeft minutes};#ADD minutesLeft -1} {#t- quitCountDown;tell group I am quitting now;quit}}

That should do it
_________________
Discord: Shalimarwildcat
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