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
➜ General
➜ System beep on trigger and omit text from trigger script
|
System beep on trigger and omit text from trigger script
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
| Posted by
| Jinkai
(2 posts) Bio
|
| Date
| Fri 05 Mar 2010 11:53 PM (UTC) |
| Message
| I'm new to Mushclient, but used Zmud/Cmud for awhile and I've been using TF for a long time.
Two questions:
1) How do I play a system beep in a trigger? Either in the send box, or from my Lua script.
2) Is it possible to omit the text I send from my Lua script in a trigger.
For example:
Damian dealt the killing blow to .*
calls this:
function handleCorpse()
local lastkiller = GetVariable("lastkiller")
if lastkiller == "damian" then
world.Send "bury corpse"
world.Send "rest"
world.Send "arepair all"
world.Send "divvy gold"
end
end
Can I omit the bury corpse;rest;arepair all;divvy gold from my output?
Thank you,
Jinkai
| | Top |
|
| Posted by
| Nick Gammon
Australia (23,173 posts) Bio
Forum Administrator |
| Date
| Reply #1 on Sat 06 Mar 2010 12:49 AM (UTC) |
| Message
| Triggers have an option in them to play a sound. And in a script:
As for the omitting from output:
|
- Nick Gammon
www.gammon.com.au, www.mushclient.com | | Top |
|
| Posted by
| Jinkai
(2 posts) Bio
|
| Date
| Reply #2 on Sat 06 Mar 2010 01:03 AM (UTC) |
| Message
| Ooh, thanks Nick! The sendNoEcho is exactly what I was looking for. I had found the Sound function. I was wondering if there was something more like a system.beep type of deal, instead of having to track down where the beep is on my computer.
Thanks for the help! | | 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.
14,748 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top