summaryrefslogtreecommitdiff
path: root/npc/functions
diff options
context:
space:
mode:
Diffstat (limited to 'npc/functions')
-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;