edoreld

Untitled

Jun 16th, 2013
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. rednet.open("right")
  2. mon = peripheral.wrap("top")
  3. mon.clear()
  4. mon.setCursorPos(1,1)
  5. mon.write("Liquid % Amount")
  6. idtab={349,350,352,353,357,358,359,362,363,364}
  7. while true do
  8. for i=1,10 do
  9. rednet.send(idtab[i],"Wake up bitch")
  10. id,message = rednet.receive()
  11. mon.setCursorPos(1,i+1)
  12. mon.write(message)
  13. mon.setCursorPos(1,12)
  14. mon.write(i)
  15. sleep(1)
  16. end
  17. i=1
  18.  
  19. -- id == 358
  20. -- message = string.sub(message,10)
  21. -- message = "Fuel "..message
  22.  
  23. -- id == 359
  24. -- message = string.sub(message,14)
  25. -- message = "Oil "..message
  26.  
  27. -- id == 362
  28. -- ml = string.len(message)
  29. -- temp = string.sub(message,ml-5,ml)
  30. -- message = string.sub(message,1,ml-6)
  31. -- message = message.." "..temp
  32. end
Advertisement
Add Comment
Please, Sign In to add comment