Advertisement
kwinto93

test

Aug 17th, 2013
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.42 KB | None | 0 0
  1. local modem = peripheral.wrap("top") -- podłączam modem, który jest na górze komputera
  2. local channel = 1 -- standardowy kanał nadawczy
  3. local replyChannel = 1 -- standardowy kanał odbiorczy
  4.  
  5. modem.open(channel) -- modem api: http://computercraft.info/wiki/Modem_(API)
  6. modem.open(replyChannel)
  7.  
  8. modem.transmit(channel, replyChannel, "Polaczono...")
  9. local ArgModem = {os.pullEvent("modem_message")}
  10. print(ArgModem[5])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement