SHOW:
|
|
- or go back to the newest paste.
| 1 | quest test begin | |
| 2 | state start begin | |
| 3 | when .20095.chat."Password ingresso" begin | |
| 4 | ||
| 5 | local GEN_PASS = number (10000, 99999) | |
| 6 | local EVN_GET = game.get_event_flag ( "dungeon_password" ) | |
| 7 | local SET_PASS = game.set_event_flag ( "dungeon_password", GEN_PASS ) | |
| 8 | ||
| 9 | say ( "La settata automaticamente e': "..GEN_PASS.."" ) | |
| 10 | local INS_PASS = input() | |
| 11 | ||
| 12 | if INS_PASS == EVN_GET then | |
| 13 | say ( "Password corretta" ) | |
| 14 | else | |
| 15 | say ( "Password errata" ) | |
| 16 | end | |
| 17 | end | |
| 18 | end | |
| 19 | end |