Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while true do
- local id, msg = rednet.receive()
- if msg == "$REGISTER$" then
- local turtleID = id
- rednet.send(turtleID, "$REGISTER$")
- break
- end
- end
- while true do
- local auth, isping = rednet.receive()
- if auth == turtleID and isping == "$PING$" then
- rednet.send(turtleID, "$PING$")
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment