Originally Posted by scudetto
not working
shows everything, but eclipse proc 
I've tried to reinstall, delete all configs, even delete all addons (and installing only the latest Squawk version), but nothing  (
|
I'd need an error log to work off of before I'd have any idea of how to fix it.
I was asked in a PM about adding sounds when Eclipse procs. Ironically, SAA already had sounds imported, it just wasn't doing anything with them, so hacking it in isn't too difficult. I did promise someone I'd add it into the mod proper, though, so I'll work on that over the next couple days (and will probably add the order control, too).
To get sounds into SAA:
1.) You'll need to figure out which sounds SAA has available. This should be whatever your SharedMedia has access to, but there may also be more. Luckily, it's fairly easy to find - with WoW running, type the following into the chat box
/run for k,v in pairs(SquawkAndAwe.sounds) do SquawkAndAwe:Print(v.." ") end
You'll get a listing of all of the sounds SAA has access to. Most of these should be familiar from other addons such as BW, Parrot, etc. so if you want to listen to them to pick out which one you want to use, go into one of them and select it (getting the sound to play from the chat box is a lot tougher).
2.) Once you know what sound you want to use (or if you have no other way of testing them out), insert the following code:
PlaySoundFile(media:Fetch("sound", "THE NAME OF YOUR SOUND HERE")
at both lines 369 and 373, replacing the obvious text with the name you grabbed from step 1, keeping the quotes. Your UNIT_AURA() function should then look something like:
function SquawkAndAwe:UNIT_AURA(event,id)
if id == "player" and not SquawkAndAwe.ActiveEclipseBuff then
local _,_,_,_,_,_,_,_,_,_,spellID = UnitBuff("player",SquawkAndAwe.combat.procs.Eclipse.name);
if spellID == SquawkAndAwe.combat.procs.Eclipse.id then
SquawkAndAwe.ActiveEclipseBuff = true
PlaySoundFile(media:Fetch("sound", "ping"))
SquawkAndAwe:ProcBars("Eclipse", SquawkAndAwe.combat.procs.Eclipse)
elseif spellID == SquawkAndAwe.combat.procs.Eclipsew.id then
SquawkAndAwe.ActiveEclipseBuff = true
PlaySoundFile(media:Fetch("sound", "ping"))
SquawkAndAwe:ProcBars("Eclipsew", SquawkAndAwe.combat.procs.Eclipsew)
end
end -- if id == "player"
end -- function SAA:UNIT_AURA()
Note that all of this is drycoded, so if it doesn't work, let me know what errors you get and I'll adjust the instructions accordingly.