Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- term.clear()
- term.setCursorPos(1,1)
- print("Korean Missile Launch Terminal")
- print(" 1 - Launch First Missile")
- print(" 2 - Launch Second Missile")
- print(" 3 - Launch Third Missile")
- print(" 4 - Launch All Missiles")
- print(" 5 - Lock Terminal")
- print(" 6 - Terminal Shutdown")
- while true do
- event, param1 = os.pullEvent()
- if event == "char" and param1 == "1" then
- term.clear()
- term.setCursorPos(1,1)
- print("Launch Commencing In T-Minus...")
- print("30 Seconds")
- sleep(10)
- term.clear()
- term.setCursorPos(1,1)
- print("Launch Commencing In T-Minus...")
- print("20 Seconds")
- sleep(10)
- term.clear()
- term.setCursorPos(1,1)
- print("Launch Commencing In T-Minus...")
- print("10 Seconds")
- sleep(10)
- term.clear()
- term.setCursorPos(1,1)
- print("Commencing Launch")
- redstone.setOutput("left", true)
- sleep(2)
- redstone.setOutput("left", false)
- term.clear()
- term.setCursorPos(1,1)
- shell.run("MissileLaunch.lua")
- end
- if event == "char" and param1 == "2" then
- term.clear()
- term.setCursorPos(1,1)
- print("Launch Commencing In T-Minus...")
- print("30 Seconds")
- sleep(10)
- term.clear()
- term.setCursorPos(1,1)
- print("Launch Commencing In T-Minus...")
- print("20 Seconds")
- sleep(10)
- term.clear()
- term.setCursorPos(1,1)
- print("Launch Commencing In T-Minus...")
- print("10 Seconds")
- sleep(10)
- term.clear()
- term.setCursorPos(1,1)
- print("Commencing Launch")
- redstone.setOutput("back", true)
- sleep(2)
- redstone.setOutput("back", false)
- term.clear()
- term.setCursorPos(1,1)
- shell.run("MissileLaunch.lua")
- end
- if event == "char" and param1 == "3" then
- term.clear()
- term.setCursorPos(1,1)
- print("Launch Commencing In T-Minus...")
- print("30 Seconds")
- sleep(10)
- term.clear()
- term.setCursorPos(1,1)
- print("Launch Commencing In T-Minus...")
- print("20 Seconds")
- sleep(10)
- term.clear()
- term.setCursorPos(1,1)
- print("Launch Commencing In T-Minus...")
- print("10 Seconds")
- sleep(10)
- term.clear()
- term.setCursorPos(1,1)
- print("Commencing Launch")
- redstone.setOutput("right", true)
- sleep(2)
- redstone.setOutput("right", false)
- term.clear()
- term.setCursorPos(1,1)
- shell.run("MissileLaunch.lua")
- end
- if event == "char" and param1 == "4" then
- term.clear()
- term.setCursorPos(1,1)
- print("Launch Commencing In T-Minus...")
- print("30 Seconds")
- sleep(10)
- term.clear()
- term.setCursorPos(1,1)
- print("Launch Commencing In T-Minus...")
- print("20 Seconds")
- sleep(10)
- term.clear()
- term.setCursorPos(1,1)
- print("Launch Commencing In T-Minus...")
- print("10 Seconds")
- sleep(10)
- term.clear()
- term.setCursorPos(1,1)
- print("Commencing Launch")
- redstone.setOutput("back", true)
- redstone.setOutput("left", true)
- redstone.setOutput("right", true)
- sleep(2)
- redstone.setOutput("back", false)
- redstone.setOutput("left", false)
- redstone.setOutput("right", false)
- term.clear()
- term.setCursorPos(1,1)
- shell.run("MissileLaunch.lua")
- end
- if event == "char" and param1 = "5" then
- term.clear()
- term.setCursorPos(1,1)
- print("Locking Terminal...")
- sleep(2)
- shell.run(startup)
- end
- if event == "char" and param1 = "6" then
- term.clear()
- term.setCursorPos(1,1)
- print("Shutting Down...")
- sleep(2)
- shell.run(shutdown)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement