|
The Raven Magician
Joined: 13 Oct 2000 Posts: 463
|
Posted: Thu Jul 18, 2002 11:26 pm
Timer Continue While Offline |
Is there any way to continue to execute timers (#TIMER) and alarms (#ALARM) while #disconnected? Such as if I wanted to make a script that only connects me to the MUD once per hour, and stays offline the rest of the time?
|
|
|
|
Kjata GURU
Joined: 10 Oct 2000 Posts: 4379 Location: USA
|
Posted: Thu Jul 18, 2002 11:56 pm |
Alarms do continue while offline. I do not know about the timer, though.
Kjata |
|
|
|
Vijilante SubAdmin
Joined: 18 Nov 2001 Posts: 5182
|
Posted: Fri Jul 19, 2002 12:32 am |
The tick timer automatically shuts off at disconnect and restarts at connect. Some type of alarms do not seem to fire after disconnect if they were created while connected. The only ones I noted such behaviour with where +#, but I can not confirm that for sure.
|
|
|
|
iljhar GURU
Joined: 10 Oct 2000 Posts: 1116 Location: USA
|
Posted: Fri Jul 19, 2002 12:41 am |
If you reset the tick timer after you disconnect, it will start up again. I know this because this happens when I don't want it to happen, heh.
Iljhar |
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Fri Jul 19, 2002 2:10 am |
Alarms use either the clock time or connect time. I'm not sure which is used for temporary alarms but a permanent alarm is best for what you want anyway.
I would expect connect-time alarms to stop when you disconnect. Alarms based on the clock time should continue.
#VAR offline 0
#ALA {00:00} {#IF (@offline) {#CONNECT}}
#AL atconnect {#VAR offline 0}
#AL atdisconnect {#VAR offline 1}
LightBulb
Senior Member |
|
|
|
|
|