Advertisement
Luzzo

Informazioni

Jan 15th, 2015
735
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.10 KB | None | 0 0
  1. --**Quest by Luzzo
  2. --**Data: 15/01/2015
  3. --**Informazioni per aggiungere un altra riga basta aggiungere un nuovo elemento all'array
  4. --**Esempio: {"Il drop in questa mappa e' di ","200% di rate ecc","Terza riga"},
  5.  
  6.  
  7. quest information begin
  8.     state start begin
  9.    
  10.         function get_info(info)
  11.             local arry_info = {
  12.                                 {"Il drop in questa mappa e' di ","200% di rate ecc"},
  13.                                 {"L'up in questa mappa e' di ","200% di rate ecc"},
  14.                                 {"L'exp in questa mappa e' di ","200% di rate ecc"},
  15.                                 {"Le mappe per il pvp sono ","blabllablala"},
  16.                                 {"Qui ci va tutto l'altor aeee","aakakakak"}
  17.                                }
  18.                                
  19.             for x = 1,table.getn(arry_info[info]) do
  20.                 say(arry_info[info][x])
  21.             end
  22.         end
  23.        
  24.         when letter begin
  25.             send_letter("Informazioni")
  26.         end
  27.        
  28.         when button or info begin
  29.             local info = {"Drop","Upp","Exp","Mappe","Altro","Esci"}
  30.             say_title("Informazioni")
  31.             say("")
  32.             local choice = select_table(info)
  33.             if choice == table.getn(info) then
  34.                 return
  35.             end
  36.             say_title("Informazioni")
  37.             say("")
  38.             information.get_info(choice)
  39.             return
  40.         end
  41.     end
  42. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement