daily pastebin goal
25%
SHARE
TWEET

Akira.OS v1.7

a guest Aug 13th, 2016 21 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --
  2. NamE = "Akira.OS"
  3. VersioN = "v1.6"
  4. os.pullEvent = os.pullEventRaw
  5. --
  6. term.clear()
  7. term.setCursorPos(1,1)
  8. term.setTextColor(colors.purple)
  9. textutils.slowPrint("Akira.LoginSystem")
  10. term.setCursorPos(19,1)
  11. term.setTextColor(colors.blue)
  12. print(VersioN)
  13. sleep(1)
  14. --
  15. username = {"ShexianKyoto", "Yinxian", "OMGitsMing"}
  16. password = {"BabyGirl", "-", "-"}
  17.  
  18. term.setCursorPos(1,3)
  19. term.setTextColor(colors.purple)
  20. term.write("Username: ")
  21. term.setTextColor(colors.blue)
  22. user = read()
  23.  
  24. term.setTextColor(colors.purple)
  25. term.write("Password: ")
  26. term.setTextColor(colors.blue)
  27. pass = read("*")
  28.  
  29. for i=1, #username do
  30.  if user == username[i] and pass == password[i] then
  31.    access = true
  32.  end
  33. end
  34. --
  35. if user == "Debug" and pass == "Admin" then
  36.  access = true
  37.  term.setCursorPos(1,6)
  38.  term.setTextColor(colors.yellow)
  39.  textutils.slowPrint("Initiating Debug-Mode!")
  40.  textutils.slowPrint("Please use with care!")
  41.  sleep(2)
  42.  term.clear()
  43.  term.setCursorPos(1,1)
  44.  term.setTextColor(colors.yellow)
  45.  textutils.slowPrint(NamE)
  46.  term.setCursorPos(10,1)
  47.  term.setTextColor(colors.red)
  48.  print("DEBUG-MODE")
  49.  term.setCursorPos(1,3)
  50.  term.setTextColor(colors.yellow)
  51. end
  52. --
  53. if access == true then
  54.  term.setCursorPos(1,6)
  55.  term.setTextColor(colors.yellow)
  56.  textutils.slowPrint("Attempting to login!")
  57.  sleep(1)
  58.  textutils.slowPrint("...")
  59.  sleep(1)
  60.  term.setCursorPos(1,9)
  61.  term.setTextColor(colors.green)
  62.  textutils.slowPrint("Login succeeded!")
  63.  textutils.slowPrint("...")
  64.  term.clear()
  65.  term.setCursorPos(1,1)
  66.  term.setTextColor(colors.purple)
  67.  textutils.slowPrint(NamE)
  68.  term.setCursorPos(10,1)
  69.  term.setTextColor(colors.blue)
  70.  print(VersioN)
  71.  term.setCursorPos(1,3)
  72.  term.setTextColor(colors.white)
  73.  
  74. else
  75.  term.setCursorPos(1,6)
  76.  term.setTextColor(colors.yellow)
  77.  textutils.slowPrint("Attempting to login!")
  78.  sleep(1)
  79.  textutils.slowPrint("...")
  80.  sleep(1)
  81.  term.setCursorPos(1,9)
  82.  term.setTextColor(colors.red)
  83.  textutils.slowPrint("Login failed!")
  84.  sleep(1)
  85.  textutils.slowPrint("Incorrect username and or password!")
  86.  sleep(1)
  87.  term.setCursorPos(1,12)
  88.  term.setTextColor(colors.yellow)
  89.  textutils.slowPrint("Rebooting Akira.OS!")
  90.  sleep(1)
  91.  os.reboot()
  92.  
  93. elseif user == "Debug" and pass == "Admin" then
  94.  access = true
  95.  term.setCursorPos(1,6)
  96.  term.setTextColor(colors.yellow)
  97.  textutils.slowPrint("Initiating Debug-Mode!")
  98.  textutils.slowPrint("Please use with care!")
  99.  sleep(2)
  100.  term.clear()
  101.  term.setCursorPos(1,1)
  102.  term.setTextColor(colors.yellow)
  103.  textutils.slowPrint(NamE)
  104.  term.setCursorPos(10,1)
  105.  term.setTextColor(colors.red)
  106.  print("DEBUG-MODE")
  107.  term.setCursorPos(1,3)
  108.  term.setTextColor(colors.yellow)
  109. --
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top