osmarks

basenet loader thing

May 8th, 2020
305
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.68 KB | None | 0 0
  1. --[[
  2. local basenet
  3. local function try()
  4.     local h, e = http.get "https://pastebin.com/raw/QnFKq9pE"
  5.     if not h then return false, e end
  6.     local x = h.readAll()
  7.     local f, e = load(x)
  8.     if not f then return false, e end
  9.     return pcall(f)
  10. end
  11. for i = 0, 8 do
  12.     local ok, res = try()
  13.     if not ok then printError(res) sleep(math.pow(2, i))
  14.     else basenet = res break end
  15. end
  16. ]]
  17.  
  18. local basenet;do local function b()local c,d=http.get"https://pastebin.com/raw/QnFKq9pE"if not c then return false,d end;local e=c.readAll()local f,d=load(e)if not f then return false,d end;return pcall(f)end;for g=0,8 do local h,i=b()if not h then printError(i)sleep(math.pow(2,g))else basenet=i;break end end end
Add Comment
Please, Sign In to add comment