SHOW:
|
|
- or go back to the newest paste.
1 | local wl = peripheral.call("back","open",199) | |
2 | ||
3 | term.clear() | |
4 | ||
5 | while true do | |
6 | local event, modemSide, senderChannel, | |
7 | replyChannel, message, senderDistance | |
8 | = os.pullEvent("modem_message") | |
9 | ||
10 | t = {} | |
11 | --for k,v in string.gmatch(message,"(%d*)" or "(%a*)") do | |
12 | -- t[k]=v | |
13 | --end | |
14 | a, b, c = string.match(message, "(%d*)%s(%a*)%s(%d*)") | |
15 | ||
16 | message = a | |
17 | ||
18 | term.setCursorPos(1,2) | |
19 | term.setTextColor(colors.white) | |
20 | term.write("Active: ") | |
21 | term.setTextColor(colors.lime) | |
22 | term.write(math.floor(message)) | |
23 | term.write(b) | |
24 | sleep(0) | |
25 | ||
26 | end |