Download
(26 Kb)
Download
Updated: 10-25-10 02:38 PM
Pictures
File Info
Updated:10-25-10 02:38 PM
Created:10-25-10 02:38 PM
Downloads:1,398
Favorites:2
MD5:
HolyPowerNotify
Version: 0.1
by: Kitsab [More]
Holy Power Notify

is a very light weigth Addon (3kB Code) + ~20kB Sound File

Function:
Only works on paladin charakters!
This addon is playing a Sound when Holy Power reaches 3 charges. The sound will be repeated everytime the player is casting a spell that adds holy power until the holy power is discharged by an effect.

Configuration:
If the sound is not your choice, replace the "sound.ogg" file in the folder "\Interface\Addons\HolyPower\Notify" by your own sound, I guess it should be formated to ".ogg".
No ingame configuration at the moment.

Installation:
Copy the HolyPowerNotify.zip into "Interface\Addons" folder and select "extract here".

Have fun with it!

*Note!
At the moment there's a known bug reported by Blizzard.
Addons aren't able to play sounds if the sound setting "sound effects" is not selected and/or the "sound effect volume" is set to zero. Over all volume must also be not zero!
Optional Files (1)
File Name
Version
Size
Author
Date
Type
1.0
137kB
03-21-12 02:32 PM
Patch


Post A Reply Comment Options
Unread 01-23-11, 06:03 AM  
darkstar123456
A Kobold Labourer

Forum posts: 0
File comments: 6
Uploads: 0
Update : stop sound flood

Hello,

I really like your addon ! I was using MSBT (that does the same thing) but it was taking too much memory so I decided to find an addon doing just the sound

BUT, I found the spam sound very annoying so I decided to update your addon.

This file play sound only ONE time after reached the 3 Holy Power. If you have
the prot talent "Eternal Glory", it will play 2 times because you :
1 : use Holy Power
2 : re-get 3 Holy Power

This is my .lua :
Code:
local version = 0.2;
local playerClass, englishClass = UnitClass("player");
local playSound = 1;

if (englishClass == "PALADIN") then
	function HolyPowerNotify_OnLoad(self)
		DEFAULT_CHAT_FRAME:AddMessage("|cffffffffHolyPowerNotify "..version.." loaded.");
	end
	
	HolyPowerNotify = {};

	function HolyPowerNotify_OnEvent()
		if (UnitPower("player", 9) >= 3) then
			if (playSound == 1) then
				PlaySoundFile("Interface\\AddOns\\HolyPowerNotify\\LowHealth.mp3");
				playSound = 0;
			end
		end
		
		if (UnitPower("player", 9) < 3) then
			playSound = 1;
		end
	end
else
	function HolyPowerNotify_OnLoad(self)
		DEFAULT_CHAT_FRAME:AddMessage("|cffffffffYou are not Paladin. HolyPowerNotify NOT loaded.");
	end
end
As you can see, I also changed the sound file for the MSBT's one and added a message for non paladin
Last edited by darkstar123456 : 01-23-11 at 06:03 AM.
darkstar123456 is offline Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: