KevY007

SetShieldWizard

Dec 19th, 2015
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 25.96 KB | None | 0 0
  1. term.clear()
  2. term.setCursorPos(1,1)
  3. term.setTextColor(colors.yellow)
  4. print("SetShield Wizard")
  5.  
  6.  
  7. term.setTextColor(colors.yellow)
  8. term.setCursorPos(40,1)
  9. term.setBackgroundColor(colors.red)
  10. print("Create Setup")
  11.  
  12. sleep(1)
  13. term.setCursorPos(40,1)
  14. term.setBackgroundColor(colors.black)
  15. print("            ")
  16. term.setCursorPos(41,1)
  17. term.setBackgroundColor(colors.red)
  18. print("Create Setu")
  19.  
  20. sleep(0.1)
  21. term.setCursorPos(40,1)
  22. term.setBackgroundColor(colors.black)
  23. print("            ")
  24. term.setCursorPos(42,1)
  25. term.setBackgroundColor(colors.red)
  26. print("Create Set")
  27.  
  28. sleep(0.1)
  29. term.setCursorPos(40,1)
  30. term.setBackgroundColor(colors.black)
  31.  print("            ")
  32. term.setCursorPos(43,1)
  33. term.setBackgroundColor(colors.red)
  34. print("Create Se")
  35.  
  36. sleep(0.1)
  37. term.setCursorPos(40,1)
  38. term.setBackgroundColor(colors.black)
  39.  print("            ")
  40. term.setCursorPos(44,1)
  41. term.setBackgroundColor(colors.red)
  42. print("Create S")
  43.  
  44. sleep(0.1)
  45. term.setCursorPos(40,1)
  46. term.setBackgroundColor(colors.black)
  47.  print("            ")
  48. term.setCursorPos(45,1)
  49. term.setBackgroundColor(colors.red)
  50. print("Create ")
  51.  
  52. sleep(0.1)
  53. term.setCursorPos(40,1)
  54. term.setBackgroundColor(colors.black)
  55.  print("            ")
  56. term.setCursorPos(46,1)
  57. term.setBackgroundColor(colors.red)
  58. print("Create")
  59.  
  60. sleep(0.1)
  61. term.setCursorPos(40,1)
  62. term.setBackgroundColor(colors.black)
  63.  print("            ")
  64. term.setCursorPos(47,1)
  65. term.setBackgroundColor(colors.red)
  66. print("Creat")
  67.  
  68. sleep(0.1)
  69. term.setCursorPos(40,1)
  70. term.setBackgroundColor(colors.black)
  71.  print("            ")
  72. term.setCursorPos(48,1)
  73. term.setBackgroundColor(colors.red)
  74. print("Crea")
  75.  
  76. sleep(0.1)
  77. term.setCursorPos(40,1)
  78. term.setBackgroundColor(colors.black)
  79.  print("            ")
  80. term.setCursorPos(49,1)
  81. term.setBackgroundColor(colors.red)
  82. print("Cre")
  83.  
  84. sleep(0.1)
  85. term.setCursorPos(40,1)
  86. term.setBackgroundColor(colors.black)
  87.  print("            ")
  88. term.setCursorPos(50,1)
  89. term.setBackgroundColor(colors.red)
  90. print("SetShield")
  91.  
  92. sleep(0.1)
  93. term.setCursorPos(40,1)
  94. term.setBackgroundColor(colors.black)
  95.  print("            ")
  96. term.setCursorPos(51,1)
  97. term.setBackgroundColor(colors.red)
  98. print("Se")
  99.  
  100.  
  101.  
  102. term.setBackgroundColor(colors.red)
  103. term.setCursorPos(10,5)
  104. print("              ")
  105. term.setCursorPos(30,5)
  106. print("              ")
  107. term.setCursorPos(10,6)
  108. print("              ")
  109. term.setCursorPos(10,7)
  110. print("              ")
  111. term.setCursorPos(10,8)
  112. print("              ")
  113. term.setCursorPos(10,9)
  114. print("              ")
  115. term.setCursorPos(30,6)
  116. print("              ")
  117. term.setCursorPos(30,7)
  118. print("              ")
  119. term.setCursorPos(30,8)
  120. print("              ")
  121. term.setCursorPos(30,9)
  122. print("              ")
  123.  
  124. term.setCursorPos(11,6)
  125. print("Create Setup")
  126.  
  127. term.setCursorPos(11,8)
  128. print("    [X]")
  129.  
  130. term.setCursorPos(31,6)
  131. print("Exit Setup")
  132.  
  133. term.setCursorPos(31,8)
  134. print("    [X]")
  135.  
  136.  
  137. function clearOption()
  138. term.setBackgroundColor(colors.black)
  139. term.setCursorPos(10,5)
  140. print("              ")
  141. term.setCursorPos(30,5)
  142. print("              ")
  143. term.setCursorPos(10,6)
  144. print("              ")
  145. term.setCursorPos(10,7)
  146. print("              ")
  147. term.setCursorPos(10,8)
  148. print("              ")
  149. term.setCursorPos(10,9)
  150. print("              ")
  151. term.setCursorPos(30,6)
  152. print("              ")
  153. term.setCursorPos(30,7)
  154. print("              ")
  155. term.setCursorPos(30,8)
  156. print("              ")
  157. term.setCursorPos(30,9)
  158. print("              ")
  159. end
  160.  
  161.  
  162.  
  163.  
  164.  
  165. function openFile()
  166. sleep(0.1)
  167. term.setCursorPos(40,1)
  168. term.setBackgroundColor(colors.black)
  169.  print("            ")
  170. term.setCursorPos(50,1)
  171. term.setBackgroundColor(colors.red)
  172. print("Cr")
  173.  
  174.  
  175. sleep(0.1)
  176. term.setCursorPos(40,1)
  177. term.setBackgroundColor(colors.black)
  178.  print("            ")
  179. term.setCursorPos(49,1)
  180. term.setBackgroundColor(colors.red)
  181. print("Cre")
  182.  
  183. sleep(0.1)
  184. term.setCursorPos(40,1)
  185. term.setBackgroundColor(colors.black)
  186.  print("            ")
  187. term.setCursorPos(48,1)
  188. term.setBackgroundColor(colors.red)
  189. print("Crea")
  190.  
  191. sleep(0.1)
  192. term.setCursorPos(40,1)
  193. term.setBackgroundColor(colors.black)
  194.  print("            ")
  195. term.setCursorPos(47,1)
  196. term.setBackgroundColor(colors.red)
  197. print("Creat")
  198.  
  199. sleep(0.1)
  200. term.setCursorPos(40,1)
  201. term.setBackgroundColor(colors.black)
  202.  print("            ")
  203. term.setCursorPos(46,1)
  204. term.setBackgroundColor(colors.red)
  205. print("Create")
  206.  
  207.  
  208. sleep(0.1)
  209. term.setCursorPos(40,1)
  210. term.setBackgroundColor(colors.black)
  211.  print("            ")
  212. term.setCursorPos(45,1)
  213. term.setBackgroundColor(colors.red)
  214. print("Create ")
  215.  
  216.  
  217. sleep(0.1)
  218. term.setCursorPos(40,1)
  219. term.setBackgroundColor(colors.black)
  220.  print("            ")
  221. term.setCursorPos(44,1)
  222. term.setBackgroundColor(colors.red)
  223. print("Create S")
  224.  
  225.  
  226. sleep(0.1)
  227. term.setCursorPos(40,1)
  228. term.setBackgroundColor(colors.black)
  229.  print("            ")
  230. term.setCursorPos(43,1)
  231. term.setBackgroundColor(colors.red)
  232. print("Create Se")
  233.  
  234.  
  235. sleep(0.1)
  236. term.setCursorPos(40,1)
  237. term.setBackgroundColor(colors.black)
  238. print("            ")
  239. term.setCursorPos(42,1)
  240. term.setBackgroundColor(colors.red)
  241. print("Create Set")
  242.  
  243. sleep(0.1)
  244. term.setCursorPos(40,1)
  245. term.setBackgroundColor(colors.black)
  246. print("            ")
  247. term.setCursorPos(41,1)
  248. term.setBackgroundColor(colors.red)
  249. print("Create Setu")
  250.  
  251. term.setTextColor(colors.yellow)
  252. term.setCursorPos(40,1)
  253. term.setBackgroundColor(colors.red)
  254. print("Create Setup")
  255.  
  256.  
  257. sleep(0.1)
  258. term.setCursorPos(30,1)
  259. term.setBackgroundColor(colors.black)
  260. print("                             ")
  261. term.setCursorPos(38,1)
  262. term.setBackgroundColor(colors.red)
  263. print(" Create Setup ")
  264.  
  265. sleep(0.1)
  266. term.setCursorPos(30,1)
  267. term.setBackgroundColor(colors.black)
  268. print("                             ")
  269. term.setCursorPos(36,1)
  270. term.setBackgroundColor(colors.red)
  271. print("  Create Setup      ")
  272.  
  273.  
  274. sleep(0.1)
  275. term.setCursorPos(30,1)
  276. term.setBackgroundColor(colors.black)
  277. print("                             ")
  278. term.setCursorPos(34,1)
  279. term.setBackgroundColor(colors.red)
  280. print("   Create Setup       ")
  281.  
  282. sleep(0.1)
  283. term.setCursorPos(30,1)
  284. term.setBackgroundColor(colors.black)
  285. print("                             ")
  286. term.setCursorPos(32,1)
  287. term.setBackgroundColor(colors.red)
  288. print("   Create Setup       ")
  289.  
  290.  
  291. sleep(0.1)
  292. term.setCursorPos(30,1)
  293. term.setBackgroundColor(colors.black)
  294. print("                             ")
  295. term.setCursorPos(30,1)
  296. term.setBackgroundColor(colors.red)
  297. print("     Create Setup      ")
  298.  
  299. sleep(0.1)
  300. term.setCursorPos(15,1)
  301. term.setBackgroundColor(colors.black)
  302. print("                            ")
  303. term.setCursorPos(28,1)
  304. term.setBackgroundColor(colors.red)
  305. print("      Create Setup       ")
  306.  
  307.  
  308.  
  309.  
  310.  
  311.  
  312.  
  313. term.setTextColor(colors.black)
  314. sleep(0.1)
  315. term.setCursorPos(28,2)
  316. term.setBackgroundColor(colors.white)
  317. print("                         ")
  318.  
  319.  
  320. sleep(0.1)
  321. term.setCursorPos(28,2)
  322. term.setBackgroundColor(colors.white)
  323. print("                         ")
  324. term.setCursorPos(28,3)
  325. print("                         ")
  326.  
  327.  
  328.  
  329.  
  330.  
  331.  
  332.  
  333.  
  334.  
  335. sleep(0.1)
  336. term.setCursorPos(28,2)
  337. term.setBackgroundColor(colors.white)
  338. term.setBackgroundColor(colors.black)
  339.  
  340. print("                         ")
  341.  
  342. term.setBackgroundColor(colors.white)
  343. term.setCursorPos(28,3)
  344. print("                         ")
  345. term.setCursorPos(28,4)
  346. print("                         ")
  347.  
  348.  
  349.  
  350.  
  351. term.setBackgroundColor(colors.white)
  352. term.setCursorPos(28,2)
  353. print(" ")
  354. term.setCursorPos(51,2)
  355. print(" ")
  356. term.setBackgroundColor(colors.white)
  357.  
  358.  
  359.  
  360.  
  361.  
  362.  
  363.  
  364.  
  365. sleep(0.1)
  366. term.setCursorPos(28,2)
  367. term.setBackgroundColor(colors.white)
  368. print(" File Name:              ")
  369. term.setCursorPos(28,3)
  370. term.setBackgroundColor(colors.black)
  371.  
  372. print("                         ")
  373.  
  374. term.setBackgroundColor(colors.white)
  375. term.setCursorPos(28,4)
  376. print("                         ")
  377. term.setCursorPos(28,5)
  378. print("                         ")
  379.  
  380.  
  381.  
  382. term.setBackgroundColor(colors.white)
  383. term.setCursorPos(28,3)
  384. print(" ")
  385. term.setCursorPos(51,3)
  386. print(" ")
  387. term.setBackgroundColor(colors.white)
  388.  
  389.  
  390.  
  391.  
  392.  
  393.  
  394.  
  395.  
  396.  
  397. sleep(0.1)
  398. term.setCursorPos(28,2)
  399. term.setBackgroundColor(colors.white)
  400. print("                         ")
  401. term.setCursorPos(28,3)
  402. print(" File Name:              ")
  403. term.setCursorPos(28,4)
  404.  
  405.  
  406. term.setBackgroundColor(colors.black)
  407.  
  408. print("                         ")
  409.  
  410. term.setBackgroundColor(colors.white)
  411. term.setCursorPos(28,5)
  412. print("                         ")
  413.  
  414.  
  415.  
  416. term.setBackgroundColor(colors.white)
  417. term.setCursorPos(28,4)
  418. print(" ")
  419. term.setCursorPos(51,4)
  420. print(" ")
  421. term.setBackgroundColor(colors.white)
  422.  
  423.  
  424.  
  425.  
  426.  
  427.  
  428.  
  429.  
  430. end
  431.  
  432.  
  433.  
  434.  
  435.  
  436.  
  437.  
  438.  
  439.  
  440.  
  441.  
  442.  
  443.  
  444. -------------------------------------- Start menu ---------------------------
  445.  
  446. function shellit()
  447. while true do
  448. local event, button, X, Y = os.pullEvent("mouse_click")
  449. XY = X..","..Y
  450.  
  451. if XY == "36,8" and button == 1 then
  452. clearOption()
  453. term.clear()
  454. term.setCursorPos(1,1)
  455. term.setTextColor(colors.yellow)
  456. print("Set Shield 1.1 ")
  457. term.setCursorPos(1,2)
  458. write("")
  459. function TNR()
  460. term.setTextColor(colors.white)
  461. TN = read()
  462. shell.run(TN)
  463. TNR()
  464. end
  465. TNR()
  466. end
  467.  
  468. if XY == "51,1" and button == 1 then
  469. clearOption()
  470. openFile()
  471. break
  472. end
  473.  
  474. if XY == "16,8" and button == 1 then
  475. clearOption()
  476. openFile()
  477. break
  478. end
  479.  
  480.  
  481.  
  482. end
  483.  
  484. end
  485.  
  486. shellit()
  487.  
  488.  
  489. local function Setup()
  490.  
  491.  
  492.  
  493.  
  494. term.setBackgroundColor(colors.black)
  495. term.setTextColor(colors.yellow)
  496. term.setCursorPos(29,4)
  497.  
  498. File = read()
  499.  
  500. if File == "" then
  501. Setup()
  502. else
  503.   term.setBackgroundColor(colors.white)
  504.   term.setTextColor(colors.black)
  505.  
  506.      if fs.exists("disk") then
  507.         fs.makeDir("disk/Setup/")
  508.                
  509.                
  510.                 term.setCursorPos(28,6)
  511.         print("                         ")
  512.          
  513.             sleep(0.1)
  514.          
  515.          
  516.          
  517.             term.setCursorPos(28,7)
  518.         print("                         ")
  519.          
  520.          
  521.          
  522.             sleep(0.1)
  523.             term.setCursorPos(29,6)
  524.             print("Advanced Computer Only Setup?")
  525.  
  526.                 term.setCursorPos(28,8)
  527.         print("                         ")
  528.                
  529.                
  530.                 sleep(0.1)
  531.                
  532.                
  533.                 term.setCursorPos(28,9)
  534.         print("                         ")
  535.                
  536.                
  537.                 sleep(0.1)
  538.                
  539.                
  540.                 term.setBackgroundColor(colors.green)
  541.                 term.setTextColor(colors.yellow)
  542.             term.setCursorPos(29,8)
  543.             print("Yes")
  544.  
  545.                 term.setCursorPos(33,8)
  546.                 term.setBackgroundColor(colors.red)
  547.         print("No")
  548.                 term.setBackgroundColor(colors.white)
  549.      else
  550.          
  551.          
  552.             term.setCursorPos(28,6)
  553.         print("                         ")
  554.          
  555.             sleep(0.1)
  556.          
  557.          
  558.          
  559.             term.setCursorPos(28,7)
  560.         print("                         ")
  561.          
  562.          
  563.          
  564.             sleep(0.1)
  565.             term.setCursorPos(29,6)
  566.             print("Can't find Disk")
  567.                 sleep(2)
  568.                
  569.                
  570.                 term.setCursorPos(28,6)
  571.         print("                         ")
  572.                
  573.                 sleep(0.1)
  574.                 term.setBackgroundColor(colors.black)
  575.                 term.setCursorPos(28,7)
  576.         print("                         ")
  577.                
  578.                
  579.                 sleep(0.1)
  580.                 term.setBackgroundColor(colors.black)
  581.                 term.setCursorPos(28,6)
  582.         print("                         ")
  583.                 term.setCursorPos(29,4)
  584.         print("                      ")
  585.                 os.reboot()
  586.                 Setup()
  587.  
  588.  
  589. end
  590.  
  591.  
  592. end
  593. end  
  594. Setup()
  595.                    
  596.  
  597.  
  598.  
  599.  
  600. ------------------------- Option Yes --------------------------------
  601.  
  602. function Loading()
  603.  
  604. term.setBackgroundColor(colors.white)
  605. term.setCursorPos(28,8)
  606. print("                         ")
  607.  
  608. sleep(0.1)
  609.  
  610. term.setBackgroundColor(colors.black)
  611. term.setCursorPos(28,9)
  612. print("                         ")
  613.  
  614. sleep(0.1)
  615.  
  616. term.setBackgroundColor(colors.black)
  617. term.setCursorPos(28,8)
  618. print("                         ")
  619.  
  620. sleep(0.1)
  621.  
  622. term.setBackgroundColor(colors.white)
  623. term.setCursorPos(28,6)
  624. print("                         ")
  625.  
  626. sleep(0.1)
  627.  
  628. term.setTextColor(colors.black)    
  629. if not http then
  630. term.setCursorPos(29,6)
  631. print("Http isnt enabled")
  632. sleep(2)
  633.  
  634.                 term.setCursorPos(28,6)
  635.         print("                         ")
  636.                
  637.                 sleep(0.1)
  638.                 term.setBackgroundColor(colors.black)
  639.                 term.setCursorPos(28,7)
  640.         print("                         ")
  641.                
  642.                
  643.                 sleep(0.1)
  644.                 term.setBackgroundColor(colors.black)
  645.                 term.setCursorPos(28,6)
  646.         print("                         ")
  647.                 term.setCursorPos(29,4)
  648.         print("                      ")
  649.                
  650.                 os.reboot()
  651.  
  652.  
  653.        
  654.  
  655.  
  656.  
  657.  
  658.  
  659. Setup()
  660. else
  661.  
  662. if fs.exists("disk") then
  663. term.setCursorPos(29,6)
  664. print("Create Setup...")
  665. else
  666.             term.setCursorPos(29,6)
  667.             print("Can't find Disk")
  668.                 sleep(2)
  669.                
  670.                
  671.                 term.setCursorPos(28,6)
  672.         print("                         ")
  673.                
  674.                 sleep(0.1)
  675.                 term.setBackgroundColor(colors.black)
  676.                 term.setCursorPos(28,7)
  677.         print("                         ")
  678.                
  679.                
  680.                 sleep(0.1)
  681.                 term.setBackgroundColor(colors.black)
  682.                 term.setCursorPos(28,6)
  683.         print("                         ")
  684.                 term.setCursorPos(29,4)
  685.         print("                      ")
  686.                 os.reboot()
  687.                 Setup()
  688. end
  689.  
  690. term.setCursorPos(1,10)
  691. term.setBackgroundColor(colors.black)
  692. term.setTextColor(colors.black)
  693.  
  694.  
  695.  
  696.  
  697. term.setBackgroundColor(colors.black)
  698. if fs.exists("disk/Setup") then
  699. fs.delete("disk/startup")
  700. fs.delete("disk/Setup/install_pc_1")
  701. fs.delete("disk/Setup/install_pc_2")
  702. end
  703. fs.makeDir("disk/Setup")
  704. if fs.exists(""..File.."") then
  705. fs.copy(""..File.."", "disk/Setup/install_pc_1")
  706. local namefile = fs.open("disk/Setup/install_pc_2", "w")
  707. namefile.write(File)
  708. namefile.close()
  709. else
  710. term.setBackgroundColor(colors.white)
  711. term.setCursorPos(29,6)
  712. print("                      ")
  713. sleep(0.1)
  714. term.setCursorPos(29,6)
  715. print(""..File.."?")
  716. sleep(2)
  717.  
  718.                 term.setCursorPos(28,6)
  719.         print("                         ")
  720.                
  721.                 sleep(0.1)
  722.                 term.setBackgroundColor(colors.black)
  723.                 term.setCursorPos(28,7)
  724.         print("                         ")
  725.                
  726.                
  727.                 sleep(0.1)
  728.                 term.setBackgroundColor(colors.black)
  729.                 term.setCursorPos(28,6)
  730.         print("                         ")
  731.                 term.setCursorPos(29,4)
  732.         print("                      ")
  733.                
  734.                 os.reboot()
  735.                 Setup()
  736.  
  737.        
  738.  
  739.  
  740.  
  741.  
  742.  
  743. end
  744.  
  745.  
  746.  
  747.  
  748.  
  749. term.setBackgroundColor(colors.black)
  750. local PB = "pastebin get"
  751. term.setTextColor(colors.black)
  752. term.setCursorPos(1,10)
  753. if fs.exists("disk/startup") then
  754. fs.delete("disk/startup") end
  755. local startup = " 0wNfe2YX disk/startup"
  756. shell.run(PB, (startup))
  757.  
  758.  
  759.  
  760.  
  761. if fs.exists("disk/LaPC1") then
  762. fs.delete("disk/LaPC1") end
  763. local LaPC1 = " aUyLENah disk/LaPC1"
  764. shell.run(PB, (LaPC1))
  765.  
  766.  
  767. if fs.exists("disk/LaPC2") then
  768. fs.delete("disk/LaPC2") end
  769. local LaPC2 = " aZm8S5ud disk/LaPC2"
  770. shell.run(PB, (LaPC2))
  771.  
  772.  
  773. if fs.exists("disk/LaPC3") then
  774. fs.delete("disk/LaPC3") end
  775. local LaPC3 = " aZm8S5ud disk/LaPC3"
  776. shell.run(PB, (LaPC3))
  777.  
  778. if fs.exists("disk/LaPC") then
  779. fs.delete("disk/LaPC2") end
  780. local LaPC = " jxFjSEMY disk/LaPC"
  781. shell.run(PB, (LaPC))
  782. term.setCursorPos(1,10)
  783. term.setBackgroundColor(colors.black)
  784. term.setTextColor(colors.black)
  785. print("                                                  ")
  786. term.setCursorPos(1,11)
  787. print("                                                  ")
  788.  
  789.  
  790. term.setBackgroundColor(colors.white)
  791.  
  792. term.setCursorPos(29,6)
  793. print("               ")
  794. sleep(0.1)
  795. term.setCursorPos(29,6)
  796. print("Finish!")
  797. sleep(1)
  798. term.setCursorPos(1,39)
  799. term.setBackgroundColor(colors.black)
  800. shell.run("eject left")
  801. shell.run("eject top")
  802. shell.run("eject bottom")
  803. shell.run("eject back")
  804. shell.run("eject right")
  805. shell.run("eject front")
  806. term.clear()
  807. os.reboot()
  808.  
  809.  
  810. end
  811. end
  812.  
  813.  
  814.  
  815.  
  816.  
  817.  
  818.  
  819.  
  820.  
  821.  
  822.  
  823.  
  824. ------------------------- mouse_click ---------------------------------
  825.  
  826.  
  827. term.setBackgroundColor(colors.black)
  828. while true do
  829. local event, button, X, Y = os.pullEvent("mouse_click")
  830. XY = X..","..Y
  831.  
  832. term.setBackgroundColor(colors.black)
  833.  
  834.  
  835. ------------------------- Option No --------- Label 2 -----------------------
  836.  
  837. if XY == "34,8" and button == 1 then
  838. term.setBackgroundColor(colors.white)
  839. term.setCursorPos(28,8)
  840. print("                         ")
  841.  
  842. sleep(0.1)
  843.  
  844. term.setBackgroundColor(colors.black)
  845. term.setCursorPos(28,9)
  846. print("                         ")
  847.  
  848. sleep(0.1)
  849.  
  850. term.setBackgroundColor(colors.black)
  851. term.setCursorPos(28,8)
  852. print("                         ")
  853.  
  854. sleep(0.1)
  855.  
  856. term.setBackgroundColor(colors.white)
  857. term.setCursorPos(28,6)
  858. print("                         ")
  859.  
  860. sleep(0.1)
  861.  
  862. term.setTextColor(colors.black)    
  863. if not http then
  864. term.setCursorPos(29,6)
  865. print("Http isnt enabled")
  866. sleep(2)
  867. Setup()
  868. else
  869.  
  870. if fs.exists("disk") then
  871. term.setCursorPos(29,6)
  872. print("Create Setup...")
  873. else
  874.             term.setCursorPos(29,6)
  875.             print("Can't find Disk")
  876.                 sleep(2)
  877.                
  878.                
  879.                 term.setCursorPos(28,6)
  880.         print("                         ")
  881.                
  882.                 sleep(0.1)
  883.                 term.setBackgroundColor(colors.black)
  884.                 term.setCursorPos(28,7)
  885.         print("                         ")
  886.                
  887.                
  888.                 sleep(0.1)
  889.                 term.setBackgroundColor(colors.black)
  890.                 term.setCursorPos(28,6)
  891.         print("                         ")
  892.                 term.setCursorPos(29,4)
  893.         print("                      ")
  894.                 os.reboot()
  895.                 Setup()
  896. end
  897.  
  898.  
  899.  
  900.  
  901.  
  902. term.setCursorPos(29,6)
  903. print("Create Setup...")
  904.  
  905.  
  906.  
  907. term.setCursorPos(1,10)
  908. term.setBackgroundColor(colors.black)
  909. term.setTextColor(colors.black)
  910.  
  911.  
  912.  
  913.  
  914. term.setBackgroundColor(colors.black)
  915. if fs.exists("disk/Setup") then
  916. fs.delete("disk/startup")
  917. fs.delete("disk/Setup/install_pc_1")
  918. fs.delete("disk/Setup/install_pc_2")
  919. end
  920. fs.makeDir("disk/Setup")
  921. if fs.exists(""..File.."") then
  922. fs.copy(""..File.."", "disk/Setup/install_pc_1")
  923. local namefile = fs.open("disk/Setup/install_pc_2", "w")
  924. namefile.write(File)
  925. namefile.close()
  926. else
  927. term.setBackgroundColor(colors.white)
  928. term.setCursorPos(29,6)
  929. print("                      ")
  930. sleep(0.1)
  931. term.setCursorPos(29,6)
  932. print(""..File.." does not exist!")
  933. sleep(2)
  934.  
  935.                 term.setCursorPos(28,6)
  936.         print("                         ")
  937.                
  938.                 sleep(0.1)
  939.                 term.setBackgroundColor(colors.black)
  940.                 term.setCursorPos(28,7)
  941.         print("                         ")
  942.                
  943.                
  944.                 sleep(0.1)
  945.                 term.setBackgroundColor(colors.black)
  946.                 term.setCursorPos(28,6)
  947.         print("                         ")
  948.                 term.setCursorPos(29,4)
  949.         print("                      ")
  950.                
  951.                 os.reboot()
  952.                 Setup()
  953.  
  954.        
  955.  
  956.  
  957.  
  958.  
  959.  
  960. end
  961.  
  962.  
  963.  
  964.  
  965.  
  966. term.setBackgroundColor(colors.black)
  967. local PB = "pastebin get"
  968. term.setTextColor(colors.black)
  969. term.setCursorPos(1,10)
  970. if fs.exists("disk/startup") then
  971. fs.delete("disk/startup") end
  972. local startup = " 0wNfe2YX disk/startup"
  973. shell.run(PB, (startup))
  974.  
  975.  
  976.  
  977. if fs.exists("disk/LaPC1") then
  978. fs.delete("disk/LaPC1") end
  979. local LaPC1 = " aUyLENah disk/LaPC1"
  980. shell.run(PB, (LaPC1))
  981.  
  982.  
  983. if fs.exists("disk/LaPC2") then
  984. fs.delete("disk/LaPC2") end
  985. local LaPC2 = " d5wS9YCE disk/LaPC2"
  986. shell.run(PB, (LaPC2))
  987.  
  988.  
  989. if fs.exists("disk/LaPC3") then
  990. fs.delete("disk/LaPC3") end
  991. local LaPC3 = " aZm8S5ud disk/LaPC3"
  992. shell.run(PB, (LaPC3))
  993.  
  994. if fs.exists("disk/LaPC") then
  995. fs.delete("disk/LaPC2") end
  996. local LaPC = " jxFjSEMY disk/LaPC"
  997. shell.run(PB, (LaPC))
  998.  
  999.  
  1000.  
  1001.  
  1002. term.setCursorPos(1,10)
  1003. term.setBackgroundColor(colors.black)
  1004. term.setTextColor(colors.black)
  1005. print("                                                  ")
  1006. term.setCursorPos(1,11)
  1007. print("                                                  ")
  1008.  
  1009.  
  1010. term.setBackgroundColor(colors.white)
  1011.  
  1012. term.setCursorPos(29,6)
  1013. print("               ")
  1014. sleep(0.1)
  1015. term.setCursorPos(29,6)
  1016. print("Finish!")
  1017. sleep(1)
  1018. term.setCursorPos(1,39)
  1019. term.setBackgroundColor(colors.black)
  1020. shell.run("eject left")
  1021. shell.run("eject top")
  1022. shell.run("eject bottom")
  1023. shell.run("eject back")
  1024. shell.run("eject right")
  1025. shell.run("eject front")
  1026. term.clear()
  1027. os.reboot()
  1028.  
  1029.  
  1030. end
  1031.  
  1032. end
  1033.  
  1034. if XY == "29,8" and button == 1 then
  1035. Loading()
  1036. end
  1037. if XY == "30,8" and button == 1 then
  1038. Loading()
  1039. end
  1040. if XY == "31,8" and button == 1 then
  1041. Loading()
  1042. end
  1043.  
  1044.  
  1045. ------------------------- Option No --------- Label 1 -----------------------
  1046.  
  1047. if XY == "33,8" and button == 1 then
  1048.  
  1049. term.setBackgroundColor(colors.white)
  1050. term.setCursorPos(28,8)
  1051. print("                         ")
  1052.  
  1053. sleep(0.1)
  1054.  
  1055. term.setBackgroundColor(colors.black)
  1056. term.setCursorPos(28,9)
  1057. print("                         ")
  1058.  
  1059. sleep(0.1)
  1060.  
  1061. term.setBackgroundColor(colors.black)
  1062. term.setCursorPos(28,8)
  1063. print("                         ")
  1064.  
  1065. sleep(0.1)
  1066.  
  1067. term.setBackgroundColor(colors.white)
  1068. term.setCursorPos(28,6)
  1069. print("                         ")
  1070.  
  1071. sleep(0.1)
  1072.  
  1073. term.setTextColor(colors.black)    
  1074. if not http then
  1075. term.setCursorPos(29,6)
  1076. print("Http isnt enabled")
  1077. sleep(2)
  1078. Setup()
  1079. else
  1080.  
  1081. if fs.exists("disk") then
  1082. term.setCursorPos(29,6)
  1083. print("Create Setup...")
  1084. else
  1085.             term.setCursorPos(29,6)
  1086.             print("Can't find Disk")
  1087.                 sleep(2)
  1088.                
  1089.                
  1090.                 term.setCursorPos(28,6)
  1091.         print("                         ")
  1092.                
  1093.                 sleep(0.1)
  1094.                 term.setBackgroundColor(colors.black)
  1095.                 term.setCursorPos(28,7)
  1096.         print("                         ")
  1097.                
  1098.                
  1099.                 sleep(0.1)
  1100.                 term.setBackgroundColor(colors.black)
  1101.                 term.setCursorPos(28,6)
  1102.         print("                         ")
  1103.                 term.setCursorPos(29,4)
  1104.         print("                      ")
  1105.                 os.reboot()
  1106.                 Setup()
  1107. end
  1108.  
  1109.  
  1110.  
  1111.  
  1112.  
  1113. term.setCursorPos(29,6)
  1114. print("Create Setup...")
  1115.  
  1116.  
  1117.  
  1118. term.setCursorPos(1,10)
  1119. term.setBackgroundColor(colors.black)
  1120. term.setTextColor(colors.black)
  1121.  
  1122.  
  1123.  
  1124.  
  1125. term.setBackgroundColor(colors.black)
  1126. if fs.exists("disk/Setup") then
  1127. fs.delete("disk/startup")
  1128. fs.delete("disk/Setup/install_pc_1")
  1129. fs.delete("disk/Setup/install_pc_2")
  1130. end
  1131. fs.makeDir("disk/Setup")
  1132. if fs.exists(""..File.."") then
  1133. fs.copy(""..File.."", "disk/Setup/install_pc_1")
  1134. else
  1135. local namefile = fs.open("disk/Setup/install_pc_2", "w")
  1136. namefile.write(File)
  1137. namefile.close()
  1138. term.setBackgroundColor(colors.white)
  1139. term.setCursorPos(29,6)
  1140. print("                      ")
  1141. sleep(0.1)
  1142. term.setCursorPos(29,6)
  1143. print(""..File.." does not exist!")
  1144. sleep(2)
  1145.  
  1146.                 term.setCursorPos(28,6)
  1147.         print("                         ")
  1148.                
  1149.                 sleep(0.1)
  1150.                 term.setBackgroundColor(colors.black)
  1151.                 term.setCursorPos(28,7)
  1152.         print("                         ")
  1153.                
  1154.                
  1155.                 sleep(0.1)
  1156.                 term.setBackgroundColor(colors.black)
  1157.                 term.setCursorPos(28,6)
  1158.         print("                         ")
  1159.                 term.setCursorPos(29,4)
  1160.         print("                      ")
  1161.                
  1162.                 os.reboot()
  1163.                 Setup()
  1164.  
  1165.          
  1166.  
  1167.  
  1168.  
  1169.  
  1170.  
  1171. end
  1172.  
  1173.  
  1174.  
  1175.  
  1176.  
  1177. term.setBackgroundColor(colors.black)
  1178. local PB = "pastebin get"
  1179. term.setTextColor(colors.black)
  1180. term.setCursorPos(1,10)
  1181. if fs.exists("disk/startup") then
  1182. fs.delete("disk/startup") end
  1183. local startup = " 0wNfe2YX disk/startup"
  1184. shell.run(PB, (startup))
  1185.  
  1186.  
  1187.  
  1188.  
  1189. if fs.exists("disk/LaPC1") then
  1190. fs.delete("disk/LaPC1") end
  1191. local LaPC1 = " aUyLENah disk/LaPC1"
  1192. shell.run(PB, (LaPC1))
  1193.  
  1194.  
  1195. if fs.exists("disk/LaPC2") then
  1196. fs.delete("disk/LaPC2") end
  1197. local LaPC2 = " d5wS9YCE disk/LaPC2"
  1198. shell.run(PB, (LaPC2))
  1199.  
  1200.  
  1201. if fs.exists("disk/LaPC3") then
  1202. fs.delete("disk/LaPC3") end
  1203. local LaPC3 = " aZm8S5ud disk/LaPC3"
  1204. shell.run(PB, (LaPC3))
  1205.  
  1206. if fs.exists("disk/LaPC") then
  1207. fs.delete("disk/LaPC2") end
  1208. local LaPC = " jxFjSEMY disk/LaPC"
  1209. shell.run(PB, (LaPC))
  1210. term.setCursorPos(1,10)
  1211. term.setBackgroundColor(colors.black)
  1212. term.setTextColor(colors.black)
  1213. print("                                                  ")
  1214. term.setCursorPos(1,11)
  1215. print("                                                  ")
  1216.  
  1217.  
  1218. term.setBackgroundColor(colors.white)
  1219.  
  1220. term.setCursorPos(29,6)
  1221. print("               ")
  1222. sleep(0.1)
  1223. term.setCursorPos(29,6)
  1224. print("Finished creating the installer!")
  1225. sleep(1)
  1226. term.setCursorPos(1,39)
  1227. term.setBackgroundColor(colors.black)
  1228. shell.run("eject left")
  1229. shell.run("eject top")
  1230. shell.run("eject bottom")
  1231. shell.run("eject back")
  1232. shell.run("eject right")
  1233. shell.run("eject front")
  1234. term.clear()
  1235. os.reboot()
  1236.  
  1237.  
  1238. end
  1239. end
  1240.  
  1241.  
  1242.  
  1243.  
  1244.  
  1245.  
  1246.  
  1247. end
  1248.  
  1249.  
  1250.  
  1251.  
  1252.  
  1253.  
  1254.  
  1255.  
  1256.  
  1257.  
  1258. term.setBackgroundColor(colors.black)
Add Comment
Please, Sign In to add comment