View Single Post
05-28-11, 04:24 AM   #13
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2008
Posts: 1,740
Isn't that exactly what I wrote?

Dawn wrote it in the other thread and oUF_Simple2 has a tag tutorial aswell.

Coypied from Dawn
lua Code:
  1. local MAELSTROM_WEAPON = GetSpellInfo(53817)
  2. oUF.Tags["maelstrom"] = function(unit)
  3.     if unit == "player" then
  4.         local name, _, icon, count = UnitBuff("player", MAELSTROM_WEAPON)
  5.         return name and count
  6.     end
  7. end
  8. oUF.TagEvents["maelstrom"] = "UNIT_AURA UNIT_HEALTH"

The "UNIT_AURA UNIT_HEALTH" part is where you have your events that will call the tag.
__________________
| Simple is beautiful.
| WoWI AddOns | GitHub | Zork (WoW)

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)

Last edited by zork : 05-28-11 at 04:28 AM.
  Reply With Quote