summaryrefslogtreecommitdiff
path: root/npc/functions/nurse.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2018-06-20 18:23:32 -0300
committerJesusaves <cpntb1@ymail.com>2018-06-20 18:23:32 -0300
commitfb0488722333360de366b71eba6c4619be1a7907 (patch)
treed978cf1d889c5b124bc5db9b5051bfd403fb116f /npc/functions/nurse.txt
parent48c5b0b516e2ec422ba0503d8c18dc0c6e163c6a (diff)
downloadserverdata-fb0488722333360de366b71eba6c4619be1a7907.tar.gz
serverdata-fb0488722333360de366b71eba6c4619be1a7907.tar.bz2
serverdata-fb0488722333360de366b71eba6c4619be1a7907.tar.xz
serverdata-fb0488722333360de366b71eba6c4619be1a7907.zip
Comments
Diffstat (limited to 'npc/functions/nurse.txt')
-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!");