PolskiWisnia

2nd March Setup [N]

Mar 14th, 2019
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 6.92 KB | None | 0 0
  1. -- Oprogramowanie skladowe/instalator systemow/czesc skladowa 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. term.clear()
  7. term.setCursorPos(1,1)
  8. print("Witamy w programie instalacyjnym MineCore 2nd March Update. Prosimy wybrac jezyk systemu. Instalacja zostanie dokonana po wybraniu odpowiedniej opcji z Menu Start w MineUI")
  9. print("Welcome to the setup of the MineCore March Update. Please choose your language. The setup will install MineCore after choosing the option in the Start Menu in MineUI.")
  10. print("1. Polski")
  11. print("2. English")
  12. write("")
  13. jezyk = read()
  14. if jezyk == "1" then
  15.  while true do
  16.  term.clear()
  17.  if fs.exists("/os/.pulpit") then obrazek = 1 else obrazek = 0 end
  18.  local image = paintutils.loadImage("/os/.pulpit")
  19.  if obrazek == 1 then paintutils.drawImage(image, 1, 1) else term.setBackgroundColor(colors.black) term.clear()
  20.  term.setBackgroundColor(colors.black) end
  21.  term.setTextColor(colors.white)
  22.  term.setCursorPos(1,19)
  23.  write("Start")
  24.  local event, click, x, y = os.pullEvent("mouse_click")
  25.  if x>0 and x<6 and y == 19  then
  26. term.setBackgroundColor(colors.blue)
  27.   term.setCursorPos(1,18)
  28.   print("Wyjdz do CraftOS      ")
  29.   term.setCursorPos(1,17)
  30.   print("Ustawienia            ")
  31.   term.setCursorPos(1,16)
  32.   print("Zainstaluj MineCore   ")
  33.   term.setCursorPos(1,15)
  34.   term.setBackgroundColor(colors.green)
  35.   textutils.slowPrint("Microcraft MineUI Live")
  36.   term.setBackgroundColor(colors.black)
  37.   local event, click, x, y = os.pullEvent("mouse_click")
  38.   if x>0 and x<10 and y == 18 then term.clear() term.setCursorPos(1,1) error("") end
  39.   if x>0 and x<10 and y == 17 then
  40.   term.setCursorPos(1,2)
  41.   print("Ustawienia MineCore")
  42.   print("Zmien nazwe komputera")
  43.   print("[Zmien]")
  44.   print("Zainstaluj system dla wiekszej ilosci ustawien")
  45.   local event, click, x, y = os.pullEvent("mouse_click")
  46.   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()
  47.  os.setComputerLabel(nazwa) os.reboot() end
  48.   end
  49.   if x>0 and x<10 and y == 16 then
  50.    term.clear()
  51.    term.setCursorPos(1,1)
  52.    print("Instaluje....")
  53.    term.setCursorPos(20,19)
  54.    write("/startup")
  55.    shell.run("startup")
  56.    term.setCursorPos(1,17)
  57.    shell.run("pastebin get newde1Qg startup")
  58.    term.setCursorPos(20,19)
  59.    write("/os/")
  60.    shell.run("mkdir os")
  61.    term.setCursorPos(20,19)
  62.    write("/os/.menu")
  63.    term.setCursorPos(1,17)
  64.    shell.run("pastebin get 6PUwszLu /os/.menu")
  65.    term.clear()
  66.    term.setCursorPos(20,19)
  67.    write("/os/.info")
  68.    term.clearLine()
  69.    term.setCursorPos(1,17)
  70.    shell.run("pastebin get aNsHcZz8 /os/.info")
  71.    term.setCursorPos(20,19)
  72.    write("/os/.2048")
  73.    term.setCursorPos(1,17)
  74.    shell.run("pastebin get u0urwgNc /os/.2048")
  75.    term.setCursorPos(20,19)
  76.    write("/os/.paint")
  77.    term.setCursorPos(1,17)
  78.    shell.run("pastebin get pzWSRqNF /os/.paint")
  79.    term.setCursorPos(20,19)
  80.    write("/os/.kolko")
  81.    term.setCursorPos(1,17)
  82.    shell.run("pastebin get bV0tCQTr /os/.kolko")
  83.    term.setCursorPos(20,19)
  84.    write("/os/.luaide")
  85.    term.setCursorPos(1,17)
  86.    shell.run("pastebin get vyAZc6tJ /os/.luaide")
  87.    term.clear()
  88.    term.setCursorPos(20,19)
  89.    write("/os/icon")
  90.    term.setCursorPos(1,17)
  91.    shell.run("pastebin get KkPMhn2Q /os/icon")
  92.    term.setCursorPos(1,17)
  93.    shell.run("pastebin get nYY24idJ /os/.pulpit")
  94.    term.setCursorPos(1,17)
  95.    shell.run("pastebin get Y1zrxZ38 /os/.programy")
  96.    term.setCursorPos(1,17)
  97.    shell.run("pastebin get jM6b3Lwf /os/.ustawienia")
  98.    term.clear()
  99.    sleep(4)
  100.    term.setCursorPos(1,1)
  101.    print("Gotowe! Trwa ponowne uruchomienie komputera.")
  102.    os.setComputerLabel("MineCore PC")
  103.    os.reboot()
  104.   end
  105.  if x == 50 and y == 19 then os.reboot() end
  106.  if x == 51 and y == 19 then os.shutdown() end
  107. end
  108. end
  109. end
  110. if jezyk == "2" then
  111. while true do
  112. term.clear()
  113. if fs.exists("/os/.pulpit") then obrazek = 1 else obrazek = 0 end
  114. local image = paintutils.loadImage("/os/.pulpit")
  115. if obrazek == 1 then paintutils.drawImage(image, 1, 1) else term.setBackgroundColor(colors.black) term.clear() term.setBackgroundColor(colors.black) end
  116. term.setTextColor(colors.white)
  117. term.setCursorPos(1,19)
  118. write("Start")
  119. local event, click, x, y = os.pullEvent("mouse_click")
  120. if x>0 and x<6 and y == 19  then
  121.  term.setBackgroundColor(colors.blue)
  122.  term.setCursorPos(1,18)
  123.  print("Exit to CraftOS       ")
  124.  term.setCursorPos(1,17)
  125.  print("Settings              ")
  126.  term.setCursorPos(1,16)
  127.  print("Install MineCore      ")
  128.  term.setCursorPos(1,15)
  129.  term.setBackgroundColor(colors.green)
  130.  textutils.slowPrint("Microcraft MineUI Live")
  131.  term.setBackgroundColor(colors.black)
  132.  local event, click, x, y = os.pullEvent("mouse_click")
  133.  if x>0 and x<10 and y == 18 then term.clear() term.setCursorPos(1,1) error("") end
  134.  if x>0 and x<10 and y == 17 then
  135.   term.setCursorPos(1,2)
  136.   print("MineCore Settings")
  137.   print("Change computer label")
  138.   print("[Change]")
  139.   local event, click, x, y = os.pullEvent("mouse_click")
  140.   if x>0 and x<7 and y == 4 then term.setCursorPos(1,4) write("Enter new label:") nazwa = read() os.setComputerLabel(nazwa) os.reboot()
  141.   end
  142.  end
  143.   if x>0 and x<10 and y == 16 then
  144.    term.clear()
  145.    term.setCursorPos(1,1)
  146.    print("Processing....")
  147.    term.setCursorPos(20,19)
  148.    write("/startup")
  149.    shell.run("startup")
  150.    term.setCursorPos(1,17)
  151.    shell.run("pastebin get 4mcRbb31 startup")
  152.    term.setCursorPos(20,19)
  153.    write("/os/")
  154.    shell.run("mkdir os")
  155.    term.setCursorPos(20,19)
  156.    write("/os/.menu")
  157.    term.setCursorPos(1,17)
  158.    shell.run("pastebin get 6BLmRLDS /os/.menu")
  159.    term.clear()
  160.    term.setCursorPos(20,19)
  161.    write("/os/.informacje")
  162.    term.clearLine()
  163.    term.setCursorPos(1,17)
  164.    shell.run("pastebin get Qet147Ru /os/.informacje")
  165.    term.clearLine()
  166.    term.clear()
  167.    term.setCursorPos(20,19)
  168.    write("/os/.2048")
  169.    term.setCursorPos(1,17)
  170.    shell.run("pastebin get u0urwgNc /os/.2048")
  171.    term.setCursorPos(20,19)
  172.    write("/os/.luaide")
  173.    term.setCursorPos(1,17)
  174.    shell.run("pastebin get vyAZc6tJ /os/.luaide")
  175.    term.clear()
  176.    term.setCursorPos(20,19)
  177.    write("/os/icon")
  178.    term.setCursorPos(1,17)
  179.    shell.run("pastebin get KkPMhn2Q /os/icon")
  180.    term.setCursorPos(1,17)
  181.    shell.run("pastebin get nYY24idJ /os/.pulpit")
  182.    term.clear()
  183.    sleep(4)
  184.    term.setCursorPos(1,1)
  185.    print("Done! Rebooting this PC.")
  186.    os.setComputerLabel("MineCore PC")
  187.    os.reboot()
  188.   end
  189.  if x == 50 and y == 19 then os.reboot() end
  190.  if x == 51 and y == 19 then os.shutdown() end
  191. end
  192. end
  193. end
Add Comment
Please, Sign In to add comment