Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- shell.run("clear")
- term.setCursorPos(1,1)
- At = 0
- function checkFront()
- if SFront == "S" then
- F = "Front: Secured"
- elseif SFront == "US" then
- F = "Front: UnSecure"
- else
- F = "Front: Unknown"
- end
- end
- function checkSide()
- if SSide == "S" then
- S = "Side: Secured"
- elseif SSide == "US" then
- S = "Side: UnSecured"
- else
- S = "Side: Unknown"
- end
- end
- function checkBack()
- if SBack == "S" then
- B = "Back: Secured"
- elseif SBack == "US" then
- B = "Back: UnSecured"
- else
- B = "Back: Unknown"
- end
- end
- function show()
- print(F)
- print(S)
- print(B)
- end
- function run()
- shell.run("clear")
- checkFront()
- checkSide()
- checkBack()
- show()
- print("Would You Like to Secure or Unsecure an area?")
- write("Secure/Unsecure:")
- Sec = "Secure"
- UnSec = "Unsecure"
- Front = "Front"
- Side = "Side"
- Back = "Back"
- Security = "Security"
- input = read()
- if input == UnSec then
- shell.run("clear")
- show()
- print("Which Sector Would You Like UnSecure?")
- print("Front Side")
- print("Back")
- write("Unsecure: ")
- input = read()
- if input == Front then
- shell.run("clear")
- print("Front Enterance UnSecure")
- rs.setOutput("left" , false )
- sleep(3)
- SFront = "US"
- run()
- end
- if input == Side then
- shell.run("clear")
- print("Side Enterance UnSecure")
- rs.setOutput("back" , false )
- sleep(3)
- SSide = "US"
- run()
- end
- if input == Back then
- shell.run("clear")
- print("Back Enterance UnSecure")
- rs.setOutput("top" , false )
- sleep(3)
- SBack = "US"
- run()
- end
- elseif input ~= Sec and input ~= UnSec then
- run()
- end
- if input == Sec then
- shell.run("clear")
- show()
- print("Which Sector Would You Like To Secure?")
- print(" ")
- print("Front Side")
- print("Back")
- write("Secure:")
- input = read()
- if input == Front then
- shell.run("clear")
- print("Securing Front Entrance")
- rs.setOutput("left" , true )
- sleep(3)
- SFront = "S"
- run()
- end
- if input == Side then
- shell.run("clear")
- print("Securing Side Enterance")
- rs.setOutput("back" , true )
- sleep(3)
- SSide = "S"
- run()
- end
- if input == Back then
- shell.run("clear")
- print("Securing Back Enterance")
- rs.setOutput("top" , true )
- sleep(3)
- SBack = "S"
- run()
- end
- end
- end
- function pass()
- term.clear()
- term.setCursorPos(1,1)
- print("Attempts ".. At .. "/5")
- print("Please Enter the Password")
- write("Password: ")
- input = read("*")
- if At < 5 then
- if input == "Artak2002" and At < 5 then
- term.clear()
- term.setCursorPos(10,1)
- textutils.slowPrint("Welcome Back Superzorik")
- sleep(2)
- run()
- elseif input == "Backdoor" and At < 5 then
- term.clear()
- term.setCursorPos(12,1)
- textutils.slowPrint("Welcome Home Superzorik")
- sleep(2)
- term.clear()
- term.setCursorPos(1,1)
- print("ADT Security Termal v1.6")
- term.setCursorPos(1,2)
- error()
- else
- term.clear()
- term.setCursorPos(1,1)
- print("Error Code: 14503")
- print("Please Contact Computer Administrator")
- At = At + 1
- sleep(5)
- pass()
- end
- elseif At >= 5 then
- term.clear()
- term.setCursorPos(1,1)
- print("Number of Password Attempts Exceeded")
- print("Error Code: 24450")
- print("Please Contact Computer Administrator")
- term.setCursorPos(1,4)
- input = read()
- if input == "Reset M25Hash" then
- At = 0
- pass()
- end
- end
- end
- pass()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement