
SafeDoor
By:
NL_Miquel on
Aug 20th, 2012 | syntax:
None | size: 0.73 KB | hits: 23 | expires: Never
print("Wachtwoord beveiliging")
code = ("Capmiq")
debug = ("candy_yams")
tries = 3
write ("Wachtwoord: ")
for triescnt = 1,tries,1 do
password = read ()
if password == debug then
print ("Veiligheids mode geactiveerd")
break
end
if password == (code) then
print ("Welkom")
redstone.setOutput("back", true)
sleep(5)
redstone.setOutput("back", false)
redstone.setOutput("bottom", true)
os.shutdown()
else
print ("Toegang geweigerd, pogingen over: ",tries-triescnt)
print ("Hint: Geen hint, jammer hé!")
write ("Password: ")
end
if triescnt == tries then
print ("Ga weg!")
sleep(1)
print ("ERROR!!!")
print ("Beveiliging gaat uit...")
sleep(1)
os.shutdown()
else
end
end