Advertisement
PolskiWisnia

March update

Mar 2nd, 2019
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 3.76 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. while true do
  7. -- Ten kod jest moj arczez, nie twoj --
  8. term.clear()
  9. if fs.exists("/os/.pulpit") then obrazek = 1 else obrazek = 0 end
  10. local image = paintutils.loadImage("/os/.pulpit")
  11. if obrazek == 1 then paintutils.drawImage(image, 1, 1) else term.setBackgroundColor(colors.black) term.clear() term.setBackgroundColor(colors.black) end
  12. term.setBackgroundColor(colors.red)
  13. term.setTextColor(colors.white)
  14. term.setCursorPos(1,2)
  15. print("Ta wersja systemu MineCore zostala porzucona przez Microcraft. Zalecamy przejscie na MineCore April Update lub MineCore Hybrid OS.")
  16. term.setBackgroundColor(colors.green)
  17. term.setTextColor(colors.white)
  18. term.setCursorPos(1,19)
  19. write("Start")
  20. local event, click, x, y = os.pullEvent("mouse_click")
  21. if x>0 and x<6 and y == 19  then
  22.  term.setBackgroundColor(colors.blue)
  23.  term.setCursorPos(1,18)
  24.  print("Wyjdz do CraftOS ")
  25.  term.setCursorPos(1,17)
  26.  print("Programy         ")
  27.  term.setCursorPos(1,16)
  28.  print("Ustawienia       ")
  29.  term.setCursorPos(1,15)
  30.  print("Komenda /run     ")
  31.  term.setCursorPos(1,14)
  32.  term.setBackgroundColor(colors.green)
  33.  textutils.slowPrint("Microcraft MineUI")
  34.  term.setBackgroundColor(colors.black)
  35.  local event, click, x, y = os.pullEvent("mouse_click")
  36.  if x>0 and x<10 and y == 18 then term.clear() term.setCursorPos(1,1) error("") end
  37.  if x>0 and x<17 and y == 15 then term.setCursorPos(1,2) print("Wpisz nazwe pliku")
  38.  term.setCursorPos(1,3)
  39.  write("")
  40.  program = read()
  41.  if fs.exists(program) then
  42.    shell.run(program)
  43.    else print("Blad")
  44.    sleep(2)
  45.  end end
  46.  if x == 1 and y == 17 or x == 2 and y == 17 or x == 3 and y == 17 or x == 4 and y == 17 then
  47.  x = 0
  48.  y = 0
  49.  term.setCursorPos(1,2)
  50.  print("Programy i gry MineCore")
  51.  print("2048")
  52.  print("Snake")
  53.  print("LuaIDE")
  54.  print("Paint")
  55.  local event, click, x, y = os.pullEvent("mouse_click")
  56.  if x>0 and x<5 and y == 3 then shell.run("/os/.2048") end
  57.  if x>0 and x<6 and y == 4 then shell.run("worm") end
  58.  if x>0 and x<7 and y == 5 then
  59.  term.setCursorPos(1,5)
  60.  print("Wpisz nazwe pliku, jaki chcesz edytowac")
  61.  write(".>")
  62.  plik = read()
  63.  shell.run("/os/.luaide", plik)
  64.  end
  65.  if x>0 and x<6 and y == 6 then
  66.  term.setCursorPos(1,7)
  67.  print("Wpisz nazwe pliku, jaki chcesz edytowac")
  68.  write(".>")
  69.  plik = read()
  70.  shell.run("paint", plik)
  71.  end
  72.  end
  73.  if x == 1 and y == 16 or x == 2 and y == 16 or x == 3 and y == 16 or x == 4 and y == 16 then
  74.  term.setCursorPos(1,2)
  75.  print("Ustawienia MineCore")
  76.  print("Zmien nazwe komputera")
  77.  print("[Zmien]")
  78.  print("Wyswietl informacje o komputerze")
  79.  print("[Informacje]")
  80.  print("Uruchom ponownie z dyskietki")
  81.  print("[Uruchom ponownie]")
  82.  local event, click, x, y = os.pullEvent("mouse_click")
  83.  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() os.setComputerLabel(nazwa) os.reboot() end
  84.  if x == 1 and y == 6 or x == 2 and y == 6 or x == 3 and y == 6 or x == 4 and y == 6 then shell.run("/os/.informacje") end  
  85.  end
  86.  if x>0 and x<25 and y == 8 then
  87.   if fs.exists("/disk/startup") then os.reboot() else print("Blad stacji. Sprawdz czy dyskietka sie w niej znajduje!") end
  88.  end
  89. end
  90. if x == 50 and y == 19 then os.reboot() end
  91. if x == 51 and y == 19 then os.shutdown() end
  92. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement