View Single Post
01-17-24, 03:01 PM   #6
Sharpedge
A Theradrim Guardian
 
Sharpedge's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2022
Posts: 64
This is what I use. It's to keep those pesky sounds from the YakVendor mount quiet.

Code:
local soundKitIDs = {
    640336, 640338, 640340,
    640314, 640316, 640318, 640320,
    640180, 640182, 640184,
    640158, 640160, 640162, 640164
}

local frame = CreateFrame("Frame")

frame:RegisterEvent("PLAYER_LOGIN")
frame:SetScript("OnEvent", function(self, event, ...)
    if event == "PLAYER_LOGIN" then
        for _, id in ipairs(soundKitIDs) do
            MuteSoundFile(id)
        end
    end
end)
  Reply With Quote