Upon disconnecting the stock reconnecter immediately tries to reconnect, and then waits how ever many seconds you have it set up to wait. What im trying to do is make a delay before it ever starts trying to reconnect. Basicly wait Y seconds/minutes before attempting to reconnect ever X seconds/minutes.
Since i cant just do a simple doafter and have it active while disconnected i came up with 2 triggers and a timer. It works. but its sporadic at best... I get a couple reconnects at the proper time, and then it starts to vary wildy, anywhere from the 9 minutes its suposed to wait, down to under 1 minute... With my fairly limited knowledge of scripting/what not, im stuck.
Anyways, first trigger executes a quit, and enables the relog timer. the timer then waits 9 minutes before executing connect. turning the reconecter back on, and the 2nd trigger turns the relog timer back off and resets all my timers.
any help would be appreciated, Oh and im running version 4.01 if that matters
*Edit* went digging thru the forums a bit more and found that you cant reset disabled timers... so i moved the reset to right after the timer is enabled.
<triggers>
<trigger
back_colour="8"
enabled="y"
keep_evaluating="y"
match="* says 'relog'"
match_back_colour="y"
match_text_colour="y"
send_to="12"
text_colour="10"
>
<send>DoAfterSpecial 1, "quit", 10
EnableTimer "relog", TRUE</send>
</trigger>
</triggers>
<triggers>
<trigger
back_colour="8"
enabled="y"
match="Welcome to Realms of Despair, *..."
match_back_colour="y"
match_text_colour="y"
send_to="12"
sequence="1"
text_colour="12"
>
<send>enabletimer "relog", false
DoCommand "ResetAllTimers"</send>
</trigger>
</triggers>
<timers>
<timer name="relog" minute="9" send_to="10"
active_closed="y" >
<send>connect</send>
</timer>
</timers>
|