Thread: Stuf + Threat
View Single Post
06-10-11, 06:59 AM   #24
Canities
A Wyrmkin Dreamwalker
Join Date: Oct 2007
Posts: 54
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.

Last edited by Canities : 06-10-11 at 10:13 AM.
  Reply With Quote