From 4f5fa6e07c3c16188932eb158d4c5cd5ba582040 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Tue, 12 Jun 2018 11:25:00 -0300 Subject: Rewrite a little the UPDATE mechanism --- npc/functions/clientversion.txt | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'npc/functions/clientversion.txt') diff --git a/npc/functions/clientversion.txt b/npc/functions/clientversion.txt index 48438e626..6274c27b8 100644 --- a/npc/functions/clientversion.txt +++ b/npc/functions/clientversion.txt @@ -8,6 +8,10 @@ // This also handles all updates, and usually have priority. function script checkclientversion { + // Skip any update for newcomers + if (isin("000-0", 0, 0, 40, 40)) + UPDATE=gettimetick(2); + // Update handler (use `date +%s` for this) // Current UPDATE value: Qui Jun 7 08:10:55 -03 2018 if (Lang > 5 && UPDATE < 1528369855) { @@ -44,6 +48,10 @@ function script checkclientversion { mes col("Ah... You must update your client first.", 1); next; } + if (is_admin() && UPDATE < 1528369855) { + UPDATE=gettimetick(2); // Perhaps we should use above number, and leave all UPDATE fields here? + dispbottom l("Client Version: @@", ClientVersion); // This is to debug UPDATE system. + } if (ClientVersion >= 24) return; -- cgit v1.2.3-70-g09d2