Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function cut()
- sleep(3)
- shell.run("clear")
- sleep(1)
- end
- while true do
- print("Willkommen in der MaceBank Manarola")
- cut()
- print("Bitte waehle eine Aktion:\n[L]Lade Account\n[N]Erstelle Neuen Account")
- local evt, key1 = os.pullEvent("char") -- wait for a key press
- key1 = string.lower(key1) -- convert to lower case, so you can press o or O
- if key1 == "l" then
- shell.run("clear")
- print("Bitte Usernamen eingeben: ")
- user = io.read()
- user1 = acc.user.user
- if user1 == user then
- print("Bitte Password eingeben")
- pass = io.read()
- pass1 = acc.user.pass
- if pass1 == pass then
- print("Password Akzeptiert")
- cut()
- print("Was wollen Sie Machen?")
- print("Baustelle")
- else
- print("Falsches oder kein Password eingegeben")
- shell.run("reboot")
- end
- else
- print("Username Exzestiert nicht")
- shell.run("reboot")
- end
- elseif key1 == "n" then
- print("Namen Eingeben :")
- Name = io.read()
- print("Name " .. Name .. " gewaehlt")
- sleep(2)
- cut()
- print("Password Eingeben")
- Password = io.read()
- print("Password " .. Password .. " gewaehlt")
- cut()
- Username = Name
- Name = {}
- Name.Username = Name
- Name.Password = Password
- Name.Geld = 0
- print("Done")
- print(Name.Name)
- print(Name.Password)
- print(Name.Geld)
- files = fs.open(tostring(Name), "w")
- files.write(Name.Name)
- files.write(Name.Password)
- files.write(Name.Geld)
- sleep(2)
- files.close()
- file = fs.open(tostring(Name),"r")
- data = file.readAll()
- print(data)
- file.close()
- cut()
- shell.run("reboot")
- end
- end
Add Comment
Please, Sign In to add comment