Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- oldPE = os.pullEvent
- os.pullEvent = os.pullEventRaw
- rednet.open("top")
- term.setBackgroundColor(colors.white)
- term.clear()
- term.setTextColor(colors.blue)
- term.setCursorPos(1,2)
- print(" Invincible Faction Login Domain")
- term.setCursorPos(1,4)
- write(" Username: ")
- user = read()
- term.setCursorPos(1,6)
- write(" Password: ")
- pass = read("*")
- rednet.send(1582,{user,pass})
- sleep(0.25)
- while true do
- local id, msg = rednet.receive(2)
- if id == 1582 and msg == os.getComputerID().."yes" then
- term.setBackgroundColor(colors.black)
- term.clear()
- term.setCursorPos(1,1)
- term.setTextColor(colors.yellow)
- print( os.version() )
- os.pullEvent = oldPE
- return
- elseif id == 1582 and msg == os.getComputerID().."no" then
- os.reboot()
- else
- term.clear()
- term.setCursorPos(1,1)
- print("There was an error communicating with the server.")
- term.setCursorPos(1,2)
- print("If this happens again, contact a system administrator.")
- sleep(5)
- os.reboot()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement