summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjesusalva <cpntb1@ymail.com>2018-02-22 21:27:42 -0300
committerjesusalva <cpntb1@ymail.com>2018-02-22 21:27:42 -0300
commita0712e6473747b5e63b9a717989282d984d176af (patch)
treefa6a968858ab03682cb9a51d6d98835c8bb30582
parent349311a993ed537f56cb69e6c670b4508a4a2d74 (diff)
downloadserverdata-a0712e6473747b5e63b9a717989282d984d176af.tar.gz
serverdata-a0712e6473747b5e63b9a717989282d984d176af.tar.bz2
serverdata-a0712e6473747b5e63b9a717989282d984d176af.tar.xz
serverdata-a0712e6473747b5e63b9a717989282d984d176af.zip
A nurse for Candor (in trainer's house). Er, please do not move her, I'm lazy
-rw-r--r--npc/005-7/_import.txt1
-rw-r--r--npc/005-7/nurse.txt79
2 files changed, 80 insertions, 0 deletions
diff --git a/npc/005-7/_import.txt b/npc/005-7/_import.txt
index 79d8a945d..943f21d5e 100644
--- a/npc/005-7/_import.txt
+++ b/npc/005-7/_import.txt
@@ -1,4 +1,5 @@
// Map 005-7: Training House
// This file is generated automatically. All manually added changes will be removed when running the Converter.
"npc/005-7/_warps.txt",
+"npc/005-7/nurse.txt",
"npc/005-7/trainer.txt",
diff --git a/npc/005-7/nurse.txt b/npc/005-7/nurse.txt
new file mode 100644
index 000000000..abf65d66c
--- /dev/null
+++ b/npc/005-7/nurse.txt
@@ -0,0 +1,79 @@
+// TMW-2 Script
+// Author:
+// Jesusalva
+
+005-7,41,30,0 script Candor's Nurse NPC_FEMALE,{
+
+ //if (sc_check(SC_POISON)) goto L_CurePoison;
+
+ mesn;
+ @temp = rand(4);
+ if(@temp == 1) goto L_Heal2;
+ if(@temp == 2) goto L_Heal3;
+ if(@temp == 3) goto L_Heal4;
+ goto L_Heal1;
+
+L_Heal1:
+ mesq l("You don't look too well; let me treat your wounds.");
+ mes "";
+ goto L_Menu;
+
+L_Heal2:
+ mesq l("I will make quick work of your wounds.");
+ mes "";
+ goto L_Menu;
+
+L_Heal3:
+ mesq l("Need a healing?");
+ mes "";
+ goto L_Menu;
+
+L_Heal4:
+ mesq l("Sometimes you just need to run from battle.");
+ mes "";
+ goto L_Menu;
+
+L_Menu:
+ .@price=(MaxHp-Hp)/5;
+ .@price=.@price+10;
+ if (BaseLevel <= 15) .@price=(.@price/10);
+ mesq l("For you, it'll be @@ GP.", .@price);
+ mes "";
+ menu
+ rif(Zeny >= .@price, l("Please heal me!")), L_Heal_L,
+ l("Another time, maybe."), L_Close;
+
+
+L_Heal_L:
+ mes "";
+ set Zeny, Zeny - .@price;
+ sc_end(SC_POISON);
+ sc_end(SC_SLOWPOISON);
+ percentheal 100,100; // We can also use "recovery(<account id>)"
+ mesn;
+ @temp = rand(1,4);
+ if(@temp == 1) mesq l("Here you go!");
+ if(@temp == 2) mesq l("Painless, wasn't it?");
+ if(@temp == 3) mesq l("You should be more careful.");
+ if(@temp == 4) mesq l("Much better, right?!");
+ goto L_Close;
+
+
+L_Close:
+ close;
+
+OnInit:
+ .@npcId = getnpcid(0, .name$);
+ // I got lazy and NPC is behind a desk, so minimal equipment.
+ //setunitdata(.@npcId, UDT_HEADTOP, 2929);
+ setunitdata(.@npcId, UDT_HEADMIDDLE, 1313);
+ //setunitdata(.@npcId, UDT_HEADBOTTOM, 2207);
+ //setunitdata(.@npcId, UDT_WEAPON, 1802); // Boots
+ setunitdata(.@npcId, UDT_HAIRSTYLE, 12);
+ setunitdata(.@npcId, UDT_HAIRCOLOR, 14);
+
+ .sex = G_FEMALE;
+ .distance = 5;
+ end;
+
+}