Cardwell

Untitled

Jun 15th, 2016
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.35 KB | None | 0 0
  1. term.clear()
  2.  
  3. term.setCursorPos(1,1)
  4. print (" Please enter a command: ")
  5.  
  6. term.setCursorPos(1,3)
  7. print (" a == Opens the technic-room-door for 4.sec ")
  8. term.setCursorPos(1,5)
  9. print (" b == Open and close the maindoor ")
  10. term.setCursorPos(1,7)
  11. print (" c == Turns on & off the lights ")
  12. term.setCursorPos(1,9)
  13. print (" d == Turns the fireplace on/off ")
  14. term.setCursorPos(1,11)
  15. print (" e == Houseelevator up/down ")
  16. pw = read()
  17.  
  18. if pw == "a" then
  19. term.clear()
  20. term.setCursorPos(3,2)
  21. print (" The door to the technic-room is now open in 4. sec ")
  22. rs.setBundledOutput("back", colors.white)
  23. sleep(4,0)
  24. shell.run ("reboot")
  25. end
  26.  
  27. if pw == "b" then
  28. term.clear()
  29. term.setCursorPos(3,2)
  30. print (" The maindoor will open and close automatic ")
  31. rs.setBundledOutput("back", colors.magenta)
  32. sleep(1,0)
  33. shell.run("reboot")
  34. end
  35.  
  36. if pw == "c" then
  37. rs.setBundledOutput("back", colors.orange)
  38. term.clear()
  39. term.setCursorPos(3,2)
  40. print (" Light now on/off ")
  41. sleep(2,0)
  42. shell.run("reboot")
  43. end
  44.  
  45. if pw == "d" then
  46. rs.setBundledOutput("back", colors.yellow)
  47. term.clear()
  48. term.setCursorPos(3,2)
  49. print(" Fireplace is now on/off ")
  50. sleep(1,0)
  51. shell.run("reboot")
  52. end
  53.  
  54. if pw == "e" then
  55. term.clear()
  56. term.setCursorPos(1,1)
  57. print("*Pastebin")
  58. sleep(1,0)
  59. shell.run("reboot")
  60. end
Add Comment
Please, Sign In to add comment