Advertisement
MCFunRide

RedBC Client

May 17th, 2015
247
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. rednet.open("top")
  2. term.clear()
  3. term.setCursorPos(1,1)
  4. print("RedBC")
  5. term.setCursorPos(1,3)
  6. print("Channels Avaliable")
  7. print()
  8. local id, message = rednet.receive()
  9. print(message)
  10. print()
  11. print()
  12. write("Host Name: ")
  13. host = read()
  14.  
  15. rednet.send(id,"response:"..host)
  16.  
  17. local id2, msg = rednet.receive()
  18.  
  19. if id2 == id then
  20. f = fs.open("/,temp","w")
  21. f.write(msg)
  22. f.close()
  23. term.clear()
  24. term.setCursorPos(1,1)
  25. print("RedBC")
  26. term.setCursorPos(1,3)
  27. print("Watching Channel :"..host)
  28. term.setTextColor(colors.black)
  29. shell.run("monitor right /.temp")
  30. fs.delete("/.temp")
  31. print()
  32. print("Thank you for using RedBC.")
  33. sleep(2)
  34. os.reboot()
  35. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement