Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- term.clear()
- term.setCursorPos(1,1)
- term.setTextColor(colors.green)
- --
- while true do
- term.setCursorPos(1,1)
- term.setTextColor(colors.green)
- print("Hello, welcome to CubedMining industry.")
- print(" ")
- print("Please enter the Username and Password.")
- print(" ")
- term.setTextColor(colors.blue)
- print("Username: ")
- print(" ")
- print("Password: ")
- term.setTextColor(colors.white)
- term.setCursorPos(11, 5)
- username = read()
- term.setCursorPos(11, 7)
- password = read("*")
- if username == "RevvoxCEO" and password == "logmein" then
- term.clear()
- term.setCursorPos(1,1)
- term.setTextColor(colors.lime)
- print("Success, welcome back!")
- sleep(2)
- term.clear()
- term.setCursorPos(1,1)
- term.setTextColor(colors.yellow)
- print("CubedMining v1")
- term.setCursorPos(1,2)
- break
- else
- term.clear()
- term.setCursorPos(1,1)
- term.setTextColor(colors.red)
- print("Username or Password is incorrect, please try again.")
- print(" ")
- term.setTextColor(colors.cyan)
- print("Common mistakes: Incorrect use of caps, the usernames and passwords are case sensetive and misspelling.")
- term.setTextColor(colors.green)
- term.setCursorPos(1,18)
- print("Press any button to continue.")
- keypress = os.pullEvent("key")
- if keypress == true then
- term.clear()
- term.setCursorPos(1,1)
- end
- term.clear()
- term.setTextColor(colors.white)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement