diff options
author | Jesusaves <cpntb1@ymail.com> | 2020-02-16 15:02:13 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2020-02-16 15:02:13 -0300 |
commit | 65b6af61e511f0782d49e96daae27872331ed7fe (patch) | |
tree | 09f2a13838eea804272787a2c3bd47a671007a69 /npc/functions/asklanguage.txt | |
parent | c7646d6ede8d7ab2dbb2beb9b09b9c049874f8a0 (diff) | |
download | serverdata-65b6af61e511f0782d49e96daae27872331ed7fe.tar.gz serverdata-65b6af61e511f0782d49e96daae27872331ed7fe.tar.bz2 serverdata-65b6af61e511f0782d49e96daae27872331ed7fe.tar.xz serverdata-65b6af61e511f0782d49e96daae27872331ed7fe.zip |
Remove Russian and reorder languages.
New order is: EN/BR/FR/DE/ES
Diffstat (limited to 'npc/functions/asklanguage.txt')
-rw-r--r-- | npc/functions/asklanguage.txt | 31 |
1 files changed, 13 insertions, 18 deletions
diff --git a/npc/functions/asklanguage.txt b/npc/functions/asklanguage.txt index 523cb54c6..3782e5316 100644 --- a/npc/functions/asklanguage.txt +++ b/npc/functions/asklanguage.txt @@ -7,43 +7,38 @@ function script asklanguage { - .@nb_language = 8; - - switch (getarg(0, 0)) + switch (getarg(0, LANG_IN_SHIP)) { case LANG_ON_SEA: setarray .@messages$[0], "I hear you... (English)", // English - "Je vous entends... (Français)", // French - "Да я вас слышу... (Русский)", // Russian - "Te oigo... (Español)", // Spanish "Eu te ouço... (Português)", // Portuguese - "Ich höre euch... (Deutsch)"; // German + "Je vous entends... (Français)", // French + "Ich höre euch... (Deutsch)", // German + "Te oigo... (Español)"; // Spanish break; case LANG_IN_SHIP: setarray .@messages$[0], "I speak English.", // English - "Je parle français.", // French - "Я говорю на русском.", // Russian - "Hablo Español.", // Spanish "Eu falo Português.", // Portuguese - "Ich spreche Deutsch."; // German + "Je parle français.", // French + "Ich spreche Deutsch.", // German + "Hablo Español."; // Spanish break; default: return; } setarray .@flags$[0], "flags/en", - "flags/fr", - "flags/ru", - "flags/es", "flags/pt_BR", - "flags/de"; + "flags/fr", + "flags/de", + "flags/es"; .@menustr$ = ""; .@separator$ = ":"; - for (.@i = 0; .@i <= .@nb_language; .@i++) + for (.@i = 0; .@i <= MAX_LANG; .@i++) { - if (.@i == .@nb_language) { + if (.@i == MAX_LANG) { .@separator$ = ""; } .@menustr$ = .@menustr$ + .@flags$[.@i] + "|" + .@messages$[.@i] + .@separator$; @@ -53,7 +48,7 @@ function script asklanguage { .@lang = @menu - 1; - if (.@lang >= 0 || .@lang <= .@nb_language) { + if (.@lang >= 0 || .@lang <= MAX_LANG) { Lang = .@lang; } |