summaryrefslogblamecommitdiff
path: root/npc/026-2/innkeeper.txt
blob: 11285951c13b5f7f4633ae8064556dd5b79e0156 (plain) (tree)
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








































































































































































































































































































































































































































































                                                                                                                                                                                                                                                                                                                                                                  
026-2,35,84,0	script	Reid's Ghost	NPC315,{
    @Graveyard_Inn_MASK = NIBBLE_0_MASK;
    @Graveyard_Inn_SHIFT = NIBBLE_0_SHIFT;

    @state = ((QUEST_Graveyard_Inn & @Graveyard_Inn_MASK) >> @Graveyard_Inn_SHIFT);

    @Graveyard_Inn_Lover_MASK = NIBBLE_1_MASK;
    @Graveyard_Inn_Lover_SHIFT = NIBBLE_1_SHIFT;

    @lover = ((QUEST_Graveyard_Inn & @Graveyard_Inn_Lover_MASK) >> @Graveyard_Inn_Lover_SHIFT);

    @Graveyard_Inn_Kid_MASK = NIBBLE_2_MASK;
    @Graveyard_Inn_Kid_SHIFT = NIBBLE_2_SHIFT;

    @kidstate = ((QUEST_Graveyard_Inn & @Graveyard_Inn_Kid_MASK) >> @Graveyard_Inn_Kid_SHIFT);

    @Graveyard_Inn_Husband_MASK = NIBBLE_3_MASK;
    @Graveyard_Inn_Husband_SHIFT = NIBBLE_3_SHIFT;

    @husband = ((QUEST_Graveyard_Inn & @Graveyard_Inn_Husband_MASK) >> @Graveyard_Inn_Husband_SHIFT);

    @Graveyard_Inn_Golbanez_MASK = NIBBLE_4_MASK;
    @Graveyard_Inn_Golbanez_SHIFT = NIBBLE_4_SHIFT;

    @golbanez = ((QUEST_Graveyard_Inn & @Graveyard_Inn_Golbanez_MASK) >> @Graveyard_Inn_Golbanez_SHIFT);

    @minLevel = 85;
    @YETI_TEAR_AMOUNT = 15;
    @YETI_TEAR_EXP = 100000;
    set @DIAMOND_AMOUNT, 20; // caution, this value needs to be the same as in the lovers script!
    set @RUBY_AMOUNT, 25; // caution, this value needs to be the same as in the husbands script!

    if (@state >= 11) goto L_Happy;
    if (@state == 10) goto L_Thanks;
    if ((@state == 8) || (@state == 9)) goto L_Sorry;
    if (@state == 7) goto L_Savaric;
    if (@state == 6) goto L_Read_Diary;
    if (@state == 5) goto L_Check_Kid;
    if (@state == 4) goto L_Ask_Life;
    if (@state == 3) goto L_Bring_Tears;
    if (@state == 2) goto L_Offer_Help2;
    if (@state == 1) goto L_After_Welcome;

    mes "You see a dead woman lying on the floor and something that appears to be her ghost floating above her dead body.";
    next;
    mes "[Ghost]";
    mes "\"He- I - What - Oh -\"";
    mes "The womans ghost seems to be confused.";
    next;
    mes "[Ghost]";
    mes "Oh, I'm sorry. Welcome to Reid's Inn. My name is Reid, I am the innkeeper of this wonderful place of leisure. Please enjoy your visit here!";
    next;

    @state = 1;
    callsub S_Update_Mask;

    goto L_Ask_Dead;

L_After_Welcome:
    mes "[Reid's Ghost]";
    mes "\"Please enjoy yourself!\"";
    if (BaseLevel < @minLevel)
            goto L_close;
    goto L_Ask_Dead;

L_Ask_Dead:
    if (BaseLevel < 85)
            goto L_close;

    menu
        "What happened to you?", L_Next,
        "Thank you, I'll surely enjoy my visit.", L_close;

L_Next:
    mes "[Reid's Ghost]";
    mes "\"What happened to me? What do you mean?\"";
    menu
        "Ahm, you don't look very well - actually, you look dead.",L_Next1,
        "You don't seem to be in the best condition.",L_Next1,
        "You are dead!",L_Next1;

L_Next1:
    mes "Reid looks down at her body and turns even more pale, if this is possible.";
    next;
    mes "[Reid's Ghost]";
    mes "\"OH?\"";
    next;
    menu
        "I'm sorry. I didn't know you weren't aware of that.",L_Next2,
        "Yes - do you understand my question now?",L_Next2,
        "Shall I help you to find out what happened to you?", L_Offer_Help1;

L_Next2:
    mes "[Reid's Ghost]";
    mes "\"I'm dead? But why? And why am I still here?\"";
    next;
    mes "She stares into space and doesn't seem to notice you anymore.";
    @state = 2;
    callsub S_Update_Mask;
    goto L_close;

L_Offer_Help2:
    mes "Reid's Ghost is still staring into space.";

    if (@kidstate == 5)
        menu
            "Shall I help you to find out what happened to you?", L_Offer_Help1,
            "Hi. I found this in the main hall. Do you know to whom it belongs?", L_Ring,
            "I don't want to bother you.", L_close;
    goto L_Skip1;

L_Skip1:
    menu
        "Shall I help you to find out what happened to you?", L_Offer_Help1,
        "I don't want to bother you.", L_close;

L_Offer_Help1:
    mes "\"I.. I don't know you. Why should you help me?\"";
    next;
    mes "\"Bring me proof that you are serious. My life seems to have ended in a terrible and sad way, I can see it very clearly. If you want to help me, please bring me something that represents this immeasurable sadness I am feeling!\"";

    @state = 3;
    callsub S_Update_Mask;
    goto L_close;

L_Bring_Tears:
    mes "[Reid's Ghost]";
    mes "\"Did you find something that can represent my sadness?\"";
    next;

    if ((@kidstate == 5)
        && countitem("FrozenYetiTear") > 0)
            menu
                "I found this frozen tear to represent your sadness.", L_Check_Tears,
                "Hi. I found this in the main hall. Do you know to whom it belongs?", L_Ring,
                "I'm still searching.", L_close;
    if (@kidstate == 5)
        menu
            "Hi. I found this in the main hall. Do you know to whom it belongs?", L_Ring,
            "I'm still searching.", L_close;
    if (countitem("FrozenYetiTear") > 0)
        menu
            "I found this frozen tear to represent your sadness.", L_Check_Tears,
            "I'm still searching.", L_close;
    mes "\"You didn't? It seems you're not serious with your offer to help me.\"";
    goto L_close;

L_Check_Tears:
    if (countitem("FrozenYetiTear") < @YETI_TEAR_AMOUNT)
        goto L_Not_Enough_Tears;
    delitem "FrozenYetiTear", @YETI_TEAR_AMOUNT;

    getexp @YETI_TEAR_EXP, 0;

    @state = 4;
    callsub S_Update_Mask;

    mes "[Reid's Ghost]";
    mes "\"These tears.. how they shimmer in the candle light. Yes, it seems you are serious about your offer. I think maybe you have the sensibility to help me find out the real meaning behind this terrible feeling.\"";
    next;
    goto L_Ask_Life;

L_Ask_Life:
    mes "[Reid's Ghost]";
    mes "\"But how do you plan to help me?\"";
    next;

    if (@kidstate == 5)
        menu
            "Please tell me about your life. Maybe this will give us a clue about what happened.",L_Skip2,
            "Hi. I found this in the main hall. Do you know to whom it belongs?", L_Ring,
            "I need to think about that.", L_close;
    goto L_Skip2;

L_Skip2:
    menu
        "Please tell me about your life. Maybe this will give us a clue about what happened.",L_Next4,
        "I need to think about that.", L_close;

L_Next4:
    mes "[Reid's Ghost]";
    mes "\"About my life? Well, ok.\"";
    next;
    mes "\"I'm the owner of this inn. I inherited it from my parents, who ran it while I was a child.\"";
    next;
    mes "\"My father - he was a very joyful man. But one day, when I was just ten years old, he had an accident while carrying a barrel of beer.\"";
    next;
    mes "\"The barrel smashed his legs and he wasn't able to walk anymore. He got very despondent about that and started to drink.\"";
    next;
    mes "\"My mother and I didn't know how to cheer him up, and he wouldn't listen to us. My mother tried her best to keep the inn running and I tried my best to help her, even though I was still a child.\"";
    next;
    mes "\"But a few years later, my mother lost her will to go on and the inn slowly went down the drain. Everything was dirty and we had less and less patrons.\"";
    next;
    mes "\"I don't blame my mother. She loved my father so much, she couldn't stand to see what was happening to him. When he died because of his drinking, she totally lost her will to live and just lay in bed and followed him.\"";
    next;
    mes "Reid seems to be tortured by her memories.";
    next;
    mes "\"That was a very hard time.\"";
    menu
        "Yes, yes, but what about your life shortly before you died?",L_Next5,
        "I can imagine. I'm very sorry for you",L_Next5;

L_Next5:
    mes "She doesn't seem to pay much attention to what you say.";
    next;
    mes "\"But Hamond, my friend since I was a child, helped me in those bad times. We built up the inn again and we - we married.\"";
    next;
    mes "\"He was so kind and my only light in those dark times. And our little son Aldred gave me back my joy in life.\"";
    next;
    mes "\"Everything was peaceful and I thought I had found my place. But one day -\"";
    next;

    @state = 5;
    callsub S_Update_Mask;
    goto L_Check_Kid;

L_Check_Kid:
    if (@kidstate == 5)
        menu
            "Hi. I found this in the main hall. Do you know to whom it belongs?", L_Ring;

    if (@kidstate < 7)
        goto L_Problem;

    mes "\"What I'm going to tell you is very personal, but your acts have shown me that you're a person I can trust. You kindly asked me about that ring you have found... and also, even my son, who is always so reserved with strangers, came to me and spent a long time telling me a lot of nice things about you. So I will tell you about my sad love.\"";
    next;

    mes "[Reid's Ghost]";
    mes "\"It began as a completely normal day. We were taking care of our overnight guests and preparing the inn for the evening rush.\"";
    next;
    mes "\"But that day, a very special patron checked in. His name was Savaric, and he was a student of magic. He came from far away to check some rumors about a legendary mana seed.\"";
    next;
    mes "Reid's Ghost has a completely enchanted look on her face.";
    next;
    mes "\"He really made me feel alive - when he was near, I was feeling like I never felt before. I started to search for reasons to be near him - I told myself that I liked him just because he was interesting, coming from so far away and being a mage.\"";
    next;
    mes "\"But I was lying to myself.\"";
    next;
    mes "\"I - oh, it is really hard to talk about this. Maybe - yes, I could let you read my diary. I'll give you the key to our rooms.\"";
    next;
    mes "She pulls a key out of her pocket as transparent as herself. As you try to grab it, your fingers just go through it.";
    next;
    mes "[Reid's Ghost]";
    mes "\"I keep forgetting! Please take the key out of my pocket.\"";
    mes "She is pointing at her dead body with a sad look on her face. You take the key.";
    next;
    mes "[Reid's Ghost]";
    mes "\"This is the key to our personal room, it is located at the very end of the corridor upstairs. You will find my diary in the bookshelf, hidden behind a book with poems. Hamond doesn't like poems.\"";
    next;
    mes "\"Please go and read it.\"";

    @state = 6;
    callsub S_Update_Mask;
    goto L_close;

L_Read_Diary:
    mes "[Reid's Ghost]";
    mes "\"Please go into my room and read the diary. You will find my diary in the bookshelf, hidden behind a book with poems.\"";
    goto L_close;

L_Savaric:
    mes "[Reid's Ghost]";
    mes "\"Now you know about my recent past and... and my twisted feelings.\"";
    next;
    menu
        "Yes, I feel very sorry for you.",L_Next6,
        "Savaric seems to be a really hot guy, making you so compliant.",L_Tease;

L_Next6:
    mes "[Reid's Ghost]";
    mes "\"Oh, thank you.\"";
    if (@golbanez < 5)
        menu
            "But I still didn't find out what happened. I'll return when I have news.",L_close;
    menu
        "But I still didn't find out what happened. I'll return when I have news.",L_close,
        "I found out what happened to you and this place. I'll tell you.",L_Next7;

L_Next7:
    mes "You explain to her about Golbenez, Savaric and the memories you have seen.";
    next;
    mes "[Reid's Ghost]";
    mes "\"Oh, I always knew we weren't doing the right thing! But how could we have known it would end like this?\"";
    next;
    mes "\"I would never have expected Hamond to beat me - and Savaric... I trusted him with my life... And he carelessly wasted it. Mine and everyone else in the inn.\"";
    next;
    mes "\"I'm feeling hurt. And confused. Both Hamond and Savaric turned out not to be the persons I believed them to be.\"";
    @state = 8;
    callsub S_Update_Mask;
    goto L_close;

L_Sorry:
    mes "[Reid's Ghost]";
    mes "\"Welcome back.\"";
    if ((@lover == 4)
        && (countitem("Diamond") >= @DIAMOND_AMOUNT)
        && (countitem("Ruby") >= @RUBY_AMOUNT)
        && (@husband == 5))
            menu
                "Savaric asked me to give you something.",L_Diamond,
                "Hamond sent me to bring you this.",L_Ruby,
                "Nevermind.",L_close;
    if (@lover == 4 && (countitem("Diamond") >= @DIAMOND_AMOUNT))
        menu
            "Savaric asked me to give you something.",L_Diamond,
            "Nevermind.",L_close;
    if (@husband == 5 && (countitem("Ruby") >= @RUBY_AMOUNT))
        menu
            "Hamond sent me to bring you this.",L_Ruby,
            "Nevermind.",L_close;
    goto L_close;

L_Diamond:
    if (countitem("Diamond") < @DIAMOND_AMOUNT)
        goto L_Kidding;
    delitem "Diamond", @DIAMOND_AMOUNT;
    mes "You explain how Savaric feels and what the diamonds mean.";
    next;
    mes "[Reid's Ghost]";
    mes "\"Oh Savaric. I just can't be angry at him. Thanks for your help. I'll go to talk with him.\"";
    @lover = 5;
    callsub S_Update_Mask_Lover;
    @state = @state + 1;
    callsub S_Update_Mask;
    goto L_close;

L_Ruby:
    if (countitem("Ruby") < @RUBY_AMOUNT)
        goto L_Kidding;
    delitem "Ruby", @RUBY_AMOUNT;
    mes "You tell her about Hamonds feelings.";
    next;
    mes "[Reid's Ghost]";
    mes "\"I need to talk to him. Thanks for bringing me this.\"";
    @husband = 6;
    callsub S_Update_Mask_Husband;
    @state = @state + 1;
    callsub S_Update_Mask;
    goto L_close;

L_Kidding:
    mes "[Reid's Ghost]";
    mes "\"Are you kidding? You don't have the items you are talking about. This is not funny.\"";
    goto L_Tease;

L_Tease:
    mes "[Reid's Ghost]";
    mes "\"Don't be mean! I never felt like that before.\"";
    goto L_close;

L_Thanks:
    mes "[Reid's Ghost]";
    mes "\"I'm so glad, now I know what happened and spoke to both Savaric and Hamond. Thank you so much. Please take this.\"";
    getinventorylist;
    if (@inventorylist_count == 100)
        goto L_Full_Inv;
    getitem "MylarinDust", 1;
    @state = 11;
    callsub S_Update_Mask;
    next;
    goto L_Mylarin;

L_Mylarin:
    mes "[Reid's Ghost]";
    mes "\"This is called mylarin dust. My mother gave it to me when my father had his accident. She said it is very valuable.\"";
    next;
    mes "\"I'm not sure what it is used for, but I remember her saying something about some special crafting tradition which uses it to make really strong armor.\"";
    next;
    mes "\"Maybe you should try to find someone who can use it.\"";
    goto L_close;

L_Happy:
    mes "[Reid's Ghost]";
    mes "\"Thank you for all you've done.\"";
    menu
        "Can you tell me again about the powder you gave me?",L_Mylarin,
        "I'm glad I could help.",L_close;

L_Not_Enough_Tears:
    mes "[Reid's Ghost]";
    @tears = countitem("FrozenYetiTear");
    if (@tears == 1)
        mes "\"This is beautiful! But one of them isn't enough to represent my sadness.\"";
    if (@tears > 1)
        mes "\"This is beautiful! But " + @tears + " of them aren't enough to represent my sadness.\"";
    goto L_close;

L_Problem:
    mes "[Reid's Ghost]";
    mes "\"What I have to tell is very personal. I'm not sure if I want to tell you. I know you helped me already and showed me you are a sensitive, but I barely know you. I am sorry, but I have to think a little bit more. Maybe later, when I know you better, I can tell you more about it. \"";
    goto L_close;

L_Ring:
    mes "[Reid's Ghost]";
    mes "\"Oh, this - I - it's mine. It was a present from a very precious person.\"";
    next;
    mes "She reaches out to take the ring, but it just go through her fingers. She looks sad.";
    next;
    mes "\"Ah, I forgot again. It pains me not being able to wear it. Please, take it with you, I don't want it anymore. It hurts too much.\"";
    @kidstate = 6;
    callsub S_Update_Mask_Kid;
    goto L_close;

L_Full_Inv:
    mes "[Reid's Ghost]";
    mes "\"Dear, you're carrying so much stuff, you can't take my present. Come back later to take it.\"";
    goto L_close;

L_close:
    @Graveyard_Inn_MASK = 0;
    @Graveyard_Inn_SHIFT = 0;
    @state = 0;
    @Graveyard_Inn_Lover_MASK = 0;
    @Graveyard_Inn_Lover_SHIFT = 0;
    @lover = 0;
    @Graveyard_Inn_Kid_MASK = 0;
    @Graveyard_Inn_Kid_SHIFT = 0;
    @kidstate = 0;
    @Graveyard_Inn_Husband_MASK = 0;
    @Graveyard_Inn_Husband_SHIFT = 0;
    @husband = 0;
    @Graveyard_Inn_Golbanez_MASK = 0;
    @Graveyard_Inn_Golbanez_SHIFT = 0;
    @golbanez = 0;
    @minLevel = 0;
    @YETI_TEAR_AMOUNT = 0;
    @YETI_TEAR_EXP = 0;
    @DIAMOND_AMOUNT = 0;
    @RUBY_AMOUNT = 0;
    @tears = 0;
    close;

S_Update_Mask_Kid:
    set QUEST_Graveyard_Inn,
        (QUEST_Graveyard_Inn & ~(@Graveyard_Inn_Kid_MASK))
            | (@kidstate << @Graveyard_Inn_Kid_SHIFT);
    return;

S_Update_Mask_Husband:
    set QUEST_Graveyard_Inn,
        (QUEST_Graveyard_Inn & ~(@Graveyard_Inn_Husband_MASK))
            | (@husband << @Graveyard_Inn_Husband_SHIFT);
    return;

S_Update_Mask_Lover:
    set QUEST_Graveyard_Inn,
        (QUEST_Graveyard_Inn & ~(@Graveyard_Inn_Lover_MASK))
            | (@lover << @Graveyard_Inn_Lover_SHIFT);
    return;

S_Update_Mask:
    set QUEST_Graveyard_Inn,
        (QUEST_Graveyard_Inn & ~(@Graveyard_Inn_MASK))
            | (@state << @Graveyard_Inn_SHIFT);
    return;
}