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


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, 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.
 Entire forum ➜ MUSHclient ➜ General ➜ tick timer off prompt line

tick timer off prompt line

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


Posted by EsP   (3 posts)  Bio
Date Tue 05 Jul 2011 04:22 AM (UTC)
Message
Sorry to have to ask but I'm in the dark on this stuff and couldn't hash it togeter off other posts.

prompt line loosk like
<30hp 100m 100mv 21> with the fourh number being the hour

Ideally I would like it to send a message when the hour rolls over with a warning at 20 seconds in and 25 seconds into the hour. The hour is variable, somewhere around 30 seconds.

I have it matching on
<trigger enabled="y"
keep_evaluating="y"
match= <(.*?)hp (.*?)m (.*?)mv (.*?)>
regexp="y"
send_to=World

Was trying this and other variations of in send,
if %4 ~= old_hour
old_hour = %4
DoAfterNote (30, "TICK IN 5 SECONDS!") -- 5 seconds warning
end -- if

However all it does is spam me with what I have entered in the send box.
Top

Posted by Twisol   USA  (2,257 posts)  Bio
Date Reply #1 on Tue 05 Jul 2011 04:38 AM (UTC)
Message
Change the send_to value to 12 (if using the XML serialization) or "Script" (from the dialog). Right now it looks like you're trying to send to World, which would send what's in the box as commands to the MUD.

'Soludra' on Achaea

Blog: http://jonathan.com/
GitHub: http://github.com/Twisol
Top

Posted by EsP   (3 posts)  Bio
Date Reply #2 on Tue 05 Jul 2011 05:21 AM (UTC)
Message
Thanks, I had had a feeling that the 12 I'd seen in other posts for similiar setups was "script" and had tried it before.

This is the error message I get when it goes there.

error number: 0
event: compile error
description: [string "Trigger: "]:2: 'then' expected near 'old_hour'
called by: immediate execution
Top

Posted by EsP   (3 posts)  Bio
Date Reply #3 on Tue 05 Jul 2011 05:23 AM (UTC)
Message
bwahaha, didn't read the error message I guess.

was missing the then and it works once added. Thanks
Top

Posted by Twisol   USA  (2,257 posts)  Bio
Date Reply #4 on Tue 05 Jul 2011 05:27 AM (UTC)
Message
Awesome, glad you got it working. :)

'Soludra' on Achaea

Blog: http://jonathan.com/
GitHub: http://github.com/Twisol
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.


15,696 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

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.

[Home]