Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local numdia = 0
- local dark_keszul = false
- local cold_keszul = false
- local ready = false
- local loggedin = false
- local mon = peripheral.wrap("back")
- rs.setBundledOutput("bottom", 0)
- rs.setBundledOutput("right", 0)
- rs.setBundledOutput("top", 0)
- local pullEvent = os.pullEvent
- local function noHack()
- os.pullEvent = os.pullEventRaw
- end
- local function hack()
- os.pullEvent = pullEvent
- end
- local function clearScreen(screen)
- screen.clear()
- screen.setCursorPos(1, 1)
- end
- noHack()
- while true
- do
- if dark_keszul or cold_keszul
- then
- ready = false
- rs.setBundledOutput("top", colors.green)
- rs.setBundledOutput("right", colors.white)
- sleep(1)
- rs.setBundledOutput("right", 0)
- sleep(12)
- if dark_keszul
- then
- rs.setBundledOutput("right", colors.yellow)
- sleep(1)
- rs.setBundledOutput("right", 0)
- elseif cold_keszul
- then
- rs.setBundledOutput("right", colors.blue)
- sleep(1)
- rs.setBundledOutput("right", 0)
- end
- while not ready
- do
- local event = os.pullEvent()
- if event == "redstone"
- then
- if rs.testBundledInput("bottom", colors.gray)
- then
- dark_keszul = false
- cold_keszul = false
- rs.setBundledOutput("bottom", colors.purple)
- sleep(1)
- rs.setBundledOutput("bottom", 0)
- rs.setBundledOutput("top", 0)
- ready = true
- clearScreen(mon)
- end
- end
- end
- else
- mon.clear()
- mon.write("å9CdvåB6zåB6llek a kåA1våA9zåB3mban!")
- local event, key = os.pullEvent()
- if event == "redstone"
- then
- if rs.testBundledInput("bottom", colors.orange)
- then
- cold_keszul = true
- mon.write("FizetåB6eszkåB6z elfogadva\n")
- mon.write("A hideg kåA1våA9d kåA9szåBCl\n")
- elseif rs.testBundledInput("bottom", colors.red)
- then
- numdia = numdia + 1
- write("numdia: ")
- print(numdia)
- if numdia == 2
- then
- mon.write("FizetåB6eszkåB6z elfogadva\n")
- mon.write("A forråB3 kåA1våA9d kåA9szåBCl\n")
- dark_keszul = true
- end
- end
- elseif event == "key"
- then
- if key == 30
- then
- local username = read()
- local password = read("*")
- if username == "hendroox" and password == "q1w2e3"
- then
- hack()
- loggedin = true
- end
- elseif key == 30 and loggedin
- then
- noHack()
- loggedin = false
- end
- end
- end
- end
Add Comment
Please, Sign In to add comment