summaryrefslogtreecommitdiff
path: root/npc/002-3/elmo.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/002-3/elmo.txt')
-rw-r--r--npc/002-3/elmo.txt7
1 files changed, 6 insertions, 1 deletions
diff --git a/npc/002-3/elmo.txt b/npc/002-3/elmo.txt
index 802d00046..68f8233db 100644
--- a/npc/002-3/elmo.txt
+++ b/npc/002-3/elmo.txt
@@ -136,8 +136,13 @@ function ExpBoost {
mesn;
mesq l("Well, I'll give you 15 minutes of EXP RATE UP! How cool is that? Enjoy!");
next;
+ // Get the average level of top players to calculate EXP Boost
+ // Level 100 ("max") = 25% EXP BOOST (max)
+ // Current (2019-04-27) top is 80/80/75, meaning a 19% EXP Boost.
+ .@AVG_LEVEL=($@hoblvl_value[0]+$@hoblvl_value[1]+$@hoblvl_value[2])/3;
+ .@BONUS=.@AVG_LEVEL/4;
sc_end SC_OVERLAPEXPUP;
- sc_start SC_OVERLAPEXPUP, 900000, 20;
+ sc_start SC_OVERLAPEXPUP, 900000, min(25, .@BONUS);
return;
}