From 88222805eee0aa8aa23d60a7017e64572b0d57f4 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Thu, 21 Jun 2018 20:22:51 -0300 Subject: Recalc price on Elanore --- npc/functions/nurse.txt | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'npc/functions') diff --git a/npc/functions/nurse.txt b/npc/functions/nurse.txt index 53b66cc90..595a584a7 100644 --- a/npc/functions/nurse.txt +++ b/npc/functions/nurse.txt @@ -61,6 +61,15 @@ function script Nurse { }// & 1 if (.@d & 2) { // &2 + if (!(.@d & 2)) { + // (Re)Calculate price + .@price=(MaxHp-Hp)/getarg(1,5); + .@price=.@price+getarg(2, 10); + if (BaseLevel <= 15) .@price=(.@price/10); + else if (BaseLevel <= 20) .@price=(.@price/5); + else .@price=(.@price/2); + } + // Heal persona mes ""; set Zeny, Zeny - .@price; -- cgit v1.2.3-60-g2f50