Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --
- NamE = "Akira.OS"
- VersioN = "v1.5"
- os.pullEvent = os.pullEventRaw
- --
- term.clear()
- term.setCursorPos(1,1)
- term.setTextColor(colors.purple)
- textutils.slowPrint("Akira.LoginSystem")
- term.setCursorPos(19,1)
- term.setTextColor(colors.blue)
- print(VersioN)
- sleep(1)
- --
- username = {"ShexianKyoto", "Yinxian", "OMGitsMing"}
- password = {"BabyGirl", "-", "-"}
- term.setCursorPos(1,3)
- term.setTextColor(colors.purple)
- term.write("Username: ")
- term.setTextColor(colors.blue)
- user = read()
- term.setTextColor(colors.purple)
- term.write("Password: ")
- term.setTextColor(colors.blue)
- pass = read("*")
- for i=1, #username do
- if user == username[i] and pass == password[i] then
- access = true
- end
- end
- --
- if user == "Debug" and pass == "Admin" then
- term.setCursorPos(1,6)
- term.setTextColor(colors.yellow)
- textutils.slowPrint("Initiating Debug-Mode!")
- textutils.slowPrint("Please use with care!")
- sleep(2)
- term.clear()
- term.setCursorPos(1,1)
- term.setTextColor(colors.yellow)
- textutils.slowPrint(NamE)
- term.setCursorPos(10,1)
- term.setTextColor(colors.red)
- print("DEBUG-MODE")
- term.setCursorPos(1,3)
- term.setTextColor(colors.yellow)
- end
- --
- if access == true then
- term.setCursorPos(1,6)
- term.setTextColor(colors.yellow)
- textutils.slowPrint("Attempting to login!")
- sleep(1)
- textutils.slowPrint("...")
- sleep(1)
- term.setCursorPos(1,9)
- term.setTextColor(colors.green)
- textutils.slowPrint("Login succeeded!")
- textutils.slowPrint("...")
- term.clear()
- term.setCursorPos(1,1)
- term.setTextColor(colors.purple)
- textutils.slowPrint(NamE)
- term.setCursorPos(10,1)
- term.setTextColor(colors.blue)
- print(VersioN)
- term.setCursorPos(1,3)
- term.setTextColor(colors.white)
- else
- term.setCursorPos(1,6)
- term.setTextColor(colors.yellow)
- textutils.slowPrint("Attempting to login!")
- sleep(1)
- textutils.slowPrint("...")
- sleep(1)
- term.setCursorPos(1,9)
- term.setTextColor(colors.red)
- textutils.slowPrint("Login failed!")
- sleep(1)
- textutils.slowPrint("Incorrect username and or password!")
- sleep(1)
- term.setCursorPos(1,12)
- term.setTextColor(colors.yellow)
- textutils.slowPrint("Rebooting Akira.OS!")
- sleep(1)
- os.reboot()
- end
- --
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement