[Home] [Downloads] [Search] [Help/forum]

Log on
Register forum user name Search FAQ

Gammon Forum

See www.mushclient.com/spam for dealing with forum spam. Please read the MUSHclient FAQ!

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  General
. . -> [Subject]  Stopping In Game Beeps

Stopping In Game Beeps

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page


Posted by Lilac   (15 posts)  [Biography] 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!
[Go to top] top

Posted by Fiendish   USA  (2,315 posts)  [Biography] 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
[Go to top] top

Posted by Lilac   (15 posts)  [Biography] 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. :(
[Go to top] top

Posted by Fiendish   USA  (2,315 posts)  [Biography] 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
[Go to top] top

Posted by Nick Gammon   Australia  (22,556 posts)  [Biography] 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.

Template:saveplugin=Remove_Annoying_Beep To save and install the Remove_Annoying_Beep plugin do this:
  1. Copy the code below (in the code box) to the Clipboard
  2. Open a text editor (such as Notepad) and paste the plugin code into it
  3. 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.
  4. Go to the MUSHclient File menu -> Plugins
  5. Click "Add"
  6. Choose the file Remove_Annoying_Beep.xml (which you just saved in step 3) as a plugin
  7. Click "Close"
  8. 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
[Go to top] 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.


1,042 views.

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.

[Home]


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( https://gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Hosted at FutureQuest]