diff options
Diffstat (limited to 'npc/functions')
-rw-r--r-- | npc/functions/clientversion.txt | 22 |
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; |