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
The Raven
Magician


Joined: 13 Oct 2000
Posts: 463

PostPosted: 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?
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: Thu Jul 18, 2002 11:56 pm   
 
Alarms do continue while offline. I do not know about the timer, though.

Kjata
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: 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.
Reply with quote
iljhar
GURU


Joined: 10 Oct 2000
Posts: 1116
Location: USA

PostPosted: 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
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: 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
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