Thread Tools Display Modes
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
01-06-13, 01:42 PM   #22
Kapone
A Deviate Faerie Dragon
AddOn Author - Click to view addons
Join Date: Dec 2011
Posts: 16
yes i i copied wrong code i thought things might have change more then i thought but it was against all logic for me too hide on command.

Despite that my experiments didn't work and i gave up and left it as it is.
so i copied in a haste for lunch and shower too was of my rage ^^
Anyhow, thanks a bunch for the help the code works perfect now, i still don't get it why it didn't work first time i tried the codes u guys provided me with despite numerous ui reloads and game restarts it didnt want too work =/

Thanks again for all answers =)

Last edited by Kapone : 01-06-13 at 01:52 PM.
  Reply With Quote
01-06-13, 03:22 PM   #23
Clamsoda
A Frostmaul Preserver
Join Date: Nov 2011
Posts: 269
Glad you got it working ^^. Let us know if you need anymore help!
  Reply With Quote

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

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