Advertisement
Guest User

Untitled

a guest
Jul 27th, 2017
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.51 KB | None | 0 0
  1.     local customlag = CreateFrame("Frame")
  2.     local int = 10
  3.     local LatencyUpdate = function(self, elapsed)
  4.         int = int - elapsed
  5.         if int < 0 then
  6.             if GetCVar("reducedLagTolerance") ~= tostring(1) then SetCVar("reducedLagTolerance", tostring(1)) end
  7.             if select(3, GetNetStats()) ~= 0 and select(3, GetNetStats()) <= 400 then
  8.                 SetCVar("maxSpellStartRecoveryOffset", tostring(select(3, GetNetStats())))
  9.             end
  10.             int = 10
  11.         end
  12.     end
  13.     customlag:SetScript("OnUpdate", LatencyUpdate)
  14.     LatencyUpdate(customlag, 20)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement