summaryrefslogtreecommitdiff
path: root/npc/002-1/elanore.txt
blob: 3a546cd20db00f4a9d31d61855877a42836768fe (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
function	script	ElanoreFix	{
    @Q_MASK = NIBBLE_1_MASK;
    @Q_SHIFT = NIBBLE_1_SHIFT;

    set @Q_STATUS_MAX, 3; // FIXME once level 3 magic was released

    @Q_status = (QUEST_MAGIC2 & @Q_MASK) >> @Q_SHIFT;
    if (@Q_status > @Q_STATUS_MAX)
    @Q_status = @STATUS_INITIAL;
    if (@Q_status > 1 && (getskilllv(SKILL_MAGIC_LIFE) < 2))
    @Q_status = @STATUS_INITIAL;

    QUEST_MAGIC2 = (QUEST_MAGIC2 & ~(@Q_MASK) | (@Q_status << @Q_SHIFT));
    return;
}

function	script	elanore_decrease_exp	{
    @Q_heal_exp = MAGIC_EXPERIENCE >> 24;
    if (@Q_heal_exp < 8) goto L_OnPcKillWipe;
    @Q_heal_exp = @Q_heal_exp - 8;
    goto L_OnPcKillFinish;

L_OnPcKillWipe:
    @Q_heal_exp = 0;
    goto L_OnPcKillFinish;

L_OnPcKillFinish:
    MAGIC_EXPERIENCE = (MAGIC_EXPERIENCE & ~(255 << 24)) | (@Q_heal_exp << 24);
    goto L_Return;

L_Return:
    return;
}

002-1,75,62,0	script	Elanore#_M	NPC108,{
    @has_magic = getskilllv(SKILL_MAGIC);

    @Q_MASK = NIBBLE_1_MASK;
    @Q_SHIFT = NIBBLE_1_SHIFT;

    @Q_status = (QUEST_MAGIC2 & @Q_MASK) >> @Q_SHIFT;
    @Q_heal_exp = MAGIC_EXPERIENCE >> 24;

    // Set up SkillUp function
    @SUP_id = SKILL_MAGIC_LIFE;
    @SUP_name$ = "Life Magic";

    @STATUS_INITIAL = 0;
    @STATUS_LEARNED_LIGHT_HEAL = 1;
    @STATUS_MASTERED_LIGHT_HEAL = 2;
    @STATUS_LEARNED_LAY_ON_HANDS = 3;
    @STATUS_WAITING_FOR_KADIYA = 4;
    @STATUS_READY_TO_LEARN_CURE_POISON = 5;
    @STATUS_LEARNED_CURE_POISON = 6;

    callfunc "ElanoreFix";

    // This operation works around an earlier possible corruption of this state
    if (@Q_status > @Q_STATUS_MAX)
    @Q_status = @STATUS_INITIAL;
    callsub S_Update_Var;
    if (sc_check(SC_POISON)) goto L_CurePoison;
    if (BaseLevel > 20) goto L_NoHeal;
    @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:

    mes "[Elanore the Healer]";
    mes "\"You don't look too well; let me treat your wounds.\"";
    next;
    goto L_Heal_L;

L_Heal2:

    mes "[Elanore the Healer]";
    mes "\"I will make quick work of your wounds.\"";
    next;
    goto L_Heal_L;

L_Heal3:

    mes "[Elanore the Healer]";
    mes "\"Need a healing?\"";
    next;
    goto L_Heal_L;

L_Heal4:

    mes "[Elanore the Healer]";
    mes "\"Sometimes you just need to run from battle.\"";
    next;
    goto L_Heal_L;

L_Heal_L:
    @temp = rand(3);
    if(@temp == 1) goto L_Heal_2;
    if(@temp == 2) goto L_Heal_3;
    if(@temp == 3) goto L_Heal_4;
    goto L_Heal_1;

L_Heal_1:

    mes "[Elanore the Healer]";
    mes "\"Here you go!\"";
    heal 10000,10000;
    goto L_close;

L_Heal_2:

    mes "[Elanore the Healer]";
    mes "\"Painless, wasn't it?";
    heal 10000,10000;
    goto L_close;

L_Heal_3:

    mes "[Elanore the Healer]";
    mes "\"You should be more careful.\"";
    heal 10000,10000;
    goto L_close;

L_Heal_4:

    mes "[Elanore the Healer]";
    mes "\"Much better, right?!\"";
    heal 10000,10000;
    goto L_close;

L_NoHeal:
    if (MAGIC_FLAGS)
        goto L_Chat;
    goto L_NoHealMessage;

L_NoHealMessage:
    mes "[Elanore the Healer]";
    mes "\"I'm sorry but unless you are young and in need, I can't help you, and your level is already higher than twenty.";
    mes "With so many gaurds still injured, I really have no time to help.";
    mes "You can get some rest in the inn near here.\"";
    goto L_close;

L_Chat:
    mes "[Elanore the Healer]";
    mes "\"Hello!  Can I help you?\"";
    next;
    goto L_Main;

L_Main:
    if (@has_magic && (@Q_status == @STATUS_INITIAL))
        menu
            "Can you heal me?", L_NoHealMessage,
            "Can you teach me magic?", L_Teach,
            "What do you know about...", L_Question,
            "Goodbye!", L_Bye;
    if (@has_magic && (@Q_status > @STATUS_INITIAL))
        menu
            "Can you heal me?", L_NoHealMessage,
            "Can you teach me more?", L_Teach,
            "Where can I get more lifestones?", L_Lifestones,
            "What do you know about...", L_Question,
            "Goodbye!", L_Bye;
    if (!@has_magic)
        menu
            "Can you heal me?", L_NoHealMessage,
            "What do you know about...", L_Question,
            "Goodbye!", L_Bye;
    goto L_close;

L_Lifestones:
    mes "[Elanore the Healer]";
    mes "\"I always need components for my own healing spells. If you bring me ten gamboge leaves, ten alizarin leaves, ten mauve leaves and ten cobalt leaves, I can make ten lifestones; I will give you half of them.\"";
    next;
    menu
        "OK, I will get them.", L_close,
        "No way!", L_close,
        "Here you are!", L_Trade,
        "Can I make them myself?", L_MakeSelf;

L_Trade:
    if (countitem("MauveHerb") < 10) goto L_Trade_Missing;
    if (countitem("GambogeHerb") < 10) goto L_Trade_Missing;
    if (countitem("AlizarinHerb") < 10) goto L_Trade_Missing;
    if (countitem("CobaltHerb") < 10) goto L_Trade_Missing;
    getinventorylist;
    if (@inventorylist_count == 100 && countitem("Lifestone") == 0
        && countitem("MauveHerb") > 10
        && countitem("GambogeHerb") > 10
        && countitem("AlizarinHerb") > 10
        && countitem("CobaltHerb") > 10) goto L_NoRoom;

    delitem "MauveHerb", 10;
    delitem "GambogeHerb", 10;
    delitem "AlizarinHerb", 10;
    delitem "CobaltHerb", 10;
    getitem "Lifestone", 5;
    getexp 200, 1;
    mes "[Elanore the Healer]";
    mes "Elanore carefully goes over your leaves, then smiles.";
    mes "\"These will do just fine.\"";
    mes "She picks up all fourty and presses them together in her hands, then whispers something.";
    next;
    mes "[Elanore the Healer]";
    mes "As she opens her hands again, the leaves have turned into ten golden crystals.";
    mes "\"Five for you and five for me.\"";
    mes "She smiles.";
    mes "[200 experience points]";
    goto L_close;

L_NoRoom:
    mes "[Elanore the Healer]";
    mes "\"Oh... it seems that you have no room for the lifestones. But please do come back later when you have made a little space.\"";
    goto L_close;

L_Trade_Missing:
    mes "[Elanore the Healer]";
    mes "Elanore counts the leaves you show her.";
    mes "\"No, I am sorry. Please bring me ten leaves each of gamboge, alizarin, mauve, and cobalt.\"";
    goto L_close;

L_MakeSelf:
    mes "[Elanore the Healer]";
    if (@has_magic < 2) goto L_MakeSelf_no;
    goto L_MakeSelf_yes;

L_MakeSelf_yes:
    mes "\"Oh, but of course!  You are powerful enough to make your own lifestones, using the enchantment '" + get(.invocation$, "enchant-lifestone") + "'. This will consume a bug leg or a maggot slime or one of each of the four healing herbs, though.\"";
    goto L_close;

L_MakeSelf_no:
    mes "\"No, you are not powerful enough yet. Please come back and ask me again when you have learned to control more powerful magic, though!\"";
    goto L_close;

L_Teach:
    if (@Q_status == @STATUS_INITIAL) goto L_T_Initial;
    if (@Q_status == @STATUS_LEARNED_LIGHT_HEAL) goto L_T_ChkAdvTo2;
    if (@Q_status == @STATUS_MASTERED_LIGHT_HEAL) goto L_T_ChkAdvToLOH;
    if (@Q_status == @STATUS_LEARNED_LAY_ON_HANDS) goto L_T_Explain3;
    if (@Q_status == @STATUS_WAITING_FOR_KADIYA) goto L_T_ChkAdvTo3;
    if (@Q_status == @STATUS_READY_TO_LEARN_CURE_POISON) goto L_T_CurePosion;
    if (@Q_status == @STATUS_LEARNED_CURE_POISON) goto L_T_dunno;

    mes "[Elanore the Healer]";
    mes "\"You have made good progress, but you lack the magical power to advance further. Also, I would like to observe you some more to be certain that you will make a good healer.\"";
    goto L_close;

L_T_Initial:
    mes "[Elanore the Healer]";
    mes "\"I will only teach you magic of the school of Life, and that only if you prove yourself to be a good healer – that is, if you use your powers to help others.\"";
    mes "She hesistates.";
    next;
    mes "[Elanore the Healer]";
    mes "\"I don't know you very well, but I don't think that there is any harm in teaching you a simple spell.\"";
    mes "She reaches inside her satchel and pulls out a piece of crystal, glittering in the sun.";
    mes "\"This here is a lifestone, life energy encased in a crystal shell. You will need it for most healing magic.\"";
    next;
    mes "[Elanore the Healer]";
    mes "\"To heal someone, first locate the injury. As a beginner, you have to touch the wound; with practice, it will be enough to think about it. Hold the lifestone in one hand, touching the wound with the other.\"";
    mes "\"Then say, '" + get(.invocation$, "lesser-heal") + "', followed by the name of the one you wish to heal.\"";
    next;
    mes "[Elanore the Healer]";
    mes "\"You might want to write that down, actually. In fact, you might want to make sure to keep notes of all spells you hear, for you never know if you will hear them again!\"";
    mes "\"The invocation was '" + get(.invocation$, "lesser-heal") + "'.\"";
    next;
    mes "[Elanore the Healer]";
    mes "\"This will only cure cuts and bruises, though, and it will take some time to take effect. It will be useless to mend broken bones or more severe injuries!\"";
    mes "\"To heal yourself, it's enough to just say '" + get(.invocation$, "lesser-heal") + "' by itself.\"";
    next;
    mes "[Elanore the Healer]";
    mes "\"Let me give you a lifestone to get started with.\"";
    next;
    getinventorylist;
    if ((@inventorylist_count == 100) && (countitem("Lifestone") == 0)) goto L_T_Initial_Noroom;
    getitem "Lifestone", 1;
    @Q_status = @STATUS_LEARNED_LIGHT_HEAL;
    callsub S_Update_Var;

    mes "[Elanore the Healer]";
    mes "Elanore hands you the crystal.";
    mes "\"Here you are. I hope that it will allow you to do good!\"";
    goto L_close;

L_T_Initial_Noroom:
    mes "[Elanore the Healer]";
    mes "\"Oh... you managed to put things into every little nook and pocket, haven't you?  Well, come back later, I will give it to you then.\"";
    goto L_close;

L_T_ChkAdvTo2:
    mes "[Elanore the Healer]";
    if (@Q_heal_exp < 20) goto L_T_ChkAdvTo2_fail;
    mes "Elanore smiles at you.";
    mes "\"From what I have been hearing, you seem to be doing well on your way to becoming a healer. I have decided to accept you as a student of the School of Life Magic.\"";
    next;
    if (getskilllv(SKILL_MAGIC) < 2) goto L_T_AdvTo2_warn;
    goto L_T_AdvTo2_skip;

L_T_AdvTo2_warn:
    mes "[Elanore the Healer]";
    mes "\"But be warned:  you won't be able to use advanced healing magic until you are more capable in your regular magic usage.\"";
    next;
    goto L_T_AdvTo2_skip;

L_T_AdvTo2_skip:
    mes "[Elanore the Healer]";
    mes "\"Please stand still.\"";
    mes "She walks up to you, holds your shoulders, and smiles at you.";
    next;
    mes "[Elanore the Healer]";
    mes "Then, she rises up on her tiptoes and kisses you on your forehead.";
    next;
    mes "[Elanore the Healer]";
    mes "You feel a strange, tingling kind of warmth spread through your body.";
    @Q_status = @STATUS_MASTERED_LIGHT_HEAL;
    callsub S_Update_Var;
    @SUP_xp = 5000;
    @SUP_lvl = 2;
    callfunc "SkillUp";
    goto L_close;

L_T_ChkAdvTo2_fail:
    mes "\"I think I would like to observe you for a little longer to see if you would make a good healer.\"";
    if (@Q_heal_exp < 5)
        mes "\"You are still at the beginning of your path, but do keep practicing.\"";
    if ((@Q_heal_exp >= 5) && (@Q_heal_exp < 15))
        mes "\"You are making progress, but you still need more practice.\"";
    if (@Q_heal_exp >= 15)
        mes "\"You have made good progress, but please do continue in your efforts.\"";
    goto L_close;

L_T_ChkAdvToLOH:
    if (getskilllv(SKILL_MAGIC) < 2) goto L_T_LOH_adv_abort0;
    if (@Q_heal_exp < 30) goto L_T_LOH_adv_abort1;

    mes "[Elanore the Healer]";
    mes "\"I will now teach you how to heal by laying on your hands. The technique is similar to the spell I taught you at the beginning, but this time you transfer your own health instead of drawing health from a lifestone.\"";
    next;
    mes "[Elanore the Healer]";
    mes "\"First, lay your hand on the person you wish to heal. You needn't touch the injury itself, though you have to touch the skin until you are a little more experienced. Then, medidate on the word '" + get(.invocation$, "lay-on-hands") + "'\"";
    next;
    mes "[Elanore the Healer]";
    mes "\"This will let your own life force flow into the person you are healing. If you are badly injured yourself, you will not be able to do this.\"";
    mes "[1000 experience points]";
    getexp 1000, 0;
    @Q_status = @STATUS_LEARNED_LAY_ON_HANDS;
    callsub S_Update_Var;
    goto L_close;

L_T_LOH_adv_abort0:
    mes "[Elanore the Healer]";
    mes "\"You don't have enough magical power to learn the next healing spell yet.\"";
    goto L_close;

L_T_LOH_adv_abort1:
    mes "[Elanore the Healer]";
    mes "\"I'm sorry, but I am not yet convinced that you are a good enough healer. Please continue in your endeavours.\"";
    goto L_close;

L_T_Explain3:
    if (getskilllv(SKILL_MAGIC) < 3) goto L_T_Explain3_abort;
    if (@Q_heal_exp < 50) goto L_T_Explain3_fail;

    mes "[Elanore the Healer]";
    mes "Elanore smiles.";
    mes "\"You seem to be ready to advance as a healer. There is one favour I must ask of you first, though.\"";
    set QUEST_MAGIC2, (QUEST_MAGIC2 & ~(NIBBLE_3_MASK)); // Initialise Kadiya quest
    @Q_status = @STATUS_WAITING_FOR_KADIYA;
    callsub S_Update_Var;
    next;

    mes "[Elanore the Healer]";
    mes "\"There is a man here in Tulimshar with a beautiful young daughter; his name is Omar, and his daughter's name is Kadiya.\"";
    mes "\"Once, when I was a young apprentice, I made a mistake treating Omar. Ever since, he no longer trusts me.\"";
    next;

    mes "[Elanore the Healer]";
    mes "\"But his daugher has contracted Mopox, so she needs help. He doesn't trust me, but perhaps he will trust you; you have been helping quite a few people, after all.\"";
    next;
    goto L_3_menu;

L_3_menu:
    menu
        "What should I do?", L_3_what_to_do,
        "Where can I find the sick girl?", L_3_where,
        "How did you mess up?", L_3_messup,
        "I will get started right away.", L_Main,
        "Maybe later.", L_Main;

L_3_what_to_do:
    mes "[Elanore the Healer]";
    mes "\"You will have to brew a Mopox cure potion and give it to her. You should ask Caul to help you, he knows the recipe.\"";
    next;
    mes "[Elanore the Healer]";
    mes "\"First, you will need a concentration potion and an iron potion – together, they will give her her strength back. You also need a lifestone, and a gamboge leaf against the toxins in her body.\"";
    next;
    mes "[Elanore the Healer]";
    mes "\"You then have to add in roots, water, mauve leaves and sulphur powder until the brew is gooey and neither light nor dark. Caul will explain the details to you.\"";
    next;
    mes "[Elanore the Healer]";
    mes "\"There is a transmutation spell to make sulphur powder. If you don't know the magic, perhaps you can ask a transmutation mage to help you with this part.\"";
    next;
    goto L_3_menu;

L_3_messup:
    mes "[Elanore the Healer]";
    mes "\"Ah... well, Omar is a trader, and a frequent traveler. One day he came back from a journey with fleas in his beard and asked me to get rid of them.\"";
    next;
    mes "[Elanore the Healer]";
    mes "\"Unfortunately I used the wrong lotion on the fleas, so instead of being scared away, they grew to enormous proportions and ate up all of his beard.\"";
    next;
    mes "[Elanore the Healer]";
    mes "Elanore blushes.";
    mes "\"Ever since then he hasn't been very trusting towards my skills, and I suppose that I can't blame him. But I don't want poor Kadiya to suffer because of that.\"";
    next;
    goto L_3_menu;

L_3_where:
    mes "[Elanore the Healer]";
    mes "\"Kadiya and Omar live relatively close by. See this corner in the inner city wall east of here?  Turn past it, then go north. It's the second house.\"";
    next;
    goto L_3_menu;

L_T_Explain3_abort:
    mes "[Elanore the Healer]";
    mes "\"I'm sorry, but you lack the magical power to advance.\"";
    goto L_close;

L_T_Explain3_fail:
    mes "[Elanore the Healer]";
    if (@Q_heal_exp < 30)
        mes "\"You seem to have regressed as a healer. This is worrisome; please mend your ways or I will not teach you any further.\"";
    if ((@Q_heal_exp >= 30) && (@Q_heal_exp < 40))
        mes "\"You still need more practice in the art of healing.\"";
    if ((@Q_heal_exp >= 40))
        mes "\"You are doing well, but you need some more practice as a healer first.\"";
    goto L_close;

L_T_ChkAdvTo3:
    callfunc "KadiyaSubquestConsts";

    if (@Q_kadiya_status >= @Q_STATUS_COMPLETED) goto L_T_AdvTo3Ready;

    mes "[Elanore the Healer]";
    mes "\"Please help Kadiya.\"";
    next;
    goto L_3_menu;

L_T_AdvTo3Ready:
    mes "[Elanore the Healer]";
    mes "\"I have heard of what you did. Hiding the potion in her favorite food – that was clever.\"";
    mes "She smiles at you.";
    mes "\"Omar let me have a look at her earlier, and she seems to be recovering. You did very well.";
    next;
    mes "[Elanore the Healer]";
    mes "Elanor turns towards you, rises up on her toes and kisses you on the forehead.";
    next;
    @xp = 30000;
    if (@Q_kadiya_status == @Q_STATUS_COMPLETED_ELANORE)
        @xp = 50000;
    mes "[Elanore the Healer]";
    mes "You feel a strange, tingling kind of warmth spread through your body.";
    mes "[" + @xp + " experience points]";
    mes "[Level 3 in Life Magic]";

    @Q_status = @STATUS_READY_TO_LEARN_CURE_POISON;
    callsub S_Update_Var;
    getexp @xp, 0;
    if (getskilllv(SKILL_MAGIC_LIFE) < 3)
        addtoskill SKILL_MAGIC_LIFE, 3;
    next;

    if (@Q_kadiya_status != @Q_STATUS_COMPLETED_ELANORE) goto L_Main;

    mes "[Elanore the Healer]";
    mes "\"Overall I am impressed by your progress. If you continue as you are doing now, you might become a great healer.\"";
    mes "She hands you a handful of lifestones.";
    mes "\"Please come back soon; there is more that I would like to teach you.\"";
    next;
    MAGIC_FLAGS = MAGIC_FLAGS | MFLAG_ELANORE_OMAR;
    getitem "Lifestone", 20;

    goto L_Main;

L_T_CurePosion:
    mes "[Elanore the Healer]";
    mes "\"Thank you again for your help with Kadiya!\"";
    mes "\"Curing sicknesses is often quite difficult; most of them require complicated potions to be brewed.\"";
    next;
    mes "[Elanore the Healer]";
    mes "\"Fortunately, things are much easier with most poisons. For those we have a simple spell that only requires a Gamboge leaf.\"";
    mes "\"This is the next spell that I would like to teach you.\"";
    next;
    mes "[Elanore the Healer]";
    mes "\"If you would like to cure someone who is poisoned, first rub a Gamboge leaf between your hands. Your hands must be covered in Gamboge liquid for this to work.\"";
    mes "\"Speak the invocation, `" + get(.invocation$, "cure-poison") + "'.\"";
    mes "\"Next, you either touch the poisoned person with your hands, or speak their name. You have to be close for this to work, though.\"";
    next;
    mes "[Elanore the Healer]";
    mes "\"Once again, the invocation is `" + get(.invocation$, "cure-poison") + "'.\"";
    mes "\"Come back again soon; there is another spell I would like to teach you.\"";
    next;
    @Q_status = @STATUS_LEARNED_CURE_POISON;
    callsub S_Update_Var;
    goto L_Main;

L_T_dunno:
    mes "[Elanore the Healer]";
    mes "\"Hmm. I wanted to teach you something, but I've forgotten what it was... please come back later.\"";
    next;
    goto L_Main;

L_Question:
    callfunc "MagicTalkOptionsSetup";
    @ignore = @QQ_ELANORE;
    callfunc "MagicTalkMenu";

    if (@c == 0) goto L_Main;
    if (@c == @QQ_MANASEED) goto L_Q_manaseed;
    if (@c == @QQ_MANAPOTION) goto L_Q_manapotion;
    if (@c == @QQ_WYARA) goto L_Q_wyara;
    if (@c == @QQ_SAGATHA) goto L_Q_sagatha;
    if (@c == @QQ_AULDSBEL) goto L_Q_auldsbel;
    if (@c == @QQ_OLDWIZ) goto L_Q_oldwiz;
    if (@c == @QQ_ASTRALSOUL) goto L_Q_astralsoul;

    mes "[Elanore the Healer]";
    mes "Elanore shakes her head.";
    mes "\"I am sorry, but I don't think that I know anything that would help you.\"";
    next;
    goto L_Main;

L_Q_astralsoul:
    mes "[Elanore the Healer]";
    mes "\"The astral soul skill is one of the most important skills for mages. I learned this focus long time ago. Without that skill your magic is quite useless, isn't it? If the rumors are really true, there is an experienced mage in the Woodlands around Hurnscald.\"";
    next;
    goto L_Main;

L_Q_oldwiz:
    mes "[Elanore the Healer]";
    mes "\"He is a kind old man. He stays mostly with his books and his apprentice, though we have chatted a few times.\"";
    next;
    goto L_Main;

L_Q_manaseed:
    mes "[Elanore the Healer]";
    mes "She smiles.";
    mes "\"If the rumors are true and there really is a Mana Seed, then that would be wonderful news – perhaps we will have a few more healers soon!\"";
    next;
    goto L_Main;

L_Q_manapotion:
    mes "[Elanore the Healer]";
    mes "\"I'm sorry, but I can't help you with that.\"";
    next;
    goto L_Main;

L_Q_wyara:
    mes "[Elanore the Healer]";
    mes "\"Wyara is the Hurnscald town witch. She was also the town healer before the Doctor moved there.\"";
    next;
    goto L_Main;

L_Q_sagatha:
    mes "[Elanore the Healer]";
    mes "\"Oh, I have only met Sagatha once or twice, while collecting herbs. She is a warm and gentle person, but she tries to hide it.\"";
    next;
    goto L_Main;

L_Q_auldsbel:
    mes "[Elanore the Healer]";
    mes "\"Oh, sorry – I don't really know him very well.\"";
    next;
    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);
        sc_end(SC_SLOWPOISON);
    misceffect sfx_magic_life, strcharinfo(0);
    misceffect sfx_magic_life;
    next;
    mes "[Elanore the Healer]";
    mes "\"There you are, right as rain!  Now you take care, all right?\"";
    goto L_close;

L_Bye:
    mes "[Elanore the Healer]";
    mes "\"Goodbye!\"";
    goto L_close;

L_close:
    @Q_MASK = 0;
    @Q_SHIFT = 0;
    @has_magic = 0;
    @Q_STATUS_MAX = 0;
    @Q_heal_exp = 0;
    @Q_status = 0;
    @SUP_id = 0;
    @SUP_name$ = "";
    @ignore = 0;
    @STATUS_LEARNED_LIGHT_HEAL = 0;
    @STATUS_MASTERED_LIGHT_HEAL = 0;
    @STATUS_LEARNED_LAY_ON_HANDS = 0;
    @STATUS_WAITING_FOR_KADIYA = 0;
    @STATUS_READY_TO_LEARN_CURE_POISON = 0;
    @STATUS_LEARNED_CURE_POISON = 0;
    @temp = 0;
    @xp = 0;
    close;

S_Update_Var:
    QUEST_MAGIC2 = (QUEST_MAGIC2 & ~(@Q_MASK) | (@Q_status << @Q_SHIFT));
    return;
}