Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local mon = peripheral.wrap("top")
- local modem = peripheral.wrap("bottom")
- --[[
- mon.clear()
- mon.setTextScale(1)
- mon.setTextColor(colors.white)
- mon.setCursorPos(5,1)
- mon.write("Podales dobre haslo!")
- mon.setCursorPos(2,3)
- mon.write("A teraz umiesc swoj klucz")
- mon.setCursorPos(5,4)
- mon.write("w ponizszej skrzyni!")
- sleep(10)
- mon.clear()
- local sec = 10
- while sec ~= -1 do
- mon.clear()
- mon.setCursorPos(2,3)
- mon.write("Masz na to jeszcze "..sec.." sekund")
- sec = sec - 1
- sleep(2)
- end
- modem.transmit(2142, 2143, "sprawdz")
- mon.clear()
- mon.setCursorPos(4,2)
- mon.write("Jesli nie zdazyles lub")
- mon.setCursorPos(9,3)
- mon.write("sie pomyliles")
- mon.setCursorPos(9,5)
- mon.write("to masz pecha")
- --sleep(5)
- --]]
- modem.open(2143)
- while true do
- local breakOut = false
- mon.clear()
- mon.setCursorPos(1,2)
- mon.write("Trwa sprawdzanie klucza")
- sleep(1)
- mon.clear()
- mon.setCursorPos(1,2)
- mon.write("Trwa sprawdzanie klucza.")
- sleep(1)
- mon.clear()
- mon.setCursorPos(1,2)
- mon.write("Trwa sprawdzanie klucza..")
- sleep(1)
- mon.clear()
- mon.setCursorPos(1,2)
- mon.write("Trwa sprawdzanie klucza...")
- sleep(1)
- mon.clear()
- local event, modemSide, senderChannel, replyChannel, message, senderDistance = os.PullEvent("modem_message")
- --if message ~= nil then
- -- breakOut = true
- --end
- -- if string.len(message) >= 1 then
- -- breakOut = true
- --end
- -- if breakOut then break end
- --print(message)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement