Quantcast
WoWInterface - View Single Post - Hide party quest information in Raids
View Single Post
10-07-16, 10:11 PM   #12
gmarco
A Rage Talon Dragon Guard
 
gmarco's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2009
Posts: 310
Hi,
could it be written in this way ?

Lua Code:
  1. local f = CreateFrame("Frame")
  2. f:SetScript("OnEvent", function(self, event, ...)
  3.     if IsInRaid() then
  4.         if event == "PLAYER_REGEN_DISABLED" then
  5.             SetCVar( "showQuestTrackingTooltips", "0", true )
  6.         elseif event == "PLAYER_REGEN_ENABLED" then    
  7.             SetCVar( "showQuestTrackingTooltips", "1", true )
  8.         end
  9.     end
  10. end)
  11. f:RegisterEvent("PLAYER_REGEN_DISABLED")
  12. 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.
__________________
This is Unix-Land. In quiet nights, you can hear the Windows machines reboot.

Last edited by gmarco : 10-07-16 at 11:28 PM.
  Reply With Quote