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")
- 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
- fs.delete("BSMA/AktivAlarm")
- break
- end
- local wert = fileData[i]
- wert2 = tonumber(wert)
- q2 = 25
- while (q2 > 1) do
- rednet.send(wert2,"quit")
- sleep(2)
- q2 = q2-1
- end
- end
- end
- q = 25
- while (q > 1) do
- rednet.send(6,"quit")
- rednet.send(9,"quit")
- rednet.send(12,"quit")
- sleep(2)
- q = q-1
- end
- mon.clear()
- print("Quitierung abgeschlossen!")
- sleep(3)
- os.reboot()
Add Comment
Please, Sign In to add comment