Quantcast
WoWInterface - View Single Post - Hide party quest information in Raids
View Single Post
10-07-16, 10:24 AM   #11
pas06
A Theradrim Guardian
Join Date: Apr 2009
Posts: 61
so something like this?
Code:
local f=CreateFrame("Frame")
f:RegisterEvent("GROUP_ROSTER_UPDATE")
f:SetScript("OnEvent",function(self,event)
	if (event == "GROUP_ROSTER_UPDATE") then
		if InCombatLockdown() then
			f:RegisterEvent("PLAYER_REGEN_ENABLED")
		else
			SetCVar("showQuestTrackingTooltips", IsInRaid() and 0 or 1)
		end
	else
		SetCVar("showQuestTrackingTooltips", IsInRaid() and 0 or 1)
		f:UnregisterEvent("PLAYER_REGEN_ENABLED")
	end
end)

Last edited by pas06 : 10-08-16 at 01:26 AM. Reason: Added missing then
  Reply With Quote