Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- term.clear()
- term.setCursorPos(1,1)
- rednet.open("back")
- textutils.slowPrint("Welcome...")
- term.clear()
- id = os.getComputerID()
- if fs.isDir("saves") == false then
- fs.makeDir("saves")
- term.clear()
- term.setCursorPos(1,1)
- print("Please Enter Your Name")
- name = read()
- fs.open("saves/system32")
- file.writeLine(name)
- file.close()
- sleep(1)
- term.clear()
- term.setCursorPos(1,1)
- print("Thank you. Your PC Will Be Up And Running In A Moment")
- reboot()
- end
- fs.open("saves/system32")
- userName = file.readLine(1)
- file.close()
- term.setCursorPos(1,1)
- print("Welcome Back "..userName.."!")
- print("What Would You Like To Do?")
- print("1: Send/Receive Messages")
- print("2: Play Games")
- print("3: Write A Document And Printing")
- print("4: Change Username")
- print("5: Reboot In Safe Mode (For Developing)")
- userCommand = read()
- while userCommand is >= 1 and <= 5
- if userCommand == 1 then
- term.clear()
- term.setCursorPos(1,1)
- shell.run("rnMSG")
- elseif userCommand == 2 then
- term.clear()
- term.setCursorPos(1,1)
- shell.run("games")
- elseif userCommand == 3 then
- term.clear()
- term.setCursorPos(1,1)
- shell.run("KazzOSWord")
- elseif userCommand == 4 then
- term.clear()
- term.setCursorPos(1,1)
- shell.run("UserNameChange")
- elseif userCommand == 5 then
- term.clear()
- term.setCursorPos(1,1)
- shell.run("shell")
- end
- else
- term.clear()
- term.setCursorPos(1,1)
- print("Please enter a number greater than or equal to 1 and less than or equal to 10")
- userCommand = read()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement