Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- User1 = "Dan"
- User1p = "Littlelady10"
- User1a = "2"
- User2 = "Ash"
- User2p = "AB"
- User2a = "1"
- User3 = "Tony"
- User3p = ""
- User3a = "1"
- User4 = "Chris"
- User4p = ""
- User4a = "1"
- User5 = ""
- User5p = ""
- User5a = "1"
- term.clear()
- term.setCursorPos(1,1)
- function Login()
- print("Welcome to Dan's Train station.")
- sleep(1)
- print("To contiune please insert your Username:")
- input = read()
- if input == User1 then
- U1()
- elseif input == User2 then
- U2()
- elseif input == User3 then
- U3()
- elseif input == User4 then
- U4()
- end
- end
- function U1()
- term.clear()
- term.setCursorPos(1,1)
- print("Username: "..User1)
- sleep(1)
- print("Please insert password:")
- input = read("x")
- if input == User1p then
- print("User Verified")
- sleep(1)
- term.clear()
- term.setCursorPos(1,1)
- print("Welcome "..User1)
- sleep(1)
- if User1a == "1" then
- A1()
- elseif User1a == "2" then
- A2()
- end
- else
- print("Incorrect password")
- sleep(1)
- os.reboot()
- end
- end
- function U2()
- term.clear()
- term.setCursorPos(1,1)
- print("Username: "..User2)
- sleep(1)
- print("Please insert password:")
- input = read("x")
- if input == User2p then
- print("User Verified")
- sleep(1)
- term.clear()
- term.setCursorPos(1,1)
- print("Welcome "..User2)
- sleep(1)
- if User2a == "1" then
- A1()
- elseif User2a == "2" then
- A2()
- end
- else
- print("Incorrect password")
- sleep(1)
- os.reboot()
- end
- end
- function U3()
- term.clear()
- term.setCursorPos(1,1)
- print("Username: "..User3)
- sleep(1)
- print("Please insert password:")
- input = read("x")
- if input == User3p then
- print("User Verified")
- sleep(1)
- term.clear()
- term.setCursorPos(1,3)
- print("Welcome "..User3)
- sleep(1)
- if User3a == "1" then
- A1()
- elseif User3a == "2" then
- A2()
- end
- else
- print("Incorrect password")
- sleep(1)
- os.reboot()
- end
- end
- function U4()
- term.clear()
- term.setCursorPos(1,1)
- print("Username: "..User4)
- sleep(1)
- print("Please insert password:")
- input = read("x")
- if input == User4p then
- print("User Verified")
- sleep(1)
- term.clear()
- term.setCursorPos(1,1)
- print("Welcome "..User4)
- sleep(1)
- if User4a == "1" then
- A1()
- elseif User4a == "2" then
- A2()
- end
- else
- print("Incorrect password")
- sleep(1)
- os.reboot()
- end
- end
- function U5()
- term.clear()
- term.setCursorPos(1,1)
- print("Username: "..User5)
- sleep(1)
- print("Please insert password:")
- input = read("x")
- if input == User5p then
- print("User Verified")
- sleep(1)
- term.clear()
- term.setCursorPos(1,1)
- print("Welcome "..User5)
- sleep(1)
- if User5a == "1" then
- A1()
- elseif User5a == "2" then
- A2()
- end
- else
- print("Incorrect password")
- sleep(1)
- os.reboot()
- end
- end
- function A1()
- print("")
- print("Please select one of the following:")
- sleep(1)
- print("To request Minecart. Press 1")
- sleep(1)
- print("To travel to a Station. Press 2")
- sleep(1)
- print("To restart logout. Press 3")
- input = read()
- if input == "1" then
- Mrequest()
- elseif input == "2" then
- Station()
- elseif input == "3" then
- os.reboot()
- end
- end
- function A2()
- print("")
- print("Please select one of the following:")
- sleep(1)
- print("To request Minecart. Press 1")
- sleep(1)
- print("To travel to a Station. Press 2")
- sleep(1)
- print("To proceed to admin panel. Press 3")
- sleep(1)
- print("To terminate program. Press 4")
- sleep(1)
- print("To restart logout. Press 5")
- input = read()
- if input == "1" then
- Mrequest()
- elseif input == "2" then
- Station()
- elseif input == "3" then
- Admin()
- elseif input == "4" then
- Terminate()
- elseif input == "5" then
- os.reboot()
- end
- end
- function Mrequest()
- term.clear()
- term.setCursorPos(1,1)
- print("Request has been sent")
- sleep(1)
- print("Minecart enroute to platform")
- rs.setOutput("bottom", true)
- sleep(1)
- rs.setOutput("bottom", false)
- Station()
- end
- function Station()
- term.clear()
- term.setCursorPos(1,1)
- print("--------------------------")
- sleep(1)
- print("Stations Menu")
- sleep(1)
- print("--------------------------")
- print("")
- sleep(1)
- print("To travel to the capital. Press 1")
- sleep(1)
- print("To travel to Redstown. Press 2")
- sleep(1)
- print("To travel to Zenith. Press 3")
- sleep(1)
- print("To logout. Press 4")
- input = read()
- if input == "1" then
- Capital()
- elseif input == "2" then
- Redstown()
- elseif input == "3" then
- Zenith()
- elseif input == "4" then
- os.reboot()
- end
- end
- function Capital()
- term.clear()
- term.setCursorPos(1,1)
- print("Travelling to the Capital.")
- rs.setOutput("left", true)
- sleep(240)
- rs.setOutput("left", false)
- print("Rebooting...")
- sleep(1)
- os.reboot()
- end
- function Redstown()
- term.clear()
- term.setCursorPos(1,1)
- print("Travelling to Redstown.")
- rs.setOutput("left", false)
- sleep(240)
- print("Rebooting...")
- sleep(1)
- os.reboot()
- end
- function Zenith()
- term.clear()
- term.setCursorPos(1,1)
- print("Travelling to Zenith.")
- rs.setOutput("right", true)
- sleep(120)
- rs.setOutput("right", false)
- sleep(1)
- os.reboot()
- end
- function Admin()
- term.clear()
- term.setCursorPos(1,1)
- print("--------------------------")
- sleep(1)
- print("Admin Panel")
- sleep(1)
- print("--------------------------")
- print("")
- sleep(1)
- print("To change someones password. Press 1")
- sleep(1)
- print("To logout. Press 2")
- input = read()
- if input == "1" then
- Password()
- elseif input == "2" then
- os.reboot()
- end
- end
- function Password()
- end
- function Terminate()
- term.clear()
- term.setCursorPos(1,1)
- print("Terminating Program")
- sleep(1)
- print("Goodbye")
- sleep(1)
- term.clear()
- end
- Login()
- -- aCrB0YTt
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement