summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-02-15 23:23:45 -0200
committerJesusaves <cpntb1@ymail.com>2019-02-15 23:23:45 -0200
commit18e1c31e3643d3a187ac56ba8f90300ed3490861 (patch)
tree8c40bc6483511b34a7055506eccd02e4b7eb5108
parenta696a9ad7e1a93319a17b5aa32caab97ad7e6ec1 (diff)
downloadserverdata-18e1c31e3643d3a187ac56ba8f90300ed3490861.tar.gz
serverdata-18e1c31e3643d3a187ac56ba8f90300ed3490861.tar.bz2
serverdata-18e1c31e3643d3a187ac56ba8f90300ed3490861.tar.xz
serverdata-18e1c31e3643d3a187ac56ba8f90300ed3490861.zip
Game Rules were updated and everyone will need to read them again.
-rw-r--r--npc/functions/clientversion.txt22
1 files changed, 17 insertions, 5 deletions
diff --git a/npc/functions/clientversion.txt b/npc/functions/clientversion.txt
index 260f5dd78..e464c776b 100644
--- a/npc/functions/clientversion.txt
+++ b/npc/functions/clientversion.txt
@@ -13,6 +13,7 @@ function script checkclientversion {
UPDATE=gettimetick(2);
}
+ .@dg=0;
// Update handler (use `date +%s` for this)
// Current UPDATE value: Qui Jun 7 08:10:55 -03 2018
if (Lang > 5 && UPDATE < 1528369855) {
@@ -73,7 +74,6 @@ function script checkclientversion {
// ter jan 8 03:52:20 -02 2019
if (UPDATE < 1546926740) {
UPDATE=1546926740;
- .@dg=0;
.@u$=strtolower(strcharinfo(0));
setarray .@apology$, "jesusalva", "mrhedx", "ziah", "soren xd", "warblade", "yuxin", "xtreem", "monking", "demure gm", "se francisc";
setarray .@gallery$, "jesusalva", "mishana", "bobr", "demure", "lawncable";
@@ -117,14 +117,13 @@ function script checkclientversion {
mesc l("How's that even possible? Well, 30 @@ for all contestants!", getitemlink(StrangeCoin));
next;
}
- if (.@dg)
- close;
}
// Valentine Day Event Bug
// sex fev 15 18:04:00 -02 2019
if (UPDATE < 1550261040) {
UPDATE=1550261040;
if (#VALENTINE_POINTS) {
+ .@dg=1;
showavatar NPC_LOF_RICH;
mesn ("TMW2 Staff");
mesc l("Hello, @@! We just looked up and found out you that you were affected on a Valentine Event bug!", strcharinfo(0)), 3;
@@ -133,9 +132,18 @@ function script checkclientversion {
mesc l("Token Of Apology: 1x @@, 1x @@", getitemlink(SilverGift), getitemlink(MercBoxB));
getitem SilverGift, 1;
getitem MercBoxB, 1;
- close;
+ next;
}
}
+ // Valentine Day Event Bug
+ // sex fev 15 23:22:21 -02 2019
+ if (UPDATE < 1550280141) {
+ UPDATE=1550280141;
+
+ .@dg=1;
+ mesc l("Game Rules were updated!"), 1;
+ GameRules S_NO_NPC_NAME | S_LAST_NEXT;
+ }
@@ -181,7 +189,11 @@ function script checkclientversion {
- if (ClientVersion >= 24) return;
+ if (ClientVersion >= 24) {
+ if (.@dg)
+ close;
+ return;
+ }
mesn "Narrator";
mesc l("Warning."), 1;