Advertisement
Guest User

password

a guest
Nov 11th, 2016
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.10 KB | None | 0 0
  1. term.clear()
  2. term.setCursorPos(1, 1)
  3. term.setTextColor(colors.green)
  4. textutils.slowPrint("+----------------------------+")
  5. textutils.slowPrint("I                            I")
  6. textutils.slowPrint("I                            I")
  7. textutils.slowPrint("+----------------------------+")
  8. term.setCursorPos(3, 2)
  9. textutils.slowWrite("Username:")
  10. term.setCursorPos(3, 3)
  11. textutils.slowWrite("Password:")
  12. sleep(1)
  13. term.setCursorPos(13, 2)
  14. input = read()
  15. if input == "GrdBase"
  16. then
  17. term.setCursorPos(13, 3)
  18. input = read("*")
  19. if input == "DW9E-Y7EU-HWZb" then
  20. term.clear()
  21. term.setCursorPos(1, 1)
  22. print("ACCESS GRANTED")
  23. sleep(2)
  24. term.clear()
  25. term.setCursorPos(1, 1)
  26. end
  27. else
  28. term.clear()
  29. term.setCursorPos(1, 1)
  30. term.setTextColor(colors.red)
  31. print("ACCESS DENIED")
  32. term.setTextColor(colors.white)
  33. sleep(2)
  34. term.clear()
  35. term.setCursorPos(1, 1)
  36. end
  37. else
  38. term.clear()
  39. term.setCursorPos(1, 1)
  40. term.setTextColor(colors.red)
  41. print("INVALID USERNAME")
  42. term.setTextColor(colors.white)
  43. term.clear()
  44. term.setCursorPos(1, 1)
  45. end
  46. term.clear()
  47. term.setCursorPos(1, 1)
  48. term.setTextColor(colors.white)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement