Posted 17 September 2012 - 02:21 AM
I can't get this to work
clear()
secretPass = "967618" -- Your Password
debugPass = "8537" -- Password if you want to edit something
helpPass = "Help" -- For loners
textutils.slowPrint(" Welcome to ")
print(" Base 0001 ")
print(" ")
sleep(2)
io.write("Password:")
sInput = read("*")
if secretPass == sInput then
print("Password Accepted")
redstone.setOutput("back", true)
sleep(5)
redstone.setOutput("back", false)
os.shutdown()
elseif sInput == debugPass then
clear()
print("Debuging mode activated")
elseif sInput == helpPass then
print("Enter Password To Open Door")
sleep(2)
os.reboot()
else redstone.setOutput("back", true)
sleep(10)
print("GOODBYE :)/>/>")
redstone.setOutput("back", false)
os.shutdown()
end
end
I am not very good at this and this is my first door.