summaryrefslogtreecommitdiff
path: root/npc/008-2-24/chef.txt
blob: 37a36d6065b75106a15f6e19fcc83f7d52ce0d0d (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
// The Mana World scripts.
// Author:
//    Jesusalva
// Description:
//    The nameless chef of Dimond's Cove, lover of pickled beets.

008-2-24,30,25,0	script	Chef#Dimond	NPC_CHEF_LEGACY,{
    function deliverFish;
    function useYourHead;
    function reminderReid;
    function recipeBad;
    function reminderBakery;
    function heyDiabetes;
    function reminderSalad;
    function deliverSalad;
    mesn;
    mesq l("I'm too busy right now to talk.");
    // TODO: Kadiya Quest
    // TODO: Pickled Beets Quest
    // (Probably can be mashed together in deliverFish?)
    switch (getq(General_Cooking)) {
    case 3:
        deliverFish();
        break;
    case 4:
        useYourHead();
        break;
    case 5:
    case 6:
    case 7:
    case 8:
    case 9:
        reminderReid();
        break;
    case 10:
        recipeBad();
        break;
    case 11:
    case 12:
    case 13:
        reminderBakery();
        break;
    case 14:
        heyDiabetes();
        break;
    case 15:
    case 16:
        reminderSalad();
        break;
    case 17:
        deliverSalad();
        break;
    }
    close;

function deliverFish {
    next;
    mesn;
    mesq l("If you have any business with me, get it over already.");
    mes "";
    mes "##B" + l("Drag and drop an item from your inventory.") + "##b";

    .@id = requestitem();

    // If ID is invalid
    if (.@id < 1)
        return;

    // If there's not enough items, it is bound, it cannot be traded/dropped/sold, etc.
    if (countitem(.@id) < 2 || checkbound(.@id)) {
        mesc l("You need at least two units of this item for the Chef.");
        close;
    }

    // Now now now, what have you given to the Chef...?
    switch (.@id) {
    case CommonCarp:
    case GrassCarp:
    case Codfish:
    case Tuna:
    case Trout:
    case Salmon:
        mesn;
        mesq l("...I hate you.");
        break;
    // Other Quests
    //case OrangeCupcake:
    //case ChocolateCake:
    // Fun items and Easter Eggs
    //case PickledBeets:
    case Beer:
        mesn;
        mesq l("Wha - I am not a drunkard, and anyone who says that is lying!");
        break;
    case EasterBasket:
        mesn;
        mesq l("Easter event is over, no pickled beets for you!");
        break;
    // Default
    default:
        mesn;
        mesq l("What do you expect me to do with this? GO AWAY!");
        return;
    }
    delitem .@id, 2;
    getexp 1000, 0;
    setq1 General_Cooking, 4;
    next;
    mesn;
    mesq l("I'm tired of cooking fish all the time. I used to bake Orange Cupcakes and pickled beets!");
    next;
    mesn;
    mesq l("But since that damned Oscar stopped supplying me fruits, I'm trapped in fish-cooking.");
    useYourHead();
    return;
}

function useYourHead {
    next;
    mesn;
    mesq l("I'm too busy to cook the %s but I won't teach you the recipe. I still need to make a living after all.", getitemlink(SeafoodPlate));
    next;
    select
        l("There is no solution for your dilemma."),
        l("Maybe if you had a recipe which doesn't needs fruits?"),
        l("Maybe if I convinced Oscar to supply you fruits again?");
    mes "";
    if (@menu == 1) {
        return;
    } else if (@menu == 2) {
        mesn;
        mesq l("Hmpf! It would need to be worth of Dimond's name! I won't accept a lame %s.", getitemlink(SailorStew));
        setq1 General_Cooking, 5;
        reminderReid();
    } else {
        mesn;
        mesq l("Hah! In case you didn't noticed, Oscar is a mage. A rather good one.");
        next;
        mesn;
        mesq l("He, however, used magic to improve his crops, and the Brotherhood got wind of that. Some stuff about \"transgenic\" or whatever.");
        next;
        mesn;
        mesq l("I mean, this is a magical world, isn't it?! That makes no sense. He probably angered some corrupt officer or whatever.");
        next;
        mesn;
        mesq l("Maybe you can help him get back his job and stuff, I think the whole town would thank you for that. But I need some more immediate solution, not empty idealist promises.");
        // TODO: Finish this path so players doesn't have to learn Squirrel Stew
    }
    return;
}

function reminderReid {
    next;
    mesn;
    mesq l("You know what, I've heard the chef from Reid's Inn used to be a great chef when they were alive.");
    next;
    mesn;
    mesq l("Maybe they know some great recipe from the parallel dimensions which doesn't need fruits.");
    next;
    mesn;
    mesq l("Learn and share that with me, and only then, I'll teach you the %s recipe for Yannika.", getitemlink(SeafoodPlate));
    return;
}

/* TODO: “The Cook starts too cook the recipe from Reid's Inn the player gave him but the squirrel he uses is still alive and bites him. He does not want to cook anymore wildlife. Fish stinks, Squirrels bite etc. ... and he does not give away his fish recipe.” */
function recipeBad {
    .@recipe=(getq2(General_Cooking) == CARNIVOROUS ? MoubooStew : SquirrelStew);
    mesn;
    mesq l("You know what, I've heard the chef from Reid's Inn used to be a great chef when they were alive.");
    next;
    mesn;
    mesq l("Maybe they know some great recipe from the parallel dimensions which doesn't need fruits.");
    next;
    mesn;
    mesq l("Learn and share that with me, and only then, I'll teach you the %s recipe for Yannika.", getitemlink(SeafoodPlate));
    next;
    select
        l("He teached me the %s recipe.", getitemname(.@recipe)),
        l("Alright, I'll be right back.");
    mes "";
    if (@menu == 2)
        return;
    mesn;
    mesq l("%s? What is even a %s? Are you trying to poison my customers?!", getitemlink(.@recipe), getitemlink(.@recipe));
    next;
    mesn;
    mesq l("Bah! I should have known better. Of course you would only find weird people in Golbenez's fantasy inn.");
    next;
    mesn;
    mesc l("%s sighs.", .name$);
    mesq l("You know what? Maybe I should make some dessert instead. It is perfect, who doesn't likes desserts, anyway?");
    // Well, Ms. Dimond in Moubootaur Legends, who got overweight maybe...?
    next;
    mesn;
    mesq l("Tulimshar has a great bakery - learn their secrets and share with me something sweet and nice. Go already!");
    setq1 General_Cooking, 11;
    return;
}

function reminderBakery {
    next;
    mesn;
    mesc l("%s sighs.", .name$);
    mesq l("You know what? Maybe I should make some dessert instead. It is perfect, who doesn't likes desserts, anyway?");
    next;
    mesn;
    mesq l("Tulimshar has a great bakery - learn their secrets and share with me something sweet and nice. Go already!");
    return;
}

function heyDiabetes {
    mesn;
    mesq l("%s, where have you been?! I looked for you everywhere in Hurnscald and couldn't find you!", strcharinfo(0));
    next;
    mesn;
    mesq l("I remembered I have diabetes, so I wouldn't be able to taste the food! So sweets might be a bad idea!");
    next;
    mesn;
    mesq l("Also, the doctor told Dimond to lose weight, so salads might be a better choice.");
    next;
    select
        l("WHAT?! I even got a Donut recipe!!"),
        l("Okay... Where can I find salad recipe?"),
        l("Can't you do it yourself?!");
    mes "";
    if (@menu == 3) {
        mesn;
        mesq l("Sure I could, but who wants the %s recipe is you, not me. So get to work!", getitemlink(SeafoodPlate));
        next;
    }
    mesn;
    mesq l("Well, you can bake sweets for yourself, they don't require a Plate anyway. As for salad...");
    next;
    mesn;
    mesq l("I honestly don't know. I mean, we usually export healthy food to Tulimshar; People here aren't so healthy in general.");
    next;
    mesn;
    mesq l("Not sure who in Tulimshar would have money to import that much lettuce and such, but good luck figuring it out!");
    setq1 General_Cooking, 15;
    return;
}

function reminderSalad {
    mesn;
    mesq l("Not sure who in Tulimshar would have money to import that much lettuce and such, but good luck figuring it out!");
    next;
    mesn;
    mesq l("Bring me Salad, the healthiest of all foods!");
    return;
}

function deliverSalad {
    mesn;
    mesq l("What is that...? Salad! You did it!! Give me the recipe!");
    next;
    mesn strcharinfo(0);
    mesc l("You give the recipe to the Chef.");
    next;
    mesn;
    mesq l("Here, I'll now teach you the %s recipe. Don't share it with anyone, and good luck cooking one for Yannika! Yoo-hoo!", getitemlink(SeafoodPlate));
    RECIPES[CraftSeafoodPlate]=true;
    setq1 General_Cooking, 18;
    return;
}

OnInit:
    .bodytype = BODYTYPE_2;
    .distance = 4;
    end;
}