MarcosKoco

TRC_Computer_Setup

Jun 5th, 2021 (edited)
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.36 KB | None | 0 0
  1. local System = os -- Used for System things like os.time() to System.time()
  2. local Screen = term -- Used for Screen thing on the turtle or computer like term.clear() to Screen.clear()
  3. local Per = peripheral -- Used shortcut for peripheral
  4. local Text = textutils -- Used shortcut for textilils
  5. local Pack = Text.serialize -- Makes a new command for packing ( shortcut used from local Text)
  6. local UnPack = Text.unserialize -- Makes a new command for unpacking ( shortcut used from local Text)
  7.  
  8. local OldpullEvent = System.pullEvent
  9. System.pullEvent = System.pullEventRaw
  10.  
  11. Screen.clear()
  12. Screen.setCursorPos(1,1)
  13. print("Welcome to OS Installer !")
  14. print("The installer will now run...")
  15. print("---------------------------------")
  16. Screen.setCursorPos(1,5)
  17. Screen.write("#")
  18.  
  19. if fs.exists("/StartUp.lua") then
  20.     fs.delete("/StartUp.lua")
  21. end
  22. if fs.exists("/Back.lua") then
  23.     fs.delete("/Back.lua")
  24. end
  25. if fs.exists("/OS") then
  26.     fs.delete("/OS")
  27. end
  28. if fs.exists("/Progs") then
  29.     fs.delete("/Progs")
  30. end
  31.  
  32. Screen.setCursorPos(1,5)
  33. Screen.clearLine()
  34. Screen.write("##")
  35.  
  36. fs.makeDir("/OS/")
  37. fs.makeDir("/Progs/")
  38. fs.makeDir("/Progs/.Data/")
  39.  
  40. Screen.setCursorPos(1,5)
  41. Screen.clearLine()
  42. Screen.write("###")
  43.  
  44. shell.run("pastebin get HDJUG11K /OS/Uninstall.lua")
  45.  
  46. Screen.setCursorPos(1,5)
  47. Screen.clearLine()
  48. Screen.write("####")
  49.  
  50. shell.run("pastebin get VLdgN5Mp /Back.lua")
  51.  
  52. Screen.setCursorPos(1,5)
  53. Screen.clearLine()
  54. Screen.write("#####")
  55.  
  56. shell.run("pastebin get WmjZhLZG /OS/.PassW.lua")
  57. shell.run("pastebin get ezLhQudE /OS/.Make.lua")
  58. shell.run("pastebin get Jt21W4gu /OS/.LogIn.lua")
  59.  
  60. Screen.setCursorPos(1,5)
  61. Screen.clearLine()
  62. Screen.write("######")
  63.  
  64. shell.run("pastebin get aMmYC9uW /OS/.Menu.lua")
  65.  
  66. Screen.setCursorPos(1,5)
  67. Screen.clearLine()
  68. Screen.write("#######")
  69.  
  70. shell.run("pastebin get tJyLUyAw /OS/.Progs.lua")
  71.  
  72. Screen.setCursorPos(1,5)
  73. Screen.clearLine()
  74. Screen.write("########")
  75.  
  76. shell.run("pastebin get FK9CTc1z /Progs/.RCT.lua")
  77.  
  78. Screen.setCursorPos(1,5)
  79. Screen.clearLine()
  80. Screen.write("#########")
  81.  
  82. shell.run("pastebin get veZSf7gY /Progs/3DPaintPro.lua")
  83.  
  84. Screen.setCursorPos(1,5)
  85. Screen.clearLine()
  86. Screen.write("##########")
  87.  
  88. local file = "/StartUp.lua"
  89.  
  90. local File = fs.open(file, "w")
  91. File.write('shell.run("/OS/.PassW.lua")')
  92. File.close()
  93.  
  94. Screen.setCursorPos(1,6)
  95. print("The installer is done !")
  96.  
  97. sleep(2)
  98.  
Advertisement
Add Comment
Please, Sign In to add comment