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 status = "8"
- local shutdownKey = "poweroff"
- local gohome = "quit"
- local password = "**********"
- local password2 = "passowrd"
- term.clear()
- term.setCursorPos(1,1)
- redstone.setOutput("top",true)
- term.write("connecting to remote host")
- while true do
- c = colors.combine(c,colors.green)
- rs.setBundledOutput("back",c)
- sleep(0.1)
- c = colors.subtract(c,colors.green)
- rs.setBundledOutput("back",c)
- sleep(0.5)
- if c = rs.getBundledInput("back")
- green = colors.test(c,colors.green)
- 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)
- if c = rs.getBundledInput("back")
- green = colors.test(c,colors.green) 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
- 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")
- prunt("Lights On/Off = 7")
- print("Check All Reactor Statuses = 8")
- print("Back To Mission Control = quit")
- sleep(2)
- local enteredKey = io.read
- if enteredKey == online then
- while true do
- print("Connecting To Reactor")
- c = colors.combine(c,colors.green)
- rs.setBundledOutput("back",c)
- sleep(0.2)
- c = colors.subtract(c,colors.green)
- rs.setBundledOutput("back",c)
- sleep(0.5)
- if c = rs.getBundledInput("back")
- green = colors.test(c,colors.green) then
- print("Viper Connection Established")
- else print("Viper Connection Non Existent, Retrying")
- 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")
- c = colors.combine(c,colors.red)
- rs.setBundledOutput("back",c)
- sleep(0.3)
- c = colors.subtract(c,colors.red)
- rs.setBundledOutput("back",c)
- sleep(0.5)
- if c = rs.getBundledInput("back")
- green = colors.test(c,colors.red) then
- print("Viper Connection Established")
- else print("Viper Connection Non Existent, Retrying")
- 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")
- c = colors.combine(c,colors.green) --FIX WITH CONFIG COLORS!
- rs.setBundledOutput("back",c)
- sleep(0.4)
- c = colors.subtract(c,colors.green)
- rs.setBundledOutput("back",c)
- sleep(0.5)
- if c = rs.getBundledInput("back")
- green = colors.test(c,colors.green) then
- print("Viper Connection Established")
- else print("Viper Connection Non Existent, Retrying")
- 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")
- c = colors.combine(c,colors.green) --FIX WITH CONFIG COLORS!
- rs.setBundledOutput("back",c)
- sleep(0.5)
- c = colors.subtract(c,colors.green)
- rs.setBundledOutput("back",c)
- sleep(0.5)
- if c = rs.getBundledInput("back")
- green = colors.test(c,colors.green) then
- print("Viper Connection Established")
- else print("Viper Connection Non Existent, Retrying")
- 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")
- c = colors.combine(c,colors.green) --FIX WITH CONFIG COLORS!
- rs.setBundledOutput("back",c)
- sleep(0.6)
- c = colors.subtract(c,colors.green)
- rs.setBundledOutput("back",c)
- sleep(0.5)
- if c = rs.getBundledInput("back")
- green = colors.test(c,colors.green) then
- print("Viper Connection Established")
- else print("Viper Connection Non Existent, Retrying")
- break
- end
- sleep(0.5)
- print("Full System 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 == shutdownKey then
- term.write("Server Going Offline")
- redstone.setOutput("top",false")
- for i=1,3 do
- sleep(0.5)
- term.write(".")
- 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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement