diff options
author | Jesusaves <cpntb1@ymail.com> | 2019-04-26 21:09:57 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2019-04-26 21:09:57 -0300 |
commit | 424ebd8f627d8912d990a7d2cfc484464b1c06f2 (patch) | |
tree | edd89e2263a3edcb156bd4685ea3673d54dff3c5 /npc/002-3 | |
parent | 86b79f3e073ad714ae48f8ebb3c5e56c32d340b4 (diff) | |
download | serverdata-424ebd8f627d8912d990a7d2cfc484464b1c06f2.tar.gz serverdata-424ebd8f627d8912d990a7d2cfc484464b1c06f2.tar.bz2 serverdata-424ebd8f627d8912d990a7d2cfc484464b1c06f2.tar.xz serverdata-424ebd8f627d8912d990a7d2cfc484464b1c06f2.zip |
Use a formula based on top players level to decide how much will be new player
free exp boost. Currently, that will be 19%.
Diffstat (limited to 'npc/002-3')
-rw-r--r-- | npc/002-3/elmo.txt | 7 |
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; } |