This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
Goof's profile picture

rednet read X words, and then do... help

Started by Goof, 18 December 2012 - 09:00 AM
Goof #1
Posted 18 December 2012 - 10:00 AM
Hello.

ehm i dont know where to start, but, i want that if a miner sends "ore found at 51" then when the console receives that, then only if the words "ore founded at" exists, it will do a thing


thanks in advance.
KaoS #2
Posted 18 December 2012 - 10:20 AM

local id,msg,dist=rednet.receive()
if string.find(msg,"ore found at") then
  --your code
end
Goof #3
Posted 18 December 2012 - 10:25 AM
Thanks alot. 1UP to you :D/> you Are awesome :D/>
KaoS #4
Posted 18 December 2012 - 10:28 AM
hahaha thanks :rolleyes:/>