diff options
author | Jesusaves <cpntb1@ymail.com> | 2018-06-21 20:22:51 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2018-06-21 20:22:51 -0300 |
commit | 88222805eee0aa8aa23d60a7017e64572b0d57f4 (patch) | |
tree | 128d336ec6ed7dbff821b5a39e3d07b0c5f6d671 | |
parent | 8cae7535dfb688058618b665e7a648632b78c982 (diff) | |
download | serverdata-88222805eee0aa8aa23d60a7017e64572b0d57f4.tar.gz serverdata-88222805eee0aa8aa23d60a7017e64572b0d57f4.tar.bz2 serverdata-88222805eee0aa8aa23d60a7017e64572b0d57f4.tar.xz serverdata-88222805eee0aa8aa23d60a7017e64572b0d57f4.zip |
Recalc price on Elanore
-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; |