Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rednet.open("left")
- function begin()
- while true do
- term.clear()
- term.setCursorPos(1,1)
- print("House Control Systems:")
- print("")
- print("1 - Quarantine")
- print("")
- print("What do you want to do?")
- menu = read()
- if menu == "1" then
- term.clear()
- term.setCursorPos(1,1)
- print("Quarantine setting")
- print("----------------------------------------------")
- if rs.getOutput("top") == true then
- print("Quarantine is active. Type off to deactivate")
- off = read()
- if off == off then
- print("Deactivating Quarantine")
- rs.setOutput("top",false)
- sleep(2)
- begin()
- end
- end
- if rs.getOutput("top") == false then
- print("Quarantine is deactivated. type on to activate or Press 2 to return to the main menu")
- on = read()
- if on == on then
- print("Activating Quarantine")
- rs.setOutput("top",true)
- sleep(2)
- begin()
- end
- end
- end
- end
- end
- begin()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement