Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local customlag = CreateFrame("Frame")
- local int = 10
- local LatencyUpdate = function(self, elapsed)
- int = int - elapsed
- if int < 0 then
- if GetCVar("reducedLagTolerance") ~= tostring(1) then SetCVar("reducedLagTolerance", tostring(1)) end
- if select(3, GetNetStats()) ~= 0 and select(3, GetNetStats()) <= 400 then
- SetCVar("maxSpellStartRecoveryOffset", tostring(select(3, GetNetStats())))
- end
- int = 10
- end
- end
- customlag:SetScript("OnUpdate", LatencyUpdate)
- LatencyUpdate(customlag, 20)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement