Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to "verify" your details, 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.
Entire forum
➜ MUSHclient
➜ General
➜ Stopping In Game Beeps
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Lilac
(24 posts) Bio
|
Date
| Thu 12 Nov 2020 02:46 AM (UTC) |
Message
| Is there any way to stop a beep from happening game-side? An action happens, it displays text, and then a beep sounds.
Unfortunately that beep is super annoying (extended period of time spent in the area) in and I need to make it stop.
I've searched and only found ways to MAKE things beep, not the opposite!
Thanks in advance! | Top |
|
Posted by
| Fiendish
USA (2,533 posts) Bio
Global Moderator |
Date
| Reply #1 on Thu 12 Nov 2020 05:56 AM (UTC) |
Message
| Go to Game -> Configure -> Output and then uncheck "Enable Beeps" at the top of the dialogue. |
https://github.com/fiendish/aardwolfclientpackage | Top |
|
Posted by
| Lilac
(24 posts) Bio
|
Date
| Reply #2 on Thu 12 Nov 2020 01:10 PM (UTC) |
Message
| That would disable all game-side beeps, though, right? I don't want that. I just want to disable this one, annoying one.
It may not even be possible. :( | Top |
|
Posted by
| Fiendish
USA (2,533 posts) Bio
Global Moderator |
Date
| Reply #3 on Thu 12 Nov 2020 05:15 PM (UTC) Amended on Thu 12 Nov 2020 05:25 PM (UTC) by Fiendish
|
Message
| I suppose technically you could make a plugin that uses OnPluginPacketReceived to selectively strip the "\7" bell character on some specific condition.
mute_beeps = false
function OnPluginPacketReceived(sText)
if mute_beeps == true then
return sText:gsub("\7", "")
end
end
And then you have a trigger or something toggle mute_beeps between true and false. |
https://github.com/fiendish/aardwolfclientpackage | Top |
|
Posted by
| Nick Gammon
Australia (23,070 posts) Bio
Forum Administrator |
Date
| Reply #4 on Thu 12 Nov 2020 08:20 PM (UTC) Amended on Thu 12 Nov 2020 08:22 PM (UTC) by Nick Gammon
|
Message
| 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>
|
- Nick Gammon
www.gammon.com.au, www.mushclient.com | 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.
12,520 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top