From 424ebd8f627d8912d990a7d2cfc484464b1c06f2 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Fri, 26 Apr 2019 21:09:57 -0300 Subject: Use a formula based on top players level to decide how much will be new player free exp boost. Currently, that will be 19%. --- npc/002-3/elmo.txt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'npc/002-3') 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; } -- cgit v1.2.3-60-g2f50