Thread Tools Display Modes
Prev Previous Post   Next Post Next
01-06-13, 12:49 PM   #21
Clamsoda
A Frostmaul Preserver
Join Date: Nov 2011
Posts: 269
10 man:

Consider the logic: If in a raid, and the amount of group members is greater than, or equal to 1, and less than, or equal to 10, show. Else, hide.

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

25 man:

Consider the logic: If in a raid, and the amount of group members is greater than, or equal to 11(1 more than 10 man), and less than, or equal to 25, show. Else, hide.

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

Your issue is that your IF logic isn't representing the right amount of group members. Rather than re-thinking your code logic, take what USED to work, and supplement it with the new API.

Last edited by Clamsoda : 01-06-13 at 12:52 PM.
  Reply With Quote
 

WoWInterface » AddOns, Compilations, Macros » AddOn Help/Support » A little script help for kgpanels


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