summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--npc/functions/nurse.txt8
1 files changed, 6 insertions, 2 deletions
diff --git a/npc/functions/nurse.txt b/npc/functions/nurse.txt
index e7889c0b5..b1424126e 100644
--- a/npc/functions/nurse.txt
+++ b/npc/functions/nurse.txt
@@ -16,6 +16,8 @@ function script Nurse {
if (.@d & 1) {//&1
mes "";
mesn getarg(0);
+
+ // Random message
.@temp = rand(1,4);
switch (.@temp) {
case 1:
@@ -25,7 +27,7 @@ function script Nurse {
mesq l("I will make quick work of your wounds.");
break;
case 3:
- mesq l("Need a healing?");
+ mesq l("Need a healing?");
break;
case 4:
mesq l("Sometimes you just need to run from battle.");
@@ -33,6 +35,7 @@ function script Nurse {
}
mes "";
+ // Calculate price
.@price=(MaxHp-Hp)/getarg(1,5);
.@price=.@price+getarg(2, 10);
if (BaseLevel <= 15) .@price=(.@price/10);
@@ -58,11 +61,12 @@ function script Nurse {
}// & 1
if (.@d & 2) { // &2
+ // Heal persona
mes "";
set Zeny, Zeny - .@price;
sc_end(SC_POISON);
sc_end(SC_SLOWPOISON);
- percentheal 100,100; // We can also use "recovery(<account id>)"
+ percentheal 100,100; // We can also use "recovery()" but that revives players :o
mesn getarg(0);
@temp = rand(1,4);
if(@temp == 1) mesq l("Here you go!");