Guest User

Untitled

a guest
Oct 17th, 2018
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.54 KB | None | 0 0
  1.  
  2. user = user
  3. load1 = "[ ]"
  4. load2 = "[00 ]"
  5. load3 = "[0000 ]"
  6. load4 = "[000000]"
  7.  
  8. os.pullEvent = os.pullEventRaw
  9. function printFrameLogin()
  10. term.setCursorPos(1,1)
  11. shell.run("clear")
  12. print("+-----------------------------------------------+")
  13. print("|---00000 000 0000 -| |--|")
  14. print("|---00 00 00 00 -| |--|")
  15. print("|---0000 00 00 0000 -| |--|")
  16. print("|---00 00 00 00-| |--|")
  17. print("|---00000 000 0000 -| |--|")
  18. print("+-----------------------------------------------+")
  19. end
  20.  
  21. term.clear()
  22. term.setCursorPos(1,1)
  23. printFrameLogin()
  24. term.setCursorPos(26,2)
  25. Ehwhatpass = "cadence1"
  26. sleep(1)
  27. write("Username: ")
  28. user = read()
  29. term.setCursorPos(46,2)
  30. write("|--|")
  31. if user == "Ehwhat" then
  32. term.setCursorPos(26,3)
  33. write("Password: ")
  34. p1 = read("*")
  35. term.setCursorPos(46,2)
  36. write("|--|")
  37. if p1 == Ehwhatpass then
  38. term.clear()
  39. term.setCursorPos(1,1)
  40. printFrameLogin()
  41. term.setCursorPos(26,3)
  42. write("Loading "..load1.."")
  43. sleep(1)
  44. write("Loading "..load2.."")
  45. sleep(1)
  46. write("Loading "..load3.."")
  47. sleep(1)
  48. write("Loading "..load4.."")
  49. sleep(1)
  50. else
  51. term.setCursorPos(26,4)
  52. print("Password Incorrect!")
  53. sleep(2)
  54. os.shutdown()
  55. end
  56. else
  57. term.setCursorPos(26,3)
  58. print("Username Incorrect!")
  59. sleep(2)
  60. os.shutdown()
  61. end
Add Comment
Please, Sign In to add comment