Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Quest Privacy Addon: Register Farm
- --Does not require internet access, as none of these are actually retrieved from the web
- local tArgs = {...}
- local function sprint(t)
- if tArgs[2] ~= "silent" then
- print(t)
- end
- end
- sprint("Quest Privacy Addon: Register Farm")
- local count = tonumber(tArgs[1]) or 20
- sprint("Generating " .. count .. " registers")
- if tArgs[2] ~= "silent" then
- sleep(1)
- end
- local open = fs.open(".quest_ips", "w")
- local characters = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890"
- local p = count/100
- open.writeLine(count)
- local time = os.clock()
- for i = 1, count do
- local t = ""
- for i = 1, 15 do
- local c = math.random(1, #characters)
- t = t .. characters:sub(c, c)
- end
- open.writeLine(t)
- sprint(i .. "/" .. count .. " (" .. i/p .. "%)")
- sleep(0)
- end
- open.close()
- local now = os.clock()
- sprint("Generated " .. count .. " registers in " .. now-time .. " second(s).")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement