Sivarias

CC_Compy_startup

Oct 9th, 2013
212
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.09 KB | None | 0 0
  1. --startup
  2. --This is a computer start-up program that will hopefully be able to control a veritable army of turtles.
  3. print("Name: "..os.getComputerLabel())
  4. print("ID: "..os.getComputerID())
  5. modem=0
  6. for _, side in pairs(rs.getSides()) do
  7. if peripheral.getType(side) == "modem" then
  8. modem = peripheral.wrap(side)
  9. print("Connected to Modem")
  10. break
  11. end
  12. end
  13. monitor=0
  14. for _, side in pairs(rs.getSides()) do
  15. if peripheral.getType(side) == "monitor" then
  16. monitor = peripheral.wrap(side)
  17. print("Connected to Monitor")
  18. break
  19. end
  20. end
  21. drive=0
  22. for _, side in pairs(rs.getSides()) do
  23. if peripheral.getType(side) == "drive" then
  24. drive = peripheral.wrap(side)
  25. print("Connected to Drive")
  26. break
  27. end
  28. end
  29. printer=0
  30. for _, side in pairs(rs.getSides()) do
  31. if peripheral.getType(side) == "printer" then
  32. printer = peripheral.wrap(side)
  33. print("Connected to Printer")
  34. break
  35. end
  36. end
  37. modem.open(100)
  38. modem.open(128)
  39. modem.open(os.getComputerID())
  40. print("")
  41. print("Type programs for a list of programs, those with an ! are user friendly")
Advertisement
Add Comment
Please, Sign In to add comment