Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --opens the current modem on the computer (specifying the modem is on top) to send/receive messages
- --directions include: top, bottom, left, right, front and back
- rednet.open("top")
- --Sends a string message over rednet to computer 3 (this message specifically asks the server for all sellable items on ATM Machines)
- rednet.send(3, "items please")
- -- Receives a message from any sources sending a message to this computer (and/or broadcasting to all computers in range)
- -- rednet.Recieve() will return an id and a message sent to the computer
- -- (parameter tells rednet to wait 5 seconds? (tick? I am pretty sure its seconds), if no response will return nil, if no parameter is specified it will infinitely wait)
- id, itemlist = rednet.recieve(5)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement