Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- term.clear()
- term.setCursorPos(1,1)
- print (" Please enter a command: ")
- term.setCursorPos(1,3)
- print (" a == Opens the technic-room-door for 4.sec ")
- term.setCursorPos(1,5)
- print (" b == Open and close the maindoor ")
- term.setCursorPos(1,7)
- print (" c == Turns on & off the lights ")
- term.setCursorPos(1,9)
- print (" d == Turns the fireplace on/off ")
- term.setCursorPos(1,11)
- print (" e == Houseelevator up/down ")
- pw = read()
- if pw == "a" then
- term.clear()
- term.setCursorPos(3,2)
- print (" The door to the technic-room is now open in 4. sec ")
- rs.setBundledOutput("back", colors.white)
- sleep(4,0)
- shell.run ("reboot")
- end
- if pw == "b" then
- term.clear()
- term.setCursorPos(3,2)
- print (" The maindoor will open and close automatic ")
- rs.setBundledOutput("back", colors.magenta)
- sleep(1,0)
- shell.run("reboot")
- end
- if pw == "c" then
- rs.setBundledOutput("back", colors.orange)
- term.clear()
- term.setCursorPos(3,2)
- print (" Light now on/off ")
- sleep(2,0)
- shell.run("reboot")
- end
- if pw == "d" then
- rs.setBundledOutput("back", colors.yellow)
- term.clear()
- term.setCursorPos(3,2)
- print(" Fireplace is now on/off ")
- sleep(1,0)
- shell.run("reboot")
- end
- if pw == "e" then
- term.clear()
- term.setCursorPos(1,1)
- print("*Pastebin")
- sleep(1,0)
- shell.run("reboot")
- end
Add Comment
Please, Sign In to add comment