This is a very small aggro alert addon.
I decided to wrote it mainly because I miss so much the little "AGGRO" sound of another addon "banzai-alert".
The addon uses UNIT_THREAT_SITUATION_UPDATE to check for threat changes.
It simply plays a sound and/or prints in the default chat frame and/or show a frame colored based on unit aggro. The options can be turned on/off indipendently each others.
The aggro level returned are:
descriptions taken from: http://www.wowwiki.com/API_UnitThreatSituation
nil = unit is not on any other unit's threat table.
0 = not tanking anything.
1 = not tanking anything, but have higher threat than tank on at least one unit.
2 = insecurely tanking at least one unit, but not securely tanking anything.
3 = securely tanking at least one unit.
or if you prefer:
descriptions taken from: http://wowprogramming.com/docs/api/UnitThreatSituation
nil = Unit has no threat
0 = Unit has less than 100% raw threat (default UI shows no indicator)
1 = Unit has 100% or higher raw threat but isn't mobUnit's primary
target (default UI shows yellow indicator)
2 = Unit is mobUnit's primary target, and another unit has 100% or
higher raw threat (default UI shows orange indicator)
3 = Unit is mobUnit's primary target, and no other unit has 100% or
higher raw threat (default UI shows red indicator)
Since v0.2 it show also the aggro level of the target in a range 0-100 using UnitDetailedThreatSituation
I know the name is not so beautifull but it was so hard to find a better free :-)
- bump toc for 6.2
- bump toc 6.1
- fix some globals vars
- rewrite saved variables (now uses an array)
- bump toc for 6.0.x
- rewrite most of the code for the configuration panel.
Now aggromon uses true/false instead 1/0 for variables to reflect the CheckButton:SetChecked() change.
If you experience iussues after updating to this release, please visit the option panel in the addon
configuration and press here and there to set the correct settings :-)
- bump toc 5.2
- added the option to enable/disable in PVP zone.
Added the configuration panel (and removed the console cmds)
I want to really thanks Phanx and all the WoWI forum users for their suggestions and inputs on this.
Fix and clean code
Force the "aggro" sound to be played only once for combat session (reducing sound spam)
Removed the code to set sound to 100% for playing sound (I think it didn't work at all :-)
Fixes a typo
Now it show also the aggro level of the target in a range 0-100 using UnitDetailedThreatSituation