Cant remember where i got this from but it might help with the showing of power/mana issue for stuf...
Code:
local pType, pTypeStr = UnitPowerType(unit)
local pPower = UnitPower(unit, pType)
if pType == 1 || pType == 3 || pType == 6 then
-- Rage, Energy, RP
if pPower > 0 then
-- do whatever here for displaying
end
else
-- energy is mana etc
if pPower < UnitMaxPower(unit, pType) then
-- show mana etc stuff here
end
end
Actually i found where i got that peice of cade, its on another thread on the forum:
Stuf Unit LUA help which has a load more custom LUA for stUF for anyone thats intrested.