Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print("Viper Remote Connect Solutions")
- redstone.setOutput("top",true)
- rednet.open("right")
- while true do
- 2,message = rednet.recieve()
- if message == "ping" then
- print("Viper Connection Authenticated, Connecting To Server")
- else print("Viper Connection Not Succesful")
- break
- end
- sleep(3)
- while true do
- 2 message = rednet.recieve()
- if message == "start" then
- c = colors.combine(c,colors.black)
- rs.setBundledOutput("Back",c)
- rednet.send(2,"start")
- print("Reactor On")
- elseif message == "stop" then
- c = colors.subtract(c,colors.black)
- rs.setBundledOutput("back",c)
- rednet.send(2,"stop")
- print("Reactor Off")
- elseif message == "stwater" then
- c = colors.combine(c,colors.red)
- rs.setBundledOutput("back",c)
- rednet.send(2,"stwater")
- print("Water On")
- elseif message == "stowater" then
- c = colors.subtract(c,colors.red)
- rs.setBundledOutput("back",c)
- rednet.send(2,"stowater")
- print("Water Off")
- elseif message = "lights" then
- c = colors.combine(c,colors.blue)
- rs.setBundledOutput("back",c)
- rednet.send(2,"lights")
- print("Lights On")
- elseif message == "slights" then
- c = colors.subtract(c,colors.blue)
- rs.setBundledOutput("back",c)
- rednet.send(2,"slights")
- print("Lights Off")
- elseif message == "warning" then
- c = colors.combine(c,colors.red)
- rs.setBundledOutput("back",c)
- c = colors.subtract(c,colors.black)
- rs.setBundledOutput("back",c)
- rednet.send(2,"warning")
- print("All Stop")
- elseif message == "terminate" then
- rednet.close("right")
- break
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment