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.txt12
1 files changed, 8 insertions, 4 deletions
diff --git a/npc/functions/clientversion.txt b/npc/functions/clientversion.txt
index 78e81feed..87ff89f9f 100644
--- a/npc/functions/clientversion.txt
+++ b/npc/functions/clientversion.txt
@@ -1135,18 +1135,22 @@ function script clientupdater {
// 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) {
+ //logmes "[Merger] EXP +"+#ADD_LVL, LOGMES_ATCOMMAND;
if ((readparam(BaseExp)+#ADD_LVL > readparam(NextBaseExp))) {
do {
+ if (BaseLevel >= TOP3AVERAGELVL()) break; // Boundaries
.@v=readparam(NextBaseExp)-readparam(BaseExp);
getexp .@v, 0;
#ADD_LVL-=.@v;
} while (readparam(BaseExp)+#ADD_LVL > readparam(NextBaseExp));
}
- logmes "[Merger] EXP +"+#ADD_LVL, LOGMES_ATCOMMAND;
- getexp #ADD_LVL, 0;
- #ADD_LVL=0;
+ // Only give remaining EXP if you did not hit the boundary
+ if (BaseLevel < TOP3AVERAGELVL()) {
+ getexp #ADD_LVL, 0;
+ #ADD_LVL=0;
+ }
//rodex_sendmail(getcharid(0), "TMW2 Team", "Welcome to Moubootaur Legends", "Hey, thanks for believing on us! We hope to have a great time together. Any problem, ask for help in #world - the Discord bridge! Enjoy our game!", 20);
- // TODO: Maybe an item which lets you open the storage anywhere?
+ // TODO: Maybe give an item which lets you open the storage anywhere?
}
if (.@dg) {