Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local function s(...) return sleep(...) end
- local function w(...) return write(...) end
- local function p(...) return print(...) end
- local function tw(...) return term.write(...) end
- local function scp(...) return term.setCursorPos(...) end
- local function sbc(...) return term.setBackgroundColor(...) end
- local function stc(...) return term.setTextColor(...) end
- local function tc(...) return term.clear(...) end
- local function tcl(...) return term.clearLine(...) end
- local function r(...) return shell.run(...) end
- local function sp(...) return textutils.slowPrint(...) end
- local function sw(...) return textutils.slowWrite(...) end
- local function fse(...) return fs.exists(...) end
- local function pul(...) return paintutils.loadImage(...) end
- local function pud(...) return paintutils.drawImage(...) end
- local function pfb(...) return paintutils.drawFilledBox(...) end
- local function su(...) return os.shutdown(...) end
- local function re(...) return os.reboot(...) end
- local function pdp(...) return paintutils.drawPixel(...) end
- local ver = fs.open("/odin/.ver", "r")
- wer = ver.readLine(1)
- pfb(1, 2, 51, 27, colors.red)
- pfb(1, 1, 51, 1, colors.gray)
- stc(colors.white)
- sbc(colors.gray)
- scp(1,27)
- p(wer)
- scp(1,1)
- p("SYSTEM ZABEZPIECZEN ODYN. POZIOM 4")
- pfb(2, 3, 23, 6, colors.gray)
- scp(2,3)
- p("Otworz")
- scp(2,4)
- p("Drzwi")
- local event, click, x, y = os.pullEvent("mouse_click")
- if x>1 and x<24 and y>2 and y<7 then s(2) re() end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement