Guest User

Untitled

a guest
Jan 21st, 2019
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.57 KB | None | 0 0
  1. local numdia = 0
  2. local dark_keszul = false
  3. local cold_keszul = false
  4. local ready = false
  5. local loggedin = false
  6. local mon = peripheral.wrap("back")
  7. rs.setBundledOutput("bottom", 0)
  8. rs.setBundledOutput("right", 0)
  9. rs.setBundledOutput("top", 0)
  10.  
  11. local pullEvent = os.pullEvent
  12.  
  13. local function noHack()
  14.   os.pullEvent = os.pullEventRaw
  15. end
  16.  
  17. local function hack()
  18.   os.pullEvent = pullEvent
  19. end
  20.  
  21. local function clearScreen(screen)
  22.   screen.clear()
  23.   screen.setCursorPos(1, 1)
  24. end
  25.  
  26. noHack()
  27.  
  28. while true
  29. do
  30.   if dark_keszul or cold_keszul
  31.   then
  32.     ready = false
  33.     rs.setBundledOutput("top", colors.green)
  34.     rs.setBundledOutput("right", colors.white)
  35.     sleep(1)
  36.     rs.setBundledOutput("right", 0)
  37.     sleep(12)
  38.     if dark_keszul
  39.     then
  40.       rs.setBundledOutput("right", colors.yellow)
  41.       sleep(1)
  42.       rs.setBundledOutput("right", 0)
  43.     elseif cold_keszul
  44.     then
  45.       rs.setBundledOutput("right", colors.blue)
  46.       sleep(1)
  47.       rs.setBundledOutput("right", 0)
  48.     end
  49.     while not ready
  50.     do
  51.       local event = os.pullEvent()
  52.       if event == "redstone"
  53.       then
  54.         if rs.testBundledInput("bottom", colors.gray)
  55.         then
  56.           dark_keszul = false
  57.           cold_keszul = false
  58.           rs.setBundledOutput("bottom", colors.purple)
  59.           sleep(1)
  60.           rs.setBundledOutput("bottom", 0)
  61.           rs.setBundledOutput("top", 0)
  62.           ready = true
  63.           clearScreen(mon)
  64.         end
  65.       end
  66.     end
  67.   else
  68.     mon.clear()
  69.     mon.write("å9CdvåB6zåB6llek a kåA1våA9zåB3mban!")
  70.     local event, key = os.pullEvent()
  71.     if event == "redstone"
  72.     then
  73.       if rs.testBundledInput("bottom", colors.orange)
  74.       then
  75.         cold_keszul = true
  76.         mon.write("FizetåB6eszkåB6z elfogadva\n")
  77.         mon.write("A hideg kåA1våA9d kåA9szåBCl\n")
  78.       elseif rs.testBundledInput("bottom", colors.red)
  79.       then
  80.         numdia = numdia + 1
  81.         write("numdia: ")
  82.         print(numdia)
  83.         if numdia == 2
  84.         then
  85.           mon.write("FizetåB6eszkåB6z elfogadva\n")
  86.           mon.write("A forråB3 kåA1våA9d kåA9szåBCl\n")
  87.           dark_keszul = true
  88.         end
  89.       end
  90.     elseif event == "key"
  91.     then
  92.       if key == 30
  93.       then
  94.         local username = read()
  95.         local password = read("*")
  96.         if username == "hendroox" and password == "q1w2e3"
  97.         then
  98.           hack()
  99.           loggedin = true
  100.         end
  101.       elseif key == 30 and loggedin
  102.       then
  103.         noHack()
  104.         loggedin = false
  105.       end
  106.     end
  107.   end
  108. end
Add Comment
Please, Sign In to add comment