View Single Post
04-14-13, 12:49 AM   #7
Akryn
A Firelord
AddOn Author - Click to view addons
Join Date: Mar 2008
Posts: 479
I think it makes more sense to wait for the addon to load, rather than forcing it to load as soon as you log in. It may help your error as well:

Lua Code:
  1. local frame = CreateFrame("frame")
  2. frame:RegisterEvent("ADDON_LOADED")
  3. frame:SetScript("OnEvent", function(self, event, addon)
  4.     if addon == "Blizzard_CompactRaidFrames" then
  5.          CompactRaidFrameManager:SetFrameStrata("LOW")
  6.          self:UnregisterEvent("ADDON_LOADED")
  7.     end
  8. end)

(Edit: fixed).

Last edited by Akryn : 04-14-13 at 02:00 AM.
  Reply With Quote