From 967dd2d8e80a559883152a1d0377801d418a554f Mon Sep 17 00:00:00 2001
From: Fate <fate-tmw@googlemail.com>
Date: Sat, 16 May 2009 13:55:26 +0000
Subject: Elanore and the Doctor can now heal poisoning.  Also added sc_poison
 constant to db/const.txt.

---
 npc/001-1_Tulimshar/elanore.txt | 13 +++++++++++++
 npc/009-2_Hurnscald/doctor.txt  | 20 ++++++++++++++++++--
 2 files changed, 31 insertions(+), 2 deletions(-)

(limited to 'npc')

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;
 
-- 
cgit v1.2.3-70-g09d2