summaryrefslogtreecommitdiff
path: root/npc/functions
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-01-28 20:57:23 -0300
committerJesusaves <cpntb1@ymail.com>2020-01-28 20:57:23 -0300
commit7ecebed6d2010c3804c5faae40184f4255fbe38d (patch)
tree6e06b4a9a8ef6e45e961769cfd051083656351d8 /npc/functions
parent8e2e8fb455462036d17d6bcf227c2ee41cc91f21 (diff)
downloadserverdata-7ecebed6d2010c3804c5faae40184f4255fbe38d.tar.gz
serverdata-7ecebed6d2010c3804c5faae40184f4255fbe38d.tar.bz2
serverdata-7ecebed6d2010c3804c5faae40184f4255fbe38d.tar.xz
serverdata-7ecebed6d2010c3804c5faae40184f4255fbe38d.zip
Client Updater: Temporary Level Override method. Valid until 2020-02-16 23:59:59
Diffstat (limited to 'npc/functions')
-rw-r--r--npc/functions/clientversion.txt20
1 files changed, 20 insertions, 0 deletions
diff --git a/npc/functions/clientversion.txt b/npc/functions/clientversion.txt
index d4746b460..9a608781c 100644
--- a/npc/functions/clientversion.txt
+++ b/npc/functions/clientversion.txt
@@ -718,7 +718,27 @@ function script clientupdater {
// :// End of Regular Update System
////////////////////////////////////
+ // Non Permament Level Boost
+ if (#ADD_TMP_LVL) {
+ // Grant the level
+ if (numdate() <= 20200216) {
+ #SAVED_LVL=BaseLevel;
+ BaseLevel=#ADD_TMP_LVL;
+ dispbottom l("Level set from %d to %d", #SAVED_LVL, BaseLevel);
+ // Restore the level
+ } else if (#SAVED_LVL) {
+ dispbottom l("Level reset from %d to %d", BaseLevel, #SAVED_LVL);
+ BaseLevel=#SAVED_LVL;
+ #SAVED_LVL=0;
+ #ADD_TMP_LVL=0;
+ // Player too late for event!
+ } else {
+ dispbottom l("This event has already ended.");
+ #ADD_TMP_LVL=0;
+ }
+ }
+ // Permanent Level Boost
// #ADD_LVL means the user have to right to get some levels. This is a sketch. The code might be deleted.
if (#ADD_LVL) {
.@dg=1;