[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]  tick timer off prompt line

Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?

tick timer off prompt line

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


Posted by EsP   (3 posts)  [Biography] bio
Date Tue 05 Jul 2011 04:22 AM (UTC)  quote  ]
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.
[Go to top] top

Posted by Twisol   USA  (2,230 posts)  [Biography] bio
Date Reply #1 on Tue 05 Jul 2011 04:38 AM (UTC)  quote  ]
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
[Go to top] top

Posted by EsP   (3 posts)  [Biography] bio
Date Reply #2 on Tue 05 Jul 2011 05:21 AM (UTC)  quote  ]
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
[Go to top] top

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

was missing the then and it works once added. Thanks
[Go to top] top

Posted by Twisol   USA  (2,230 posts)  [Biography] bio
Date Reply #4 on Tue 05 Jul 2011 05:27 AM (UTC)  quote  ]
Message
Awesome, glad you got it working. :)

'Soludra' on Achaea

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


788 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]