SHARE
TWEET

Draconic Reactor Installer

Zeanon Apr 24th, 2019 (edited) 130 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. -- Installer for DraconicReactorControl by drmon and Zeanon
  2. -- get it with pastebin get UKxFmqXx install
  3. -- pastebin link: https://pastebin.com/UKxFmqXx
  4.  
  5. local libURL = "https://raw.githubusercontent.com/Zeanon/ComputerCraft/master/lib/gui.lua"
  6. local startupURL = "https://raw.githubusercontent.com/Zeanon/ComputerCraft/master/DraconicReactorControl/startup.lua"
  7. local runURL = "https://raw.githubusercontent.com/Zeanon/ComputerCraft/master/DraconicReactorControl/run.lua"
  8. local reactorControlURL = "https://raw.githubusercontent.com/Zeanon/ComputerCraft/master/DraconicReactorControl/DraconicReactorControl.lua"
  9. local lib, startup, run, reactorControl
  10. local libFile, startupFile, runFile, reactorControlFile
  11.  
  12. fs.makeDir("lib")
  13.  
  14. lib = http.get(libURL)
  15. libFile = lib.readAll()
  16.  
  17. local file1 = fs.open("lib/gui", "w")
  18. file1.write(libFile)
  19. file1.close()
  20.  
  21.  
  22. startup = http.get(startupURL)
  23. startupFile = startup.readAll()
  24.  
  25. local file2 = fs.open("startup", "w")
  26. file2.write(startupFile)
  27. file2.close()
  28.  
  29.  
  30. run = http.get(runURL)
  31. runFile = run.readAll()
  32.  
  33. local file3 = fs.open("run", "w")
  34. file3.write(runFile)
  35. file3.close()
  36.  
  37.  
  38. reactorControl = http.get(reactorControlURL)
  39. reactorControlFile = reactorControl.readAll()
  40.  
  41. local file4 = fs.open("DraconicReactor", "w")
  42. file4.write(reactorControlFile)
  43. file4.close()
  44.  
  45. if fs.exists("update") then
  46.     shell.run("delete update")
  47. end
  48. shell.run("pastebin get UEi3KkwM update")
  49.  
  50. if os.getComputerLabel() == null then
  51.     os.setComputerLabel("Draconic-Reactor")
  52. end
  53.  
  54. shell.run("reboot")
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top