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
or my quests will not be tracking anymore (till next reload ?
Thanks.