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.txt11
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;
}