Advertisement
Guest User

Untitled

a guest
Jul 21st, 2017
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.97 KB | None | 0 0
  1. SetCVar("cameradistancemaxfactor",4)
  2. SetCVar("bgloadthrottle",0)
  3. SetCVar("combatLogOn",0)
  4. SetCVar("CombatLogPeriodicSpells",0)
  5.  
  6. local myFrame = CreateFrame("Frame")
  7. myFrame:SetScript("OnEvent", function(self, event, ...)    self[event](self, event, ...) end)
  8. myFrame:RegisterEvent("PLAYER_LOGIN")
  9. function myFrame:PLAYER_LOGIN(...)
  10. COMBATLOG:SetScript("OnUpdate", nil) COMBATLOG:SetScript("OnEvent", nil) COMBATLOG:SetScript("OnShow", nil) COMBATLOG:UnregisterAllEvents()    CombatLogUpdateFrame:SetScript("OnUpdate", nil)    CombatLogUpdateFrame:UnregisterAllEvents()
  11. end
  12.  
  13. myFrame = CreateFrame("Frame")
  14. myFrame:SetScript("OnEvent", function(self, event, ...)    self[event](self, event, ...) end)
  15. myFrame:RegisterEvent("PLAYER_ENTERING_WORLD")
  16. function myFrame:PLAYER_ENTERING_WORLD(...)
  17. local _, instanceType = IsInInstance()
  18. if instanceType == "raid" or instanceType == "arena" then
  19. SetCVar("farclip",400)
  20. elseif instanceType == "none"then
  21. SetCVar("farclip",1000)
  22. end
  23. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement