Using different sound files for certain effects
Hi,
Some years ago, the following was working, but it seems to no more: To disable the sound effects that you hear when you select or deselect an NPC, I used to put two empty sound files like this C:\World of Warcraft\_retail_\Sound\Interface\ideselecttarget.ogg C:\World of Warcraft\_retail_\Sound\Interface\iselecttarget.ogg But it's not working now, I still hear the select/deselect sound effects. Any ideas how to achieve what I want? Thanks! |
Have you tried this?
https://www.wowinterface.com/forums/...688#post325688 What you have to do is to find the event that happens when you select or deselect an NPC. |
The lines responsible for playing the target select and lost sounds are here
https://github.com/Gethe/wow-ui-sour....lua#L172-L178 https://github.com/Gethe/wow-ui-sour...Frame.lua#L258 There's also an API function for muting specific sounds by either path or FileID. MuteSoundFile() Taking the SoundKitIDs and looking up their FileIDs, these calls should do the trick. Lua Code:
|
I have a feeling only calls to
Code:
PlaySoundFile Code:
MuteSoundFile But maybe that's a classic client quirk, I don't know how retail behaves. |
Considering MuteSoundFile() works for C-side calls too (you can mute creature sounds with it), I think it'll be fine.
|
This is what I use. It's to keep those pesky sounds from the YakVendor mount quiet.
Code:
local soundKitIDs = { |
In all honesty, you don't need to wait for events to fire to use MuteSoundFile(). You can call it from the main chunk. Also, SoundKitIDs can map to multiple FileIDs in which a random one is picked at call. They're not interchangeable.
Lua Code:
|
Quote:
|
Thank you all, using SDPhantom's code, I made a simple addon to mute those select/deselect sounds. I will be adding more sound IDs if/when I stumble into sounds I do not want to hear.
Though, I didn't quite understand how you take the SoundKitIDs and look up their FileIDs. |
There's a lookup table in the DBC files. Currently, WoW.Tools is the only site I can find with complete info though it's been discontinued since Dec 2022.
https://wow.tools/dbc/?dbc=soundkitentry |
Quote:
|
Quote:
Seems to be there now. |
Thanks a lot!
|
All times are GMT -6. The time now is 07:49 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI