Guest User

startup

a guest
Jan 5th, 2013
233
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.63 KB | None | 0 0
  1. rednet.open("top")
  2.  
  3. term.clear()
  4. term.setCursorPos(18,8)
  5. print("Username: ")
  6. term.setCursorPos(18,9)
  7. input = read()
  8. rednet.send(149, input)
  9. id, message = rednet.receive()
  10. term.clear()
  11. if message == ("failuser") then
  12. term.setCursorPos(13,8)
  13. print("Username is not on Record!")
  14. sleep(3)
  15. os.shutdown()
  16. else
  17. term.setCursorPos(18,8)
  18. print(message)
  19. term.setCursorPos(18,9)
  20. input2 = read("*")
  21. sleep(0.5)
  22. rednet.send(id, input2)
  23. term.clear()
  24. id2, msg = rednet.receive()
  25. if msg == ("failpass") then
  26. term.setCursorPos(13,8)
  27. print("Failed to Authenticate Password!")
  28. sleep(2)
  29. os.shutdown()
  30. else
  31. shell.run("SryShell")
  32. end
  33. end
Advertisement
Add Comment
Please, Sign In to add comment