diff options
Diffstat (limited to 'npc/functions/asklanguage.txt')
-rw-r--r-- | npc/functions/asklanguage.txt | 56 |
1 files changed, 0 insertions, 56 deletions
diff --git a/npc/functions/asklanguage.txt b/npc/functions/asklanguage.txt deleted file mode 100644 index f0cbe0f8..00000000 --- a/npc/functions/asklanguage.txt +++ /dev/null @@ -1,56 +0,0 @@ -// Evol functions. -// Author: -// Reid -// Description: -// Function setting the player language - -function script asklanguage { - - .@nb_language = 11; - - switch (getarg(0, 0)) - { - case LANG_ON_SEA: - setarray .@messages$[0], "I hear you... (English)", // English - "Je vous entends... (Français)", // French - "Te oigo... (Español)", // Spanish - "Ich höre euch... (Deutsch)"; // German - break; - case LANG_IN_SHIP: - setarray .@messages$[0], "I speak English.", // English - "Je parle français.", // French - "Hablo Español.", // Spanish - "Ich spreche Deutsch."; // German - break; - default: - return; - } - - setarray .@flags$[0], "flags/en", - "flags/fr", - "flags/es", - "flags/de"; - - .@menustr$ = ""; - .@separator$ = ":"; - - for (.@i = 0; .@i <= .@nb_language; .@i++) - { - if (.@i == .@nb_language) - { - .@separator$ = ""; - } - .@menustr$ = .@menustr$ + .@flags$[.@i] + "|" + .@messages$[.@i] + .@separator$; - } - - select(.@menustr$); - - .@lang = @menu - 1; - - if (.@lang >= 0 || .@lang <= .@nb_language) - { - Lang = .@lang; - } - - return; -} |