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
Theragil
Apprentice


Joined: 13 Feb 2004
Posts: 157
Location: USA

PostPosted: Tue Aug 17, 2004 10:42 am   

Detecting if you're connected
 
If you have an #alarm loop, it runs even after you've disconnected. Is there a function or predefined variable that you can use to tell if you're still connected?
Reply with quote
nexela
Wizard


Joined: 15 Jan 2002
Posts: 1644
Location: USA

PostPosted: Tue Aug 17, 2004 11:44 am   
 
Not directly that I am aware of but there a few workarounds

1a. put all your alarms in a class folder and select the option for enable on connect and use the atdisconnect alias to turn the class off #t- classname
1b. almost like about but giving alarms names and using atconnect and atdisconnect aliass to turn them on and off

2.change your alarms to something along this.

#if (%ctime!=oldtime) {stuff for alarm todo}
oldtime=%ctime
_________________
Zmud Support Library
Zmud Knowledge Base
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