Advertisement
Guest User

Untitled

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