Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- geo1 = 0
- geo2 = 0
- geo3 = 0
- geo4 = 0
- cb = "back"
- g1 = colors.blue
- g2 = colors.yellow
- g3 = colors.red
- g4 = colors.green
- --[[
- function ans()
- evt, key = os.pullEvent("char")
- if char == "1" then
- if geo1 == 0 then
- rs.setBundledOutput(cb, g1)
- geo1 = 1
- elseif geo1 == 1 then
- rs.setBundledOutput(cb, 0)
- geo1 = 0
- end
- elseif
- end
- sleep(1)
- sysProg()
- end
- ]]--
- function sysProg()
- print("-------------------------")
- print("-- Programm by Muzze77 --")
- print("-------------------------")
- term.setCursorPos(1, 5)
- print("Bitte Programm waehlen")
- print("GeoThermal anschalten/ausschalten[NUMMERTASTEN(1-4)]")
- print("GeoThermal Alle auschalten[NUMMERTASTEN(0)]")
- print("GeoThermal Alle anschalten[NUMMERTASTEN(9)]")
- print("Momentan Laufen: ")
- if geo1 == 0 then
- print("Geothermal Tower 1 = Ausgeschaltet")
- elseif geo1 == 1 then
- print("Geothermal Tower 1 = Angeschaltet")
- end
- if geo2 == 0 then
- print("Geothermal Tower 2 = Ausgeschaltet")
- elseif geo2 == 1 then
- print("Geothermal Tower 2 = Angeschaltet")
- end
- if geo3 == 0 then
- print("Geothermal Tower 3 = Ausgeschaltet")
- elseif geo3 == 1 then
- print("Geothermal Tower 3 = Angeschaltet")
- end
- if geo4 == 0 then
- print("Geothermal Tower 4 = Ausgeschaltet")
- elseif geo4 == 1 then
- print("Geothermal Tower 4 = Angeschaltet")
- end
- ans()
- end
- function start()
- term.setBackgroundColor(colors.white)
- term.setTextColor(colors.blue)
- sleep(1)
- shell.run("clear")
- term.setCursorPos(4, 2)
- term.setTextColor(colors.red)
- print("Daten werden Syncronisiert eine Sekunde gedult bitte.")
- term.setCursorPos(17, 5)
- term.setBackgroundColor(colors.black)
- print(" ")
- term.setCursorPos(17, 7)
- print(" ")
- term.setCursorPos(17, 6)
- print(" ")
- term.setCursorPos(29, 6)
- print(" ")
- term.setCursorPos(18, 6)
- term.setBackgroundColor(colors.green)
- textutils.slowPrint(" ", 0.60)
- term.setBackgroundColor(colors.white)
- sysProg()
- end
- while true do
- start()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement