From eaa875107e703c79111e76ce9219b27c4b82dada Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Thu, 7 Jun 2018 08:15:58 -0300 Subject: Delete three languages: VLS, NL_BE and CA. --- npc/functions/asklanguage.txt | 20 +++++--------------- npc/functions/clientversion.txt | 10 ++++++++++ 2 files changed, 15 insertions(+), 15 deletions(-) (limited to 'npc/functions') diff --git a/npc/functions/asklanguage.txt b/npc/functions/asklanguage.txt index 4bea4bd11..fad9dd6db 100644 --- a/npc/functions/asklanguage.txt +++ b/npc/functions/asklanguage.txt @@ -1,12 +1,13 @@ +// TMW2 script // Evol functions. // Author: -// Reid +// Reid, Jesusalva // Description: // Function setting the player language function script asklanguage { - .@nb_language = 11; + .@nb_language = 8; switch (getarg(0, 0)) { @@ -17,11 +18,8 @@ function script asklanguage { "Te oigo... (Español)", // Spanish "Eu te ouço... (Português)", // Portuguese "Ich höre euch... (Deutsch)", // German - "'k hoar ui wel... (Vlaams)", // Flemish "Słyszę cię... (Polski)", // Polish "Vi sento... (Italiano)", // Italian - "Ik kan je horen... (Nederlands)", // Dutch - "Et escolto (Català)", // Catalan "Mi aŭdas vin... (Angle)"; // Esperanto break; case LANG_IN_SHIP: @@ -31,11 +29,8 @@ function script asklanguage { "Hablo Español.", // Spanish "Eu falo Português.", // Portuguese "Ich spreche Deutsch.", // German - "'k klappe Vloams", // Flemish "Mówię po polsku.", // Polish "Parlo Italiano.", // Italian - "Ik spreek Nederlands.", // Dutch - "Parlo català.", // Catalan "Mi parolas Esperanton."; // Esperanto break; default: @@ -48,11 +43,8 @@ function script asklanguage { "flags/es", "flags/pt_BR", "flags/de", - "flags/vls", "flags/pl", "flags/it", - "flags/nl_BE", - "flags/ca", "flags/eo"; .@menustr$ = ""; @@ -60,8 +52,7 @@ function script asklanguage { for (.@i = 0; .@i <= .@nb_language; .@i++) { - if (.@i == .@nb_language) - { + if (.@i == .@nb_language) { .@separator$ = ""; } .@menustr$ = .@menustr$ + .@flags$[.@i] + "|" + .@messages$[.@i] + .@separator$; @@ -71,8 +62,7 @@ function script asklanguage { .@lang = @menu - 1; - if (.@lang >= 0 || .@lang <= .@nb_language) - { + if (.@lang >= 0 || .@lang <= .@nb_language) { Lang = .@lang; } diff --git a/npc/functions/clientversion.txt b/npc/functions/clientversion.txt index 0f1cba4b0..f21ea5a90 100644 --- a/npc/functions/clientversion.txt +++ b/npc/functions/clientversion.txt @@ -7,6 +7,16 @@ // Function checking the client version and reports if it is too old. function script checkclientversion { + // Update handler + if (Lang > 5 && UPDATE < 1528369855) { + UPDATE=gettimetick(2); + Lang=0; + mesn "Jesus Saves"; + mes col("Oh, noes! Due lack of translators, some languages were removed from this project.", 9); + mes col("You might have been affected. Please, select your desired language.", 9); + asklanguage(LANG_IN_SHIP); + } + if (ClientVersion >= 24) return; mesn "Narrator"; -- cgit v1.2.3-70-g09d2