Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --server
- term.clear()
- a = 0
- function gs()
- rednet.open("back")
- print("RedSpeed Server Running. Total Served: " .. a)
- events, ids, texts = os.pullEvent()
- if events == "rednet_message" and texts=="1111111111111111111111111111111" then
- rednet.broadcast("Ok.")
- a = a + 1
- print("RedSpeed Served. Total Served: " .. a .. ". Last Computer ID Served: " .. tostring(ids))
- gs()
- elseif events == "rednet_message" then
- rednet.broadcast("doom doom doom")
- a = a + 1
- print("RedSpeed Served. Total Served: " .. a .. ". Last Computer ID Served: " .. tostring(ids))
- gs()
- else
- end
- end
- gs()
Advertisement
Add Comment
Please, Sign In to add comment