Advertisement
Guest User

Untitled

a guest
Feb 20th, 2017
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.56 KB | None | 0 0
  1. term.clear()
  2. term.setCursorPos(1,1)
  3. rednet.open("back")
  4. textutils.slowPrint("Welcome...")
  5. term.clear()
  6. id = os.getComputerID()
  7. if fs.isDir("saves") == false then
  8. fs.makeDir("saves")
  9. term.clear()
  10. term.setCursorPos(1,1)
  11. print("Please Enter Your Name")
  12. name = read()
  13. fs.open("saves/system32")
  14. file.writeLine(name)
  15. file.close()
  16. sleep(1)
  17. term.clear()
  18. term.setCursorPos(1,1)
  19. print("Thank you. Your PC Will Be Up And Running In A Moment")
  20. reboot()
  21. end
  22.  
  23. fs.open("saves/system32")
  24. userName = file.readLine(1)
  25. file.close()
  26.  
  27. term.setCursorPos(1,1)
  28. print("Welcome Back "..userName.."!")
  29. print("What Would You Like To Do?")
  30. print("1: Send/Receive Messages")
  31. print("2: Play Games")
  32. print("3: Write A Document And Printing")
  33. print("4: Change Username")
  34. print("5: Reboot In Safe Mode (For Developing)")
  35. userCommand = read()
  36. while userCommand is >= 1 and <= 5
  37. if userCommand == 1 then
  38. term.clear()
  39. term.setCursorPos(1,1)
  40. shell.run("rnMSG")
  41. elseif userCommand == 2 then
  42. term.clear()
  43. term.setCursorPos(1,1)
  44. shell.run("games")
  45. elseif userCommand == 3 then
  46. term.clear()
  47. term.setCursorPos(1,1)
  48. shell.run("KazzOSWord")
  49. elseif userCommand == 4 then
  50. term.clear()
  51. term.setCursorPos(1,1)
  52. shell.run("UserNameChange")
  53. elseif userCommand == 5 then
  54. term.clear()
  55. term.setCursorPos(1,1)
  56. shell.run("shell")
  57. end
  58. else
  59. term.clear()
  60. term.setCursorPos(1,1)
  61. print("Please enter a number greater than or equal to 1 and less than or equal to 10")
  62. userCommand = read()
  63. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement