LightMistic

Gianfro95x - Pass.

Mar 6th, 2014
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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': "..EVN_GET.."" )
  10.             local INS_PASS = tonumber(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
Advertisement
Add Comment
Please, Sign In to add comment