Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local modem = peripheral.wrap("right") or error("No modem attached", 0)
- local otherpc = peripheral.wrap("top")
- modem.open(32465)
- while true do
- local event, side, channel, replyChannel, message, distance = os.pullEvent("modem_message")
- if math.floor(distance) == 3 then
- if message == 3071 then
- modem.transmit(replyChannel,32465,200)
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement