Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- ######################
- -- ##call this file "startup"
- -- ######################
- os.pullEvent = os.pullEventRaw
- local standby = 5
- local side = "left"
- local password = "603526"
- local agree = ""
- local YES = "y"
- local back = "back"
- local A = "A"
- local B = "B"
- local C = "C"
- -- ######################
- -- ##Term Settings
- -- ######################
- local width, height = term.getSize()
- term.setCursorPos(1, 1)
- term.setBackgroundColor(colors.gray)
- term.clear()
- term.setTextColor(colors.white)
- term.setBackgroundColor(colors.red)
- term.clearLine()
- term.setCursorPos(1, height)
- term.clearLine()
- local text = "E.D.SYS"
- term.setCursorPos(math.floor((width - #text) / 2), 1)
- term.write(text)
- -- ######################
- -- #### STAGE 1 LOGIN
- -- ######################
- term.setTextColor(colors.red)
- term.setBackgroundColor(colors.black)
- term.setCursorPos(5, 3)
- term.write(" DANGER ")
- term.setTextColor(colors.red)
- term.setBackgroundColor(colors.black)
- term.setCursorPos(5, 4)
- term.write(" EMERGENCY DESTRUCTION SYSTEM ")
- term.setTextColor(colors.yellow)
- term.setBackgroundColor(colors.black)
- term.setCursorPos(5, 5)
- term.write(" ON ACTIVATION IT WILL DETONATE IN ")
- term.setTextColor(colors.yellow)
- term.setBackgroundColor(colors.black)
- term.setCursorPos(5, 6)
- term.write(" T MINUS MINUTES ")
- term.setTextColor(colors.red)
- term.setBackgroundColor(colors.black)
- term.setCursorPos(25, 6)
- term.write("10")
- term.setTextColor(colors.red)
- term.setBackgroundColor(colors.black)
- term.setCursorPos(5, 8)
- term.write(" FAILSAFE WARNING ")
- term.setTextColor(colors.yellow)
- term.setBackgroundColor(colors.black)
- term.setCursorPos(5, 9)
- term.write(" CUT-OFF SYSTEM WILL NOT OPERATE AFTER ")
- term.setTextColor(colors.yellow)
- term.setBackgroundColor(colors.black)
- term.setCursorPos(5, 10)
- term.write(" T MINUS MINUTES ")
- term.setTextColor(colors.red)
- term.setBackgroundColor(colors.black)
- term.setCursorPos(25, 10)
- term.write("5")
- term.setCursorPos(13, 16)
- term.setBackgroundColor(colors.black)
- term.write(" ")
- term.setTextColor(colors.white)
- term.setBackgroundColor(colors.gray)
- term.setCursorPos(13, 15)
- term.write("Security Code:")
- local input = read("")
- term.setCursorPos(13, 16)
- if input == password then
- term.setCursorPos(13, 16)
- term.setBackgroundColor(colors.black)
- term.setTextColor(colors.lime)
- term.write(" Security Code accepted ")
- sleep(2)
- -- ######################
- -- #### LOADING SCREEN
- -- ######################
- term.setCursorPos(1, 1)
- term.setBackgroundColor(colors.gray)
- term.clear()
- term.setTextColor(colors.white)
- term.setBackgroundColor(colors.red)
- term.clearLine()
- term.setCursorPos(1, height)
- term.clearLine()
- local text = "E.D.SYS"
- term.setCursorPos(math.floor((width - #text) / 2), 1)
- term.write(text)
- -- ##
- term.setCursorPos(3, 4)
- term.setBackgroundColor(colors.gray)
- term.setTextColor(colors.white)
- term.write("Initilizing ")
- rs.setBundledOutput("left", colours.pink)
- sleep(0.1)
- term.setCursorPos(24, 4)
- term.setTextColor(colors.lime)
- term.write("READY ")
- sleep(0.1)
- sleep(3)
- shell.run("menu")
- else
- os.reboot()
- end
- -- ######################
- -- #### END LOGIN
- -- ######################
- while true do
- term.setCursorPos(1, 1)
- term.setBackgroundColor(colors.gray)
- term.clear()
- term.setTextColor(colors.white)
- term.setBackgroundColor(colors.red)
- term.clearLine()
- term.setCursorPos(1, height)
- term.clearLine()
- local text = "E.D.SYS"
- term.setCursorPos(math.floor((width - #text) / 2), 1)
- term.write(text)
- -- ######################
- -- #### MENU
- -- ######################
- term.setTextColor(colors.white)
- term.setBackgroundColor(colors.black)
- term.setCursorPos(5, 3)
- term.write(" MENU ")
- term.setCursorPos(5, 5)
- term.write(" A - Start Scuttle Procedure ")
- term.setCursorPos(5, 6)
- term.write(" ")
- term.setCursorPos(5, 7)
- term.write(" B - Scuttle System Check ")
- term.setCursorPos(5, 8)
- term.write(" ")
- term.setTextColor(colors.red)
- term.setBackgroundColor(colors.black)
- term.setCursorPos(5, 9)
- term.write(" C - Lock E.D.SYS ")
- term.setCursorPos(4, 14)
- term.setTextColor(colors.white)
- term.write("Option: ")
- local input = read()
- -- ######################
- -- #### DOORS CLOSE
- -- ######################
- if input == B then
- term.setCursorPos(1, 1)
- term.setBackgroundColor(colors.black)
- term.clear()
- term.setTextColor(colors.white)
- term.setBackgroundColor(colors.red)
- term.clearLine()
- term.setCursorPos(1, height)
- term.clearLine()
- local text = "E.D.S."
- term.setCursorPos(math.floor((width - #text) / 2), 1)
- term.write(text)
- term.setCursorPos(3, 3)
- term.setBackgroundColor(colors.black)
- term.setTextColor(colors.white)
- term.write("Closing E.D.S. Doors")
- rs.setBundledOutput("bottom", colours.pink)
- sleep(0.6)
- rs.setBundledOutput("bottom", colours.white)
- term.setCursorPos(25, 3)
- term.setBackgroundColor(colors.black)
- term.setTextColor(colors.lime)
- term.write("READY")
- sleep(2)
- term.clear()
- end
- -- ######################
- -- ## SHUTDOWN SYSTEM
- -- ######################
- if input == C then
- while true do
- term.setCursorPos(1, 1)
- term.setBackgroundColor(colors.black)
- term.clear() -- fill the screen with white
- term.setTextColor(colors.white)
- term.setBackgroundColor(colors.red)
- term.clearLine()
- term.setCursorPos(1, height)
- term.clearLine()
- local text = "E.D.S."
- term.setCursorPos(math.floor((width - #text) / 2), 1)
- term.write(text)
- term.setBackgroundColor(colors.black)
- term.setTextColor(colors.white)
- term.setCursorPos(16,10)
- print("TERMINATE SYSTEM")
- term.setBackgroundColor(colors.black)
- term.setTextColor(colors.white)
- term.setCursorPos(17,11)
- sleep(1)
- os.reboot()
- end
- end
- -- ######################
- -- #### PURGE SYSTEM
- -- ######################
- if input == A then
- local width, height = term.getSize()
- term.setCursorPos(1, 1)
- term.setBackgroundColor(colors.gray)
- term.clear()
- term.setTextColor(colors.white)
- term.setBackgroundColor(colors.red)
- term.clearLine()
- term.setCursorPos(1, height)
- term.clearLine()
- local text = "E.D.SYS"
- term.setCursorPos(math.floor((width - #text) / 2), 1)
- term.write(text)
- -- ######################
- -- #### STAGE 1 LOGIN
- -- ######################
- term.setTextColor(colors.red)
- term.setBackgroundColor(colors.black)
- term.setCursorPos(5, 3)
- term.write(" DANGER ")
- term.setTextColor(colors.red)
- term.setBackgroundColor(colors.black)
- term.setCursorPos(5, 4)
- term.write(" EMERGENCY DESTRUCTION SYSTEM ")
- term.setTextColor(colors.yellow)
- term.setBackgroundColor(colors.black)
- term.setCursorPos(5, 5)
- term.write(" ON ACTIVATION IT WILL DETONATE IN ")
- term.setTextColor(colors.yellow)
- term.setBackgroundColor(colors.black)
- term.setCursorPos(5, 6)
- term.write(" T MINUS MINUTES ")
- term.setTextColor(colors.red)
- term.setBackgroundColor(colors.black)
- term.setCursorPos(25, 6)
- term.write("10")
- term.setTextColor(colors.red)
- term.setBackgroundColor(colors.black)
- term.setCursorPos(5, 8)
- term.write(" FAILSAFE WARNING ")
- term.setTextColor(colors.yellow)
- term.setBackgroundColor(colors.black)
- term.setCursorPos(5, 9)
- term.write(" CUT-OFF SYSTEM WILL NOT OPERATE AFTER ")
- term.setTextColor(colors.yellow)
- term.setBackgroundColor(colors.black)
- term.setCursorPos(5, 10)
- term.write(" T MINUS MINUTES ")
- term.setTextColor(colors.red)
- term.setBackgroundColor(colors.black)
- term.setCursorPos(25, 10)
- term.write("5")
- term.setCursorPos(13, 16)
- term.setBackgroundColor(colors.black)
- term.setTextColor(colors.yellow)
- term.write(" PRESS ENTER TO CONTINUE ")
- term.setTextColor(colors.white)
- term.setBackgroundColor(colors.gray)
- local input = read("")
- term.setCursorPos(13, 16)
- if input == agree then
- sleep(2)
- shell.run("purge")
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment