summaryrefslogtreecommitdiff
path: root/npc/008-1/rossy.txt
blob: f0acfa6772b9f50ed1af6ea2cdac591af22dab26 (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
// The Mana World scripts.
// Author:
//    Jesusalva
// Description:
//    Daughter of Olana and sister of Juliet. PLACEHOLDER SPRITE

008-1,62,220,0	script	Rossy	NPC_TANISHA,{
    function rossyFirstmet;
    function rossyBasket;
    function rossyLetter;
    function rossyPotionList;
    function rossyPotionDone;
    function rossyDeliverRoses;
    function rossyDeliverTulip;
    function rossyJulietIntro;
    .@q=getq(HurnscaldQuests_Rossy);
    mesn;
    mesq l("Hello, wanderer.");
    switch (.@q) {
    case 1:
        rossyFirstmet();
        break;
    case 3:
        rossyBasket();
        break;
    case 6:
        rossyLetter();
        break;
    case 7:
        rossyPotionList();
        break;
    case 8:
        mesn;
        mesq l("What, you still have my potion with you??");
        next;
        mesn;
        mesq l("Could you please deliver it to %s in the magic academy? He is the head of alchemy.", b("David"));
        break;
    case 9:
    case 10:
        rossyPotionDone();
        break;
    case 11:
        rossyDeliverRoses();
        break;
    case 13:
        rossyDeliverTulip();
        break;
    case 14:
        mesn;
        mesq l("Go and tell my mother that she is the nicest mother in the world.");
        next;
        select
            l("Right on it."),
            l("Did you find your sister? I am starting to get worried too.");
        mes "";
        if (@menu == 2) {
            mesn;
            if (BaseLevel < .minLevel_rescue)
                mesq l("I think I have an idea where Juliet might be. Come back in a few levels, and I will tell you if she is ok.");
            else
                mesq l("I think I have an idea where she might be. Come back in a few minutes, I will tell you if she is ok.");
        }
        break;
    case 15:
        rossyJulietIntro();
        break;
    case 16:
        mesn;
        mesq l("Oh no! Juliet ... why would you go to that scary place? ... Please help her, %s!", strcharinfo(0));
        mesc l("The cave is %s", b(l("Northwest of here.")));
        break;
    case 17:
        mesn;
        mesq l("Hey %s!", strcharinfo(0));
        next;
        mesn;
        mesq l("Thanks for finding Juliet again. I'm so relieved!");
        next;
        mesn;
        mesq l("...I still wonder what was that thing Juliet was running from... Hm? Nothing! Just thinking out loud.");
        break;
    // Default messages
    case 12:
        mesc l("Achooo!");
        // FALLTHROUGH
    default:
        mesn;
        mesq l("I'm being lazy right now, so please %s", any(
            l("don't tell devs I'm slacking off again."),
            l("tell my mother there is no reason to worry."),
            l("don't worry with me.")
        ));
    }
    close;

function rossyFirstmet {
    mesc l("A young girl looks at you in tears.");
    next;
    select
        l("Hey there... Why are you crying? Are you hurt?"),
        l("Sorry kid, I don't have time to play with children.");
    mes "";
    if (@menu == 2)
        return;
    mesn l("Young Girl");
    mesq l("No. I'm crying because I lost all my fruits. My sister and I were collecting some near Dimond's Cove, but then I stumbled on a giant snail and it attacked us!");
    next;
    mesn l("Young Girl");
    mesq l("But we were lucky, because the snail is really slow and we ran away from it. Juliet ran to the left and I ran to the right. The snail got pretty confused, because we are identical twins. The problem is that I dropped the basket full of fruits on the ground and that evil snail ate them all! And now I can't find Juliet to help me collect more fruits.");
    next;
    mesn strcharinfo(0);
    select
        l("Did you say \"Juliet\"? I talked to your mother Olana, She's very worried about you!");
    mes "";
    // You know she is Rossy, so mesn; won't need args anymore
    mesn;
    mesq l("Really? But she let us play in the woods. There's no reason to be worried – unless....");
    next;
    mesn;
    mesc l("Rossy suddenly gets a strange look on her face, mumbling something about Juliet.");
    mesq l("Could you do me a favor? Please, tell my mother that we're alright. There's ... well ... there's no reason to worry about us.");
    next;
    select
        l("Very well, if you say so...."),
        l("Sorry, but I really don't have time for this.");
    mes "";
    if (@menu == 2) {
        mesn;
        mesq l("Then why bother? Weird person...");
        return;
    }
    setq HurnscaldQuests_Rossy, 2;
    mesn;
    mesq l("Thank you very much!");
    return;
}

function rossyBasket {
    mesn;
    mesq l("Hey, that is nice of you to come back. I was thinking about giving a basket full of %s to my mother, to make her happy, you know.", getitemlink(Blueberries));
    next;
    mesn;
    mesq l("But I would need at least %d berries, and it would take ages to get so many by myself!", .blueberries_amount);
    next;
    select
        l("That is no problem for me. Just wait and I will come back with the cherries."),
        l("Ask Juliet, not me."),
        rif(countitem(Blueberries), l("Hey, I have some in my backpack!")),
        l("You should get them yourself.");
    mes "";
    if (@menu == 2) {
        mesn;
        mesq l("Juliet ran to the left, and I'm pretty sure she is doing the same.");
    }
    if (@menu != 3)
        return;
    if (countitem(Blueberries) < .blueberries_amount) {
        mesn;
        mesq l("You do, but that's not enough. I need %d %s.", .blueberries_amount, getitemlink(Blueberries));
    }
    delitem Blueberries, .blueberries_amount;
    quest_xp(.maxLevel, 2000);
    quest_jxp(.maxLevel, 500);
    setq HurnscaldQuests_Rossy, 4;
    // FIXME: Perhaps give player a [Berries Bag] item? Hmm.
    mesn;
    mesq l("I can't believe it! You got all the berries needed! Lemme just wrap them and... done! Please give them to my mother. Tell her that it is a gift from me and Juliet, and that there's no reason to worry about us."); // Lemme = Let me
    next;
    mesn;
    mesc l("%s mumbles to herself.", .name$);
    mesq l("I hope...");
    next;
    mesn;
    mesq l("Oh, and after you give the berries to my mother, please come back here. Err, if you have some free time, of course.");
    return;
}

function rossyLetter {
    mesn;
    mesq l("I'm being lazy right now, so please %s", any(
        l("don't tell devs I'm slacking off again."),
        l("tell my mother there is no reason to worry."),
        l("don't worry with me.")
    ));
    next;
    select
        l("Hocus sent a letter to you."),
        l("Erm, okay.");
    mes "";
    if (@menu == 2)
        return;
    mesn;
    mesq l("The Grandmaster? %%U Lemme read...");
    next;
    mesn;
    mesc l("%s's face suddenly turns pale.", .name$);
    mesq l("Oh no! I completely forgot. The exam! Dang, I knew I should not have picked Alchemy for study...");
    next;
    mesn;
    mesc l("%s looks at you with beady eyes.", .name$);
    mesq l("I haven't found Juliet yet, and I don't even have any of the ingredients required. Could you get them for me? Pretty please? %%J");
    next;
    select
        l("Alright, tell me what I must get."),
        l("Your cute face will not convince me - Your test, your responsibility.");
    mes "";
    if (@menu == 2) {
        mesn;
        mesq l("Yes, I know. I really should have started it earlier... But I can't look for Juliet AND get the ingredients at the same time. Some of them are only found in Tulimshar.");
        next;
        mesn;
        mesq l("You don't even know how Juliet looks. Please come back if you reconsider. Please. Juliet could be being eaten by a creature, as we speak. %%i");
        return;
    }
    setq HurnscaldQuests_Rossy, 7, 0;
    mesn;
    mesq l("Excellent! So, as for the materials I need to brew the potion...");
    next;
    rossyPotionList();
    return;
}

function rossyPotionList {
    .@t=getq2(HurnscaldQuests_Rossy);
    // Potion submitted
    if (.@t) {
        // Finished!
        if (.@t < gettimetick(2)) {
            // Yay
            mesn;
            mesq l("I'm done! Thanks for the help. It is just the shade of blue I wanted.");
            next;
            mesn;
            mesq l("Could you please deliver it to %s in the magic academy? He is the head of alchemy.", b("David"));
            setq HurnscaldQuests_Rossy, 8, 0;
        } else {
            // Brewing
            mesn;
            mesq l("Please be patient... I'll be done in %s.", FuzzyTime(.@t));
        }
        return;
    }

    // Potion not yet finished
    //mesf("- %d/%d %s", countitem(CactusDrink), 24, getitemlink(CactusDrink));
    mesf("- %d/%d %s", countitem(MaggotSlime), 32, getitemlink(MaggotSlime));
    mesf("- %d/%d %s", countitem(GambogeHerb), 50, getitemlink(GambogeHerb));
    mesf("- %d/%d %s", countitem(AlizarinHerb), 43, getitemlink(AlizarinHerb));
    mesf("- %d/%d %s", countitem(BugLeg), 30, getitemlink(BugLeg));
    mesf("- %d/%d %s", countitem(Pearl), 1, getitemlink(Pearl));
    next;
    mesn;
    mesq l("Do you have these materials with you?");
    next;
    select
        l("Not yet."),
        l("Yes, here they are!"),
        l("No, but I'll be right back.");
    mes "";
    if (@menu != 2)
        return;
    if (countitem(MaggotSlime) < 32 ||
        countitem(GambogeHerb) < 50 ||
        countitem(AlizarinHerb) < 43 ||
        countitem(BugLeg) < 30 ||
        //countitem(CactusDrink) < 24 ||
        countitem(Pearl) < 1) {
        mesn;
        mesq l("You would lie to a poor, small, frail girl like me? %%S");
        next;
        mesn;
        mesq l("Don't you think that to be very coward on your part?");
        return;
    }
    //delitem CactusDrink, 24;
    delitem MaggotSlime, 32;
    delitem GambogeHerb, 50;
    delitem AlizarinHerb, 43;
    delitem BugLeg, 30;
    delitem Pearl, 1;
    setq2 HurnscaldQuests_Rossy, gettimetick(2)+900;
    mesn;
    mesq l("Perfect! Please allow me some time to brew this potion. It should be ready in 15 minutes or so.");
    return;
}

function rossyPotionDone {
    mesn;
    mesq l("So... How did it go?");
    next;
    select
        l("David said it was \"okay-ish\"."),
        l("David said he would grade it later, but you had nothing to worry about.");
    mes "";
    if (@menu == 1) {
        mesn;
        mesq l("That's a relief. Okay-ish is actually a pretty good grade in the Academy.");
        next;
    }
    mesn;
    mesq l("Could you please tell my mother about that? She is already worried with Juliet and me, no need to have her worried about the exam as well.");
    compareandsetq HurnscaldQuests_Rossy, 9, 10;
    return;
}

function rossyDeliverRoses {
    if (countitem(ARedRose) < 15) {
        mesn;
        mesq l("Hello %s.", strcharinfo(0));
        return;
    }
    select
        l("Your mother was so happy that she asked me to bring you these flowers.");
    mes "";
    delitem ARedRose, 15;
    setq HurnscaldQuests_Rossy, 12;
    mesn;
    mesq l("How nice!");
    next;
    mesn;
    mesc l("Rossy takes the flowers from your hands and suddenly throws them on the ground. She begins sneezing.");
    next;
    select
        l("I presume you don't like roses, right?"),
        l("Are you feeling well?");
    mes "";
    mesn;
    mesq l("I am allergic to roses; my mother should already know that!");
    next;
    mesn strcharinfo(0);
    mesc l("Maybe we should talk to Olana about this.");
    return;
}

function rossyDeliverTulip {
    if (countitem(ARedTulip) < 15) {
        mesc l("Achooo!");
        mesn;
        mesq l("I'm being lazy right now, so please %s", any(
            l("don't tell devs I'm slacking off again."),
            l("tell my mother there is no reason to worry."),
            l("don't worry with me.")
        ));
        return;
    }
    select
        l("Your mother is sorry about the roses. Here are some beautiful red tulips instead.");
    mes "";
    delitem ARedTulip, 15;
    setq HurnscaldQuests_Rossy, 14;
    quest_xp(.maxLevel, 2500);
    quest_jxp(.maxLevel, 250);
    mesn;
    mesq l("That's better! Go and tell my mother that she is the nicest mother in the world.");
    next;
    mesn;
    mesq l("However... Now I should really find my sister. Come back later.");
    return;
}

function rossyJulietIntro {
    if (BaseLevel < .minLevel_rescue) {
        mesn;
        mesq l("I think I have an idea where Juliet might be. Come back in a few levels, and I will tell you if she is ok.");
        return;
    }
    mesn;
    mesq l("%s, you have to help me! I saw Juliet, but something was wrong!!", strcharinfo(0));
    next;
    select
        l("Calm down and tell me what happened.");
    mes "";
    mesn;
    mesq l("No time for that! She was running away from something and entered a cave not far from here. I heard her scream. Please, can you enter the cave and save her? I'm so scared!");
    next;
    mesc l("%s is too distressed to be of any help. It might be a better idea to go inside the cave and look for Juliet.", .name$);
    mesc l("The cave is %s", b(l("Northwest of here.")));
    setq HurnscaldQuests_Rossy, 16;
    return;
}

OnInit:
    .distance = 4;

    // Quest conf
    .blueberries_amount=30;
    .minLevel_rescue = 60;
    .maxLevel = 90;
    end;
}