diff options
Diffstat (limited to 'npc/functions/nurse.txt')
-rw-r--r-- | npc/functions/nurse.txt | 9 |
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; |