Mush Client Chat System: How to add sounds to messages?

Posted by Gunner on Wed 15 Jul 2020 10:49 PM — 2 posts, 13,540 views.

Argentina #0
Hello! I'm testing the chat system in mush client, I have to say that it is great.
I want to add sounds to messages, when someone connects and other events, through the function Sound() but I don't know how to do it, because the strings that shows the chat are not captured by the triggers.
How can I do it?
Many thanks.
Australia Forum Administrator #1
See: http://www.gammon.com.au/scripts/doc.php?general=plugin_callbacks

Scroll down to Chat System Callbacks.

If you make a plugin that has the OnPluginChatMessage function in it, you can make it play a sound.

http://www.gammon.com.au/scripts/doc.php?function=Sound