Advertisement
Guest User

monitor test greslime

a guest
Nov 1st, 2017
167
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.05 KB | None | 0 0
  1. monitor = peripheral.wrap("top")
  2. print("Please enter your Username and Password")
  3. print("Username:")
  4. username = read()
  5. Print("Password:")
  6. password = read()
  7. if username == "GreSlime" and password == "lala123" then
  8. monitor.write ("Welcome Greslime")
  9. monitor.clear
  10. monitor.write ("Please make your choice.")
  11. sleep(1)
  12. monitor.write ("Press 1 for to load the Operating system.")
  13. sleep(1)
  14. monitor.write ("Press 2 for to load the reactor program.")
  15. sleep(1)
  16. monitor.write ("Press 3 for to check your mail.")
  17. sleep(1)
  18. monitor.write ("Press 4 for to reboot.")
  19. input = read()
  20. monitor.write("Loading")
  21. sleep(2)
  22. monitor.write("Loading.")
  23. sleep(2)
  24. monitor.write("Loading..")
  25. sleep(2)
  26. monitor.write("Loading...")
  27. sleep(2)
  28. monitor.write("Loading....")
  29.  
  30. if input == "1" then shell.run("monitor", "top", "OS")
  31. if input == "2" then shell.run("monitor", "top", "reactorapp")
  32. if input == "3" then monitor.write("No new mail.")
  33. if input == "4" then "shell.run("reboot")
  34.  
  35. else
  36. print("Your Username or Password is incorrect.")
  37. sleep(5)
  38. shell.run("test")
  39. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement