From 7ecebed6d2010c3804c5faae40184f4255fbe38d Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Tue, 28 Jan 2020 20:57:23 -0300 Subject: Client Updater: Temporary Level Override method. Valid until 2020-02-16 23:59:59 --- npc/functions/clientversion.txt | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) 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; -- cgit v1.2.3-70-g09d2