norway240

Computer Craft: Fax Client

Sep 25th, 2012
190
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.59 KB | None | 0 0
  1. rednet.open("top") -- Change this to the side of your modem
  2.  
  3. write("ID to send to: ") -- Sets the id of the computer to send to (the fax server)
  4. id = read()
  5. id = id + 0
  6.  
  7. write("Title to set: ") -- Sets the title the page will be
  8. title = read()
  9. rednet.send(id,title)
  10.  
  11. write("Amount of lines to send: ") -- Sets the amount of lines to send
  12. lines = read()
  13.  
  14. rednet.send(id,lines)
  15. lines = lines + 0
  16.  
  17. for x = 1, lines do -- Does this for the amount of lines you told it
  18.  write("Line"..x..": ")
  19.  linetext = read()
  20.  rednet.send(id,linetext) -- Sends the text of the line
  21. end
  22.  
  23. print("Sent!")
Advertisement
Add Comment
Please, Sign In to add comment