added the correct events
Kelly Crabbé [12-04-13 - 13:24]
diff --git a/instancing.lua b/instancing.lua
index 77fb94d..7d9c2a4 100755
--- a/instancing.lua
+++ b/instancing.lua
@@ -3,8 +3,6 @@
local _, class = UnitClass("player")
local color = RAID_CLASS_COLORS[class]
local id = CreateFrame("Frame", nil, UIParent)
-LookInTehCorner:RegisterEvent("PLAYER_ENTERING_WORLD")
-LookInTehCorner:RegisterEvent("PLAYER_DIFFICULTY_CHANGED")
local idtext = id:CreateFontString(nil, "OVERLAY")
idtext:SetPoint("TOPRIGHT", Minimap, "TOPRIGHT", 0, -4)
@@ -57,4 +55,11 @@ function indiff()
idtext:SetText("")
end
end
-id:SetScript("OnEvent", function() indiff() end)
\ No newline at end of file
+id:SetScript("OnEvent", function() indiff() end)
+id:RegisterEvent"PLAYER_DIFFICULTY_CHANGED"
+id:RegisterEvent"UPDATE_INSTANCE_INFO"
+id:RegisterEvent"GROUP_ROSTER_UPDATE"
+id:RegisterEvent"PLAYER_GUILD_UPDATE"
+id:RegisterEvent"PARTY_MEMBER_ENABLE"
+id:RegisterEvent"PARTY_MEMBER_DISABLE"
+id:RegisterEvent"GUILD_PARTY_STATE_UPDATED"
\ No newline at end of file