Advertisement
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")
- print("Bitte wähle eine Aktion: [L]Lade Account|[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
- print("Bitte Usernamen eingeben: ")
- user = io.read()
- Name = user
- for Name, list in ipairs (acc.Name) do
- print(list)
- if list == nil then
- print("Username Exzestiert nicht")
- shell.run("reboot")
- elseif list == user then
- print("Bitte Password eingeben")
- pass = io.read()
- for pass, list2 in pairs (acc) do
- print(list2)
- if list2 == pass then
- print("Password Akzeptiert")
- cut()
- print("Was wollen Sie Machen?")
- print("Baustelle")
- elseif list2 == nil then
- print("Falsches oder kein Password eingegeben")
- shell.run("reboot")
- end
- end
- end
- end
- elseif key1 == "n" then
- print("Namen Eingeben :")
- Name = io.read()
- print("Name " .. Name .. " gewaehlt")
- cut()
- print("Password Eingeben")
- Password = io.read()
- print("Password " .. Password .. " gewaehlt")
- cut()
- acc = {}
- acc.Name = {}
- acc.Name.Name = Name
- acc.Name.Password = Password
- acc.Name.Geld = 0
- print("Done")
- print(acc)
- cut()
- shell.run("reboot")
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement