Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- term = require("term")
- comp = require("component")
- sg = comp.getPrimary("stargate")
- local charLookup = {
- "1", "2", "3", "4", "5", "6", "7", "8", "9", "0",
- "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z"
- }
- local addrOut = {
- "1", "1", "1", "1", "1", "1", "1"," 1","1"
- }
- function dial()
- local addr = tostring(addrOut[1]..addrOut[2]..addrOut[3]..addrOut[4]..addrOut[5]..addrOut[6]..addrOut[7]..addrOut[8]..addrOut[9])
- print("Dialing: "..addr)
- sg.dial(addr)
- end
- while true do
- for i, v in ipairs(addrOut) do
- addrOut[i] = charLookup[math.random(1, 36)]
- term.write(addrOut[i])
- os.sleep(.2)
- if i == 9 then
- dial()
- end
- end
- end
Add Comment
Please, Sign In to add comment