|
korthrun Newbie
Joined: 19 Jul 2002 Posts: 8 Location: USA
|
Posted: 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.
|
|
|
|
TonDiening GURU
Joined: 26 Jul 2001 Posts: 1958 Location: Canada
|
Posted: Sat Jul 12, 2003 8:45 am |
Check out #ONINPUT perhaps. Depends on what you exactly want to time.
|
|
|
|
korthrun Newbie
Joined: 19 Jul 2002 Posts: 8 Location: USA
|
Posted: 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. |
|
|
|
|
|