Quantcast Stuf Unit Frames - Display Res Status - WoWInterface
Thread Tools Display Modes
07-25-18, 09:10 PM   #1
Heather00724
A Defias Bandit
Join Date: Oct 2008
Posts: 2
Stuf Unit Frames - Display Res Status

I'm switching over to Stuf Unit frames and am trying to make it show if the party member has a rez pending.

I'd like it to show the resurrecting Icon from default Blizzard Raid Frames. I started with trying to just make it say Pending or Not Pending.

So far I've managed this, and it doesn't work.

function(unit)
if UnitExists(unit) and UnitHasIncomingResurrection then return "Pending" else return "not pending"
end
end
Any help would be appreciated.
  Reply With Quote
07-26-18, 01:39 PM   #2
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
Featured
Join Date: Oct 2006
Posts: 10,530
You're not actually calling the resurrection query function, you're just checking to see if the function exists. Add () after it.

http://lua-users.org/wiki/FunctionsTutorial
__________________
"You'd be surprised how many people violate this simple principle every day of their lives and try to fit square pegs into round holes, ignoring the clear reality that Things Are As They Are." -Benjamin Hoff, The Tao of Pooh

  Reply With Quote
07-27-18, 06:48 PM   #3
Heather00724
A Defias Bandit
Join Date: Oct 2008
Posts: 2
I guess I dont really understand what that means, I read the article but I dont know how to apply it to what I'm trying to accomplish.
  Reply With Quote
07-27-18, 07:49 PM   #4
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
Featured
Join Date: Oct 2006
Posts: 10,530
Lua Code:
  1. function(unit)
  2.      if UnitExists(unit) and UnitHasIncomingResurrection(unit) then
  3.           return "Pending"
  4.      else
  5.           return "not pending"
  6.      end
  7. end
__________________
"You'd be surprised how many people violate this simple principle every day of their lives and try to fit square pegs into round holes, ignoring the clear reality that Things Are As They Are." -Benjamin Hoff, The Tao of Pooh

  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » AddOn Help/Support » Stuf Unit Frames - Display Res Status

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off