summaryrefslogtreecommitdiff
path: root/npc/functions/clientversion.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/functions/clientversion.txt')
-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;