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

Gammon Forum

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

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  General
. . -> [Subject]  How to reset the wait timer subroutine thing?
Home  |  Users  |  Search  |  FAQ
Register forum user name
Forgotten password?

How to reset the wait timer subroutine thing?

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page

Posted by Ada   (20 posts)  [Biography] bio
Date Mon 27 Jun 2011 02:45 PM (UTC)
Hi! I was trying to use the "wait" module as described here:


But I miscalculated the time I needed to wait between each command sent to the game so I hit Ctrl-Shift-R to reset the script. However, now I keep getting the error,

The timer (wait_timer_6145) subroutine named "wait.timer_resume" could not be found.

whenever I try to reset the script. Is there any way to get a 'clean slate' with this besides closing MUSHclient or the world entirely and restarting it? Thanks!

[Go to top] top

Posted by Worstje   Netherlands  (899 posts)  [Biography] bio
Date Reply #1 on Mon 27 Jun 2011 04:34 PM (UTC)
You can remove the timer from the Timers screen in your World Properties, if that is what you mean.

If I misunderstand you though, please clarify a bit more. :)
[Go to top] top

Posted by Nick Gammon   Australia  (21,651 posts)  [Biography] bio   Forum Administrator
Date Reply #2 on Tue 28 Jun 2011 04:16 AM (UTC)
Yes, the wait.time function basically adds a timer to the timer list. If you then reload the script the timer fires but can't find the script it is supposed to run. You could delete the timer if it is in the main world file.

This shouldn't be too much of an annoyance during testing. For production use, if you need to prematurely exit a "wait" loop, build in some sort of flag that gets tested in the loop.

- Nick Gammon

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

Posted by Ada   (20 posts)  [Biography] bio
Date Reply #3 on Tue 28 Jun 2011 09:05 AM (UTC)
Ahh, yay! Never noticed a timer gets added. Thanks!
[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.


It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page

Go to topic:           Search the forum

[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

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

[Best viewed with any browser - 2K]    [Hosted at FutureQuest]