View Single Post
04-14-11, 07:16 AM   #1
Talisia
A Deviate Faerie Dragon
Join Date: Sep 2007
Posts: 15
Pitbull & Lua - Weakened Soul

Hello =)

I have a peice of lua code for my pitbull frames which shows me as a healer my important buffs etc. I am absolutely rubbish with Lua and picked the code up somewhere on the web (Ty!). I have been trying to incorporate the Weakened Soul Debuff but I just can not get it to work =(

I have hit a dead end and for the life of me can not work it out and I was hoping some nice person browsing this forum may be able to shed some light on it for me and put me out of my misery! Being a disc priest I have to see this debuff!

This is my code:

local text = ""
local count

if UnitAura(unit, "Renew") ~= nil then
text = text .. format("|cffffff00%s|r", " R ")
end

if UnitAura(unit, "Fear Ward") ~= nil then
text = text .. format("|cff00ff00%s|r","FW ")
end

if UnitAura(unit, "Prayer of Mending") ~= nil then
text = text .. format("%s","PoM ")
end

if UnitAura(unit, "Power Word: Shield") ~= nil then
text = text .. format("|cffffff00%s|r","PW:S ")
end

if UnitAura(unit, "Pain Suppression") ~= nil then
text = text .. format("|cff00ff00%s|r","PS ")
end

if UnitAura(unit, "Soulstone Resurrection") ~= nil then
text = text .. format("|cff00ff00%s|r","SS ")
end

if UnitAura(unit, "Beacon of Light") ~= nil then
text = text .. format("|cff00ff00%s|r","BoL ")
end

if UnitAura(unit, "Hand of Protection") ~= nil then
text = text .. format("|cff00ff00%s|r","HoP ")
end

if UnitAura(unit, "Lifebloom ") ~= nil then
_,_,_,count = UnitAura(unit, "Lifebloom")
text = text .. format("|cffffff00%s|r[%d]","LB",count)
end

return text

Any help offered I sincerely appreciate! =)
  Reply With Quote