Advertisement
Guest User

Untitled

a guest
Mar 5th, 2017
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.08 KB | None | 0 0
  1.  
  2. term.clear()
  3. term.setCursorPos(1,1)
  4. textutils.slowPrint("Loading Easy Lock V1.0")
  5. sleep(1)
  6. textutils.slowPrint("...")
  7. sleep(1)
  8. textutils.slowPrint("..)
  9. sleep(2)
  10. term.clear()
  11. term.setCursorPos(1,1)
  12.  
  13. textutils.slowPrint("Easy Lock V1.0 Loaded")
  14. sleep(2)
  15. term.clear()
  16. term.setCursorPos(1,1)
  17. print("EL Login 1.0")
  18. write("User:")
  19.  
  20. input = read()
  21. if input == User then
  22. write("Pass:")
  23. else
  24. shell.run("Nope")
  25. end
  26.  
  27. input = read("*")
  28. if input == Pass then
  29. term.clear()
  30. term.setCursorPos(1,1)
  31. textutils.slowPrint("Welcome Admin")
  32. sleep(2)
  33. shell.run("Exit2")
  34. else
  35. shell.run("Nope")
  36. end
  37.  
  38. Nope: The First Warning
  39.  
  40. term.clear()
  41. term.setCursorPos(1,1)
  42. textutils.slowPrint("User/Pass not recognized... Please try again")
  43. sleep(2)
  44. shell.run("Retry")
  45.  
  46. Retry: The Second Chance
  47.  
  48. User = "Admin"
  49. Pass = "Admin"
  50.  
  51. term.clear()
  52. term.setCursorPos(1,1)
  53. print("EL Login 1.0")
  54. write("User:")
  55.  
  56. input = read()
  57. if input == User then
  58. write("Pass:")
  59. else
  60. shell.run("Nope2")
  61. end
  62.  
  63. input = read("*")
  64. if input == Pass then
  65. term.clear()
  66. term.setCursorPos(1,1)
  67. textutils.slowPrint("Welcome Admin")
  68. sleep(2)
  69. shell.run("Exit2")
  70. else
  71. shell.run("Nope2")
  72. end
  73.  
  74. Nope2: The Final Warning
  75.  
  76. term.clear()
  77. term.setCursorPos(1,1)
  78. textutils.slowPrint("User/Pass not recognized... Please try again")
  79. sleep(2)
  80. shell.run("Retry2")
  81.  
  82. Retry2: The Last Chance
  83.  
  84. User = "Admin"
  85. Pass = "Admin"
  86.  
  87. term.clear()
  88. term.setCursorPos(1,1)
  89. print("EL Login 1.0 | Failure will lock computer")
  90. write("User:")
  91.  
  92. input = read()
  93. if input == User then
  94. write("Pass:")
  95. else
  96. shell.run("Lock")
  97. end
  98.  
  99. input = read("*")
  100. if input == Pass then
  101. term.clear()
  102. term.setCursorPos(1,1)
  103. textutils.slowPrint("Welcome Admin")
  104. sleep(2)
  105. shell.run("Exit2")
  106. else
  107. shell.run("Lock")
  108. end
  109.  
  110. Lock: The Loops
  111.  
  112. Unlock - "Administrator"
  113.  
  114. textutils.slowPrint("Computer Locked")
  115. sleep(2)
  116.  
  117. local input = ""
  118. while input ~= Unlock do
  119. term.clear()
  120. term.setCursorPos(1,1)
  121. print("Computer Locked")
  122. write("Unlock Key:")
  123. input = read("*")
  124. end
  125. textutils.slowPrint("Unlock Key Entered...")
  126. sleep(2)
  127. shell.run("Beta1.0")
  128. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement