06/25/09, 10:39 AM
|
#1
|
|
Sledgehammer Emeritus
|
Infraction for Dankz: 2. All opinions should be stated as succinctly as possible.
Post: Mage UI and Add-ons (READ THE FIRST POST)
User: Dankz
Infraction: 2. All opinions should be stated as succinctly as possible.
Points: 1
Administrative Note:
Message to User:
|
It's a good thing you included that giant quote in your post.
|
Original Post:


if not UnitIsFriend(unit,'player') then
local i = 1
local ttw,dam,hit,crit,wisdom,scorch = false,false,false,false,false,false
local tr,tg,tb = 64,64,64
local dr,dg,db = 64,64,64
local hr,hg,hb = 64,64,64
local cr,cg,cb = 64,64,64
local wr,wg,wb = 64,64,64
local sr,sg,sb = 64,64,64
while true do
local name,_,icon = UnitAura(unit,i,"HARMFUL")
if not name then
break
elseif name == "Thunder Clap" then
ttw = true
elseif name == "Infected Wounds" then
ttw = true
elseif name == "Icy Touch" then
ttw = true
elseif name == "Earth and Moon" then
dam = true
elseif name == "Ebon Plague" then
dam = true
elseif name == "Curse of Elements" then
dam = true
elseif name == "Misery" then
hit = true
elseif name == "Faerie Fire" then
hit = true
elseif name == "Totem of Wrath" then
crit = true
elseif name == "Master Poisoner" then
crit = true
elseif name == "Heart of the Crusader" then
crit = true
elseif name == "Judgment of Wisdom" then
wisdom = true
elseif name == "Improved Scorch" then
scorch = true
elseif name == "Winter's Chill" then
scorch = true
elseif name == "Improved Shadowbolt" then
scorch = true
end
i = i + 1
end
if ttw then
tr,tg,tb = 00,255,00
end
if dam then
dr,dg,db = 00,255,00
end
if hit then
hr,hg,hb = 00,255,00
end
if crit then
cr,cg,cb = 00,255,00
end
if wisdom then
wr,wg,wb = 00,255,00
end
if scorch then
sr,sg,sb = 00,255,00
end
return "|cff%02x%02x%02xTtW|r |cff%02x%02x%02xSP|r |cff%02x%02x%02xSH|r |cff%02x%02x%02x3%%|r |cff%02x%02x%02x5%%|r |cff%02x%02x%02xWis|r" ,tr,tg,tb,dr,dg,db,hr,hg,hb,cr,cg,cb,sr,sg,sb,wr,wg,wb
end
|
I'm pretty sure you will want to change Curse of Elements to Curse of the Elements and Faerie Fire to Improved Faerie Fire. Also I cant seen to get Judgment of Wisdom to light up. Hotan does it work for you?
|
|
|
|
|
|