Originally Posted by Talisia
Once again I am here to ask for help with lua texts for my pitbull frames. I have no real clue when it comes to this sort of thing but usually I can pick away at some code I find to get my desired result. I have been searching for 2 days to try and find what I am after this time but to no avail! =(
I'm lookign for a way to do the following:
If 'missing' any priest buff, Foritude, Shadow Protection or Vampiric Embrace to show letters (i.e. F, SP or VE) on my player frame.
I was hoping aswell if I could find/copy a similar code I could also make it work to show when I am missing other auras, such as Inner Will/Fire and also auras for my Paladin.
I would be so grateful if some nice person was to help me with this, has me totally banging my head on the desk =(
Thanks in advance!
|
This is untested, but maybe something like this:
Code:
local AL = {"Fortitude", "Shadow Protection"}
local AS = {"F", "SP"}
local AR, cnt = "", 0
for k,v in pairs(AL) do
if not UnitAura(unit, v) then
cnt = cnt + 1
AR = (cnt > 1) and (AR .. " " .. AS[k]) or AS[k]
end
end
return AR
Don't forget to select UNIT_AURA event on that Lua Text.