Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local wl = peripheral.call("back","open",199)
- term.clear()
- while true do
- local event, modemSide, senderChannel,
- replyChannel, message, senderDistance
- = os.pullEvent("modem_message")
- t = {}
- --for k,v in string.gmatch(message,"(%d*)" or "(%a*)") do
- -- t[k]=v
- --end
- a, b, c = string.match(message, "(%d*)%s(%a*)%s(%d*)")
- message = a
- term.setCursorPos(1,2)
- term.setTextColor(colors.white)
- term.write("Active: ")
- term.setTextColor(colors.lime)
- term.write(math.floor(message))
- term.write(b)
- sleep(0)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement