Advertisement
LMH01

Untitled

Jul 26th, 2018
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 3.29 KB | None | 0 0
  1. shell.run("clear")
  2. print("---------------------------------------------------")
  3. print("                AKW Contoller V1.0")
  4. print("---------------------------------------------------")
  5. print("                List of Reactors:")
  6. print("Reactor 01: Main Reactor 01 - 1200 EU/t")
  7. print("Reactor 02: Main Reactor 02 - 1200 EU/t")
  8. write("Enter Reactor Number + on/off (example: 01 on): ")
  9. local reactorNumber = read()
  10. if reactorNumber =="01 on" then
  11.   shell.run("clear")
  12.   print("Starting up reactor 01...")
  13.   sleep(0.5)
  14.   rednet.send(4, "start")
  15.   print("Reactor 01 is now Online")
  16.   sleep(2)
  17.   shell.run("AKWControll")
  18. end
  19. if reactorNumber =="01 off" then
  20.   shell.run("clear")
  21.   print("Shutting downn reactor 01...")
  22.   sleep(0.5)
  23.   print("Reactor 01 is now Offline")
  24.   rednet.send(4, "stop")
  25.   sleep(2)
  26.   shell.run("AKWControll")
  27. end
  28. if reactorNumber =="02 on" then
  29.   shell.run("clear")
  30.   print("Starting up Reactor 02...")
  31.   sleep(0.5)
  32.   print("Reactor 02 is now Online")
  33.   rednet.send(9, "start")
  34.   sleep(2)
  35.   shell.run("AKWControll")
  36. end
  37. if reactorNumber =="02 off" then
  38.   shell.run("clear")
  39.   print("Shutting down Reactor 02...")
  40.   sleep(0.5)
  41.   print("Reactor 02 is now Offline")
  42.   rednet.send(9, "stop")
  43.   sleep(2)
  44.   shell.run("AKWControll")
  45. end
  46. if reactorNumber =="03 on" then
  47.   shell.run("clear")
  48.   print("Starting up reactor 03...")
  49.   sleep(0.5)
  50.   rednet.send(8, "start")
  51.   print("Reactor 03 is now Online")
  52.   sleep(2)
  53.   shell.run("AKWControll")
  54. end
  55. if reactorNumber =="03 off" then
  56.   shell.run("clear")
  57.   print("Shutting down Reactor 03...")
  58.   sleep(0.5)
  59.   rednet.send(8, "start")
  60.   print("Reactor 03 is now Online")
  61.   sleep(2)
  62.   shell.run("AKWControll")
  63. end
  64. if reactorNumber =="04 on" then
  65.   shell.run("clear")
  66.   print("Starting up reactor 04...")
  67.   sleep(0.5)
  68.   rednet.send(7, "start")
  69.   print("Reactor 04 is now Online")
  70.   sleep(2)
  71.   shell.run("AKWControll")
  72. end
  73. if reactorNumber =="04 off" then
  74.   shell.run("clear")
  75.   print("Shutting down Reactor 04...")
  76.   sleep(0.5)
  77.   rednet.send(7, "start")
  78.   print("Reactor 04 is now Online")
  79.   sleep(2)
  80.   shell.run("AKWControll")
  81. end
  82. if reactorNumber =="05 on" then
  83.   shell.run("clear")
  84.   print("Starting up reactor 05...")
  85.   sleep(0.5)
  86.   rednet.send(6, "start")
  87.   print("Reactor 05 is now Online")
  88.   sleep(2)
  89.   shell.run("AKWControll")
  90. end
  91. if reactorNumber =="05 off" then
  92.   shell.run("clear")
  93.   print("Shutting down Reactor 05...")
  94.   sleep(0.5)
  95.   rednet.send(6, "start")
  96.   print("Reactor 05 is now Online")
  97.   sleep(2)
  98.   shell.run("AKWControll")
  99. end
  100. if reactorNumber =="06 on" then
  101.   shell.run("clear")
  102.   print("Starting up reactor 06...")
  103.   sleep(0.5)
  104.   rednet.send(5, "start")
  105.   print("Reactor 06 is now Online")
  106.   sleep(2)
  107.   shell.run("AKWControll")
  108. end
  109. if reactorNumber =="6 off" then
  110.   shell.run("clear")
  111.   print("Shutting down Reactor 06...")
  112.   sleep(0.5)
  113.   rednet.send(5, "start")
  114.   print("Reactor 06 is now Online")
  115.   sleep(2)
  116.   shell.run("AKWControll")
  117. end
  118. if reactorNumber =="all on" then
  119.   rednet.broadcast("start")
  120.   shell.run("clear")
  121.   print("All Reactors are now Online")
  122.   sleep(2)
  123.   shell.run("AKWControll")
  124. end
  125. if reactorNumber =="all off" then
  126.   rednet.broadcast("stop")
  127.   shell.run("clear")
  128.   print("All Reactors are now Offline")
  129.   sleep(2)
  130.   shell.run("AKWControll")
  131. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement