Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Stunden = 1
- local Minuten = 1
- local Sekunden = 6
- local Timer = 5
- local red = 16384
- local green = 8192
- local function Wartung()
- while true do
- if Stunden + Minuten +Sekunden == 0 then
- break
- end
- monitor = peripheral.wrap("left")
- monitor.setCursorPos(1,3)
- Sekunden = Sekunden -1
- os.sleep(1)
- monitor.write( [[Std;]] ..Stunden.. [[ min;]] ..Minuten.. [[ Sek;]] ..Sekunden.. [[ ]] )
- if Stunden + Minuten + Sekunden == 0 then
- os.sleep(1)
- break
- elseif Sekunden == 0 then
- Sekunden = 6
- Minuten = Minuten -1
- os.sleep(2)
- elseif Minuten + Sekunden == 0 then
- Stunden = Stunden -1
- os.sleep(2)
- elseif Stunden + Minuten + Sekunden == 0 then
- break
- elseif Stunden == 0 then
- os.sleep(1)
- elseif Stunden + Minuten + Sekunden == 0 then
- end
- end
- end
- local function startup()
- monitor = peripheral.wrap( "left" )
- monitor.setCursorPos(1,1)
- monitor.clear()
- monitor.setTextScale(1)
- monitor.setTextColor(32768)
- monitor.write("Diese Turbine befindet sich momentan in Wartung!!")
- end
- local function Counter()
- while true do
- if Timer > 0 then
- monitor.setBackgroundColor(red)
- sleep(1)
- Timer = Timer -1
- monitor.setCursorPos(6,6)
- monitor.write("Vorraussichtlich fertig in: ")
- monitor.write(Timer)
- else
- Timer = Timer +20
- break
- end
- end
- end
- print("Bitte Bug beheben ","Farbenbug")
- monitor = peripheral.wrap("left")
- monitor.setBackgroundColor(16384)
- startup()
- os.sleep(0,1)
- Counter()
- os.sleep(1)
- --peripheral.wrap("left")
- monitor.setCursorPos(1,1)
- monitor.setTextScale(1)
- monitor.clear()
- monitor.setTextColor(32768)
- monitor.setBackgroundColor(8192)
- os.sleep(1)
- if monitor.setBackgroundColor(8192) == true then
- os.sleep(3)
- monitor.write("Spast")
- else
- monitor.setTextScale(1)
- monitor.clear()
- monitor.setTextColor(32768)
- monitor.setBackgroundColor(8192)
- print("Farben bug aktiv")
- monitor.setCursorPos(1,1)
- monitor.write("Die Turbine wurde erfolgreich gewartet !!!")
- os.sleep(2)
- monitor.clear()
- monitor.setCursorPos(1,1)
- monitor.write("Folgende Wartungsarbeiten wurden durchgefuert : ")
- monitor.setCursorPos(1,3)
- os.sleep(0,1)
- monitor.write("- Systemdateien wurden auf Fehler ueberprueft")
- monitor.setCursorPos(1,5)
- monitor.write("- Rotor geschwindigkeit wurde angepasst")
- end
- monitor = peripheral.wrap("left")
- monitor.clear()
- monitor.setBackgroundColor(8192)
- monitor.setCursorPos(5,1)
- monitor.setTextColor(32768)
- os.sleep(1)
- monitor.setCursorPos(1,1)
- monitor.write("Wartung geplant in ; ")
- monitor.setCursorPos(1,3)
- monitor.setTextScale(1)
- monitor.write( [[Std;]] ..Stunden.. [[ min;]] ..Minuten.. [[ Sek;]] ..Sekunden.. [[ ]] )
- Wartung()
- os.sleep(1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement