Originally Posted by epic
Great contributions guys, these have vastly improved my gameplay, and of course help pretty-up my UI. However, I have 2 queries:
Is there any dog tag that could perhaps help me determine which auras are mine (Mid-raid and I realised the text-auras I was using to track my HoTs were showing another Druid's). I did try searching for some kind of 'ismine' tag, but to no avail.
Any addon that could display dogtags independent of the unitframe, as to scatter useless information about my screen.
I would love to learn the LUA counterpart, but whenever I begin, it just totally eludes me.
Regards.
|
Here's how I check to see if it's a buff that I cast (This was with Shadowed Unit Frames):
if UnitAura(unit, "Wild Growth") then
local _,_,_,_,_,_,timeleft,caster = UnitAura(unit, "Wild Growth")
if caster == "player" then
local rem = - (GetTime() - timeleft)
rem = string.format("%d",rem)
wild = "|cffffff00[" .. rem .. "]|r"
end
end
Basically, you just want to get the value of unitCaster from UnitAura and check to see whether or not it's "player" meaning yourself. This particular bit of code also gets the time remaining on the buff and sets a variable with that information and a color code to be spit out later on.
Here's
more info on the UnitAura() function, and the
rest of the example on how to use the code above.
You might check out either
STUF or
SUF if you're interested in divorcing the tags a bit aways from your frame.