summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--npc/functions/clientversion.txt4
1 files changed, 3 insertions, 1 deletions
diff --git a/npc/functions/clientversion.txt b/npc/functions/clientversion.txt
index 92ac34f..be28659 100644
--- a/npc/functions/clientversion.txt
+++ b/npc/functions/clientversion.txt
@@ -181,14 +181,16 @@ function script clientupdater {
// Permanent Level Boost
// This is the Cross Worlds. Level is overriden.
if (#ADD_LVL) {
- resetlvl(2);
+ resetlvl(2); // Not really a good idea...
//logmes "[Merger] EXP +"+#ADD_LVL, LOGMES_ATCOMMAND;
if ((readparam(BaseExp)+#ADD_LVL > readparam(NextBaseExp))) {
+ freeloop(true);
do {
.@v=readparam(NextBaseExp)-readparam(BaseExp);
getexp .@v, 0;
#ADD_LVL-=.@v;
} while (readparam(BaseExp)+#ADD_LVL > readparam(NextBaseExp));
+ freeloop(false);
}
// Left overs
getexp #ADD_LVL, 0;