summaryrefslogtreecommitdiff
path: root/npc/003-3
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-08-31 15:39:39 -0300
committerJesusaves <cpntb1@ymail.com>2019-08-31 15:39:39 -0300
commita75647e56b078b585db7eb7ff95bc848d3abac0d (patch)
tree9f062743336c9503e1a07766306ad910cb02edd8 /npc/003-3
parentea6b5f90523e9758d604e910959eb4bd69e6a5cd (diff)
downloadserverdata-a75647e56b078b585db7eb7ff95bc848d3abac0d.tar.gz
serverdata-a75647e56b078b585db7eb7ff95bc848d3abac0d.tar.bz2
serverdata-a75647e56b078b585db7eb7ff95bc848d3abac0d.tar.xz
serverdata-a75647e56b078b585db7eb7ff95bc848d3abac0d.zip
Force the bonus update at level 5, 10 and 15
Diffstat (limited to 'npc/003-3')
-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;