Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- ColtOS
- os.pullEvent = os.pullEventRaw
- term.clear()
- term.setCursorPos(1,1)
- print("ColtOS 0.1")
- print("1 - Create Account")
- print("2 - Login")
- print("Any other key to exit to lua prompt")
- input = read()
- if input == "1" then {
- term.clear()
- term.setCursorPos(1,1)
- -- Username Creation
- write("Please Enter A Username:")
- local username = ( read() )
- term.clear()
- term.setCursorPos(1,1)
- -- Pass Creation
- write("Thank you! Now, a Password:")
- local password = ( read() )
- term.clear()
- term.setCursorPos(1,1)
- }
- -- Login
- if input == "2"
- write("Login")
- write("Username:")
- if input = local username then {
- write("Password:")
- else
- -- Incorrect User
- write("User not found.")
- if input = local password then {
- term.clear()
- term.setCursorPos(1,1)
- print("ColtOS")
- -- Incorrect Pass
- else
- term.clear()
- term.setCursorPos(1,1)
- print("Incorrect!")
- os.reboot()
- }
- }
- else
- term.clear()
- term.setCursorPos(1,1)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement