diff options
author | Jesusaves <cpntb1@ymail.com> | 2018-06-12 11:25:00 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2018-06-12 11:25:00 -0300 |
commit | 4f5fa6e07c3c16188932eb158d4c5cd5ba582040 (patch) | |
tree | 0e04a4298be74ec65eaad2573793696c13cfe53b | |
parent | bfe72148a1a4fc1c7ccc437e8aa5552981943b5a (diff) | |
download | serverdata-4f5fa6e07c3c16188932eb158d4c5cd5ba582040.tar.gz serverdata-4f5fa6e07c3c16188932eb158d4c5cd5ba582040.tar.bz2 serverdata-4f5fa6e07c3c16188932eb158d4c5cd5ba582040.tar.xz serverdata-4f5fa6e07c3c16188932eb158d4c5cd5ba582040.zip |
Rewrite a little the UPDATE mechanism
-rw-r--r-- | npc/functions/clientversion.txt | 8 |
1 files changed, 8 insertions, 0 deletions
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; |