Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local password1 = "nether"
- local password2 = "dense"
- local password3 = "twilight"
- term.clear()
- sleep(1)
- print("Bienvenue a la gare FTF ! ")
- print(" ")
- print("Appuyez sur le bouton a votre droite apres avoir choisi une destination")
- print(" ")
- print("Ne modifiez pas la vitesse de la locomotive, celle ci pourrait vous tuer dans un virage")
- print(" ")
- print("Destinations disponibles : nether, dense, twilight")
- print(" ")
- write("Destination: ")
- local input = read("*")
- if input == password1 then
- term.clear()
- term.setCursorPos(1,1)
- print("OK!")
- rs.setOutput("left", true)
- sleep(40)
- rs.setOutput("left", false)
- os.reboot()
- end
- if input == password2 then
- term.clear()
- term.setCursorPos(1,1)
- print("OK!")
- rs.setOutput("right", true)
- sleep(40)
- rs.setOutput("right", false)
- os.reboot()
- end
- if input == password3 then
- term.clear()
- term.setCursorPos(1,1)
- print("OK!")
- rs.setOutput("back", true)
- sleep(40)
- rs.setOutput("back", false)
- os.reboot()
- end
- if input == passwordadmin then
- term.clear()
- term.setCursorPos(1,1)
- print("Password correct!")
- print("Computer unlocking...")
- print("Please type 'reboot' or 'shutdown' before leaving")
- os.pullEvent(terminate)
- else
- term.clear()
- term.setCursorPos(1,1)
- print("Destination inconnue. Reessayez.")
- sleep(3)
- os.reboot()
- end
Advertisement
Add Comment
Please, Sign In to add comment