View Single Post
03-03-09, 05:28 PM   #842
p3lim
A Pyroguard Emberseer
 
p3lim's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2007
Posts: 1,710
Originally Posted by MoonWitch View Post
Question :

I've been trying to nick p3lim's AFK function and use that tag as base for a few of my own. I'm having some issues understanding a few things.

1.
Code:
self:Tag(name, '[name( )][leader( )][offline( )][afk( )]|cff00ffff[(- )assistname( )][assisticon]')
Why the () and what is their function?
2.
Code:
oUF.Tags["[pws]"] = function(u) return UnitAura(u, "Power Word: Shield") and "PwS" end
oUF.TagEvents["[pws]"] = "UNIT_AURA"
Is this corrert? All I did here was change some stuff without really understanding though LOL
1: Its a suffix to the tag
2: Yes, but please try before asking.