maxderopnl

MyOS 1.0 CC

Sep 26th, 2014
205
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.12 KB | None | 0 0
  1. --All coded by maxderopnl
  2.  
  3. term.setBackgroundColor(colors.blue)
  4. term.clear()
  5.  
  6. term.setCursorPos(15,5)
  7. textutils.slowPrint("Welcome to MyOS 1.0!")
  8. term.setCursorPos(15,6)
  9. print("standard password: password")
  10. term.setCursorPos(15,7)
  11. print("Please enter your password")
  12. term.setCursorPos(15,8)
  13. write("Password: ")
  14.  
  15. local input = read()
  16.  
  17. if input == "password" then
  18. term.setCursorPos(15,9)
  19. print("Correct password")
  20. sleep(2)
  21. term.clear()
  22. term.setCursorPos(15,1)
  23. print("Welcome to the menu")
  24. term.setCursorPos(15,2)
  25. print("1.paint(you need a right monitor!!!)")
  26. term.setCursorPos(15,3)
  27. print("2.settings")
  28. term.setCursorPos(15,4)
  29. print("3.shell")
  30. term.setCursorPos(15,5)
  31. print("-----------------")
  32. term.setCursorPos(15,6)
  33.  
  34. local input = read()
  35.  
  36. if input == "1" then
  37. shell.run("monitor right paint paintfile")
  38. sleep(2)
  39. shell.run("myos")
  40. else if input == "2" then
  41. shell.run("edit myos")
  42. sleep(2)
  43. shell.run("myos")
  44. else if input == "3" then
  45. shell.run("shell")
  46. print("to come back to the os type: myos")
  47. end
  48. end
  49. end
  50.  
  51. else
  52. term.setCursorPos(15,9)
  53. print("Wrong passcode")
  54. sleep(2)
  55. os.reboot()
  56. end
Advertisement
Add Comment
Please, Sign In to add comment