View Single Post
10-05-16, 05:24 AM   #7
pas06
A Theradrim Guardian
Join Date: Apr 2009
Posts: 62
i am not very good at this, but wouldn't something like this work?
Code:
f=CreateFrame("Frame")
f:RegisterEvent("PLAYER_ENTERING_WORLD ")
f:SetScript("OnEvent",function(self,event)
local _,instanceType = GetInstanceInfo()

	if instanceType == "raid" then
		SetCVar(showQuestTrackingTooltips, 0)
	else
		SetCVar(showQuestTrackingTooltips, 1)
	end
end)
-- should work in (raid) instances
or
Code:
f=CreateFrame("Frame")
f:RegisterEvent("GROUP_ROSTER_UPDATE")
f:SetScript("OnEvent",function(self,event)
	if IsInRaid() then
		SetCVar(showQuestTrackingTooltips, 0)
	else
		SetCVar(showQuestTrackingTooltips, 1)
	end
end)
--should work in the world when in a raid
please correct me if i am wrong
  Reply With Quote