Advertisement
PolskiWisnia

Instalator 1.05.19

Apr 29th, 2019
1,307
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 9.83 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")
  28.  print("Instalujac system zobowiazujesz sie do respektowania praw autorskich wobec tworcy systemu. Zakazuje sie edytowania oraz kopiowania bez zgody autora. Zakazuje sie rowniez czerpania jakichkolwiek korzysci materialnych dzieki oprogramowaniu stworzonego przez autora.")
  29. print("Autor: Wisnia#5536")
  30. print("Jesli kupiles ten program zostales oszukany.")
  31.  print("Jesli sie nie zgadzasz wylacz urzadzenie TERAZ")
  32.  print("System udostepniam bez zadnych oplat. Milego korzystania")
  33.  sleep(8)
  34.  term.clear()
  35.  term.setCursorPos(1,1)
  36.  print("Trwa instalacja mineOS 1.0")
  37.  term.setCursorPos(1,2)
  38.  shell.run("mkdir boot")
  39.  shell.run("mkdir boot/ver")
  40.  shell.run("pastebin get kW0Rqjtq startup")
  41.  shell.run("pastebin get LZ4jtAAz /boot/.menu")
  42.  shell.run("pastebin get 1Mwr12sU /boot/pocket")
  43.  shell.run("pastebin get B6te3jzf /boot/.2048")
  44.  shell.run("pastebin get xnimHwHU /boot/.update")
  45.  shell.run("pastebin get NVzDaz4M /boot/icon")
  46.  shell.run("pastebin get 7QDmjv3h /boot/.bios")
  47.  sleep(1)
  48.  print("Instalacja zakonczona")
  49.  sleep(1)
  50.  os.reboot()
  51. else
  52. term.clear()
  53. term.setCursorPos(1,1)
  54. term.setBackgroundColor(colors.blue)
  55. term.clear()
  56. term.setBackgroundColor(colors.blue)
  57. term.setTextColor(colors.white)
  58. print("UMOWA LICENCYJNA MICROCRAFT")
  59. print("Instalujac system stworzony przez autora niniejszego instalatora zobowiazujesz sie do przestrzegania praw autorskich wobec tworcy. Zakazuje sie edytowania oprogramowania systemow MineCore oraz Minedows oraz kopiowania ich na inne strony bez zgody autora. Zakazuje sie czerpania korzysci materialnych z pomoca oprogramowania stworzonego przez tworce niniejszego instalatora.")
  60. print("Autor: Wisnia#5536")
  61. print("Jesli kupiles ten program zostales oszukany.")
  62. print("Jezeli sie nie nie zgadzasz na niniejsza umowe NATYCHMIAST WYLACZ URZADZENIE.")
  63. print("System udostepniam bez zadnych oplat. Milego korzystania")
  64. sleep(4)
  65. term.clear()
  66. term.setCursorPos(1,1)
  67. term.setBackgroundColor(colors.blue)
  68. term.clear()
  69. term.setBackgroundColor(colors.blue)
  70. term.setTextColor(colors.white)
  71. print("Witamy w uniwersalnym programie instalacyjnym. Wybierz system do zainstalowania.")
  72. print("1. MineCore")
  73. print("2. Minedows")
  74. write("")
  75. jezyk = read()
  76. if jezyk == "1" then
  77.  while true do
  78.  term.clear()
  79.  if fs.exists("/os/.pulpit") then obrazek = 1 else obrazek = 0 end
  80.  local image = paintutils.loadImage("/os/.pulpit")
  81.  if obrazek == 1 then paintutils.drawImage(image, 1, 1) else term.setBackgroundColor(colors.black) term.clear()
  82.  term.setBackgroundColor(colors.black) end
  83.  term.setTextColor(colors.white)
  84.  term.setCursorPos(1,19)
  85.  write("Start")
  86.  local event, click, x, y = os.pullEvent("mouse_click")
  87.  if x>0 and x<6 and y == 19  then
  88. term.setBackgroundColor(colors.blue)
  89.   term.setCursorPos(1,18)
  90.   print("Wyjdz do CraftOS      ")
  91.   term.setCursorPos(1,17)
  92.   print("Ustawienia            ")
  93.   term.setCursorPos(1,16)
  94.   print("Zainstaluj MineCore   ")
  95.   term.setCursorPos(1,15)
  96.   term.setBackgroundColor(colors.green)
  97.   p("Microcraft MineUI Live")
  98.   term.setBackgroundColor(colors.black)
  99.   local event, click, x, y = os.pullEvent("mouse_click")
  100.   if x>0 and x<10 and y == 18 then term.clear() term.setCursorPos(1,1) error("") end
  101.   if x>0 and x<10 and y == 17 then
  102.   term.setCursorPos(1,2)
  103.   print("Ustawienia MineCore")
  104.   print("Zmien nazwe komputera")
  105.   print("[Zmien]")
  106.   print("Zainstaluj system dla wiekszej ilosci ustawien")
  107.   local event, click, x, y = os.pullEvent("mouse_click")
  108.   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()
  109.  os.setComputerLabel(nazwa) os.reboot() end
  110.   end
  111.   if x>0 and x<10 and y == 16 then
  112.    term.clear()
  113.    term.setCursorPos(1,1)
  114.    print("Instaluje....")
  115.    term.setCursorPos(20,19)
  116.    write("/startup")
  117.    shell.run("rm startup")
  118.    term.setCursorPos(1,17)
  119.    shell.run("pastebin get UYTPkH15 startup")
  120.    term.setCursorPos(20,19)
  121.    write("/os/")
  122.    shell.run("mkdir os")
  123.    shell.run("mkdir /os/ver")
  124.    term.setCursorPos(20,19)
  125.    write("/os/.menu")
  126.    term.setCursorPos(1,17)
  127.    shell.run("pastebin get UUuEq8p4 /os/.menu")
  128.    term.setCursorPos(20,19)
  129.    write("/os/.2048")
  130.    term.setCursorPos(1,17)
  131.    shell.run("pastebin get u0urwgNc /os/.2048")
  132.    term.setCursorPos(20,19)
  133.    write("/os/.paint")
  134.    term.setCursorPos(1,17)
  135.    shell.run("pastebin get pzWSRqNF /os/.paint")
  136.    term.setCursorPos(20,19)
  137.    write("/os/.kolko")
  138.    term.setCursorPos(1,17)
  139.    shell.run("pastebin get bV0tCQTr /os/.kolko")
  140.    term.setCursorPos(20,19)
  141.    write("/os/.luaide")
  142.    term.setCursorPos(1,17)
  143.    shell.run("pastebin get vyAZc6tJ /os/.luaide")
  144.    term.setCursorPos(1,17)
  145.    shell.run("pastebin get J9ULv3ew /os/.tupdate")
  146.    term.setCursorPos(1,17)
  147.    shell.run("pastebin get fEKcVePL /os/ver/.ver")
  148.    term.clear()
  149.    term.setCursorPos(20,19)
  150.    write("/os/icon")
  151.    term.setCursorPos(1,17)
  152.    shell.run("pastebin get NVzDaz4M /os/icon")
  153.    scp(1,17)
  154.    r("pastebin get pNtMLmM9 /os/.update")
  155.    term.clear()
  156.    sleep(4)
  157.    term.setCursorPos(1,1)
  158.    print("Gotowe! Teraz przygotujmy twoj komputer.")
  159.    s(2)
  160.    tc()
  161.    scp(1,1)
  162.    stc(colors.white)
  163.    sbc(colors.blue)
  164.    p("Wpisz nazwe uzytkownika:")
  165.    w("")
  166.    uzytkownik = read()
  167.    p("Wpisz haslo: ")
  168.    w("")
  169.    haslo = read()
  170.    local p = fs.open("/os/.log1", "w")
  171.    p.write(uzytkownik)
  172.    p.close()
  173.    local h = fs.open("/os/.log2", "w")
  174.    h.writeLine(haslo)
  175.    h.close()
  176.    os.setComputerLabel("MineCore PC")
  177.    os.reboot()
  178.   end
  179.  if x == 50 and y == 19 then os.reboot() end
  180.  if x == 51 and y == 19 then os.shutdown() end
  181. end
  182. end
  183. end
  184. if jezyk == "2" then
  185.  while true do
  186.  term.clear()
  187.  if fs.exists("/os/.pulpit") then obrazek = 1 else obrazek = 0 end
  188.  local image = paintutils.loadImage("/os/.pulpit")
  189.  if obrazek == 1 then paintutils.drawImage(image, 1, 1) else term.setBackgroundColor(colors.black) term.clear()
  190.  term.setBackgroundColor(colors.black) end
  191.  term.setTextColor(colors.white)
  192.  term.setCursorPos(1,19)
  193.  write("Start")
  194.  local event, click, x, y = os.pullEvent("mouse_click")
  195.  if x>0 and x<6 and y == 19  then
  196. term.setBackgroundColor(colors.blue)
  197.   term.setCursorPos(1,18)
  198.   print("Wyjdz do CraftOS      ")
  199.   term.setCursorPos(1,17)
  200.   print("Zainstaluj Minedows   ")
  201.   term.setCursorPos(1,16)
  202.   term.setBackgroundColor(colors.green)
  203.   print("Microcraft MineUI Live")
  204.   term.setBackgroundColor(colors.black)
  205.   local event, click, x, y = os.pullEvent("mouse_click")
  206.   if x>0 and x<10 and y == 18 then term.clear() term.setCursorPos(1,1) error("") end
  207.   if x>0 and x<10 and y == 17 then
  208.    term.clear()
  209.    term.setCursorPos(1,1)
  210.    print("Instaluje....")
  211.    term.setCursorPos(20,19)
  212.    write("/startup")
  213.    shell.run("startup")
  214.    term.setCursorPos(1,17)
  215.    shell.run("pastebin get nSZRyEw0 startup")
  216.    term.setCursorPos(20,19)
  217.    write("/os/")
  218.    shell.run("mkdir os")
  219.    term.setCursorPos(20,19)
  220.    write("/os/.menu")
  221.    term.setCursorPos(1,17)
  222.    shell.run("pastebin get tQVK3mAj /os/.menu")
  223.    term.clear()
  224.    term.setCursorPos(20,19)
  225.    write("/os/.informacje")
  226.    term.clearLine()
  227.    term.setCursorPos(1,17)
  228.    shell.run("pastebin get SyyZEXpA /os/.informacje")
  229.    term.setCursorPos(20,19)
  230.    write("/os/.2048")
  231.    term.setCursorPos(1,17)
  232.    shell.run("pastebin get u0urwgNc /os/.2048")
  233.    term.setCursorPos(20,19)
  234.    write("/os/.gry")
  235.    term.setCursorPos(1,17)
  236.    shell.run("pastebin get Q7TRBB4U /os/.gry")
  237.    term.setCursorPos(20,19)
  238.    write("/os/.kolko")
  239.    term.setCursorPos(1,17)
  240.    shell.run("pastebin get bV0tCQTr /os/.kolko")
  241.    term.setCursorPos(20,19)
  242.    write("/os/.luaide")
  243.    term.setCursorPos(1,17)
  244.    shell.run("pastebin get YXgn6m6p /os/.programy")
  245.    term.setCursorPos(1,17)
  246.    shell.run("pastebin get 2uECXPh2 /os/.explorer")
  247.    term.clear()
  248.    term.setCursorPos(20,19)
  249.    write("/os/icon")
  250.    term.setCursorPos(1,17)
  251.    shell.run("pastebin get NVzDaz4M /os/icon")
  252.    term.setCursorPos(1,17)
  253.    shell.run("pastebin get huKLkiuf /os/.surf")
  254.    term.setCursorPos(1,17)
  255.    shell.run("pastebin get fnCqqdwT /os/.update")
  256.    term.clear()
  257.    sleep(4)
  258.    term.setCursorPos(1,1)
  259.    print("Gotowe! Trwa ponowne uruchomienie komputera.")
  260.    os.setComputerLabel("MineCore PC")
  261.    os.reboot()
  262.   end
  263.  if x == 50 and y == 19 then os.reboot() end
  264.  if x == 51 and y == 19 then os.shutdown() end
  265. end
  266. end
  267. end
  268. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement