Quantcast
WoWInterface - View Single Post - Play only Addon Sounds
View Single Post
04-20-17, 08:27 AM   #5
Ketho
A Molten Giant
 
Ketho's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2010
Posts: 946
Here is an example script to create empty sound files from a Lua table

You need to run Lua for this https://www.lua.org/download.html
Lua Code:
  1. local t = {
  2.     "Sound\\Ambience\\GhostState.ogg",
  3.     "Sound\\Ambience\\GlueScreen\\GlueScreenLogin.ogg",
  4.     "Sound\\Ambience\\GlueScreen\\Wrath_Login_1.ogg",
  5.     "Sound\\Ambience\\GlueScreen\\Wrath_Login_2.ogg",
  6.     "Sound\\Ambience\\GlueScreen\\Wrath_Login_3.ogg",
  7.     "Sound\\Ambience\\GlueScreen\\Wrath_Login_4.ogg",
  8.     "Sound\\Ambience\\UndwaterLoop.ogg",
  9.     "Sound\\Ambience\\Water\\GreenSlimeFallsLoop1.ogg",
  10.     "Sound\\Ambience\\Water\\GreenSlimeLoop1.ogg",
  11. }
  12.  
  13. local created = {}
  14.  
  15. for k, v in pairs(t) do
  16.     local dir, file = string.match(v, "(.+)\\(.-)%.")
  17.     if dir then
  18.         if not created[dir] then
  19.             os.execute("mkdir \""..dir.."\"")
  20.             created[dir] = true
  21.         end
  22.         io.open(dir.."\\"..file..".ogg", "w"):close()
  23.     end
  24. end

Otherwise you can download the (7.1.5 listfile) empty sound files here
https://drive.google.com/file/d/0B72...Wl3M3phTzlIQ00

I forgot all the .mp3 files (music) but you can easily toggle music off
  Reply With Quote