Advertisement
PolskiWisnia

Untitled

Mar 4th, 2020
208
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.98 KB | None | 0 0
  1. local function s(...) return sleep(...) end
  2. local function aw(...) return write(...) end
  3. local function p(...) return print(...) end
  4. local function tw(...) return term.write(...) end
  5. local function scp(...) return term.setCursorPos(...) end
  6. local function sbc(...) return term.setBackgroundColor(...) end
  7. local function stc(...) return term.setTextColor(...) end
  8. local function tc(...) return term.clear(...) end
  9. local function tcl(...) return term.clearLine(...) end
  10. local function r(...) return shell.run(...) end
  11. local function sp(...) return textutils.slowPrint(...) end
  12. local function sw(...) return textutils.slowWrite(...) end
  13. local function fse(...) return fs.exists(...) end
  14. local function pul(...) return paintutils.loadImage(...) end
  15. local function pud(...) return paintutils.drawImage(...) end
  16. local function pfb(...) return paintutils.drawFilledBox(...) end
  17. local function su(...) return os.shutdown(...) end
  18. local function re(...) return os.reboot(...) end
  19. local function pdp(...) return paintutils.drawPixel(...) end
  20. local w, h = term.getSize()
  21. function bsodr()
  22. tc()
  23. sbc(colors.blue)
  24. tc()
  25. sbc(colors.blue)
  26. stc(colors.white)
  27. ac = w/2
  28. scp(ac-2,3)
  29. sbc(colors.white)
  30. stc(colors.blue)
  31. p("NextUI")
  32. sbc(colors.blue)
  33. stc(colors.white)
  34. scp(1,6)
  35. p("Microcraft MineCore napotkal blad i musial zostac zatrzymany. Jesli widzisz ten ekran po raz pierwszy, uruchom ponownie komputer, jednak jesli bedzie sie powtarzal mozliwe, ze konieczna bedzie naprawa systemu NextUI. Skontaktuj sie w tym celu z przedstawicielem Microcraft po wiecej informacji.")
  36. p("Kod bledu: 0x302525503149")
  37. p("Nazwa bledu: INV_RES")
  38. system = "NextUI"
  39. kernel = "MineCore"
  40. kod = "0x403535604159"
  41. nazwa = "INV_RES"
  42. p("Zapisywanie kodu i nazwy bledu w pliku /os/bsod/.bsodr")
  43. local a = fs.open("/os/bsod/.bsodr", "w")
  44. a.writeLine(system)
  45. a.writeLine(kernel)
  46. a.writeLine(kod)
  47. a.writeLine(nazwa)
  48. a.close()
  49. p("Twoj komputer uruchomi sie ponownie za 10 sekund")
  50. s(10)
  51. re()
  52. end
  53. if fse("s") then bsodr() end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement