[Home] [Downloads] [Search] [Help/forum]

Gammon Software Solutions forum

See www.mushclient.com/spam for dealing with forum spam. Please read the MUSHclient FAQ!

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  General
. . -> [Subject]  Reconnecter Delay

Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?
(New message)
Subject: Reconnecter Delay
Name:
Your forum user name.
Register forum user name
Password:
Your forum password.
Forgotten password?
Message:
Message to be posted (in English, please).
Forum codes:
Check this if your message uses 'forum codes' or templates (auto-detected for new posts).
Forum codes Templates

Save this message ...


Subject review (reverse sequence)

Posted by Chyort   USA  (35 posts)  [Biography] bio
Date Mon 14 Jan 2008 10:28 PM (UTC)  quote  ]
Message
yeah. i had allready found my stupid mistake about trying to reset a disabled timer after browsing the forums for another hour or so after my post :P was still having the problem...

Fixed the round about way i was trying to reset the timer, and got a dozen reconnects or so on time. before the mud crashed. so lets hope its fixed for good
[Go to top] top

Posted by Nick Gammon   Australia  (18,770 posts)  [Biography] bio   Forum Administrator
Date Mon 14 Jan 2008 03:56 AM (UTC)  quote  ]
Message
Quote:

enabletimer "relog", false
DoCommand "ResetAllTimers"


First, I would not do it via DoCommand, that is a roundabout way of achieving it. Use this instead:

http://www.gammon.com.au/scripts/doc.php?function=ResetTimers


Second, since you have disabled it (by using false) the reset will not apply to it.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Nick Gammon   Australia  (18,770 posts)  [Biography] bio   Forum Administrator
Date Mon 14 Jan 2008 03:53 AM (UTC)  quote  ]
Message
See:

http://www.gammon.com.au/scripts/doc.php?function=ResetTimer

Enabling a timer does not reset when it will fire. Enable it first then reset it, to start the 9 minute countdown.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Chyort   USA  (35 posts)  [Biography] bio
Date Sun 13 Jan 2008 10:33 PM (UTC)  quote  ]

Amended on Mon 14 Jan 2008 04:17 AM (UTC) by Chyort

Message
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>
[Go to top] top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


1,467 views.

[Reply to this subject]  Reply to this subject   [New subject]  Start a new subject   [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

[Home]

Written by Nick Gammon - 5K

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( http://www.gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Internet Contents Rating Association (ICRA) - 2K]    [Web site powered by FutureQuest.Net]