summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
authorFate <fate-tmw@googlemail.com>2009-05-16 13:55:26 +0000
committerFate <fate-tmw@googlemail.com>2009-05-16 13:55:26 +0000
commit967dd2d8e80a559883152a1d0377801d418a554f (patch)
tree5eb1a6cb5408bfcdfc90829385e4d7ee3b359f5c /npc
parented79b534c296f2a65a0af385c17a1ff0b12de1b4 (diff)
downloadserverdata-967dd2d8e80a559883152a1d0377801d418a554f.tar.gz
serverdata-967dd2d8e80a559883152a1d0377801d418a554f.tar.bz2
serverdata-967dd2d8e80a559883152a1d0377801d418a554f.tar.xz
serverdata-967dd2d8e80a559883152a1d0377801d418a554f.zip
Elanore and the Doctor can now heal poisoning. Also added sc_poison constant to db/const.txt.
Diffstat (limited to 'npc')
-rw-r--r--npc/001-1_Tulimshar/elanore.txt13
-rw-r--r--npc/009-2_Hurnscald/doctor.txt20
2 files changed, 31 insertions, 2 deletions
diff --git a/npc/001-1_Tulimshar/elanore.txt b/npc/001-1_Tulimshar/elanore.txt
index f75e154b..f0781924 100644
--- a/npc/001-1_Tulimshar/elanore.txt
+++ b/npc/001-1_Tulimshar/elanore.txt
@@ -15,6 +15,8 @@
set @STATUS_MASTERED_LIGHT_HEAL, 2;
set @STATUS_LEARNED_LAY_ON_HANDS, 3;
+ if (sc_check(sc_poison))
+ goto L_CurePoison;
if (baselevel > 10) goto L_NoHeal;
@@ -416,6 +418,17 @@ L_Q_auldsbel:
goto L_Main;
+L_CurePoison:
+ mes "[Elanore the Healer]";
+ mes "\"Oh dear! That looks like poison; hang on...\"";
+ mes "She performs a complicated gesture.";
+ sc_end(sc_poison);
+ next;
+
+ mes "[Elanore the Healer]";
+ mes "\"There you are, right as rain! Now you take care, all right?\"";
+ close;
+
S_update_var:
set QUEST_MAGIC2,
(QUEST_MAGIC2 & ~(@Q_MASK)
diff --git a/npc/009-2_Hurnscald/doctor.txt b/npc/009-2_Hurnscald/doctor.txt
index 2d7c2602..84cf97de 100644
--- a/npc/009-2_Hurnscald/doctor.txt
+++ b/npc/009-2_Hurnscald/doctor.txt
@@ -24,9 +24,25 @@
L_Cure:
mes "[Doctor]";
- mes "\"That is impossible. Status ailments aren't ingame yet!\"";
+ if (sc_check(sc_poison))
+ goto L_CurePoison;
+ mes "The doctor examines you briefly.";
+ mes "\"Nonsense! You look fine and dandy to me. All you need is a bit more exercise and fresh fruit in your diet!\"";
close;
+L_CurePoison:
+ mes "\"Well, well, well! Look at all those green bubbles coming out of your head; that looks like poisoning to me! Did you eat something rotten?\"";
+ next;
+ mes "[Doctor]";
+ mes "The doctor pulls out a syringe and fills it with a white liquid from a jar on his desk.";
+ mes "\"Now hold still, this won't hurt a bit...\"";
+ next;
+ mes "[Doctor]";
+ sc_end(sc_poison);
+ mes "*Ouch!*";
+ mes "\"Next time, be more careful! Make sure to cook any meats before you eat them, and don't eat fish once it starts to smell.\"";
+ close;
+
L_Axe:
mes "[Doctor]";
mes "\"Oh my, what happened to you?\"";
@@ -56,7 +72,7 @@ L_Eyepatch_GlassEye:
next;
mes "[Doctor]";
- mes "\"I can't seem to find where I put that box. YOu should come back later, I may have found them by then.\"";
+ mes "\"I can't seem to find where I put that box. You should come back later, I may have found them by then.\"";
next;
close;