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
- sbc(colors.green)
- tc()
- sbc(colors.green)
- pfb(1, 1, 51, 1, colors.gray)
- sbc(colors.lightGray)
- stc(colors.white)
- scp(1,1)
- p("Odin Security | Poziom 1")
- scp(1,2)
- sbc(colors.green)
- p("Wpisz haslo:")
- w("")
- haslo = read()
- local ss = fs.open("/odin/.haslo")
- sss = ss.readLine(1)
- if sss == haslo then redstone.setOutput("right", true) redstone.setOutput("left", true) s(5) redstone.setOutput("right", false) redstone.setOutput("left", false) else p("Zle haslo") s(2) re() end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement