Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- os.pullEvent = os.pullEventRaw
- term.clear()
- term.setCursorPos(1, 1)
- print("Welcome to bank Prototype B")
- sleep(1.5)
- term.setCursorPos(1, 1)
- print("Please Type your Artifical 5 digit Pin")
- local input = read("*")
- if input == ("OR-197") then
- elseif input == ("Potato") then
- print("welcome [USER] to your bank!")
- print("Would you like to:")
- print("Withdraw: Type W")
- print("Deposit: Type D")
- sleep(1)
- local input = read()
- if input == "D" then
- term.clear()
- term.setCursorPos(1, 1)
- print("Deposits")
- print("What would you like to deposit?")
- print("Ingots: I")
- print("Tools: T")
- print("Food: F")
- print("Miscellaneous: M")
- local input = read()
- if input == "I" then
- rs.setBundledOutput("back", colours.lightGrey)
- print("Type S to stop")
- local input = read()
- if input == "S" then
- os.reboot()
- else
- print("Sorry that is not a valid answer!")
- sleep(1)
- os.reboot()
- end
- elseif input == "T" then
- rs.setBundledOutput("back", colours.pink)
- print("Type S to stop.")
- local input = read()
- if input == "S" then
- os.reboot()
- else
- print("Sorry that is not a valid answer!")
- sleep(1)
- os.reboot()
- end
- elseif input == "F" then
- rs.setBundledOutput("back", colours.grey)
- print("Type S to stop")
- local input = read()
- if input == "S" then
- os.reboot()
- else
- print("Sorry that is not a valid answer!")
- os.reboot()
- end
- elseif input == "M" then
- rs.setBundledOutput("back", colours.lime)
- print("To stop press S")
- local input = read()
- if input == "S" then
- os.reboot()
- else
- print("Sorry that is not a valid answer")
- sleep(1)
- os.reboot()
- end
- else
- print("Sorry that is not a valid answer!")
- sleep(1)
- os.reboot()
- end
- elseif input == "W" then
- term.clear()
- term.setCursorPos(1, 1)
- print("Withdrawls")
- print("What would you like to withdraw?")
- print("Ingots: I")
- print("Tools: T")
- print("Food: F")
- print("Miscellaneous: M")
- sleep(1)
- local input = read()
- if input == "I" then
- rs.setBundledOutput("back", colours.white)
- print("Type S to stop ore pumping.")
- local input = read()
- if input == "S" then
- os.reboot()
- else
- print("Sorry that is not a vaild answer!")
- sleep(1)
- os.reboot()
- end
- elseif input == "T" then
- rs.setBundledOutput("back", colours.red)
- print("To stop press S")
- local input = read()
- if input == "S" then
- os.reboot()
- else
- print("Sorry that is not a valid answer!")
- sleep(1)
- os.reboot()
- end
- elseif input == "F" then
- rs.setBundledOutput("back", colours.black)
- print("To stop press S")
- local input = read()
- if input == "S" then
- sleep(1)
- os.reboot()
- else
- print("Sorry that is not a vailid answer")
- os.reboot()
- end
- elseif input == "M" then
- rs.setBundledOutput("back", colours.green)
- print("To stop press S")
- local input = read()
- if input == "S" then
- os.reboot()
- else
- print("Sorry that is not a vialid answer")
- sleep(1)
- os.reboot()
- end
- else
- print("Sorry that is not a valid answer!")
- sleep(1)
- os.reboot()
- end
- else
- print("Sorry that is not a valid answer!")
- sleep(1)
- os.reboot()
- end
- else
- print("sorry that is not a valid answer!")
- sleep(1)
- os.reboot()
- end
Advertisement
Add Comment
Please, Sign In to add comment