Advertisement
nagoL2015

Receive DLA Games

Oct 18th, 2017
163
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.27 KB | None | 0 0
  1. modem = peripheral.find("modem")
  2. modem.open(128)
  3.  
  4. term.clear()
  5. term.setCursorPos(1, 1)
  6. print("Waiting..")
  7.  
  8. local _, _, _, _, code = os.pullEvent("modem_message")
  9. if code ~= nil then
  10.   shell.run(code)
  11.   term.clear()
  12.   term.setCursorPos(1, 1)
  13.   print("Received.")
  14. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement