summaryrefslogtreecommitdiff
path: root/npc/020-7-1/pagemakers.txt
blob: 1158b62d6945e378c5fa09431dec737adc335ab7 (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
// TMW2 scripts.
// Authors:
//    Jesusalva
//    TMW Org.
// Description:
//    Workers which produces pages
//    helperM*

// NivalisQuest_BlueSagePagemaker STRUCTURE
//  FIELD 1:
//      MAIN STATE
//  FIELD 2:
//      BOOK MAKING QUEST
//      1 - Illustrations delivered (BS_PMINK)
//      2 - Bindings delivered (BS_PMBINDING)
//      4 - Pages delivered (BS_PMPAGE)
//      8 - Glue delivered (BS_PMGLUE)
//      =15: All items delivered

020-7-1,34,56,0	script	Eevert	NPC_BLUESAGEWORKER_MA,{
    function askQuestion;
    .@qt=getq2(NivalisQuest_BlueSagePagemaker);
    mesn;
    if (.@qt & BS_PMINK)
        mesq l("Thanks for your help with the inks! Now I'll be able to fulfill my tasks adequately. Some of these books were really valuable, and it's important to recreate them as good as possible.");
    else
        mesq l("Mh. I wonder how I'm expected to perform my task with this meager equipment. The new books will look pathetic.");

    // Begin here
    askQuestion();
    .@qt=getq2(NivalisQuest_BlueSagePagemaker);
    mes "";
    mesn;
    mesq l("I'm doing the covers and illustrations for the new books we create from the pieces of the old ones.");
    next;
    mesn;
    mesq l("But due to all of the chaos from when the slimes escaped, most of the phials of colored ink were broken. How am I supposed to do the illustrations without color?");
    next;
    mesn;
    mesq l("I could make ink myself, but I am lacking some material...");
    next;
    mes l("@@/@@ @@", countitem(CobaltHerb),    50, getitemlink(CobaltHerb));
    mes l("@@/@@ @@", countitem(GambogeHerb),   50, getitemlink(GambogeHerb));
    mes l("@@/@@ @@", countitem(AlizarinHerb),  50, getitemlink(AlizarinHerb));
    mes l("@@/@@ @@", countitem(ArtichokeHerb), 50, getitemlink(ArtichokeHerb));
    mes l("@@/@@ @@", countitem(MauveHerb),     50, getitemlink(MauveHerb));
    mes l("@@/@@ @@", countitem(MaggotSlime),   10, getitemlink(MaggotSlime));
    mes l("@@/@@ @@", countitem(DuckFeather),   1, getitemlink(DuckFeather));
    next;
    mesn;
    mesq l("Hehe... Some material... %%5");
    next;
    select
        l("Uh... Yeah, that's not funny."),
        l("Worry not, I have them with me.");
    mes "";
    if (@menu == 1) {
        mesn;
        mesq l("I agree with you. Most of these materials can't even be found on Nivalis.");
        next;
        mesn;
        mesq l("I guess I'll need to try to work with whatever ink is left until the supplies arrive next month...");
        close;
    }
    if (countitem(CobaltHerb)   < 50 ||
        countitem(GambogeHerb)  < 50 ||
        countitem(AlizarinHerb) < 50 ||
        countitem(ArtichokeHerb) < 50 ||
        countitem(MauveHerb)    < 50 ||
        countitem(MaggotSlime)  < 10 ||
        countitem(DuckFeather)  < 1) {
        mesn;
        mesq l("Do you know how to count, maggot? %%5");
        next;
        mesn;
        mesq l("You should be ASHAMED of yourself, you liar.");
        close;
    }
    delitem CobaltHerb,     50;
    delitem GambogeHerb,    50;
    delitem AlizarinHerb,   50;
    delitem ArtichokeHerb,  50;
    delitem MauveHerb,      50;
    delitem MaggotSlime,    10;
    delitem DuckFeather,     1;
    setq2 NivalisQuest_BlueSagePagemaker, .@qt|BS_PMINK;
    getexp 3535, 215; // 20% from references, rounded up. It's part of main story.
    // is present. REMEMBER THIS IS A LEVEL 36/16 QUEST, REGARDLESS IF EVERYONE DECIDES
    // TO DO IT AT LEVEL 40. Exp reward will not change. It's main story, too.
    // Besides, it gives Job Experience, which is not common.
    mesn;
    mesq l("Wonderful! Now I can prepare the ink for magnificent illustrations! You're very generous.");
    close;

function askQuestion {
    .@qs=BSQuestion(getq(NivalisQuest_BlueSage));
    do {
        .@q=getq(NivalisQuest_BlueSage);
        .@qt=getq2(NivalisQuest_BlueSagePagemaker);
        next;
        select
            rif(!(.@qt & BS_PMINK), l("What is your problem?")),
            rif(.@qs & BS_QVISITOR, l("Do you know anything about the strange visitor?")),
            rif(.@qs & BS_QHELPER, l("What's your opinion of Peetu and his work?")),
            any(l("I need to leave."), l("See you."), l("Bye."), l("Not my problem."));
        mes "";
        switch (@menu) {
            case 2:
                mesn;
                mesq l("A visitor? I don't really pay attention to visitors, unless it's someone notable.");
                break;
            case 3:
                mesn;
                mesq l("Ah, Peetu. I really appreciate his sense for high quality work. The requirements to become a helper of a sage are already high, but Peetu is outstanding. He has a talent for magic and combined with his diligence, it's quite remarkable.");
                next;
                mesn;
                mesq l("That's why I'm really confused about this situation, since he was the one performing the sealing of the slimes. I wonder what went wrong.");
                if (is_between(4, 7, .@q))
                    setq1 NivalisQuest_BlueSage, .@q + 3;
                break;
            case 4:
                close;
        }
    } while (@menu != 1);
    return;
}

OnInit:
    .sex=G_MALE;
    .distance=5;
    npcsit;
    end;
}
























020-7-1,44,56,0	script	Janika	NPC_BLUESAGEWORKER_FA,{
    function askQuestion;
    .@qt=getq2(NivalisQuest_BlueSagePagemaker);
    mesn;
    if (.@qt & BS_PMBINDING)
        mesq l("Thanks for the Silk Cocoons. With these the new books are going to be exquisite.");
    else
        mesq l("This is going to be difficult... oh, hello. I'm working on recreating some of the books that were destroyed.");

    // Begin here
    askQuestion();
    .@qt=getq2(NivalisQuest_BlueSagePagemaker);
    mes "";
    mesn;
    mesq l("I need @@/@@ @@ for the book covers and binding of some of the more valuable books we're trying to recreate.", countitem(SilkCocoon), 60, getitemlink(SilkCocoon));
    next;
    mesn;
    mesq l("You wouldn't happen to have them, would you?");
    if (countitem(SilkCocoon) < 60)
        close;
    next;
    if (askyesno() == ASK_NO) {
        mes "";
        mesn;
        mesq l("That's a pity.");
        close;
    }
    mes "";

    delitem SilkCocoon,     60;
    setq2 NivalisQuest_BlueSagePagemaker, .@qt|BS_PMBINDING;
    getexp 3535, 215; // 20% from references, rounded up. It's part of main story.
    // is present. REMEMBER THIS IS A LEVEL 36/16 QUEST, REGARDLESS IF EVERYONE DECIDES
    // TO DO IT AT LEVEL 40. Exp reward will not change. It's main story, too.
    // Besides, it gives Job Experience, which is not common.
    mesn;
    mesq l("Excellent! This is exactly what I need. Thanks a lot. I'll tell Nikolai about your generosity.");
    close;

function askQuestion {
    .@qs=BSQuestion(getq(NivalisQuest_BlueSage));
    do {
        .@q=getq(NivalisQuest_BlueSage);
        .@qt=getq2(NivalisQuest_BlueSagePagemaker);
        next;
        select
            rif(!(.@qt & BS_PMBINDING), l("Can I help you?")),
            rif(.@qs & BS_QVISITOR, l("Do you know anything about the strange visitor?")),
            rif(.@qs & BS_QHELPER, l("What's your opinion of Peetu and his work?")),
            any(l("I need to leave."), l("See you."), l("Bye."), l("Good luck."));
        mes "";
        switch (@menu) {
            case 2:
                mesn;
                mesq l("Oh, I know who you mean! That impertinent person came over in the workshop area and fiddled about with all kinds of things here! Such a rude person! Didn't he understand that we had delicate things going on here? We had to send him back to the library area several times.");
                next;
                mesn;
                mesc l("She shakes her head.");
                mesq l("Sometimes I think it'd be better not to allow visitors here. But Nikolai set a high value on keeping contact with the population. Politics.");
                // It's safe in this context, don't worry
                if (.@q % 3 == 0)
                    setq1 NivalisQuest_BlueSage, .@q + 1;
                break;
            case 3:
                mesn;
                mesq l("Mh, I don't know him closely.");
                break;
            case 4:
                close;
        }
    } while (@menu != 1);
    return;
}
OnInit:
    .sex=G_FEMALE;
    .distance=5;
    end;
}
























020-7-1,45,31,4	script	Kullervo	NPC_BLUESAGEWORKER_MA,{
    npctalk3 l("I make book pages with... something.");
    goodbye;
    end;

OnInit:
    .sex=G_MALE;
    .distance=5;
    npcsit;
    end;
}
























020-7-1,36,31,4	script	Santeri	NPC_BLUESAGEWORKER_MA,{
    function askQuestion;
    .@qt=getq2(NivalisQuest_BlueSagePagemaker);
    mesn;
    if (.@qt & BS_PMGLUE)
        mesq l("Thanks to you, our glue supply is replenished and we can repair those books.");
    else
        mesq l("Welcome. Are you an adventurer? I could use some help.");

    // Begin here
    askQuestion();
    .@qt=getq2(NivalisQuest_BlueSagePagemaker);
    mes "";
    mesn;
    mesq l("You see, we're working on repairing all of the damaged books and creating new ones for those that were lost.");
    next;
    mesn;
    mesq l("Therefore we need a lot of glue, but our supplies are nearly used up. I need @@/@@ @@ as ingredient to make new glue.", countitem(WolvernTooth), 3, getitemlink(WolvernTooth));
    next;
    mesn;
    mesq l("Do you have that? I have the other materials but I couldn't get it... @@ are too dangerous, they are level @@ monsters.", getmonsterlink(Wolvern), strmobinfo(3,Wolvern));
    if (countitem(WolvernTooth) < 3)
        close;
    next;
    if (askyesno() == ASK_NO) {
        mes "";
        mesn;
        mesq l("That's a pity.");
        close;
    }
    mes "";

    delitem SilkCocoon,     60;
    setq2 NivalisQuest_BlueSagePagemaker, .@qt|BS_PMGLUE;
    getexp 3535, 215; // 20% from reference levels 36/16. It's part of main story.
    // Exp reward will not change. It applies to Job Exp on same rate.
    mesn;
    mesq l("Great! Thank you!");
    close;

function askQuestion {
    .@qs=BSQuestion(getq(NivalisQuest_BlueSage));
    do {
        .@q=getq(NivalisQuest_BlueSage);
        .@qt=getq2(NivalisQuest_BlueSagePagemaker);
        next;
        select
            rif(!(.@qt & BS_PMGLUE), any(l("Can I help you?"), l("I am. What heroic action is needed?"))),
            rif(.@qs & BS_QVISITOR, l("Do you know anything about the strange visitor?")),
            rif(.@qs & BS_QHELPER, l("What's your opinion of Peetu and his work?")),
            any(l("I need to leave."), l("See you."), l("Bye."), l("I'm just a lurker."));
        mes "";
        switch (@menu) {
            case 2:
                mesn;
                mesq l("There was a visitor with a mask? I didn't notice. You see, I spend most of my time in the workshop, and concentrate on my work. There are other helpers who attend to the visitors. And hopefully keep them from disturbing my concentration.");
                break;
            case 3:
                mesn;
                mesq l("Oh, that's an interesting question. I was really surprised when I heard that he was responsible for the failure. I've worked together with him before, and I have to say, it really was a pleasure. He's very accurate and diligent, but also polite and helpful.");
                next;
                mesn;
                mesq l("I really wonder what went wrong. I can't imagine Peetu messing up something so important.");
                if (is_between(4, 7, .@q))
                    setq1 NivalisQuest_BlueSage, .@q + 3;
                break;
            case 4:
                mesn;
                mesq l("Hm. Then please don't disturb me, I'm trying to concentrate.");
                close;
        }
    } while (@menu != 1);
    return;
}

OnInit:
    .sex=G_MALE;
    .distance=5;
    end;
}