Posted 13 July 2012 - 11:00 PM
So I'm using this code as a Password for my door on a Tekkit server.
The code before pass and after end prevent Ctrl + T Termination.
I need an extra code that turns the lock off and then goes back to CraftOS 1.3, like a debug code.
I'm LUA Retarded, so I need some help :/
local oldPull = os.pullEvent;
os.pullEvent = os.pullEventRaw;
pass = "Pass"
print ("Lock")
write "Password: "
input = read()
if input == pass then
print ("Access Granted")
redstone.setOutput ("left", true )
sleep(5)
os.shutdown()
else
print ("Access Denied"!)
sleep(2)
os.shutdown()
end
os.pullEvent = oldPull;
The code before pass and after end prevent Ctrl + T Termination.
I need an extra code that turns the lock off and then goes back to CraftOS 1.3, like a debug code.
I'm LUA Retarded, so I need some help :/