Advertisement
Guest User

Untitled

a guest
May 7th, 2016
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.37 KB | None | 0 0
  1. term.clear()
  2. term.setCursorPos(1,1)
  3. term.setTextColor(colors.green)
  4.  
  5. --
  6. while true do
  7. term.setCursorPos(1,1)
  8. term.setTextColor(colors.green)
  9. print("Hello, welcome to CubedMining industry.")
  10. print(" ")
  11. print("Please enter the Username and Password.")
  12. print(" ")
  13. term.setTextColor(colors.blue)
  14. print("Username: ")
  15. print(" ")
  16. print("Password: ")
  17. term.setTextColor(colors.white)
  18. term.setCursorPos(11, 5)
  19. username = read()
  20. term.setCursorPos(11, 7)
  21. password = read("*")
  22.  
  23. if username == "RevvoxCEO" and password == "logmein" then
  24. term.clear()
  25. term.setCursorPos(1,1)
  26. term.setTextColor(colors.lime)
  27. print("Success, welcome back!")
  28. sleep(2)
  29. term.clear()
  30. term.setCursorPos(1,1)
  31. term.setTextColor(colors.yellow)
  32. print("CubedMining v1")
  33. term.setCursorPos(1,2)
  34. break
  35. else
  36. term.clear()
  37. term.setCursorPos(1,1)
  38. term.setTextColor(colors.red)
  39. print("Username or Password is incorrect, please try again.")
  40. print(" ")
  41. term.setTextColor(colors.cyan)
  42. print("Common mistakes: Incorrect use of caps, the usernames and passwords are case sensetive and misspelling.")
  43. term.setTextColor(colors.green)
  44. term.setCursorPos(1,18)
  45. print("Press any button to continue.")
  46. keypress = os.pullEvent("key")
  47. if keypress == true then
  48. term.clear()
  49. term.setCursorPos(1,1)
  50. end
  51. term.clear()
  52. term.setTextColor(colors.white)
  53. end
  54. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement