System beep on trigger and omit text from trigger script

Posted by Jinkai on Fri 05 Mar 2010 11:53 PM — 3 posts, 15,174 views.

#0
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
Australia Forum Administrator #1
Triggers have an option in them to play a sound. And in a script:

Template:function=Sound
Sound

The documentation for the Sound script function is available online. It is also in the MUSHclient help file.



As for the omitting from output:

Template:function=SendNoEcho
SendNoEcho

The documentation for the SendNoEcho script function is available online. It is also in the MUSHclient help file.

#2
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!