Advertisement
PolskiWisnia

Setup March [N]

Mar 7th, 2019
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 6.71 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 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 HDpVaQKe 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 VypKKF5K /os/.menu")
  65.    term.clear()
  66.    term.setCursorPos(20,19)
  67.    write("/os/.informacje")
  68.    term.clearLine()
  69.    term.setCursorPos(1,17)
  70.    shell.run("pastebin get NA5MgG37 /os/.informacje")
  71.    term.clearLine()
  72.    term.clear()
  73.    term.setCursorPos(20,19)
  74.    write("/os/.2048")
  75.    term.setCursorPos(1,17)
  76.    shell.run("pastebin get u0urwgNc /os/.2048")
  77.    term.setCursorPos(20,19)
  78.    write("/os/.luaide")
  79.    term.setCursorPos(1,17)
  80.    shell.run("pastebin get vyAZc6tJ /os/.luaide")
  81.    term.clear()
  82.    term.setCursorPos(20,19)
  83.    write("/os/icon")
  84.    term.setCursorPos(1,17)
  85.    shell.run("pastebin get KkPMhn2Q /os/icon")
  86.    term.setCursorPos(1,17)
  87.    shell.run("pastebin get nYY24idJ /os/.pulpit")
  88.    term.setCursorPos(1,17)
  89.    shell.run("pastebin get Y1zrxZ38 /os/.programy")
  90.    term.setCursorPos(1,17)
  91.    shell.run("pastebin get jM6b3Lwf /os/.ustawienia")
  92.    term.clear()
  93.    sleep(4)
  94.    term.setCursorPos(1,1)
  95.    print("Gotowe! Trwa ponowne uruchomienie komputera.")
  96.    os.setComputerLabel("MineCore PC")
  97.    os.reboot()
  98.   end
  99.  if x == 50 and y == 19 then os.reboot() end
  100.  if x == 51 and y == 19 then os.shutdown() end
  101. end
  102. end
  103. end
  104. if jezyk == "2" then
  105. while true do
  106. term.clear()
  107. if fs.exists("/os/.pulpit") then obrazek = 1 else obrazek = 0 end
  108. local image = paintutils.loadImage("/os/.pulpit")
  109. if obrazek == 1 then paintutils.drawImage(image, 1, 1) else term.setBackgroundColor(colors.black) term.clear() term.setBackgroundColor(colors.black) end
  110. term.setTextColor(colors.white)
  111. term.setCursorPos(1,19)
  112. write("Start")
  113. local event, click, x, y = os.pullEvent("mouse_click")
  114. if x>0 and x<6 and y == 19  then
  115.  term.setBackgroundColor(colors.blue)
  116.  term.setCursorPos(1,18)
  117.  print("Exit to CraftOS       ")
  118.  term.setCursorPos(1,17)
  119.  print("Settings              ")
  120.  term.setCursorPos(1,16)
  121.  print("Install MineCore      ")
  122.  term.setCursorPos(1,15)
  123.  term.setBackgroundColor(colors.green)
  124.  textutils.slowPrint("Microcraft MineUI Live")
  125.  term.setBackgroundColor(colors.black)
  126.  local event, click, x, y = os.pullEvent("mouse_click")
  127.  if x>0 and x<10 and y == 18 then term.clear() term.setCursorPos(1,1) error("") end
  128.  if x>0 and x<10 and y == 17 then
  129.   term.setCursorPos(1,2)
  130.   print("MineCore Settings")
  131.   print("Change computer label")
  132.   print("[Change]")
  133.   local event, click, x, y = os.pullEvent("mouse_click")
  134.   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()
  135.   end
  136.  end
  137.   if x>0 and x<10 and y == 16 then
  138.    term.clear()
  139.    term.setCursorPos(1,1)
  140.    print("Processing....")
  141.    term.setCursorPos(20,19)
  142.    write("/startup")
  143.    shell.run("startup")
  144.    term.setCursorPos(1,17)
  145.    shell.run("pastebin get 4mcRbb31 startup")
  146.    term.setCursorPos(20,19)
  147.    write("/os/")
  148.    shell.run("mkdir os")
  149.    term.setCursorPos(20,19)
  150.    write("/os/.menu")
  151.    term.setCursorPos(1,17)
  152.    shell.run("pastebin get 6BLmRLDS /os/.menu")
  153.    term.clear()
  154.    term.setCursorPos(20,19)
  155.    write("/os/.informacje")
  156.    term.clearLine()
  157.    term.setCursorPos(1,17)
  158.    shell.run("pastebin get Qet147Ru /os/.informacje")
  159.    term.clearLine()
  160.    term.clear()
  161.    term.setCursorPos(20,19)
  162.    write("/os/.2048")
  163.    term.setCursorPos(1,17)
  164.    shell.run("pastebin get u0urwgNc /os/.2048")
  165.    term.setCursorPos(20,19)
  166.    write("/os/.luaide")
  167.    term.setCursorPos(1,17)
  168.    shell.run("pastebin get vyAZc6tJ /os/.luaide")
  169.    term.clear()
  170.    term.setCursorPos(20,19)
  171.    write("/os/icon")
  172.    term.setCursorPos(1,17)
  173.    shell.run("pastebin get KkPMhn2Q /os/icon")
  174.    term.setCursorPos(1,17)
  175.    shell.run("pastebin get nYY24idJ /os/.pulpit")
  176.    term.clear()
  177.    sleep(4)
  178.    term.setCursorPos(1,1)
  179.    print("Done! Rebooting this PC.")
  180.    os.setComputerLabel("MineCore PC")
  181.    os.reboot()
  182.   end
  183.  if x == 50 and y == 19 then os.reboot() end
  184.  if x == 51 and y == 19 then os.shutdown() end
  185. end
  186. end
  187. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement