Guest User

Untitled

a guest
Jun 20th, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. local inInstance, instanceType = IsInInstance()
  2. function enableRR(self, event)
  3. if inInstance and (instanceType == "raid" or instanceType == "party") then
  4. raidbuff_reminder:Show()
  5. else
  6. raidbuff_reminder:Hide()
  7. end
  8. end
  9.  
  10. local f = CreateFrame("FRAME")
  11. f:RegisterEvent("ZONE_CHANGED_NEW_AREA", enableRR)
  12. f:RegisterEvent("PARTY_MEMBERS_CHANGED", enableRR)
  13. f:RegisterEvent("RAID_ROSTER_UPDATE", enableRR)
Add Comment
Please, Sign In to add comment