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
atraeyu
Novice


Joined: 29 Dec 2006
Posts: 41
Location: Chester, VT

PostPosted: Mon Jan 01, 2007 6:50 pm   

Time Support in cMUD
 
I'd like my alias to set the current time that it was last executed.
I.E:

#ALIAS heal_fire_pub
{
#var heal_fire_time CURRENT_TIME
.FIREPUB_TO_PATH
buy beer
drink beer
.FIREPUB_BACK_PATH
}

How do I get the current time?
Also, can anyone give me an example of working with the time?

Thanks again! :)
Reply with quote
nexela
Wizard


Joined: 15 Jan 2002
Posts: 1644
Location: USA

PostPosted: Mon Jan 01, 2007 7:07 pm   
 
#HELP %time()

#SAY %time(mmddyyyy)
#SAY %time(mmmddyy)
etc etc etc
#SAY %time(mm-yy)
_________________
Zmud Support Library
Zmud Knowledge Base
Reply with quote
atraeyu
Novice


Joined: 29 Dec 2006
Posts: 41
Location: Chester, VT

PostPosted: Mon Jan 01, 2007 7:10 pm   
 
Awesome, perfect, thank you! :)
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