Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- term.clear()
- term.setBackgroundColor(colors.white)
- term.clear()
- term.setBackgroundColor(colors.white)
- term.setCursorPos(17,1)
- term.setTextColor(colors.red)
- print("|||||||||")
- term.setCursorPos(17,2)
- term.setTextColor(colors.red)
- print("|||||||||")
- term.setCursorPos(17,3)
- term.setTextColor(colors.red)
- print("|||||||||")
- term.setCursorPos(17,4)
- term.setTextColor(colors.red)
- print("|||||||||")
- sleep(1)
- term.clear()
- term.setBackgroundColor(colors.white)
- term.setCursorPos(17,1)
- term.setTextColor(colors.red)
- print("|||||||||")
- term.setCursorPos(17,2)
- term.setTextColor(colors.red)
- print("|||||||||")
- term.setCursorPos(17,3)
- term.setTextColor(colors.red)
- print("|||||||||")
- term.setCursorPos(17,4)
- term.setTextColor(colors.red)
- print("|||||||||")
- term.setCursorPos(17,5)
- term.setTextColor(colors.blue)
- print("|||||||||")
- term.setCursorPos(17,6)
- term.setTextColor(colors.blue)
- print("|||||||||")
- term.setCursorPos(17,7)
- term.setTextColor(colors.blue)
- print("|||||||||")
- term.setCursorPos(17,8)
- term.setTextColor(colors.blue)
- print("|||||||||")
- sleep(1)
- term.clear()
- term.setBackgroundColor(colors.white)
- term.setCursorPos(17,1)
- term.setTextColor(colors.red)
- print("|||||||||")
- term.setCursorPos(17,2)
- term.setTextColor(colors.red)
- print("|||||||||")
- term.setCursorPos(17,3)
- term.setTextColor(colors.red)
- print("|||||||||")
- term.setCursorPos(17,4)
- term.setTextColor(colors.red)
- print("|||||||||")
- term.setCursorPos(17,5)
- term.setTextColor(colors.blue)
- print("|||||||||")
- term.setCursorPos(17,6)
- term.setTextColor(colors.blue)
- print("|||||||||")
- term.setCursorPos(17,7)
- term.setTextColor(colors.blue)
- print("|||||||||")
- term.setCursorPos(17,8)
- term.setTextColor(colors.blue)
- print("|||||||||")
- term.setCursorPos(26,1)
- term.setTextColor(colors.green)
- print("|||||||||")
- term.setCursorPos(26,2)
- term.setTextColor(colors.green)
- print("|||||||||")
- term.setCursorPos(26,3)
- term.setTextColor(colors.green)
- print("|||||||||")
- term.setCursorPos(26,4)
- term.setTextColor(colors.green)
- print("|||||||||")
- sleep(1)
- term.clear()
- term.setBackgroundColor(colors.white)
- term.setCursorPos(17,1)
- term.setTextColor(colors.red)
- print("|||||||||")
- term.setCursorPos(17,2)
- term.setTextColor(colors.red)
- print("|||||||||")
- term.setCursorPos(17,3)
- term.setTextColor(colors.red)
- print("|||||||||")
- term.setCursorPos(17,4)
- term.setTextColor(colors.red)
- print("|||||||||")
- term.setCursorPos(17,5)
- term.setTextColor(colors.blue)
- print("|||||||||")
- term.setCursorPos(17,6)
- term.setTextColor(colors.blue)
- print("|||||||||")
- term.setCursorPos(17,7)
- term.setTextColor(colors.blue)
- print("|||||||||")
- term.setCursorPos(17,8)
- term.setTextColor(colors.blue)
- print("|||||||||")
- term.setCursorPos(26,1)
- term.setTextColor(colors.green)
- print("|||||||||")
- term.setCursorPos(26,2)
- term.setTextColor(colors.green)
- print("|||||||||")
- term.setCursorPos(26,3)
- term.setTextColor(colors.green)
- print("|||||||||")
- term.setCursorPos(26,4)
- term.setTextColor(colors.green)
- print("|||||||||")
- term.setCursorPos(26,5)
- term.setTextColor(colors.yellow)
- print("|||||||||")
- term.setCursorPos(26,6)
- term.setTextColor(colors.yellow)
- print("|||||||||")
- term.setCursorPos(26,7)
- term.setTextColor(colors.yellow)
- print("|||||||||")
- term.setCursorPos(26,8)
- term.setTextColor(colors.yellow)
- print("|||||||||")
- sleep(1)
- term.clear()
- term.setBackgroundColor(colors.white)
- term.setCursorPos(17,1)
- term.setTextColor(colors.red)
- print("|||||||||")
- term.setCursorPos(17,2)
- term.setTextColor(colors.red)
- print("|||||||||")
- term.setCursorPos(17,3)
- term.setTextColor(colors.red)
- print("|||||||||")
- term.setCursorPos(17,4)
- term.setTextColor(colors.red)
- print("|||||||||")
- term.setCursorPos(17,5)
- term.setTextColor(colors.blue)
- print("|||||||||")
- term.setCursorPos(17,6)
- term.setTextColor(colors.blue)
- print("|||||||||")
- term.setCursorPos(17,7)
- term.setTextColor(colors.blue)
- print("|||||||||")
- term.setCursorPos(17,8)
- term.setTextColor(colors.blue)
- print("|||||||||")
- term.setCursorPos(26,1)
- term.setTextColor(colors.green)
- print("|||||||||")
- term.setCursorPos(26,2)
- term.setTextColor(colors.green)
- print("|||||||||")
- term.setCursorPos(26,3)
- term.setTextColor(colors.green)
- print("|||||||||")
- term.setCursorPos(26,4)
- term.setTextColor(colors.green)
- print("|||||||||")
- term.setCursorPos(26,5)
- term.setTextColor(colors.yellow)
- print("|||||||||")
- term.setCursorPos(26,6)
- term.setTextColor(colors.yellow)
- print("|||||||||")
- term.setCursorPos(26,7)
- term.setTextColor(colors.yellow)
- print("|||||||||")
- term.setCursorPos(26,8)
- term.setTextColor(colors.yellow)
- print("|||||||||")
- term.setCursorPos(19,9)
- term.setTextColor(colors.black)
- print("WINDOWS FOR CC")
- sleep(1)
- n = 0
- term.setTextColor(colors.black)
- while n <= 2 do
- term.setCursorPos(24,18)
- write("#")
- sleep(0.1)
- term.setCursorPos(22,17)
- write("#")
- sleep(0.1)
- term.setCursorPos(21,16)
- write("#")
- sleep(0.1)
- term.setCursorPos(21,15)
- write("#")
- sleep(0.1)
- term.setCursorPos(22,14)
- write("#")
- sleep(0.1)
- term.setCursorPos(24,13)
- write("#")
- sleep(0.1)
- write(" #")
- sleep(0.1)
- term.setCursorPos(28,14)
- write("#")
- sleep(0.1)
- term.setCursorPos(29,15)
- write("#")
- sleep(0.1)
- term.setCursorPos(29,16)
- write("#")
- sleep(0.1)
- term.setCursorPos(28,17)
- write("#")
- sleep(0.1)
- term.setCursorPos(26,18)
- write("#")
- sleep(0.1)
- term.setCursorPos(24,18)
- write(" ")
- sleep(0.1)
- term.setCursorPos(22,17)
- write(" ")
- sleep(0.1)
- term.setCursorPos(21,16)
- write(" ")
- sleep(0.1)
- term.setCursorPos(21,15)
- write(" ")
- sleep(0.1)
- term.setCursorPos(22,14)
- write(" ")
- sleep(0.1)
- term.setCursorPos(24,13)
- write(" ")
- sleep(0.1)
- write(" ")
- sleep(0.1)
- term.setCursorPos(28,14)
- write(" ")
- sleep(0.1)
- term.setCursorPos(29,15)
- write(" ")
- sleep(0.1)
- term.setCursorPos(29,16)
- write(" ")
- sleep(0.1)
- term.setCursorPos(28,17)
- write(" ")
- sleep(0.1)
- term.setCursorPos(26,18)
- write(" ")
- sleep(0.1)
- n = n + 1
- end
- term.clear()
- term.setBackgroundColor(colors.white)
- os.pullEvent = os.pullEventRaw
- username = "ANDROID"
- password = ""
- attempt = 0
- function attemptCheck()
- if attempt > 3 then
- term.clear()
- term.setCursorPos(1,1)
- term.setTextColor(colors.black)
- textutils.slowPrint ("Attempt limit reached.")
- sleep(1)
- term.setTextColor(colors.black)
- textutils.slowPrint ("Shutting down...")
- sleep(1)
- os.reboot()
- end
- end
- function login()
- attemptCheck()
- term.setCursorPos(1,1)
- term.setTextColor(colors.black)
- print ("Login attempt: ", attempt)
- write "Username: "
- input = read()
- if input == username then
- write "Password: "
- input = read("*")
- if input == password then
- term.setCursorPos(1,17)
- term.setTextColor(colors.green)
- textutils.slowPrint ("Welcome to your computer, ".. username ..".")
- sleep(2)
- term.clear()
- term.setCursorPos(1,1)
- else
- term.setCursorPos(1,17)
- term.setTextColor(colors.red)
- textutils.slowPrint ("The password was incorrect.")
- sleep(1)
- term.setTextColor(colors.black)
- textutils.slowPrint ("Please attempt again.")
- attempt = attempt + 1
- sleep(1)
- term.clear()
- term.setCursorPos(1,1)
- login()
- end
- else
- term.setCursorPos(1,17)
- term.setTextColor(colors.red)
- textutils.slowPrint ("The username was not recognized.")
- sleep(1)
- term.setTextColor(colors.black)
- textutils.slowPrint ("Please attempt again.")
- attempt = attempt + 1
- sleep(1)
- term.clear()
- term.setCursorPos(1,1)
- login()
- end
- end
- login()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement