Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local computer = require("computer")
- local term = require("term")
- local component = require("component")
- local event = require("event")
- local m = component.modem
- op = require("component").openprinter
- os.execute("cls")
- print("===============")
- print(" ButOS")
- print("===============")
- os.execute("cls")
- print("===============")
- print(" ButOS")
- print("===============")
- print("booting")
- os.sleep(1)
- os.execute("cls")
- print("===============")
- print(" ButOS")
- print("===============")
- print("booting.")
- os.sleep(1)
- os.execute("cls")
- print("===============")
- print(" ButOS")
- print("===============")
- print("booting..")
- os.sleep(1)
- os.execute("cls")
- print("===============")
- print(" ButOS")
- print("===============")
- print("booting...")
- os.sleep(1)
- os.execute("cls")
- print("===============")
- print(" ButOS")
- print("===============")
- print("booting....")
- os.sleep(1)
- ::passstart::
- os.execute("cls")
- ::homep::
- os.execute("cls")
- print("===============")
- print(" ButOS V0.2")
- print(" Enterprise")
- print("===============")
- print("please select option")
- print("1) Settings")
- print("2) CashRegister")
- print("3) Contract-inator")
- print("4) Shutdown")
- option = io.read("*l")
- if option == "1" then
- goto settings
- elseif option == "2" then
- goto Cashr
- elseif option == "3" then
- goto contract
- elseif option == "4" then
- os.execute("shutdown")
- elseif option == "N-A-9175-B" then
- goto endit
- else
- os.execute("cls")
- print("error incorect syntax [" .. option .. "] please try again")
- os.sleep(3)
- goto homep
- end
- ::settings::
- os.execute("cls")
- print("===============")
- print(" ButOS V0.2")
- print("===============")
- print("1) Back")
- print("2) Update")
- option = io.read("*l")
- if option == "1" then
- goto homep
- elseif option == "2" then
- goto update
- else
- os.execute("cls")
- print("error incorect syntax [" .. option .. "] please try again")
- os.sleep(3)
- goto settings
- end
- ::Cashr::
- Tprice = 0
- price = 0
- ::it::
- os.execute("cls")
- print("add item, type done when finished")
- repeat item = io.read("*l") until item:match "%S"
- if item == "done" then
- goto ot
- end
- print("now the price")
- price = io.read("*n")
- print(item .. price)
- op.writeln(item .. " - $" .. price)
- Tprice = Tprice + price
- item = ""
- price = ""
- goto it
- ::ot::
- os.execute("cls")
- print("Current total - $" .. Tprice)
- print("any Discounts? y/n")
- dis = io.read("*l")
- if dis == "y" then
- os.execute("cls")
- print("total is currently $" .. Tprice)
- print("How Much Off")
- disc = io.read("*n")
- Tprice = Tprice - disc
- op.writeln("Discount - $" .. disc)
- end
- os.execute("cls")
- print("please Enter Company name")
- repeat name = io.read("*l") until name:match "%S"
- op.setTitle(name .. " recipt")
- op.writeln("total - $" .. Tprice)
- op.print()
- os.execute("cls")
- print("the total is $" .. Tprice)
- os.sleep(5)
- goto homep
- ::contract::
- printsamou = 0
- pagepr = 0
- op.writeln("this is a contract that sates")
- print("please put a breife one line summary of this contract")
- print("(the word [contract] will automaticly be added to the end")
- title = io.read("*l")
- ::content::
- os.execute("cls")
- print("please enter in excruciating detail what this contract is about")
- print("there can be more than one line")
- print("type done when finished")
- print("dont type pass this line l")
- content = ""
- printsamou = printsamou + 1
- content = io.read("*l")
- if content == "done" then goto aftercont end
- if printsamou == 19 then
- pagepr = pagepr + 1
- op.setTitle(title .. " contract - " .. pagepr)
- op.writeln(content)
- op.print()
- printsamou = 0
- goto content
- else
- op.writeln(content)
- goto content
- end
- ::aftercont::
- if pagepr > 0 then
- pagepr = pagepr + 1
- op.setTitle(title .. " contract - " .. pagepr)
- else
- op.setTitle(title .. "contract")
- end
- os.execute("cls")
- print("please have the first person print there name")
- Name1 = io.read("*l")
- print("Now the second person")
- Name2 = io.read("*l")
- op.writeln("Signed " .. Name1 .. " and " .. Name2)
- op.print()
- os.execute("cls")
- print("printing")
- os.sleep(1)
- os.execute("cls")
- print("printing.")
- os.sleep(1)
- os.execute("cls")
- print("printing..")
- os.sleep(1)
- os.execute("cls")
- print("printing...")
- os.sleep(1)
- os.execute("cls")
- print("printing....")
- os.sleep(1)
- os.execute("cls")
- goto homep
- ::update::
- os.execute("pastebin get -f QnTXxSHP butose")
- print("type [butose] to start the system")
- ::endit::
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement