Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local net = peripheral.wrap("back")
- local strength = 0
- net.open(1)
- net.open(2)
- while true do
- local event, ms, sc, replyc, message, sd = os.pullEvent("modem_message")
- local ns, ruid, content = split(message, "%5%")
- if ruid == "89e778f6999f4e091c849cb773e60469" then
- if content == "uno" then
- net.transmit(replyc, sc, "dous")
- end
- elseif ns < strength then
- net.transmit(sc, replyc, message)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement