Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local component = require("component")
- local term = require("term")
- local shell = require("shell")
- local gpu = component.gpu
- local modem = component.modem
- local computer = component.computer
- local w, h = gpu.getResolution()
- function clear ()
- gpu.fill(0, 0, w, h, " ")
- term.setCursor(1, 1)
- end
- clear()
- print("Attempting to establish network connection.")
- os.sleep(1)
- clear()
- print("Attempting to establish network connection..")
- os.sleep(1)
- clear()
- print("Attempting to establish network connection...")
- os.sleep(1)
- clear()
- open = modem.open(113)
- if(open == true) then
- computer.beep()
- print("Network connection established")
- os.sleep(2)
- clear()
- shell.execute("AuthServer.lua")
- else
- netopen = modem.isOpen(113)
- if(netopen == true) then
- print("Network connection already established!")
- os.sleep(2)
- clear()
- shell.execute("AuthServer.lua")
- else
- computer.beep()
- print("Network connection couldn't be established!")
- os.sleep(1)
- computer.beep()
- os.sleep(1)
- computer.stop(true)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement