Debuff Sound Notification Addon
Hello,
Im looking for a debuff sound notification addon that can alert me when a buff/debuff is about to wear off. Like imagine using the Tellmewhen addon you can set it to show you the colldown of specific buff/debuff but say in the last remaining 5 seconds it plays an sound notification. The Tellmewhen addon actually has this option but in higher versions of the game and its not compatible with 3.3.5 .
I had similar problem with the PurrPotion addon who gives you visual and sound notification when your health goes low. How ever the option was again available for higher versions of wow and not compatible with 3.3.5 but what I did is some customisations by taking some code from another addon called Proc And Flash and now the addon does makes sound which by the way is fully customisable and it looks like this:
Code:
function PurrPotion_OnUpdate()
local health = UnitHealth("player");
local healthPct = health / UnitHealthMax("player");
if (healthPct > 0.6) then
LastHealth = 0;
return;
end
if (LastHealth == 0) then
PurrBox:AddMessage("WARNING LOW HEALTH", 1, 0, 0, 1, 3);
PlaySoundFile("Interface\\AddOns\\PurrPotion\\sounds\\Alaram.mp3");
end
LastHealth = 1;
end
function PurrPotion_OnLoad()
DEFAULT_CHAT_FRAME:AddMessage("PurrPotion engaged!", r, g, b);
end
The line that is important is:
Code:
PlaySoundFile("Interface\\AddOns\\PurrPotion\\sounds\\Alaram.mp3");
I was wondering if it is possible to add something similar on the 3.3.5 version of TellmeWhen for the last remaining 5 seconds of the selected buff/debuff being chosen to be displayed.
I realy, sincerely will appreciate any help. Thank you in advance.