Page 1 of 1

isn't there a send that doesn't echo?

Posted: Mon Mar 07, 2016 7:17 pm
by jimbus
I swear I remember a send that doesn't echo the generated commends to the screen? I'd hoped it would be listed in similar commands in one of send, sendall and expandalias, but no such luck :)

JimB

Re: isn't there a send that doesn't echo?

Posted: Mon Mar 07, 2016 8:55 pm
by demonnic
The send() function takes an option second argument which tells it whether to echo or not. http://wiki.mudlet.org/w/Manual:Lua_Functions#send has details, but essentially
Code: [show] | [select all] lua
 send("say this is not echoed to the screen", false)

Re: isn't there a send that doesn't echo?

Posted: Tue Mar 08, 2016 12:23 am
by jimbus
Ah, that's right, I was too focused on a separate command to read the send doc all the way through. Now that you say that, I remember I set a global debug variable to turn it on and off as a second arguement.

Thank you!

JimB

Re: isn't there a send that doesn't echo?

Posted: Tue Mar 08, 2016 1:20 am
by SilverDragon
There's also a checkbox labeled "show commands sent to the server" in the settings window that you can uncheck, and it does essentially the same thing. Helpful if you have a lot of scripts with a lot of sends and you don't want to have to painstakingly go back and find each one and add in the second false argument.