Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ MUSHclient ➜ Bug reports ➜ DoAfter in 4.37

DoAfter in 4.37

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


Posted by Terry   USA  (87 posts)  Bio
Date Sun 26 Oct 2008 03:31 PM (UTC)

Amended on Sun 26 Oct 2008 04:32 PM (UTC) by Terry

Message
I wrote a trigger to send a command to the mud using DoAfter(), but it doesn't work in MUSHclient 4.37.
<triggers>
 <trigger
  enabled="n"
  group="hyper"
  match="You are too close to *"
  send_to="12"
  sequence="100"
 >
 <send>DoAfter(5, "hyper")</send>
 </trigger>
</triggers>
The trigger, along with others, is enabled in a previous alias:
<aliases>
 <alias
  match="^(y|n)hyper$"
  enabled="y"
  regexp="y"
  send_to="12"
  sequence="100"
 >
 <send>if "%1" == "y" then
 EnableTriggerGroup ("hyper", true)
 Note ("AUTOHYPER enabled.")
else
 EnableTriggerGroup ("hyper", false)
 Note ("AUTOHYPER disabled.")
end -- if
Note ("Ok.")</send>
 </alias>
</aliases>
The strange part is, it works perfectly on my other computer, which still has MUSHclient 4.34 on it. Has something happened to change DoAfter() between these two versions?


Edit:
I also tried
DoAfter(1, "look")
in the "Immediate" box, but that never fired either. So it wasn't that the thing didn't enable.
Top

Posted by Nick Gammon   Australia  (23,158 posts)  Bio   Forum Administrator
Date Reply #1 on Mon 27 Oct 2008 05:28 AM (UTC)
Message
DoAfter is working for me.

Two major things to check for are:


  • Are timers enabled? DoAfter actually generates a temporary timer - if timers are not enabled, it will not fire.

  • Are you connected to the MUD when testing? The temporary timers used by DoAfter do not fire if you are not connected. Check the Timers tab of the world configuration - you may find dozens of timers there waiting to fire when you connect.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Nick Gammon   Australia  (23,158 posts)  Bio   Forum Administrator
Date Reply #2 on Mon 27 Oct 2008 05:30 AM (UTC)
Message
I also seem to remember that someone had problems with timers a while ago - rebooting his PC seemed to fix it - something to do with Windows not sending timer events to MUSHclient.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
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.


11,599 views.

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

Go to topic:           Search the forum


[Go to top] top

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