Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- user = user
- os.pullEvent = os.pullEventRaw
- function printFrameLogin()
- term.setCursorPos(1,1)
- shell.run("clear")
- print("+-----------------------------------------------+")
- print("|---00000 000 0000 -| |--|")
- print("|---00 00 00 00 -| |--|")
- print("|---0000 00 00 0000 -| |--|")
- print("|---00 00 00 00-| |--|")
- print("|---00000 000 0000 -| |--|")
- print("+-----------------------------------------------+")
- end
- term.clear()
- term.setCursorPos(1,1)
- printFrameLogin()
- term.setCursorPos(26,2)
- Ehwhatpass = "cadence1"
- sleep(1)
- write("Username: ")
- user = read()
- term.setCursorPos(46,2)
- write("|--|")
- if user == "Ehwhat" then
- term.setCursorPos(26,3)
- write("Password: ")
- p1 = read("*")
- term.setCursorPos(46,2)
- write("|--|")
- if p1 == Ehwhatpass then
- term.clear()
- term.setCursorPos(1,1)
- else
- term.setCursorPos(26,4)
- print("Password Incorrect!")
- sleep(2)
- os.shutdown()
- end
- else
- term.setCursorPos(26,3)
- print("Username Incorrect!")
- sleep(2)
- os.shutdown()
- end
Add Comment
Please, Sign In to add comment