From fb0488722333360de366b71eba6c4619be1a7907 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Wed, 20 Jun 2018 18:23:32 -0300 Subject: Comments --- npc/functions/nurse.txt | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'npc/functions') 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()" + 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!"); -- cgit v1.2.3-70-g09d2