View Single Post
01-05-13, 03:26 PM   #17
Clamsoda
A Frostmaul Preserver
Join Date: Nov 2011
Posts: 269
GetNumRaidMembers has been replaced with GetNumGroupMembers and IsInRaid.

Use the IsInRaid() boolean to make sure you are in a raid, and use GetNumGroupMembers to replace the functionality of GetNumRaidMembers.

Try:

Lua Code:
  1. local raid = GetNumGroupMembers()
  2. if IsInRaid() and raid >= 1 and raid <= 10 then
  3.      self:Show()
  4. else
  5.      self:Hide()
  6. end

Expand the concepts to where ever else you need.

Edit: I suppose you could remove the "raid" variable, and change the IF statement to:

Lua Code:
  1. if IsInRaid() and GetNumGroupMembers() >=1 and <= 10 then

Last edited by Clamsoda : 01-05-13 at 03:34 PM.
  Reply With Quote