
HS 1
By:
666WTF666 on
Jun 2nd, 2012 | syntax:
None | size: 1.20 KB | hits: 18 | expires: Never
--Define Program Information
--Text Symbols
usersymbol = "X"
passsymbol = "*"
--Passwords
pass1 = "1928"
pass2 = "lamus"
pass3 = "znasz"
pass4 = "nieznasz"
-- Usernames
user1 = "skrytka"
user2 = "Misiek"
user3 = "WTF"
user4 = "Aqos"
--TERMINATE
TerminalMode = 0 -- Allows you to edit what terminate does
function os.pullEvent()
local event, p1, p2, p3, p4, p5 = os.pullEventRaw()
if event == "terminate" then
if TerminalMode == 0 then
end
if TerminalMode == 1 then
os.reboot()
end
if TerminalMode == 2 then
error( "Terminated" )
end
end
return event, p1, p2, p3, p4, p5
end
--Program
shell.run("clear")
redstone.setOutput("bottom", false)
sleep(4)
shell.run("clear")
textutils.slowPrint"Prosze podaj log-in"
xuser = read(usersymbol)
textutils.slowPrint"Prosze podaj haslo"
xpassword = read(passsymbol)
if xpassword == pass1 and xuser == user1 then
textutils.slowPrint"Zalogowano"
redstone.setOutput("bottom", true)
sleep(10)
redstone.setOutput("bottom", false)
sleep(2)
shell.run("clear")
shell.run("startup")
else
textutils.slowPrint"Zly login lub haslo"
sleep(2)
shell.run("startup")
shell.run("clear")
end