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


Joined: 12 Aug 2004
Posts: 1

PostPosted: Thu Aug 12, 2004 8:54 pm   

Detecting a crash and reconnection
 
Basically what I want to do is reconnect to the mud if it crashes, however since ill be running a bot sort of script to do combat I also need a way to tell zmud NOT to reconnect me if I have died. Im hoping that zmud has a hidden variable somewhere that simply show's if I am connected or not. Or perhaps the connection timer is stored in a variable as well, so for example, if it is not updating then I would check my @Death variable and reconnect if necessary.

Thanks!

Additionally: is there a way that I could stop that stupid Character select box from poping up and let my script run through a disconnection?
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Fri Aug 13, 2004 8:38 pm   
 
Disable Auto Reconnect in Prefs.

#AL atdisconnect {#IF (@Death = 0) {#T+ connecter}}
#AL atconnect {#T- connecter}
#ALA connecter *15 {#IF (@Death = 0) {#CONNECT} {#T- connecter}}

Untested. I have no idea if atconnect and atdisconnect will work with Auto Reconnect disabled.
_________________
LightBulb
Senior member

Most scripts in this forum are written for Command Line entry.
Don't even open the Settings Editor unless its use is specified or obvious.
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