limebriggs

muti-password system

Jan 23rd, 2012
346
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 5.08 KB | None | 0 0
  1. p1 = "red"       --|craeted my limebriggs|--
  2. p2 = "blue"      --|all passwords work and have been tested
  3. p3 ="cyan"       --|feel free to edit or use this in any way just give credit
  4. p4 ="yellow"     --|also thanks to all the folks on the froums for pionting out my mistakes
  5. p5 ="gray"       --|should be used in conjunction with the scmatic file on my prfile
  6. p6 = "pink"
  7. p7 = "black"
  8. p8 = "purple"
  9. p9 = "orange"
  10. p10 = "green"
  11. p11 = "white"
  12. p12 = "brown"
  13. p13 = "magenta"
  14. p14 ="light gray"
  15. p15 ="light blue"
  16. p16 = "lime"
  17. ac = "1027"
  18.  
  19. print("enter your personal password please: ")--|main system
  20. a = io.read()
  21. if a == p1 then
  22.     rs.setBundledOutput("back", rs.getBundledOutput("back") + colors.red)
  23.     print("welcome red you have 10 seconds to enter")
  24.     sleep(10)
  25.     rs.setBundledOutput("back", rs.getBundledOutput("back") - colors.red)
  26.     os.shutdown()
  27.  
  28. elseif a == p2 then
  29.     rs.setBundledOutput("back", rs.getBundledOutput("back") + colors.blue)
  30.     print("welcome blue you have 10 seconds to enter")
  31.     sleep(10)
  32.     rs.setBundledOutput("back", rs.getBundledOutput("back") - colors.blue)
  33.     os.shutdown()
  34.    
  35. elseif a == p3 then
  36.     rs.setBundledOutput("back", rs.getBundledOutput("back") + colors.cyan)
  37.     print("welcome cyan you have 10 seconds to enter")
  38.     sleep(10)
  39.     rs.setBundledOutput("back", rs.getBundledOutput("back") - colors.cyan)
  40.     os.shutdown()
  41.    
  42. elseif a == p4 then
  43.     rs.setBundledOutput("back", rs.getBundledOutput("back") + colors.yellow)
  44.     print("welcome yellow you have 10 seconds to enter")
  45.     sleep(10)
  46.     rs.setBundledOutput("back", rs.getBundledOutput("back") - colors.yellow)
  47.     os.shutdown()
  48.    
  49. elseif a == p5 then
  50.     rs.setBundledOutput("back", rs.getBundledOutput("back") + colors.gray)
  51.     print("welcome gray you have 10 seconds to enter")
  52.     sleep(10)
  53.     rs.setBundledOutput("back", rs.getBundledOutput("back") - colors.gray)
  54.     os.shutdown()
  55.    
  56. elseif a == p6 then
  57.     rs.setBundledOutput("back", rs.getBundledOutput("back") + colors.pink)
  58.     print("welcome pink you have 10 seconds to enter")
  59.     sleep(10)
  60.     rs.setBundledOutput("back", rs.getBundledOutput("back") - colors.pink)
  61.     os.shutdown()
  62.    
  63. elseif a == p7 then
  64.     rs.setBundledOutput("back", rs.getBundledOutput("back") + colors.black)
  65.     print("welcome black you have 10 seconds to enter")
  66.     sleep(10)
  67.     rs.setBundledOutput("back", rs.getBundledOutput("back") - colors.black)
  68.     os.shutdown()
  69.  
  70. elseif a == p8 then
  71.     rs.setBundledOutput("back", rs.getBundledOutput("back") + colors.purple)
  72.     print("welcome purple you have 10 seconds to enter")
  73.     sleep(10)
  74.     rs.setBundledOutput("back", rs.getBundledOutput("back") - colors.purple)
  75.     os.shutdown()
  76.    
  77. elseif a == p9 then
  78.     rs.setBundledOutput("back", rs.getBundledOutput("back") + colors.orange)
  79.     print("welcome orange you have 10 seconds to enter")
  80.     sleep(10)
  81.     rs.setBundledOutput("back", rs.getBundledOutput("back") - colors.orange)
  82.     os.shutdown()
  83.    
  84. elseif a == p10 then
  85.     rs.setBundledOutput("back", rs.getBundledOutput("back") + colors.green)
  86.     print("welcome green you have 10 seconds to enter")
  87.     sleep(10)
  88.     rs.setBundledOutput("back", rs.getBundledOutput("back") - colors.green)
  89.     os.shutdown()
  90.    
  91. elseif a == p11 then
  92.     rs.setBundledOutput("back", rs.getBundledOutput("back") + colors.white)
  93.     print("welcome white you have 10 seconds to enter")
  94.     sleep(10)
  95.     rs.setBundledOutput("back", rs.getBundledOutput("back") - colors.white)
  96.     os.shutdown()
  97.    
  98. elseif a == p12 then
  99.     rs.setBundledOutput("back", rs.getBundledOutput("back") + colors.brown)
  100.     print("welcome brown you have 10 seconds to enter")
  101.     sleep(10)
  102.     rs.setBundledOutput("back", rs.getBundledOutput("back") - colors.brown)
  103.     os.shutdown()
  104.    
  105. elseif a == p13 then
  106.     rs.setBundledOutput("back", rs.getBundledOutput("back") + colors.magenta)
  107.     print("welcome magenta you have 10 seconds to enter")
  108.     sleep(10)
  109.     rs.setBundledOutput("back", rs.getBundledOutput("back") - colors.magenta)
  110.     os.shutdown()
  111.  
  112. elseif a == p14 then
  113.     rs.setBundledOutput("back", rs.getBundledOutput("back") + colors.lightgray)
  114.     print("welcome light gray you have 10 seconds to enter")
  115.     sleep(10)
  116.     rs.setBundledOutput("back", rs.getBundledOutput("back") - colors.lightgray)
  117.     os.shutdown()
  118.    
  119. elseif a == p15 then
  120.     rs.setBundledOutput("back", rs.getBundledOutput("back") + colors.lightblue)
  121.     print("welcome light blue you have 10 seconds to enter")
  122.     sleep(10)
  123.     rs.setBundledOutput("back", rs.getBundledOutput("back") - colors.lightblue)
  124.     os.shutdown()      
  125.    
  126. elseif a == p16 then         --|asess door code
  127.     write("verfication code: ")
  128.         a1 = io.read()
  129.         if a1 == ac then
  130.             print("welcome, please re-enter your access code to close the door: ")
  131.             rs.setBundledOutput("back", rs.getBundledOutput("back") + colors.lime)
  132.             a2 = io.read()
  133.             if a2 == ac then
  134.                 print("have a nice day")
  135.                 sleep(2)
  136.                 rs.setBundledOutput("back", rs.getBundledOutput("back") - colors.lime)
  137.                 sleep(1)
  138.                 os.shutdown()
  139.             else
  140.                 print("retard wrong code")
  141.                 rs.setBundledOutput("back", rs.getBundledOutput("back") - colors.lime)
  142.                 sleep(2)
  143.                 os.shutdown()
  144.             end
  145.         else       
  146.         sleep(2)
  147.         os.shutdown()
  148.         end
  149. else
  150.     print("wrong password")
  151.     sleep(3)
  152.     os.shutdown()
  153. end
Advertisement
Add Comment
Please, Sign In to add comment