summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--npc/functions/clientversion.txt8
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;