If the beep is always part of a fixed message then you could make Fiendish's suggestion more targetted.
For example:
function OnPluginPacketReceived(sText)
return sText:gsub("\7Too long spent in area", "Too long spent in area")
end
You would need to find where the beep is in the message (start, end, middle?) - you can use "Debug Packets" to find that out.
That would replace those words
with the beep with those words without the beep.
The entire plugin could look like below.
To save and install the
Remove_Annoying_Beep plugin do this:
- Copy the code below (in the code box) to the Clipboard
- Open a text editor (such as Notepad) and paste the plugin code into it
- Save to disk on your PC, preferably in your plugins directory, as
Remove_Annoying_Beep.xml
- The "plugins" directory is usually under the "worlds" directory inside where you installed MUSHclient.
- Go to the MUSHclient File menu -> Plugins
- Click "Add"
- Choose the file
Remove_Annoying_Beep.xml (which you just saved in step 3) as a plugin
- Click "Close"
- Save your world file, so that the plugin loads next time you open it.
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE muclient>
<muclient>
<plugin
name="Remove_Annoying_Beep"
author="Nick Gammon"
id="e458b7050f078dfb85705a98"
language="Lua"
purpose="Removes an annoying beep"
date_written="2020-11-13 07:17:31"
requires="5.00"
version="1.0"
>
</plugin>
<!-- Script -->
<script>
<![CDATA[
function OnPluginPacketReceived(sText)
return sText:gsub("\7Too long spent in area", "Too long spent in area")
end
]]>
</script>
</muclient>