View Single Post
04-04-12, 10:30 AM   #4
Zirgo
A Fallenroot Satyr
AddOn Compiler - Click to view compilations
Join Date: Nov 2007
Posts: 20
thank you so much, guys. that really helped!

i just need help with that party/raid forming script now.

also, is there a reason the panels take about a second delay to appear after selecting a targets target?

EDIT: I got it to work by doing:

Lua Code:
  1. OnLoad
  2.  
  3. self:RegisterEvent("PLAYER_ENTERING_WORLD")
  4. self:RegisterEvent("PARTY_MEMBERS_CHANGED")
  5.  
  6. OnEvent
  7.  
  8. local pmems = GetNumPartyMembers()
  9. local rmems = GetNumRaidMembers()
  10. if (pmems < 1) then
  11. self:Hide()
  12. elseif (pmems > 0) then
  13. self:Show()
  14. end
  15.  
  16. if (rmems > 5) then
  17. self:Hide()
  18. end

Last edited by Zirgo : 04-04-12 at 12:59 PM.
  Reply With Quote