Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- username = "User"
- ID = 2
- PIN = "0000"
- term.clear()
- term.setCursorPos(1,1)
- print ("-")
- print ("What is your Name?")
- write "Name: "
- username=read()
- term.clear()
- term.setCursorPos(1,1)
- print ("-")
- print ("Welcome,")
- print (username)
- print ("to the Android Bank.")
- print ("")
- print ("What would you like to do?")
- print ("")
- print ("S) Call/Store the Test Safe")
- print ("Q) Exit")
- write "Choice: "
- input=read()
- if input == "S" then
- term.clear()
- term.setCursorPos(1,1)
- print ("-")
- print ("Which safe do you want to call?")
- write "Bank ID: "
- ID=read()
- print ("What is your PIN code?")
- write "PIN code: "
- PIN=read()
- term.clear()
- term.setCursorPos(1,1)
- print ("-")
- print ("Calling your Safe...")
- sleep(2)
- rednet.send(ID, PIN, true)
- print ("Safe is called!")
- sleep(2)
- term.clear()
- term.setCursorPos(1,1)
- print ("-")
- print ("When your done with your safe,")
- print ("")
- write "Press Enter to Store the Safe..."
- input = read()
- term.clear()
- term.setCursorPos(1,1)
- print ("-")
- print ("Storing your Safe...")
- sleep(2)
- rednet.send(ID,"go",true)
- print ("Safe is Stored!")
- sleep(2)
- print ("-")
- print ("Thanks you for visiting, Android Bank")
- print ("-")
- sleep(2)
- shell.run("safe-calling")
- elseif input == "Q" then
- term.clear()
- term.setCursorPos(1,1)
- print ("-")
- print ("Thanks you for visiting, Android Bank")
- print ("-")
- sleep(2)
- else
- term.clear()
- term.setCursorPos(1,1)
- print ("-")
- print ("Sorry your I didn't understand your input.")
- print ("Please try again")
- print ("-")
- sleep(3)
- shell.run("safe-calling")
- end
Advertisement
Add Comment
Please, Sign In to add comment