summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2018-06-21 20:22:51 -0300
committerJesusaves <cpntb1@ymail.com>2018-06-21 20:22:51 -0300
commit88222805eee0aa8aa23d60a7017e64572b0d57f4 (patch)
tree128d336ec6ed7dbff821b5a39e3d07b0c5f6d671
parent8cae7535dfb688058618b665e7a648632b78c982 (diff)
downloadserverdata-88222805eee0aa8aa23d60a7017e64572b0d57f4.tar.gz
serverdata-88222805eee0aa8aa23d60a7017e64572b0d57f4.tar.bz2
serverdata-88222805eee0aa8aa23d60a7017e64572b0d57f4.tar.xz
serverdata-88222805eee0aa8aa23d60a7017e64572b0d57f4.zip
Recalc price on Elanore
-rw-r--r--npc/functions/nurse.txt9
1 files changed, 9 insertions, 0 deletions
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;