Guest User

Untitled

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