This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
TyDoesMC's profile picture

Safe Login Code

Started by TyDoesMC, 08 June 2013 - 04:42 PM
TyDoesMC #1
Posted 08 June 2013 - 06:42 PM
Hello this is my first code, to add more user's copy the first 3 lines of code and enter in the areas.


–My First Code
User = "Your Computer's Username Here" –Your Username
Rank = "Your Rank Here" –Your Rank
Password = "Your Password Here" – Your Password
Write("username: ")

name = read()
if name == (User) then
Write("rank: ")
else
Textutils.slowPrint("Incorrect Username!, Sounding Alarm!")
sleep(5)
os.shutdown()

id = read()
if id == (Rank) then
write("password: ")
else
textutils.slowPrint("Incorrect Rank!")
sleep(2)
os.shutdown()

pass = read("*")
if pass == (Password) then
textutils.slowPrint("Welcome"..Rank.." "..User.."")
–For redstone output delete this line and put it here
–Then put another code here for (sleep, print ect.)
–Here put os.shutdown() if you use redstone output
–Code created by: Toxic_Herobrine
Lyqyd #2
Posted 09 June 2013 - 05:01 AM
Split into new topic.
remiX #3
Posted 09 June 2013 - 05:02 AM
So… what is the problem?
LBPHacker #4
Posted 09 June 2013 - 06:06 AM
Nothing. He posted that because he wanted to reach the three-post threshold.
One of them is (was*) in [New members needing to ask questions, please read.] quoting another one he made.