Advertisement
msmikesc

send

Apr 17th, 2019
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. local modem = peripheral.wrap("left")
  2. modem.open(4)
  3.  
  4. args = {...}
  5.  
  6. searched = "send"
  7. for k, v in pairs(args) do
  8. searched = searched .. " " .. v
  9. end
  10.  
  11.  
  12. modem.transmit(3, 4, searched)
  13.  
  14. while true do
  15. local event, modemSide, senderChannel, replyChannel, message, senderDistance = os.pullEvent("modem_message")
  16. print(message)
  17.  
  18. if message == "Done" then
  19. return
  20. end
  21. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement