Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- 1 green
- -- 2 red
- -- 3 blue
- -- 4 light blue
- -- 5 white
- output = 0
- function menu()
- shell.run("clear")
- print(" __________________________")
- print(" ")
- print("| ELEVATOR CONTROL |")
- print("|_________________________ |")
- print()
- print("Type c to call elevator")
- print("Input Floor Number")
- print("1.Top")
- print("2.Sorting/Chests")
- print("3.Machines")
- print("4.Refinery/Track")
- print("5.Reactors")
- print("6.PLACEHOLDER")
- print("____________________________")
- sleep(0.15)
- print("")
- write("ENTER NUMBER:")
- user=io.read()
- end
- function menuselect()
- menu()
- if user == "1" then
- numberone()
- end
- if user == "2" then
- numbertwo()
- end
- if user == "3" then
- numberthree()
- end
- if user == "4" then
- numberfour()
- end
- if user == "5" then
- numberfive()
- end
- if user == "6" then
- numbersix()
- end
- if user == "7" then
- numberseven()
- end
- if user == "edit" then
- edit()
- end
- if user == "c" then
- c()
- end
- end
- function numberone()
- shell.run("clear")
- output = colors.subtract(output, colors.white + colors.blue + colors.red + colors.lightBlue)
- output = colors.combine(output, colors.green)
- rs.setBundledOutput("right", output)
- shell.run("menu")
- end
- function numbertwo()
- shell.run("clear")
- output = colors.subtract(output, colors.white + colors.blue + colors.lightBlue + colors.green)
- output = colors.combine(output, colors.red)
- rs.setBundledOutput("right", output)
- shell.run("menu")
- end
- function numberthree()
- shell.run("clear")
- output = colors.subtract(output, colors.white + colors.red + colors.lightBlue + colors.green)
- output = colors.combine(output, colors.blue)
- rs.setBundledOutput("right", output)
- shell.run("menu")
- end
- function numberfour()
- shell.run("clear")
- output = colors.subtract(output, colors.white + colors.blue + colors.red + colors.green)
- output = colors.combine(output, colors.lightBlue)
- rs.setBundledOutput("right", output)
- shell.run("menu")
- end
- function numberfive()
- shell.run("clear")
- output = colors.subtract(output, colors.blue + colors.red + colors.lightBlue + colors.green)
- output = colors.combine(output, colors.white)
- rs.setBundledOutput("right", output)
- shell.run("menu")
- end
- function c()
- shell.run("clear")
- output = colors.subtract(output, colors.blue + colors.red + colors.lightBlue + colors.green)
- output = colors.combine(output, colors.white)
- rs.setBundledOutput("right", output)
- shell.run("menu")
- end
- function edit()
- print("Starting Computer in Admin Mode...")
- write("Enter Command: ")
- end
- menuselect()
Advertisement
Add Comment
Please, Sign In to add comment