Advertisement
RlonRyan

RR|AutoReactor

Jul 24th, 2014
203
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.86 KB | None | 0 0
  1. -- Reactor Setup
  2. -- By RlonRyan
  3. --
  4. -- N7ByezuW
  5. --
  6. -- This program downloads and starts the reactor controller program onto a computercraft computer connected to a Bigreactors reactor via wired modems. It requires a monitor set on top of the computer. An advanced monitor is recommended for maximal functionality.
  7. --
  8. -- Installation instructions:
  9. --
  10. -- For automated start use:
  11. -- pastebin get N7ByezuW startup
  12. -- Then reboot to run.
  13. --
  14. -- For normal start use:
  15. -- pastebin get N7ByezuW rsetup
  16. -- Then use bg monitor top reactor
  17.  
  18. function download(address, name)
  19.  
  20.     fs.delete(name)
  21.     shell.run("pastebin get " .. address .. " " .. name)
  22.  
  23. end
  24.  
  25. term.clear()
  26. term.setCursorPos(1,1)
  27.  
  28. print("RR|Reactor Setup")
  29. print("===============")
  30.  
  31. download("y2ebJveb" , "reactor")
  32.  
  33. print("Setup complete.")
  34. print("===============")
  35.  
  36. shell.run("bg monitor top reactor")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement