Hi,
could it be written in this way ?
Lua Code:
local f = CreateFrame("Frame")
f:SetScript("OnEvent", function(self, event, ...)
if IsInRaid() then
if event == "PLAYER_REGEN_DISABLED" then
SetCVar( "showQuestTrackingTooltips", "0", true )
elseif event == "PLAYER_REGEN_ENABLED" then
SetCVar( "showQuestTrackingTooltips", "1", true )
end
end
end)
f:RegisterEvent("PLAYER_REGEN_DISABLED")
f:RegisterEvent("PLAYER_REGEN_ENABLED")
This should works but I have not to be removed from the raid in combat
![Smile](//cdn-wow.mmoui.com/images/style_mmoi_wowi2/smilies/smile.gif)
or my quests will not be tracking anymore (till next reload ?
Thanks.