Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for k,v in pairs(rs.getSides()) do
- rednet.open(v)
- end
- ids = {
- ["test"] = 128,
- ["bob"] = 3,
- ["mansion"] = 500
- }
- while true do
- s = rednet.receive()
- message, email = msg:match( "(.-)|(.+)" )
- for k,v in pairs(ids) do
- if tostring(message) == k then
- rednet.send(v, k)
- print("sent")
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment