Posted 05 April 2014 - 04:46 AM
Playing tekkit and getting into the whole computer craft side.
I made a script essentially word-to-word with this tutorial:
https://www.youtube.com/watch?v=PK2YfTM9RY4
did all instructions etc, but my script: for a password door,
Does not start it will say:
bios:206 [string "startup"]:18: '=' expected
So heres the script:
I made a script essentially word-to-word with this tutorial:
https://www.youtube.com/watch?v=PK2YfTM9RY4
did all instructions etc, but my script: for a password door,
Does not start it will say:
bios:206 [string "startup"]:18: '=' expected
So heres the script:
- term.clear()
term.setCursorPose(1,1)
os.pullEvent = os.pullEventRaw
password = "238"
masterpassword = "password238"
print("Message1")
write "Please Enter Password: "
local input = read("*")
if input == (password) then
print("Password Accepted")
redstone.setoutput("Right", true)
sleep(5)
os.shutdown()
elseif input == (masterpassword) then
print("Welcome User")
sleep(2)
print("Terminal Unlcoked, Admin Access Enabled")
else
print("Password Incorrect - Rebooting")
sleep(3)
os.shutdown()
end