Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- a = 1
- b = 1
- mon = peripheral.wrap("right")
- rednet.open("top")
- mon.clear()
- mon.setCursorPos(1,1)
- for z = 1,25 do
- mon.setCursorPos(1,a)
- mon.write(a..":")
- a = a + 1
- end
- for z = 1,25 do
- mon.setCursorPos(5,b)
- mon.write("OFFLINE")
- b = b + 1
- end
- mon.setCursorPos(5,os.getComputerID())
- mon.write("MAIN ")
- while true do
- id,line,dist = rednet.receive()
- if line == "on" then
- mon.setCursorPos(5,id)
- mon.write("ONLINE ")
- elseif line == "off" then
- mon.setCursorPos(5,id)
- mon.write("OFFlINE")
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement