Advertisement
Cre3peYsTim3ouT1424

StatusStartup

Apr 10th, 2015
226
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.48 KB | None | 0 0
  1. a = 1
  2. b = 1
  3. mon = peripheral.wrap("right")
  4. rednet.open("top")
  5. mon.clear()
  6. mon.setCursorPos(1,1)
  7.  
  8. for z = 1,25 do
  9. mon.setCursorPos(1,a)
  10. mon.write(a..":")
  11. a = a + 1
  12. end
  13. for z = 1,25 do
  14. mon.setCursorPos(5,b)
  15. mon.write("OFFLINE")
  16. b = b + 1
  17. end
  18.  
  19. mon.setCursorPos(5,os.getComputerID())
  20. mon.write("MAIN   ")
  21. while true do
  22. id,line,dist = rednet.receive()
  23. if line == "on" then
  24. mon.setCursorPos(5,id)
  25. mon.write("ONLINE ")
  26. elseif line == "off" then
  27. mon.setCursorPos(5,id)
  28. mon.write("OFFlINE")
  29. end
  30. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement