Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local modem = peripheral.wrap("left")
- modem.open(4)
- args = {...}
- searched = "send"
- for k, v in pairs(args) do
- searched = searched .. " " .. v
- end
- modem.transmit(3, 4, searched)
- while true do
- local event, modemSide, senderChannel, replyChannel, message, senderDistance = os.pullEvent("modem_message")
- print(message)
- if message == "Done" then
- return
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement