summaryrefslogtreecommitdiff
path: root/world/map/npc/009-2/selim.txt
blob: 92c7aa2e102a0b4955dcc06b8843b1a4f1df435f (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
//#################################################################################
//#                                                                               #
//# This script file contains the script for the cloth dyer.   It has been        #
//# revised to require dye items; collaborating NPCs are Selim and Angus.         #
//#                                                                               #
//#################################################################################

009-2.gat,32,104,0|script|Selim|326,
{
    setarray @all_colours$, "red", "green", "dark blue", "yellow", "light blue", "pink", "black", "orange", "purple", "dark green";

    mes "[Selim]";
    mes "\"What can I dye for you today?\"";
    next;
    goto L_clothes_choice;

L_clothes_choice:
    set @pronoun$, "it";
    set @is_verb$, "is";
    menu
        "Cotton shirt.", L_cottonshirt,
        "V-Neck sweater.", L_vneck,
        "Turtleneck sweater.", L_tneck,
        "Cotton shorts.", L_shorts,
        "Cotton trousers.", L_trousers,
        "Cotton skirt.", L_skirt,
        "Miniskirt.", L_miniskirt,
        "Tank top.", L_tanktop,
        "Short tank top.", L_tanktop_short,
        "Silk robe.", L_robe,
        "Cotton headband.", L_headband,
        "Desert hat.", L_desert_hat,
        "Cotton boots.", L_cottonboots,
        "Cotton gloves.", L_cottongloves,
        "Rabbit ears.", L_rabbitears,
        "Wizard hat.", L_wizardhat,
        "Bowler hat.", L_bowlerhat,
        "Sorcerer robe.", L_sorcererrobe,
        "Bowler hat (brown).", L_bowlerhatbrown,
        "Fine dress.", L_finedress,
        "About these sorcerer robes...", L_asksorcererrobe,
        "I'm fine for now, thanks.", L_Close;

L_cottonshirt:
    set @del, 1202;
    set @new, 2050;
    set @name$, "cotton shirt";
    goto L_picked_item;

L_vneck:
    set @del, 624;
    set @new, 2060;
    set @name$, "V-neck sweater";
    goto L_picked_item;

L_tneck:
    set @del, 564;
    set @new, 2070;
    set @name$, "turtleneck sweater";
    goto L_picked_item;

L_shorts:
    set @del, 586;
    set @new, 2110;
    set @name$, "cotton shorts";
    set @pronoun$, "them";
    set @is_verb$, "are";
    goto L_picked_item;

L_trousers:
    set @del, 648;
    set @new, 2180;
    set @name$, "cotton trousers";
    set @pronoun$, "them";
    set @is_verb$, "are";
    goto L_picked_item;

L_skirt:
    set @del, 632;
    set @new, 2100;
    set @name$, "cotton skirt";
    goto L_picked_item;

L_miniskirt:
    set @del, 771;
    set @new, 2170;
    set @name$, "miniskirt";
    goto L_picked_item;

L_tanktop:
    set @del, 688;
    set @new, 2090;
    set @name$, "tank top";
    goto L_picked_item;

L_tanktop_short:
    set @del, 689;
    set @new, 2120;
    set @name$, "short tank top";
    goto L_picked_item;

L_robe:
    set @del, 720;
    set @new, 2080;
    set @name$, "silk robe";
    goto L_picked_item;

L_headband:
    set @del, 724;
    set @new, 2140;
    set @name$, "cotton headband";
    goto L_picked_item;

L_desert_hat:
    set @del, 723;
    set @new, 2130;
    set @name$, "desert hat";
    goto L_picked_item;

L_cottonboots:
    set @del, 735;
    set @new, 2150;
    set @name$, "cotton boots";
    goto L_picked_item;

L_cottongloves:
    set @del, 741;
    set @new, 2160;
    set @name$, "cotton gloves";
    goto L_picked_item;

L_rabbitears:
    set @del, 1255;
    set @new, 2190;
    set @name$, "rabbit ears";
    set @pronoun$, "them";
    set @is_verb$, "are";
    goto L_picked_item;

L_wizardhat:
    set @del, 4028;
    set @new, 2200;
    set @name$, "wizard hat";
    goto L_picked_item;

L_bowlerhat:
    set @del, 4030;
    set @new, 2210;
    set @name$, "bowler hat";
    goto L_picked_item;

L_sorcererrobe:
    mes "[Selim]";
    mes "\"Which one?\"";
    next;
    menu
        "A red lined one.", L_redlinedsorcererrobe,
        "A green lined one.", L_greenlinedsorcererrobe,
        "A dark blue lined one.", L_darkbluelinedsorcererrobe,
        "A yellow lined one.", L_yellowlinedsorcererrobe,
        "A light blue lined one.", L_lightbluelinedsorcererrobe,
        "A pink lined one.", L_pinklinedsorcererrobe,
        "A black lined one.", L_blacklinedsorcererrobe,
        "An orange lined one.", L_orangelinedsorcererrobe,
        "A purple lined one.", L_purplelinedsorcererrobe,
        "A dark green lined one.", L_darkgreenlinedsorcererrobe,
        "A white lined one.", L_whitelinedsorcererrobe,
        "I'm fine for now, thanks.", L_Close;

L_redlinedsorcererrobe:
    set @del, 798;
    set @new, 2220;
    set @name$, "red lined sorcerer robe";
    goto L_picked_item;

L_greenlinedsorcererrobe:
    set @del, 5010;
    set @new, 5000;
    set @name$, "green lined sorcerer robe";
    goto L_picked_item;

L_darkbluelinedsorcererrobe:
    set @del, 5021;
    set @new, 5011;
    set @name$, "dark blue lined sorcerer robe";
    goto L_picked_item;

L_yellowlinedsorcererrobe:
    set @del, 5032;
    set @new, 5022;
    set @name$, "yellow lined sorcerer robe";
    goto L_picked_item;

L_lightbluelinedsorcererrobe:
    set @del, 5043;
    set @new, 5033;
    set @name$, "light blue lined sorcerer robe";
    goto L_picked_item;

L_pinklinedsorcererrobe:
    set @del, 5054;
    set @new, 5044;
    set @name$, "pink lined sorcerer robe";
    goto L_picked_item;

L_blacklinedsorcererrobe:
    set @del, 5065;
    set @new, 5055;
    set @name$, "black lined sorcerer robe";
    goto L_picked_item;

L_orangelinedsorcererrobe:
    set @del, 5076;
    set @new, 5066;
    set @name$, "orange lined sorcerer robe";
    goto L_picked_item;

L_purplelinedsorcererrobe:
    set @del, 5087;
    set @new, 5077;
    set @name$, "purple lined sorcerer robe";
    goto L_picked_item;

L_darkgreenlinedsorcererrobe:
    set @del, 5098;
    set @new, 5088;
    set @name$, "dark green lined sorcerer robe";
    goto L_picked_item;

L_whitelinedsorcererrobe:
    set @del, 5109;
    set @new, 5099;
    set @name$, "white lined sorcerer robe";
    goto L_picked_item;

L_bowlerhatbrown:
    set @del, 800;
    set @new, 2230;
    set @name$, "bowler hat (brown)";
    goto L_picked_item;

L_finedress:
    set @del, 870;
    set @new, 2240;
    set @name$, "fine dress";
    goto L_picked_item;

L_cottoncloth:
    set @del, 660;
    set @new, 2250;
    set @name$, "cotton cloth";
    goto L_picked_item;

L_asksorcererrobe:
    mes "[Selim]";
    mes "\"Yes?\"";
    next;
    menu
        "Do you think you can dye that line to a different color?", L_Next1;

L_Next1:
    mes "[Selim]";
    mes "\"Hum, I fear I can't do that. The area is too small and I can operate only on large ones.";
    mes "But with the appropriate materials, maybe a talented tailor can make the change.\"";
    next;
    menu
        "Oh, I see!", L_Next;

L_Next:
    mes "[Selim]";
    mes "\"Of course I can help you by dyeing the materials your tailor will want.";
    mes "All I need is a piece of Cotton Cloth.\"";
    menu
        "Sure. Here is one.", L_cottoncloth,
        "I have to go pick that.", L_Close;

L_picked_item:
    if (countitem(@del) == 0) goto L_havenone;
    goto L_colour;

L_colour:
    mes "[Selim]";
    mes "\"Excellent.  Now, what color do you want?\"";
    next;
    menu
        "Red.", L_MenuItems,
        "Green.", L_MenuItems,
        "Dark Blue.", L_MenuItems,
        "Yellow.", L_MenuItems,
        "Light Blue.", L_MenuItems,
        "Pink.", L_MenuItems,
        "Black.", L_MenuItems,
        "Orange.", L_MenuItems,
        "Purple.", L_MenuItems,
        "Dark Green.", L_MenuItems;

L_MenuItems:
    set @colour, @menu - 1;
    set @vial, 690 + @colour;
    if (countitem(@vial) == 0) goto L_no_dye;
    goto L_finish;

L_no_dye:
    mes "[Selim]";
    mes "\"I would love to dye your " + @name$ + " for you, but you will have to bring me some " + @all_colours$[@colour] + " dye first.";
    mes "Those behind me are nearly empty and won't last for your item.\"";
    next;
    menu
        "Sorry, I meant a different color.", L_colour,
        "I wanted to dye a different item anyway.", L_clothes_choice,
        "What do you mean, `bring you dye'?", L_explain_dye,
        "Where would I get dye?", L_explain_dye,
        "Never mind.", L_Close;

L_explain_dye:
    if (QUEST_clothdyer_knowsdye < 1)
        set QUEST_clothdyer_knowsdye, 1;
    mes "[Selim]";
    mes "\"Well, dye is very expensive, and since I don't charge adventurers anything, I can't give you any for free.";
    mes "But most alchemists can make dye; perhaps you can find one around here.\"";
    close;

L_finish:
    if (countitem(@del) == 0)
        goto L_havenone;
    delitem @vial, 1;
    delitem @del, 1;
    getitem @new + @colour, 1;
    mes "[Selim]";
    mes "\"Here " + @is_verb$ + " your " + @all_colours$[@colour] + " " + @name$ + "!  Please let " + @pronoun$ + " dry for a minute before you put " + @pronoun$ + " on.\"";
    close;

L_havenone:
    mes "[Selim]";
    mes "\"You don't have any uncolored " + @name$ + "?  That's unfortunate.";
    mes "Would you like to dye something else?\"";
    next;
    goto L_clothes_choice;

L_Close:
    close;
}