Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rednet.open("right")
- mon = peripheral.wrap("top")
- mon.clear()
- mon.setCursorPos(1,1)
- mon.write("Liquid % Amount")
- idtab={349,350,352,353,357,358,359,362,363,364}
- while true do
- for i=1,10 do
- rednet.send(idtab[i],"Wake up bitch")
- id,message = rednet.receive()
- mon.setCursorPos(1,i+1)
- mon.write(message)
- mon.setCursorPos(1,12)
- mon.write(i)
- sleep(1)
- end
- i=1
- -- id == 358
- -- message = string.sub(message,10)
- -- message = "Fuel "..message
- -- id == 359
- -- message = string.sub(message,14)
- -- message = "Oil "..message
- -- id == 362
- -- ml = string.len(message)
- -- temp = string.sub(message,ml-5,ml)
- -- message = string.sub(message,1,ml-6)
- -- message = message.." "..temp
- end
Advertisement
Add Comment
Please, Sign In to add comment