From a75647e56b078b585db7eb7ff95bc848d3abac0d Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sat, 31 Aug 2019 15:39:39 -0300 Subject: Force the bonus update at level 5, 10 and 15 --- npc/003-3/malindou.txt | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'npc') diff --git a/npc/003-3/malindou.txt b/npc/003-3/malindou.txt index 037849cbc..9c22355a0 100644 --- a/npc/003-3/malindou.txt +++ b/npc/003-3/malindou.txt @@ -515,6 +515,19 @@ OnInit: // Level up events OnPCBaseLvUpEvent: switch (BaseLevel) { + case 5: + case 10: + case 15: + // Recalculate the bonus + .@AVG_LEVEL=($@hoblvl_value[0]+$@hoblvl_value[1]+$@hoblvl_value[2])/3; + .@BONUS=min(50, .@AVG_LEVEL/2); + .@BONUS-=BaseLevel; + .@BONUS=max(1, .@BONUS); + sc_end SC_CASH_PLUSEXP; + sc_end SC_CASH_RECEIVEITEM; + sc_start SC_CASH_PLUSEXP, 7200000, .@BONUS; + sc_start SC_CASH_RECEIVEITEM, 7200000, .@BONUS; + break; case 20: sc_end SC_CASH_PLUSEXP; sc_end SC_CASH_RECEIVEITEM; -- cgit v1.2.3-60-g2f50