Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ---------------------------------------------------------
- ---------------(c)Muzze77 Interface----------------------
- ---------------------------------------------------------
- --functions--
- local function next()
- sleep(2)
- shell.run("clear")
- end
- -------------
- --xxxxx--
- --Variables--
- local bl = colors.blue
- local re = colors.red
- local we = colors.white
- local bk = colors.black
- local gr = colors.green
- local gl = colors.gelb
- local br = colors.brown
- local null = 0
- local count = 0
- --check--
- if rs.getInput("right") == true then
- print(" PC Bootet | Bitte Warten")
- next()
- rs.setBundledCable("left", bk)
- print("Laden | 0%|")
- next()
- print("Laden | 10%|")
- next()
- print("Laden | 20%|")
- next()
- print("Laden | 30%|")
- next()
- print("Laden | 40%|")
- next()
- print("Laden | 50%|")
- next()
- print("Laden | 60%|")
- next()
- print("Laden | 70%|")
- next()
- print("Laden | 80%|")
- next()
- print("Laden | 90%|")
- next()
- print("Laden |100%|")
- next()
- print("Laden Erfolgreich. Bitte Aktion Wählen")
- next()
- sleep(2)
- print("Welches Material Liefern ?")
- print("1 = Iron")
- print("2 = Tin")
- print("3 = Copper")
- print("4 = Silver")
- print("5 = Gold")
- print("Bitte Eintippen: ")
- local an = io.read()
- if an == "1" then
- rs.setBundledOutput("back", bl)
- sleep(4)
- rs.setBundledOutput("back", null)
- -----------------------------------
- while rs.getInput("top") == true do
- count = count+1
- print(count)
- end
- elseif an == "2" then
- rs.setBundledOutput("back", re)
- sleep(4)
- rs.setBundledOutput("back", null)
- -----------------------------------
- while rs.getInput("top") == true do
- count = count+1
- print(count)
- end
- elseif an == "3" then
- rs.setBundledOutput("back", gr)
- sleep(4)
- rs.setBundledOutput("back", null)
- -----------------------------------
- while rs.getInput("top") == true do
- count = count+1
- print(count)
- end
- elseif an == "4" then
- rs.setBundledOutput("back", gl)
- sleep(4)
- rs.setBundledOutput("back", null)
- -----------------------------------
- while rs.getInput("top") == true do
- count = count+1
- print(count)
- end
- elseif an == "5" then
- rs.setBundledOutput("back", br)
- sleep(4)
- rs.setBundledOutput("back", null)
- -----------------------------------
- while rs.getInput("top") == true do
- count = count+1
- print(count)
- end
- else
- rs.setBundledOutput("back", null)
- sleep(2)
- print("Falsche eingabe. Neustart!")
- shell.run("reboot")
- ----------------------------------
- end
- else
- print("Kein Strom")
- sleep(4)
- shell.run("reboot")
- --xxxxx--
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement