Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- shell.run("clear")
- print("---------------------------------------------------")
- print(" AKW Contoller V1.0")
- print("---------------------------------------------------")
- print(" List of Reactors:")
- print("Reactor 01: Main Reactor 01 - 1200 EU/t")
- print("Reactor 02: Main Reactor 02 - 1200 EU/t")
- write("Enter Reactor Number + on/off (example: 01 on): ")
- local reactorNumber = read()
- if reactorNumber =="01 on" then
- shell.run("clear")
- print("Starting up reactor 01...")
- sleep(0.5)
- rednet.send(4, "start")
- print("Reactor 01 is now Online")
- sleep(2)
- shell.run("AKWControll")
- end
- if reactorNumber =="01 off" then
- shell.run("clear")
- print("Shutting downn reactor 01...")
- sleep(0.5)
- print("Reactor 01 is now Offline")
- rednet.send(4, "stop")
- sleep(2)
- shell.run("AKWControll")
- end
- if reactorNumber =="02 on" then
- shell.run("clear")
- print("Starting up Reactor 02...")
- sleep(0.5)
- print("Reactor 02 is now Online")
- rednet.send(9, "start")
- sleep(2)
- shell.run("AKWControll")
- end
- if reactorNumber =="02 off" then
- shell.run("clear")
- print("Shutting down Reactor 02...")
- sleep(0.5)
- print("Reactor 02 is now Offline")
- rednet.send(9, "stop")
- sleep(2)
- shell.run("AKWControll")
- end
- if reactorNumber =="03 on" then
- shell.run("clear")
- print("Starting up reactor 03...")
- sleep(0.5)
- rednet.send(8, "start")
- print("Reactor 03 is now Online")
- sleep(2)
- shell.run("AKWControll")
- end
- if reactorNumber =="03 off" then
- shell.run("clear")
- print("Shutting down Reactor 03...")
- sleep(0.5)
- rednet.send(8, "start")
- print("Reactor 03 is now Online")
- sleep(2)
- shell.run("AKWControll")
- end
- if reactorNumber =="04 on" then
- shell.run("clear")
- print("Starting up reactor 04...")
- sleep(0.5)
- rednet.send(7, "start")
- print("Reactor 04 is now Online")
- sleep(2)
- shell.run("AKWControll")
- end
- if reactorNumber =="04 off" then
- shell.run("clear")
- print("Shutting down Reactor 04...")
- sleep(0.5)
- rednet.send(7, "start")
- print("Reactor 04 is now Online")
- sleep(2)
- shell.run("AKWControll")
- end
- if reactorNumber =="05 on" then
- shell.run("clear")
- print("Starting up reactor 05...")
- sleep(0.5)
- rednet.send(6, "start")
- print("Reactor 05 is now Online")
- sleep(2)
- shell.run("AKWControll")
- end
- if reactorNumber =="05 off" then
- shell.run("clear")
- print("Shutting down Reactor 05...")
- sleep(0.5)
- rednet.send(6, "start")
- print("Reactor 05 is now Online")
- sleep(2)
- shell.run("AKWControll")
- end
- if reactorNumber =="06 on" then
- shell.run("clear")
- print("Starting up reactor 06...")
- sleep(0.5)
- rednet.send(5, "start")
- print("Reactor 06 is now Online")
- sleep(2)
- shell.run("AKWControll")
- end
- if reactorNumber =="6 off" then
- shell.run("clear")
- print("Shutting down Reactor 06...")
- sleep(0.5)
- rednet.send(5, "start")
- print("Reactor 06 is now Online")
- sleep(2)
- shell.run("AKWControll")
- end
- if reactorNumber =="all on" then
- rednet.broadcast("start")
- shell.run("clear")
- print("All Reactors are now Online")
- sleep(2)
- shell.run("AKWControll")
- end
- if reactorNumber =="all off" then
- rednet.broadcast("stop")
- shell.run("clear")
- print("All Reactors are now Offline")
- sleep(2)
- shell.run("AKWControll")
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement