Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rednet.open("right")
- mon = peripheral.wrap("left")
- laut = peripheral.wrap("top")
- druck = peripheral.wrap("bottom")
- q = 25
- while (q > 1) do
- rednet.send(6,"aquit")
- rednet.send(9,"aquit")
- rednet.send(12,"aquit")
- sleep(2)
- q = q-1
- end
- local ex = fs.exists("BSMA/AktivAlarm")
- if ex == true then
- file = fs.open("BSMA/AktivAlarm","r")
- local fileData = {}
- local line = file.readLine()
- repeat
- table.insert(fileData,line)
- line = file.readLine()
- until line == nil
- file.close()
- for i = 1,1000,1 do
- if fileData[i] == nil then
- break
- end
- local wert = fileData[i]
- wert2 = tonumber(wert)
- q2 = 25
- while (q2 > 1) do
- rednet.send(wert2,"aquit")
- sleep(2)
- q2 = q2-1
- end
- end
- end
- print("Akustischer Alarm abgeschaltet!")
Advertisement
Add Comment
Please, Sign In to add comment