View Single Post
01-24-14, 02:00 PM   #1
Nuru0190
A Fallenroot Satyr
Join Date: Jan 2014
Posts: 24
HELP: An eccho issue with a sound addon

Hi,

Recently, i downloaded for my monk an addon called "hokuto no monk". It's a simple addon with no interface that adds sounds for certain "spells". For example, when using "fists of fury", it will trigger a Bruce Lee-like "aaaaatatatatata" kind of sound, among others.
I wasn't satisfied with the overall sound quality or the few amount of sounds (5 or 6 total), so i decided to download and use my own. I modified the LUA file accordingly in order to add all my new sound files (16 total directly ripped from the PS2 Hokuto no Ken game).

Everything is working well, except for the aforementioned "aaaaaatatatata" sound associated with "fists of fury". That particular sound file for that particular spell is ALWAYS ecchoed, whatever the sound file i choose to associate with "fists of fury". It does that only for that spell, and not for any other. It was also doing that with the original sound file chosen by the mod's author.
When i checked the LUA file, there was no difference that i could tell between say... the "fists of fury" line, and the "paralysis" or "touch of death" lines... They're exactly the same, except for the spell name.


So my question is: why is there an eccho with the sound file associated with "fists of fury"? And also, how to remove it? I literally looked over the internet for 2 days now, i completely uninstalled and reinstalled all my addons, deleted the WTF and cache folders, tried to tweak the LUA file again and again.... and it just doesn't seem to fix the problem.


Any help would be REALLY appreciated!


Below, you'll find a copy of the LUA file (it's quite short):
(the forum won't let me copy paste it exactly the way it is, but any person familiar with LUA files will understand i guess)


local frame = CreateFrame("FRAME", "okutonomonk");
frame:RegisterEvent("COMBAT_LOG_EVENT_UNFILTERED");


local function eventHandler(self, event, ...)
if event=="COMBAT_LOG_EVENT_UNFILTERED" then
local timestamp, type, hideCaster, sourceGUID, sourceName, sourceFlags, sourceFlags2, destGUID, destName, destFlags, destFlags2 = select(1, ...)
local player = UnitGUID("player")
if type=="SPELL_CAST_SUCCESS" then
local spellId, spellName, spellSchool = select(12, ...));
local spellLink = GetSpellLink(spellId)
if spellName=="Fists of Fury" and sourceGUID==player then
PlaySoundFile("Interface\\AddOns\\HokutoNoMonk\\sounds\\Fists of Fury.ogg", "SFX")
end
if spellName=="Blackout Kick" and sourceGUID==player then
PlaySoundFile("Interface\\AddOns\\HokutoNoMonk\\sounds\\Blackout Kick.ogg", "SFX")
end
if spellName=="Expel Harm" and sourceGUID==player then
PlaySoundFile("Interface\\AddOns\\HokutoNoMonk\\sounds\\Expel Harm.ogg", "SFX")
end
if spellName=="Flying Serpent Kick" and sourceGUID==player then
PlaySoundFile("Interface\\AddOns\\HokutoNoMonk\\sounds\\Flying Serpent Kick.ogg", "SFX")
end
if spellName=="Grapple Weapon" and sourceGUID==player then
PlaySoundFile("Interface\\AddOns\\HokutoNoMonk\\sounds\\Grapple Weapon.ogg", "SFX")
end
if spellName=="Resuscitate" and sourceGUID==player then
PlaySoundFile("Interface\\AddOns\\HokutoNoMonk\\sounds\\Resuscitate.ogg", "SFX")
end
if spellName=="Rising Sun Kick" and sourceGUID==player then
PlaySoundFile("Interface\\AddOns\\HokutoNoMonk\\sounds\\Rising Sun Kick.ogg", "SFX")
end
if spellName=="Spear Hand Strike" and sourceGUID==player then
PlaySoundFile("Interface\\AddOns\\HokutoNoMonk\\sounds\\Spear Hand Strike.ogg", "SFX")
end
if spellName=="Spinning Crane Kick" and sourceGUID==player then
PlaySoundFile("Interface\\AddOns\\HokutoNoMonk\\sounds\\Spinning Crane Kick.ogg", "SFX")
end
if spellName=="Tiger Palm" and sourceGUID==player then
PlaySoundFile("Interface\\AddOns\\HokutoNoMonk\\sounds\\Tiger Palm.ogg", "SFX")
end
if spellName=="Touch of Karma" and sourceGUID==player then
PlaySoundFile("Interface\\AddOns\\HokutoNoMonk\\sounds\\Touch of Karma.ogg", "SFX")
end
if spellName=="Zen Meditation" and sourceGUID==player then
PlaySoundFile("Interface\\AddOns\\HokutoNoMonk\\sounds\\Zen Meditation.ogg", "SFX")
end
if spellName=="Paralysis" and sourceGUID==player then
PlaySoundFile("Interface\\AddOns\\HokutoNoMonk\\sounds\\Paralysis.ogg", "SFX")
end
if spellName=="Fortifying Brew" and sourceGUID==player then
PlaySoundFile("Interface\\AddOns\\HokutoNoMonk\\sounds\\Fortifying Brew.ogg", "SFX")
end
if spellName=="Touch of Death" and sourceGUID==player then
PlaySoundFile("Interface\\AddOns\\HokutoNoMonk\\sounds\\Touch of Death.ogg", "SFX")
end
if spellName=="Tigereye Brew" and sourceGUID==player then
PlaySoundFile("Interface\\AddOns\\HokutoNoMonk\\sounds\\Tigereye Brew.ogg", "SFX")
end
end
end

end

frame:SetScript("OnEvent", eventHandler);

Last edited by Nuru0190 : 01-24-14 at 02:09 PM.
  Reply With Quote