Guest User

login

a guest
Feb 19th, 2018
32
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.67 KB | None | 0 0
  1. ---[[startup]]--
  2. term.clear()
  3. --eos.pullEventRaw()
  4.  
  5. ---[[ Os Header]]---
  6.  
  7. term.setCursorPos(1,1)
  8.  
  9. print("------------------------------------------")
  10. ---------------------------------------------------
  11. ---[[logo + version dispaly]]---
  12. term.setCursorPos(2,2)
  13. print("       _                        _                ")
  14. term.setCursorPos(2,3)
  15. print("      | |                      | |             ")
  16. term.setCursorPos(2,4)
  17. print("      | | __ _ _ __ ___        | | __ _ _ __  ")
  18. term.setCursorPos(2,5)
  19. print("      | |/ _` | '_ ` _  _      | |/ _` | '__|  ")
  20. term.setCursorPos(2,6)
  21. print("  _   | |/ _` | '_ ` _ \ _      | |/ _` | '__|  ")
  22. term.setCursorPos(2,7)
  23. print(" | |__| | (_| | | | | | | |  __| | (_| | |   ")
  24. term.setCursorPos(2,8)
  25. print("   \____/  \__,_|_| |_| |_|    \____/ \__,_|_|  ")
  26. term.setCursorPos(10,10)
  27. print("O.S")
  28. ---------------------------------------------------
  29. term.setCursorPos(1,12)
  30.  
  31. print("------------------------------------------")
  32.  
  33. ---[[ Username/passwords ]]---
  34. local usernames = "jamoir","test"
  35. local passwords = "password","test"
  36.  
  37. term.setCursorPos(12,18)
  38. print("Password:")
  39.  
  40. term.setCursorPos(10,20)
  41.  
  42.  print("Login")
  43.  
  44.  term.setCursorPos(12,15)
  45.  print("Username:")
  46.  
  47.  term.setCursorPos(21,15)
  48.  
  49.  input = read(input)
  50.  
  51.  if input == usernames then
  52.  
  53.  term.setCursorPos(21,17)
  54.  
  55.    input = read("*")
  56.  
  57.   if input == passwords
  58.  
  59.    then
  60.  end
  61.   print("Welcome Jam Congrats on not been blown up!")
  62.   sleep(5)
  63.     else
  64. term.clear()
  65.           redstone.setOutput("right",true)
  66.  
  67.      print("i dont think so..!")
  68.      sleep(2)
  69.      
  70.    
  71.  
  72.        
  73.         redstone.setOutput("right",false)
  74.        
  75.         end
Add Comment
Please, Sign In to add comment