summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
Diffstat (limited to 'npc')
-rw-r--r--npc/003-3/malindou.txt13
1 files changed, 13 insertions, 0 deletions
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;