Maethoriel wrote:If one does not want to install TJH, try this:
Create a folder in your addon directory, name it "SoundShoR" or what ever you like.
In there, create a new textfile and name it Core.lua (without the .txt), open it with notepad, copy and paste:
- Code: Select all
local playerGUID
local function onPlayerEnteringWorld()
playerGUID = UnitGUID("player")
end
local SPELL_CAST_SUCCESS = "SPELL_CAST_SUCCESS"
local function onCombatLogEvent(_, _, _, event, sourceGUID, _, _, _, _, _, spellId, _, _)
if (sourceGUID == playerGUID) and (event == SPELL_CAST_SUCCESS) and ((spellId == 53600) or (spellId == 61411)) then
PlaySoundFile(YOUR SOUND FILE HERE)
end
end
local eventFrame = CreateFrame("Frame")
eventFrame:SetScript("OnEvent",
function(eventFrame, event, ...)
eventFrame[event](eventFrame, event, ...)
end)
eventFrame.PLAYER_ENTERING_WORLD = onPlayerEnteringWorld
eventFrame:RegisterEvent("PLAYER_ENTERING_WORLD")
eventFrame.COMBAT_LOG_EVENT_UNFILTERED = onCombatLogEvent
eventFrame:RegisterEvent("COMBAT_LOG_EVENT_UNFILTERED")
Create a second textfile, name it "SoundShoR.toc" or the name you gave the folder with .toc as suffix.
Copy and paste:
- Code: Select all
## Interface: 30000
## Title: YOUR TITEL HERE (Name of the folder)
## Notes: YOUR NOTE HERE
## Author: Maethoriel
## Version: 1.0.0
Core.lua
You have to replace YOUR SOUND FILE HERE with the path to what ever sound you want to hear.
Example:
PlaySoundFile("Sound\\Spells\\ShieldWallTarget.wav")
Still haven't found one that i like tough :\
Put this up on WoWI.
Also, /script PlaySoundFile("Sound\\Creature\\Cow\\CowDeath.wav")
