Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local online = "1"
- local offline = "2"
- local water = "3"
- local wateroff = "4"
- local allstop = "5"
- local autorun = "6"
- local lights = "7"
- local slights = "8"
- local status = "9"
- local shutdown = "poweroff"
- local gohome = "quit"
- local password = "kinsman-46"
- local password2 = "passowrd"
- term.clear()
- term.setCursorPos(1,1)
- redstone.setOutput("top",true)
- rednet.open("right")
- term.write("connecting to remote host")
- while true do
- rednet.send(3,"ping")
- sleep(0.5)
- 3 messgae = rednet.recieve()
- if message == "ping" then
- print("Connection Established")
- else print("Connection Failed, Retrying")
- break
- end
- sleep(2)
- term.clear()
- term.setCursorPos(1,1)
- print("Geting Information From Remote Client")
- sleep(2)
- 3 message = rednet.recieve()
- if message == "reactor" then
- print("Reactor is Online")
- else print("Reactor is Offline")
- end
- sleep(4)
- while true do
- term.clear()
- term.setCursorPos(1,1)
- print("Please Verify Your Credentials")
- local enteredKey = io.read
- if enteredKey == password then
- term.clear()
- term.setCursorPos(1,1)
- print("Welcome Pieiscool32")
- elseif enteredKey == password2 then
- print("Sorry Guest, You Do Not Have Permission")
- sleep(2)
- shell.run "servermissioncontrol"
- else print("Credentials Did Not Match, Please Try Again")
- break
- end
- while true do
- sleep(2)
- term.clear()
- term.setCursorPos(1,1)
- print(" Welcome To The Remote Reactor Control Unit")
- print("Please Select The Option That Corresponds To You")
- print("Start Reactor = 1")
- print("Stop Reactor = 2")
- print("Start Water = 3")
- print("Stop Water = 4")
- print("All Stop = 5")
- print("Auto Run/Stop = 6")
- print("Lights On = 7")
- print("Lights Off = 8 ")
- print("Check All Reactor Statuses = 9")
- print("Back To Mission Control = quit")
- sleep(2)
- local enteredKey = io.read
- if enteredKey == online then
- while true do
- print("Connecting To Reactor")
- rednet.send(3,"start")
- 3 message = rednet.recieve()
- if message == "start" then
- print("Viper Connection Established")
- else print("Viper Connection Non Existent, Retrying")
- end
- break
- end
- sleep(0.5)
- print("Reactor Ignition Trigger Has Been Sent")
- sleep(2)
- shell.run "Nuke"
- elseif enteredKey == offline then
- while true do
- print("Connecting To Reactor")
- rednet.send(3,"stop")
- 3 message = rednet.recieve()
- if message == "stop" then
- else print("Viper Connection Non Existent, Retrying")
- end
- break
- end
- sleep(0.5)
- print("Reactor Shutdown Trigger Has Been Sent")
- sleep(2)
- shell.run "Nuke"
- elseif enteredKey == water then
- while true do
- print("Connecting To Reactor")
- rednet.send(3,"stwater")
- 3 message = rednet.recieve()
- if message == "stwater" then
- print("Viper Connection Established")
- else print("Viper Connection Non Existent, Retrying")
- end
- break
- end
- sleep(0.5)
- print("Reactor Water Ignition Trigger Has Been Sent")
- sleep(2)
- shell.run "Nuke"
- elseif enteredKey == wateroff then
- while true do
- print("Connecting To Reactor")
- rednet.send(3,"stowater")
- 3 message = rednet.recieve()
- if message == "stowater" then
- green = colors.test(c,colors.green)
- print("Viper Connection Established")
- else print("Viper Connection Non Existent, Retrying")
- end
- break
- end
- sleep(0.5)
- print("Water Shutdown Trigger Has Been Sent")
- sleep(2)
- shell.run "Nuke"
- elseif enteredKey == allstop then
- while true do
- print("Connecting To Reactor")
- rednet.send(3,"warning")
- 3 message = rednet.recieve()
- if message == "warning" then
- print("Viper Connection Established")
- else print("Viper Connection Non Existent, Retrying")
- end
- break
- end
- sleep(0.5)
- print("Full System Shutdown Trigger Has Been Sent")
- sleep(2)
- shell.run "Nuke"
- elseif enteredKey == lights then
- print("Connecting To Reactor")
- rednet.send(3,"lights")
- 3 message = rednet.recieve()
- if message == "lights" then
- print("Viper Connection Established")
- else print("Viper Connection Non Existent, Retrying")
- end
- break
- end
- sleep(0.5)
- print("Lights Activation Trigger Has Been Sent")
- sleep(2)
- shell.run "Nuke"
- elseif enteredKey == slights then
- print("Connecting To Reactor")
- rednet.send(3,"slights")
- 3 message = rednet.recieve()
- if message == "slights" then
- print("Viper Connection Established")
- else print("Viper Connection Non Existent, Retrying")
- end
- break
- end
- sleep(0.5)
- print("Lights Shutdown Trigger Has Been Sent")
- sleep(2)
- shell.run "Nuke"
- elseif enteredKey == status then
- print("Loading GUI")
- sleep(2)
- term.clear()
- term.setCursorPos(1,1)
- shell.run "statusNuke"
- elseif enteredKey == shutdown then
- term.write("Server Going Offline")
- redstone.setOutput("top",false)
- for i=1,3 do
- sleep(0.5)
- term.write(".")
- end
- sleep(2)
- os.shutdown()
- elseif enteredKey == gohome then
- Print("Loading GUI")
- sleep(2)
- shell.run "servermissioncontrol"
- else print("Option Not Valid, Try Again")
- sleep(2)
- break
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement