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
korthrun
Newbie


Joined: 19 Jul 2002
Posts: 8
Location: USA

PostPosted: Sat Jul 12, 2003 6:35 am   

Get Time Since Last Command Was Sent To Mud?
 
The only way I can think to get the time since last command was sent to the mud is to make EVERYTHING an alias and have it set a variable in addition to whatever the original command was supposed to do.
Reply with quote
TonDiening
GURU


Joined: 26 Jul 2001
Posts: 1958
Location: Canada

PostPosted: Sat Jul 12, 2003 8:45 am   
 
Check out #ONINPUT perhaps. Depends on what you exactly want to time.
Reply with quote
korthrun
Newbie


Joined: 19 Jul 2002
Posts: 8
Location: USA

PostPosted: Sat Jul 12, 2003 9:24 pm   
 
#tr {You enter Islands of Myth.} {#alarm 1800 {#var now %secs();#math time_last_cmd (@now - @last_cmd);#if(@time_last_cmd > 1800) {#echo OMG YOU ARE IDLE} {} } }

#ONINPUT {^*$} {#var last_cmd %secs();}

Thanks, you rock.
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