From 955ac518aa3892f846b59bf3cd89138f8a962bd4 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sat, 31 Aug 2019 15:41:18 -0300 Subject: Make it an util function. Three copies requires c/p to be removed. --- npc/003-3/malindou.txt | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'npc/003-3') diff --git a/npc/003-3/malindou.txt b/npc/003-3/malindou.txt index 9c22355a0..72b748b6c 100644 --- a/npc/003-3/malindou.txt +++ b/npc/003-3/malindou.txt @@ -519,14 +519,7 @@ OnPCBaseLvUpEvent: 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; + NewcomerEXPDROPUP(); break; case 20: sc_end SC_CASH_PLUSEXP; -- cgit v1.2.3-70-g09d2