Advertisement
Guest User

win0

a guest
Nov 2nd, 2016
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 7.49 KB | None | 0 0
  1. term.clear()
  2. term.setBackgroundColor(colors.white)
  3. term.clear()
  4. term.setBackgroundColor(colors.white)
  5. term.setCursorPos(17,1)
  6. term.setTextColor(colors.red)
  7. print("|||||||||")
  8. term.setCursorPos(17,2)
  9. term.setTextColor(colors.red)
  10. print("|||||||||")
  11. term.setCursorPos(17,3)
  12. term.setTextColor(colors.red)
  13. print("|||||||||")
  14. term.setCursorPos(17,4)
  15. term.setTextColor(colors.red)
  16. print("|||||||||")
  17. sleep(1)
  18. term.clear()
  19. term.setBackgroundColor(colors.white)
  20. term.setCursorPos(17,1)
  21. term.setTextColor(colors.red)
  22. print("|||||||||")
  23. term.setCursorPos(17,2)
  24. term.setTextColor(colors.red)
  25. print("|||||||||")
  26. term.setCursorPos(17,3)
  27. term.setTextColor(colors.red)
  28. print("|||||||||")
  29. term.setCursorPos(17,4)
  30. term.setTextColor(colors.red)
  31. print("|||||||||")
  32. term.setCursorPos(17,5)
  33. term.setTextColor(colors.blue)
  34. print("|||||||||")
  35. term.setCursorPos(17,6)
  36. term.setTextColor(colors.blue)
  37. print("|||||||||")
  38. term.setCursorPos(17,7)
  39. term.setTextColor(colors.blue)
  40. print("|||||||||")
  41. term.setCursorPos(17,8)
  42. term.setTextColor(colors.blue)
  43. print("|||||||||")
  44. sleep(1)
  45. term.clear()
  46. term.setBackgroundColor(colors.white)
  47. term.setCursorPos(17,1)
  48. term.setTextColor(colors.red)
  49. print("|||||||||")
  50. term.setCursorPos(17,2)
  51. term.setTextColor(colors.red)
  52. print("|||||||||")
  53. term.setCursorPos(17,3)
  54. term.setTextColor(colors.red)
  55. print("|||||||||")
  56. term.setCursorPos(17,4)
  57. term.setTextColor(colors.red)
  58. print("|||||||||")
  59. term.setCursorPos(17,5)
  60. term.setTextColor(colors.blue)
  61. print("|||||||||")
  62. term.setCursorPos(17,6)
  63. term.setTextColor(colors.blue)
  64. print("|||||||||")
  65. term.setCursorPos(17,7)
  66. term.setTextColor(colors.blue)
  67. print("|||||||||")
  68. term.setCursorPos(17,8)
  69. term.setTextColor(colors.blue)
  70. print("|||||||||")
  71. term.setCursorPos(26,1)
  72. term.setTextColor(colors.green)
  73. print("|||||||||")
  74. term.setCursorPos(26,2)
  75. term.setTextColor(colors.green)
  76. print("|||||||||")
  77. term.setCursorPos(26,3)
  78. term.setTextColor(colors.green)
  79. print("|||||||||")
  80. term.setCursorPos(26,4)
  81. term.setTextColor(colors.green)
  82. print("|||||||||")
  83. sleep(1)
  84. term.clear()
  85. term.setBackgroundColor(colors.white)
  86. term.setCursorPos(17,1)
  87. term.setTextColor(colors.red)
  88. print("|||||||||")
  89. term.setCursorPos(17,2)
  90. term.setTextColor(colors.red)
  91. print("|||||||||")
  92. term.setCursorPos(17,3)
  93. term.setTextColor(colors.red)
  94. print("|||||||||")
  95. term.setCursorPos(17,4)
  96. term.setTextColor(colors.red)
  97. print("|||||||||")
  98. term.setCursorPos(17,5)
  99. term.setTextColor(colors.blue)
  100. print("|||||||||")
  101. term.setCursorPos(17,6)
  102. term.setTextColor(colors.blue)
  103. print("|||||||||")
  104. term.setCursorPos(17,7)
  105. term.setTextColor(colors.blue)
  106. print("|||||||||")
  107. term.setCursorPos(17,8)
  108. term.setTextColor(colors.blue)
  109. print("|||||||||")
  110. term.setCursorPos(26,1)
  111. term.setTextColor(colors.green)
  112. print("|||||||||")
  113. term.setCursorPos(26,2)
  114. term.setTextColor(colors.green)
  115. print("|||||||||")
  116. term.setCursorPos(26,3)
  117. term.setTextColor(colors.green)
  118. print("|||||||||")
  119. term.setCursorPos(26,4)
  120. term.setTextColor(colors.green)
  121. print("|||||||||")
  122. term.setCursorPos(26,5)
  123. term.setTextColor(colors.yellow)
  124. print("|||||||||")
  125. term.setCursorPos(26,6)
  126. term.setTextColor(colors.yellow)
  127. print("|||||||||")
  128. term.setCursorPos(26,7)
  129. term.setTextColor(colors.yellow)
  130. print("|||||||||")
  131. term.setCursorPos(26,8)
  132. term.setTextColor(colors.yellow)
  133. print("|||||||||")
  134. sleep(1)
  135. term.clear()
  136. term.setBackgroundColor(colors.white)
  137. term.setCursorPos(17,1)
  138. term.setTextColor(colors.red)
  139. print("|||||||||")
  140. term.setCursorPos(17,2)
  141. term.setTextColor(colors.red)
  142. print("|||||||||")
  143. term.setCursorPos(17,3)
  144. term.setTextColor(colors.red)
  145. print("|||||||||")
  146. term.setCursorPos(17,4)
  147. term.setTextColor(colors.red)
  148. print("|||||||||")
  149. term.setCursorPos(17,5)
  150. term.setTextColor(colors.blue)
  151. print("|||||||||")
  152. term.setCursorPos(17,6)
  153. term.setTextColor(colors.blue)
  154. print("|||||||||")
  155. term.setCursorPos(17,7)
  156. term.setTextColor(colors.blue)
  157. print("|||||||||")
  158. term.setCursorPos(17,8)
  159. term.setTextColor(colors.blue)
  160. print("|||||||||")
  161. term.setCursorPos(26,1)
  162. term.setTextColor(colors.green)
  163. print("|||||||||")
  164. term.setCursorPos(26,2)
  165. term.setTextColor(colors.green)
  166. print("|||||||||")
  167. term.setCursorPos(26,3)
  168. term.setTextColor(colors.green)
  169. print("|||||||||")
  170. term.setCursorPos(26,4)
  171. term.setTextColor(colors.green)
  172. print("|||||||||")
  173. term.setCursorPos(26,5)
  174. term.setTextColor(colors.yellow)
  175. print("|||||||||")
  176. term.setCursorPos(26,6)
  177. term.setTextColor(colors.yellow)
  178. print("|||||||||")
  179. term.setCursorPos(26,7)
  180. term.setTextColor(colors.yellow)
  181. print("|||||||||")
  182. term.setCursorPos(26,8)
  183. term.setTextColor(colors.yellow)
  184. print("|||||||||")
  185. term.setCursorPos(19,9)
  186. term.setTextColor(colors.black)
  187. print("WINDOWS FOR CC")
  188. sleep(1)
  189. n = 0
  190. term.setTextColor(colors.black)
  191. while n <= 2 do
  192. term.setCursorPos(24,18)
  193. write("#")
  194. sleep(0.1)
  195. term.setCursorPos(22,17)
  196. write("#")
  197. sleep(0.1)
  198. term.setCursorPos(21,16)
  199. write("#")
  200. sleep(0.1)
  201. term.setCursorPos(21,15)
  202. write("#")
  203. sleep(0.1)
  204. term.setCursorPos(22,14)
  205. write("#")
  206. sleep(0.1)
  207. term.setCursorPos(24,13)
  208. write("#")
  209. sleep(0.1)
  210. write(" #")
  211. sleep(0.1)
  212. term.setCursorPos(28,14)
  213. write("#")
  214. sleep(0.1)
  215. term.setCursorPos(29,15)
  216. write("#")
  217. sleep(0.1)
  218. term.setCursorPos(29,16)
  219. write("#")
  220. sleep(0.1)
  221. term.setCursorPos(28,17)
  222. write("#")
  223. sleep(0.1)
  224. term.setCursorPos(26,18)
  225. write("#")
  226. sleep(0.1)
  227. term.setCursorPos(24,18)
  228. write(" ")
  229. sleep(0.1)
  230. term.setCursorPos(22,17)
  231. write(" ")
  232. sleep(0.1)
  233. term.setCursorPos(21,16)
  234. write(" ")
  235. sleep(0.1)
  236. term.setCursorPos(21,15)
  237. write(" ")
  238. sleep(0.1)
  239. term.setCursorPos(22,14)
  240. write(" ")
  241. sleep(0.1)
  242. term.setCursorPos(24,13)
  243. write(" ")
  244. sleep(0.1)
  245. write("  ")
  246. sleep(0.1)
  247. term.setCursorPos(28,14)
  248. write(" ")
  249. sleep(0.1)
  250. term.setCursorPos(29,15)
  251. write(" ")
  252. sleep(0.1)
  253. term.setCursorPos(29,16)
  254. write(" ")
  255. sleep(0.1)
  256. term.setCursorPos(28,17)
  257. write(" ")
  258. sleep(0.1)
  259. term.setCursorPos(26,18)
  260. write(" ")
  261. sleep(0.1)
  262. n = n + 1
  263. end
  264. term.clear()
  265. term.setBackgroundColor(colors.white)
  266. os.pullEvent = os.pullEventRaw
  267. username = "ANDROID"
  268. password = ""
  269. attempt = 0
  270.  
  271.  
  272. function attemptCheck()
  273.   if attempt > 3 then
  274.    term.clear()
  275.    term.setCursorPos(1,1)
  276.    term.setTextColor(colors.black)
  277.    textutils.slowPrint ("Attempt limit reached.")
  278.    sleep(1)
  279.    term.setTextColor(colors.black)
  280.    textutils.slowPrint ("Shutting down...")
  281.    sleep(1)
  282.    os.reboot()
  283.   end
  284. end
  285.  
  286. function login()
  287.   attemptCheck()
  288.   term.setCursorPos(1,1)
  289.   term.setTextColor(colors.black)
  290.   print ("Login attempt: ", attempt)
  291.   write "Username: "
  292.   input = read()
  293.   if input == username then
  294.     write "Password: "
  295.     input = read("*")
  296.     if input == password then
  297.     term.setCursorPos(1,17)
  298.       term.setTextColor(colors.green)
  299.       textutils.slowPrint ("Welcome to your computer, ".. username ..".")
  300.       sleep(2)
  301.       term.clear()
  302.       term.setCursorPos(1,1)
  303.     else
  304.         term.setCursorPos(1,17)
  305.       term.setTextColor(colors.red)
  306.       textutils.slowPrint ("The password was incorrect.")
  307.       sleep(1)
  308.       term.setTextColor(colors.black)
  309.       textutils.slowPrint ("Please attempt again.")
  310.       attempt = attempt + 1
  311.       sleep(1)
  312.       term.clear()
  313.       term.setCursorPos(1,1)
  314.       login()
  315.     end
  316.   else
  317.     term.setCursorPos(1,17)
  318.     term.setTextColor(colors.red)
  319.     textutils.slowPrint ("The username was not recognized.")
  320.     sleep(1)
  321.     term.setTextColor(colors.black)
  322.     textutils.slowPrint ("Please attempt again.")
  323.     attempt = attempt + 1
  324.     sleep(1)
  325.     term.clear()
  326.     term.setCursorPos(1,1)
  327.     login()
  328.   end
  329. end
  330.  
  331.    
  332. login()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement