diff options
author | Jesusaves <cpntb1@ymail.com> | 2023-07-03 14:57:35 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2023-07-03 14:57:35 -0300 |
commit | 47eae7f20036ac8817bdc264f3bc07915bb0e7d0 (patch) | |
tree | 98bc4e022c41f0570adaf6f6d016afbf97054481 | |
parent | 26b562efd51ae09eeee13e49f0ff6d81ba9ef1d7 (diff) | |
download | serverdata-47eae7f20036ac8817bdc264f3bc07915bb0e7d0.tar.gz serverdata-47eae7f20036ac8817bdc264f3bc07915bb0e7d0.tar.bz2 serverdata-47eae7f20036ac8817bdc264f3bc07915bb0e7d0.tar.xz serverdata-47eae7f20036ac8817bdc264f3bc07915bb0e7d0.zip |
This theoretically fixes the infinite character points bug
-rw-r--r-- | npc/functions/clientversion.txt | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/npc/functions/clientversion.txt b/npc/functions/clientversion.txt index fe9b1a3..a506edd 100644 --- a/npc/functions/clientversion.txt +++ b/npc/functions/clientversion.txt @@ -181,8 +181,13 @@ function script clientupdater { // Permanent Level Boost // This is the Cross Worlds. Level is overriden. if (#ADD_LVL) { - resetlvl(2); // Not really a good idea... - adddefaultskills(); // Because resetlvl(2) is destructive... + .@diff = #ADD_LVL - #MYEXP; + if (.@diff > 0) { + getexp .@diff, 0; + #MYEXP += .@diff; + } + //resetlvl(2); // Not really a good idea... + //adddefaultskills(); // Because resetlvl(2) is destructive... //logmes "[Merger] EXP +"+#ADD_LVL, LOGMES_ATCOMMAND; /* if ((readparam(BaseExp)+#ADD_LVL > readparam(NextBaseExp))) { @@ -196,7 +201,7 @@ function script clientupdater { } */ // Left overs - getexp #ADD_LVL, 0; + //getexp #ADD_LVL, 0; #ADD_LVL=0; } |