Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local com =require("component")
- local event =require("event")
- local pc = require("computer")
- local dn = {city17 ="8df1899e-070c-4269-985f-015578ed34d3"}
- local message
- local address, address2
- if com.isAvailable("modem") then
- mod =com.modem
- else return 0
- end
- mod.open(110)
- while true do
- address2, _, address, address2, _, message =event.pull("modem_message")
- print(message)
- print (mod.send(address, 110, dn[message]))
- print(address)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement