Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Variablen
- wModul = "bottom"
- zone = "Schalfzimmer"
- --Code
- rednet.open(wModul)
- function schleife()
- end
- function warten()
- local event = os.pullEvent("redstone")
- if rs.getInput("top") then
- rednet.broadcast("Roter Alarm wurde von der Zone " .. zone .. " ausgel\195\182st", "1900Crit")
- while rs.getInput("top") do
- rednet.broadcast("Red Light on ALL", "1900Light")
- sleep(1)
- rednet.broadcast("Red Light off ALL", "1900Light")
- sleep(1)
- end
- rednet.broadcast("Roter Alarm wurde deaktiviert" , "1900Crit")
- end
- end
- --Endlosschleife
- while true do
- warten()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement