Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rednet.open("back")
- text={}
- while true do
- id,chat,dist=rednet.receive()
- fred=string.find(chat,"fred ")
- fred1=string.find(chat,"fred1")
- fred2=string.find(chat,"fred2")
- fred3=string.find(chat,"fred3")
- fred4=string.find(chat,"fred4")
- fred5=string.find(chat,"fred5")
- sap=string.find(chat,"sap")
- relay1=string.find(chat,"relay1")
- size=8
- freds={
- fred,fred1,fred2,
- fred3,fred4,fred5,
- sap,relay1
- }
- for c=1,size do
- if not freds[c] then
- freds[c]=0
- end
- end
- for c=1,size do
- if freds[c]>0 then
- text[c]=chat
- end
- if not text[c] then
- text[c] = " "
- end
- end
- shell.run("clear")
- for c=1,size do
- --if text[c] ~= nil then
- print(text[c])
- --end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement