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)