PolskiWisnia

NextUI/MineUI/mineOS installer

Jul 24th, 2019
1,296
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 10.18 KB | None | 0 0
  1. -- Oprogramowanie skladowe/instalator systemow stworzonych przez uzytkownika serwisu Discord - Wisnia#5536 --
  2. -- Jesli zaplaciles za to oprogramowanie zostales oszukany. --
  3. -- Zakazuje sie kopiowania oprogramowania bez zgody autora, czerpania korzysci materialnych, podpisywania sie pod oprogramowaniem --
  4. -- Dozwolone jest tworzenie modyfikacji oprogramowania badz jego czesci wylacznie wtedy, gdy widoczna jest informacja o oryginalnym autorze --
  5. -- Kompletna EULA dostepna jest na serwerze Discord: CRfXMXU --
  6. local function s(...) return sleep(...) end
  7. local function w(...) return write(...) end
  8. local function p(...) return print(...) end
  9. local function tw(...) return term.write(...) end
  10. local function scp(...) return term.setCursorPos(...) end
  11. local function sbc(...) return term.setBackgroundColor(...) end
  12. local function stc(...) return term.setTextColor(...) end
  13. local function tc(...) return term.clear(...) end
  14. local function tcl(...) return term.clearLine(...) end
  15. local function r(...) return shell.run(...) end
  16. local function sp(...) return textutils.slowPrint(...) end
  17. local function sw(...) return textutils.slowWrite(...) end
  18. local function fse(...) return fs.exists(...) end
  19. local function pul(...) return paintutils.loadImage(...) end
  20. local function pud(...) return paintutils.drawImage(...) end
  21. local function pfb(...) return paintutils.drawFilledBox(...) end
  22. local function su(...) return os.shutdown(...) end
  23. local function re(...) return os.reboot(...) end
  24. if pocket then
  25.  term.clear()
  26.  term.setCursorPos(1,1)
  27.  print("UMOWA LICENCYJNA MICROCRAFT")
  28.  print("Microcraft oferuje ponizsze oprogramowanie za licencja GNU General Public License v3.0.")
  29.  sleep(8)
  30.  term.clear()
  31.  term.setCursorPos(1,1)
  32.  print("Trwa instalacja mineOS 1.0")
  33.  term.setCursorPos(1,2)
  34.  shell.run("mkdir boot")
  35.  shell.run("mkdir boot/ver")
  36.  shell.run("pastebin get kW0Rqjtq startup")
  37.  shell.run("pastebin get LZ4jtAAz /boot/.menu")
  38.  shell.run("pastebin get 1Mwr12sU /boot/pocket")
  39.  shell.run("pastebin get B6te3jzf /boot/.2048")
  40.  shell.run("pastebin get xnimHwHU /boot/.update")
  41.  shell.run("pastebin get NVzDaz4M /boot/icon")
  42.  shell.run("pastebin get 7QDmjv3h /boot/.bios")
  43.  sleep(1)
  44.  print("Instalacja zakonczona")
  45.  sleep(1)
  46.  os.reboot()
  47. else
  48. term.clear()
  49. term.setCursorPos(1,1)
  50. term.setBackgroundColor(colors.blue)
  51. term.clear()
  52. term.setBackgroundColor(colors.blue)
  53. term.setTextColor(colors.white)
  54. print("UMOWA LICENCYJNA MICROCRAFT")
  55. print("Microcraft oferuje ponizsze oprogramowanie za licencja GNU General Public License v3.0.")
  56. sleep(4)
  57. term.clear()
  58. term.setCursorPos(1,1)
  59. term.setBackgroundColor(colors.blue)
  60. term.clear()
  61. term.setBackgroundColor(colors.blue)
  62. term.setTextColor(colors.white)
  63. print("Witamy w uniwersalnym programie instalacyjnym. Wybierz system do zainstalowania.")
  64. print("1. MineCore NextUI")
  65. print("2. MineCore MineUI")
  66. write("")
  67. jezyk = read()
  68. if jezyk == "1" then
  69.  while true do
  70.  term.clear()
  71.  pfb(1, 1, 51, 1, colors.brown)
  72.  pfb(2, 2, 50, 17, colors.black)
  73.  pfb(1, 1, 1, 18, colors.brown)
  74.  pfb(1, 18, 51, 18, colors.brown)
  75.  pfb(51, 1, 51, 18, colors.brown)
  76.  pfb(1, 19, 5, 19, colors.green)
  77.  pfb(6, 19, 49, 19, colors.blue)
  78.  term.setBackgroundColor(colors.black)
  79.  term.setTextColor(colors.white)
  80.  term.setCursorPos(1,19)
  81.  write("Start")
  82.  local event, click, x, y = os.pullEvent("mouse_click")
  83.  if x>0 and x<6 and y == 19  then
  84. term.setBackgroundColor(colors.blue)
  85.   term.setCursorPos(1,18)
  86.   print("Wyjdz do CraftOS      ")
  87.   term.setCursorPos(1,17)
  88.   print("Ustawienia            ")
  89.   term.setCursorPos(1,16)
  90.   print("Zainstaluj MineCore   ")
  91.   term.setCursorPos(1,15)
  92.   term.setBackgroundColor(colors.green)
  93.   p("Microcraft Live Boot      ")
  94.   term.setBackgroundColor(colors.black)
  95.   local event, click, x, y = os.pullEvent("mouse_click")
  96.   if x>0 and x<10 and y == 18 then term.clear() term.setCursorPos(1,1) error("") end
  97.   if x>0 and x<10 and y == 17 then
  98.   term.setCursorPos(1,2)
  99.   print("Ustawienia MineCore")
  100.   print("Zmien nazwe komputera")
  101.   print("[Zmien]")
  102.   print("Zainstaluj system dla wiekszej ilosci ustawien")
  103.   local event, click, x, y = os.pullEvent("mouse_click")
  104.   if x == 1 and y == 4 or x == 2 and y == 4 or x == 3 and y == 4 then term.setCursorPos(1,4) write("Wpisz nowa nazwe:") nazwa = read()
  105.  os.setComputerLabel(nazwa) os.reboot() end
  106.   end
  107.   if x>0 and x<10 and y == 16 then
  108.    term.clear()
  109.    term.setCursorPos(1,1)
  110.    print("Instaluje....")
  111.    term.setCursorPos(20,19)
  112.    write("/startup")
  113.    shell.run("rm startup")
  114.    term.setCursorPos(1,17)
  115.    shell.run("pastebin get bCbsGEb4 startup")
  116.    term.setCursorPos(20,19)
  117.    write("/os/")
  118.    shell.run("mkdir os")
  119.    term.setCursorPos(20,19)
  120.    write("/os/.menu")
  121.    term.setCursorPos(1,17)
  122.    shell.run("pastebin get b18gdXZq /os/.next")
  123.    term.setCursorPos(20,19)
  124.    write("/os/.2048")
  125.    term.setCursorPos(1,17)
  126.    shell.run("pastebin get u0urwgNc /os/.2048")
  127.    term.setCursorPos(20,19)
  128.    write("/os/.paint")
  129.    term.setCursorPos(1,17)
  130.    shell.run("pastebin get pzWSRqNF /os/.paint")
  131.    scp(1,17)
  132.    shell.run("pastebin get KCNCwuj3 /os/.pulpit")
  133.    term.setCursorPos(20,19)
  134.    write("/os/.luaide")
  135.    term.setCursorPos(1,17)
  136.    shell.run("pastebin get vyAZc6tJ /os/.luaide")
  137.    r("pastebin get hckriUmW /os/.jez")
  138.    r("pastebin get 0uMxiriG /os/.kol")
  139.    term.setCursorPos(1,17)
  140.    shell.run("pastebin get ZV1RFXwz /os/.ver")
  141.    term.clear()
  142.    term.setCursorPos(20,19)
  143.    write("/os/icon")
  144.    term.setCursorPos(1,17)
  145.    shell.run("pastebin get NVzDaz4M /os/icon")
  146.    scp(1,17)
  147.    r("pastebin get m4t3fTXs /os/.update")
  148.    os.setComputerLabel("MineCore PC")
  149.    disk.eject("left")
  150.    disk.eject("right")
  151.    disk.eject("back")
  152.    disk.eject("top")
  153.    disk.eject("bottom")
  154.    disk.eject("front")
  155.    os.reboot()
  156.   end
  157.  if x == 50 and y == 19 then os.reboot() end
  158.  if x == 51 and y == 19 then os.shutdown() end
  159. end
  160. end
  161. end
  162. if jezyk == "2" then
  163.  while true do
  164.  term.clear()
  165.  if fs.exists("/os/.pulpit") then obrazek = 1 else obrazek = 0 end
  166.  local image = paintutils.loadImage("/os/.pulpit")
  167.  if obrazek == 1 then paintutils.drawImage(image, 1, 1) else term.setBackgroundColor(colors.black) term.clear()
  168.  term.setBackgroundColor(colors.black) end
  169.  term.setTextColor(colors.white)
  170.  term.setCursorPos(1,19)
  171.  write("Start")
  172.  local event, click, x, y = os.pullEvent("mouse_click")
  173.  if x>0 and x<6 and y == 19  then
  174. term.setBackgroundColor(colors.blue)
  175.   term.setCursorPos(1,18)
  176.   print("Wyjdz do CraftOS      ")
  177.   term.setCursorPos(1,17)
  178.   print("Ustawienia            ")
  179.   term.setCursorPos(1,16)
  180.   print("Zainstaluj MineCore   ")
  181.   term.setCursorPos(1,15)
  182.   term.setBackgroundColor(colors.green)
  183.   p("Microcraft MineUI Live")
  184.   term.setBackgroundColor(colors.black)
  185.   local event, click, x, y = os.pullEvent("mouse_click")
  186.   if x>0 and x<10 and y == 18 then term.clear() term.setCursorPos(1,1) error("") end
  187.   if x>0 and x<10 and y == 17 then
  188.   term.setCursorPos(1,2)
  189.   print("Ustawienia MineCore")
  190.   print("Zmien nazwe komputera")
  191.   print("[Zmien]")
  192.   print("Zainstaluj system dla wiekszej ilosci ustawien")
  193.   local event, click, x, y = os.pullEvent("mouse_click")
  194.   if x == 1 and y == 4 or x == 2 and y == 4 or x == 3 and y == 4 then term.setCursorPos(1,4) write("Wpisz nowa nazwe:") nazwa = read()
  195.  os.setComputerLabel(nazwa) os.reboot() end
  196.   end
  197.   if x>0 and x<10 and y == 16 then
  198.    term.clear()
  199.    term.setCursorPos(1,1)
  200.    print("Instaluje....")
  201.    term.setCursorPos(20,19)
  202.    write("/startup")
  203.    shell.run("rm startup")
  204.    term.setCursorPos(1,17)
  205.    shell.run("pastebin get UYTPkH15 startup")
  206.    term.setCursorPos(20,19)
  207.    write("/os/")
  208.    shell.run("mkdir os")
  209.    shell.run("mkdir /os/ver")
  210.    term.setCursorPos(20,19)
  211.    write("/os/.menu")
  212.    term.setCursorPos(1,17)
  213.    shell.run("pastebin get UUuEq8p4 /os/.menu")
  214.    term.setCursorPos(20,19)
  215.    write("/os/.2048")
  216.    term.setCursorPos(1,17)
  217.    shell.run("pastebin get u0urwgNc /os/.2048")
  218.    term.setCursorPos(20,19)
  219.    write("/os/.paint")
  220.    term.setCursorPos(1,17)
  221.    shell.run("pastebin get pzWSRqNF /os/.paint")
  222.    term.setCursorPos(20,19)
  223.    write("/os/.kolko")
  224.    term.setCursorPos(1,17)
  225.    shell.run("pastebin get bV0tCQTr /os/.kolko")
  226.    term.setCursorPos(20,19)
  227.    write("/os/.luaide")
  228.    term.setCursorPos(1,17)
  229.    shell.run("pastebin get vyAZc6tJ /os/.luaide")
  230.    term.setCursorPos(1,17)
  231.    shell.run("pastebin get J9ULv3ew /os/.tupdate")
  232.    term.setCursorPos(1,17)
  233.    shell.run("pastebin get fEKcVePL /os/ver/.ver")
  234.    term.clear()
  235.    term.setCursorPos(20,19)
  236.    write("/os/icon")
  237.    term.setCursorPos(1,17)
  238.    shell.run("pastebin get NVzDaz4M /os/icon")
  239.    scp(1,17)
  240.    r("pastebin get pNtMLmM9 /os/.update")
  241.    term.clear()
  242.    sleep(4)
  243.    term.setCursorPos(1,1)
  244.    print("Gotowe! Teraz przygotujmy twoj komputer.")
  245.    s(2)
  246.    tc()
  247.    scp(1,1)
  248.    stc(colors.white)
  249.    sbc(colors.blue)
  250.    p("Wpisz nazwe uzytkownika:")
  251.    w("")
  252.    uzytkownik = read()
  253.    p("Wpisz haslo: ")
  254.    w("")
  255.    haslo = read()
  256.    local p = fs.open("/os/.log1", "w")
  257.    p.write(uzytkownik)
  258.    p.close()
  259.    local h = fs.open("/os/.log2", "w")
  260.    h.writeLine(haslo)
  261.    h.close()
  262.    os.setComputerLabel("MineCore PC")
  263.    disk.eject("left")
  264.    disk.eject("right")
  265.    disk.eject("back")
  266.    disk.eject("top")
  267.    disk.eject("bottom")
  268.    disk.eject("front")
  269.    os.reboot()
  270.   end
  271.  if x == 50 and y == 19 then os.reboot() end
  272.  if x == 51 and y == 19 then os.shutdown() end
  273. end
  274. end
  275. end
  276. end
Add Comment
Please, Sign In to add comment