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/002-3/nard.txt | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'npc/002-3/nard.txt') diff --git a/npc/002-3/nard.txt b/npc/002-3/nard.txt index 736fe7c99..0be2810d4 100644 --- a/npc/002-3/nard.txt +++ b/npc/002-3/nard.txt @@ -63,12 +63,7 @@ L_Checker: mesc l("Elmo has given you an EXP UP and DROP UP Boost until level 20!"), 2; mesc l("It also expires after two hours. In such case, talk to him again!"), 2; // Actually, why don't we apply it right now...? - .@AVG_LEVEL=($@hoblvl_value[0]+$@hoblvl_value[1]+$@hoblvl_value[2])/3; - .@BONUS=min(50, .@AVG_LEVEL/2); - sc_end SC_CASH_PLUSEXP; - sc_end SC_CASH_RECEIVEITEM; - sc_start SC_CASH_PLUSEXP, 7200000, .@BONUS; - sc_start SC_CASH_RECEIVEITEM, 7200000, .@BONUS; + .@BONUS=NewcomerEXPDROPUP(); specialeffect FX_SPECIAL, SELF, getcharid(3); mesc l("EXP Gain raised in @@% for one hour!", .@BONUS), 2; next; -- cgit v1.2.3-60-g2f50