Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- term.clear()
- term.setCursorPos(16, 1)
- while true do
- term.setCursorPos(1, 3)
- term.clearLine()
- write "Lab Defence System 1.0"
- term.setCursorPos(1, 4)
- write "1.Power up defence grid"
- term.setCursorPos(1, 5)
- write "2.Power down defence grid"
- term.setCursorPos(1, 7)
- local input = string.lower( read() )
- if input == "1" then
- term.setCursorPos(1, 8)
- print("Re-enter Password:")
- term.setCursorPos(10, 9)
- input = read("*")
- if input == "jebend" then
- rs.setOutput("bottom", false)
- print ("Defence grid online")
- sleep(6)
- term.clear()
- end
- if input == "2" then
- if input == "1" then
- term.setCursorPos(1, 8)
- print("Re-enter Password:")
- term.setCursorPos(10, 9)
- input = read("*")
- if input == "jebend" then
- term.clear()
- rs.setOutput("bottom", true)
- print ("Defence grid offline")
- sleep(6)
- term.clear()
- end
- if input == "exit" then
- break
- end
- sleep(20)
- term.clear()
- shell.run('startup')
- end
Advertisement
Add Comment
Please, Sign In to add comment