Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- sleep(0) --So you don't go too fast
- write("Suche: ")
- input = read()
- rednet.broadcast("rednet.api.ping.searchengine") --Send a message to all listening servers
- while true do -- Start the loop
- local a, i = rednet.receive(0) --Begin receiving for all servers that received the message
- if i then --If you receive a message then...
- if input == "" then
- print("Ergebnis (Adresse): " ..i) --Print the address
- else
- if string.find(i, input) then
- print("Ergebnis (Adresse): " ..i) --Print the address
- end
- end
- else --If you dont receive a message or you received every message then...
- break --Stop the searching
- end
- end--Finish the loop
Add Comment
Please, Sign In to add comment