root/npc/quests/juice_maker.txt

Revision 1, 11.5 kB (checked in by jinshiro, 17 years ago)
Line 
1//===== eAthena Script =======================================
2//= Juice Maker Quest
3//===== By: ==================================================
4//= kobra_k88
5//===== Current Version: =====================================
6//= 2,0
7//===== Compatible With: =====================================
8//= eAthena SVN
9//===== Description: =========================================
10//= [Aegis COnversion]
11//= Learn where to turn apples, bananas, carrots, and grapes
12//= into juice.
13//= Condition if done: (MISC_QUEST & 1)
14//===== Additional Comments: =================================
15//= 1.9 Rescripted to Aegis 10.3 standards. [L0ne_W0lf]
16//=     Added tracking variables in, which are unset when complete.
17//= 2.0 Added missing checkweight. [L0ne_W0lf]
18//============================================================
19
20prt_in,49,172,3 script  Marianne#juice  53,{
21        if (MISC_QUEST&1 || morison_meat == 15) {
22                mes "[Housewife Marianne]";
23                mes "Whew...!";
24                mes "Still, he won't eat anything unless it's Meat. But maybe he will eat fruit if it was cut so that it was easy to eat. Like, if it was blended into juice...";
25                next;
26                set mother_marienu,0;
27                set morison_meat,0;
28                set MISC_QUEST,MISC_QUEST | 1;
29                mes "[Housewife Marianne]";
30                mes "Ah! Come to think of it, I heard they were making fruit juice somewhere. Now where was it... Payon Village, or Morroc?";
31                close;
32        }
33        if (mother_marienu == 1) {
34                mes "[Housewife Marianne]";
35                mes "Morrison!! Eat some fruits!! You don't want to become a slobby fat pig when you grow up, do you?";
36                next;
37                if (select("Talk:Cancel") == 1) {
38                        mes "[Housewife Marianne]";
39                        mes "Hm? ...You!";
40                        mes "You're the one who gave, my little Morrison that Meat?! Did you come here thinking I wouldn't know about it?!";
41                        next;
42                        mes "[Housewife Marianne]";
43                        mes "Go away, get out of my house NOW!!";
44                        close;
45                }
46                mes "[Housewife Marianne]";
47                mes "Morrison!! I'm going to be very very mad if you keep doing this!";
48                close;
49        }
50        if (morison_meat > 0) {
51                set mother_marienu,1;
52                mes "[Housewife Marianne]";
53                mes "Oh!!.... This...";
54                mes "what is this...??";
55                mes "How could you do something like this to my boy?!";
56                next;
57                mes "[Housewife Marianne]";
58                mes "Argh! Get out of my house right this instant!";
59                close;
60        }
61        mes "[Housewife Marianne]";
62        mes "Morrison!! Please eat some fruits!! Please~!";
63        next;
64        mes "[Housewife Marinaa]";
65        mes "Sigh~!! Like father, like son...";
66        next;
67        switch(select("Talk:Cancel")) {
68                mes "[Housewife Marianne]";
69                mes "*Sigh*... This is Morrison...";
70                mes "My one and only son.";
71                next;
72                mes "[Housewife Marianne]";
73                mes "But these days, he just won't eat fruits. His face is so dull because he refuses to eat healthy. He just wants to eat Meat. I need to find a way to feed him fruits or vegetables....";
74                close;
75        }
76        mes "[Housewife Marianne]";
77        mes "Morrison!! You're going to be in big trouble if you keep this up!";
78        close;
79}
80
81prt_in,47,173,3 script  Morrison#juice  97,{
82        if (MISC_QUEST&1 || morison_meat == 15) {
83                mes "[Little Morrison]";
84                mes "Bleh... Forget it.";
85                mes "I'm just going to shrivel to death just eating fruits. Don't bother worrying about me .";
86                close;
87        }
88        if (morison_meat > 9) {
89                mes "[Little Morrison]";
90                mes "Ah... so full~";
91                mes "I think I can live now.";
92                mes "You don't have to give me any more Meat. I feel like I'm going to explode if I eat any more.";
93                if (morison_meat == 10) {
94                        next;
95                        set morison_meat,morison_meat+1;
96                        mes "[Little Morrison]";
97                        mes "Oh... and... um.";
98                        mes "Take this.";
99                        next;
100                        mes "[Little Morrison]";
101                        mes "It's a little something I've been saving to eat for later, but since you gave me Meat, I think I can pass on the sweets.";
102                        close;
103                        getitem 529,3; //Candy
104                        getitem 530,1; //Candy_Striper
105                }
106                close;
107        }
108        mes "[Little Morrison]";
109        mes "Agh....Noooo!!!";
110        mes "No, don't make me eat it! I can't bear to taste fruits!";
111        next;
112        if (countitem(517) > 0) {
113                switch(select("Talk:Show the Meat:Cancel")) {
114                case 1:
115                        mes "[Little Morrison]";
116                        mes "Aaaagh!! Once or twice is enough!! I refuse to eat any more fruits! You have to peel them and there's so much juice that it makes you feel icky...";
117                        next;
118                        mes "[Little Morrison]";
119                        mes "And they're all slippery and sour... Even if I eat it, I still feel hungry. Aaaah~! Give me Meat!";
120                        close;
121                case 2:
122                        mes "[Little Morrison]";
123                        mes "Ooh! M-Meaaat~";
124                        mes "Ah... hu...hungry...";
125                        mes "The scent of Meat...";
126                        mes "Excuse me...";
127                        mes "C-can I please have one?";
128                        next;
129                        if (select("Give Meat:Don't Give Meat") == 1) {
130                                delitem 517,1; //Meat
131                                set morison_meat,morison_meat+1;
132                                mes "[Little Morrison]";
133                                mes "Wow~!!! Meat!!";
134                                mes "So yummy!";
135                                mes "Thank you,";
136                                mes "I think I can";
137                                mes "live now.";
138                                mes "*Chew chew*";
139                                close;
140                        }
141                        set morison_meat,15;
142                        mes "[Little Morrison]";
143                        mes "Waah...!";
144                        mes "Fine, I get it now.";
145                        mes "Adults are all the same!";
146                        close;
147                case 3:
148                        mes "[Little Morrison]";
149                        mes "Aaaaah!!! No matter what, I'm not going to eat fruits and vegetables!";
150                        close;
151                }
152        }
153        if (select("Talk:Cancel") == 1) {
154                mes "[Little Morrison]";
155                mes "Aaah!! I can't eat any more fruits!";
156                next;
157                mes "[Little Morrison]";
158                mes "I refuse to eat any more fruits! You have to peel them and there's so much juice that it makes you feel icky...";
159                next;
160                mes "[Little Morrison]";
161                mes "And they're all slippery and sour... Even if I eat it, I still feel hungry.";
162                mes "Aaaah~!";
163                mes "Give me Meat!";
164                close;
165        }
166        mes "[Little Morrison]";
167        mes "Aaaaah!!! No matter what, I'm not going to eat fruits and vegetables!";
168        close;
169}
170
171payon_in03,188,146,5    script  Marx Hansen#juice       86,{
172        if (checkweight(1201,1) == 0) {
173                mes "- Wait a moment! -";
174                mes "- Currently you're carrying -";
175                mes "- too many items with you. -";
176                mes "- Please come back later -";
177                mes "- after you put some items into kafra storage. -";
178                close;
179        }
180        if (MISC_QUEST&1) {
181                mes "[Merchant Marx Hansen]";
182                mes "Welcome.";
183                mes "Did you come to";
184                mes "process fruits as well?";
185                next;
186                switch(select("Make Juice.:Talk and get information about fruit processing.:Cancel.")) {
187                case 1:
188                        mes "[Merchant Marx Hansen]";
189                        mes "What kind of fruit juice would you like to make?";
190                        next;
191                        switch(select("Apple Juice:Banana Juice:Carrot Juice:Grape Juice:Cancel")) {
192                        case 1:
193                                set .@fruit,512;
194                                set .@juice,531;
195                                break;
196                        case 2:
197                                set .@fruit,513;
198                                set .@juice,532;
199                                break;
200                        case 3:
201                                set .@fruit,515;
202                                set .@juice,534;
203                                break;
204                        case 4:
205                                set .@fruit,514;
206                                set .@juice,533;
207                                break;
208                        case 5:
209                                mes "[Merchant Marx Hansen]";
210                                mes "Well then...";
211                                mes "See you next time.";
212                                close;
213                        }
214                        if (countitem(.@fruit) == 0 || countitem(713) == 0 || Zeny < 3) {
215                                mes "[Merchant Marx Hansen]";
216                                mes "Oh no...";
217                                mes "You don't have all the necessary materials. To make Grape Juice, I need 1 Grape and 1 Empty Bottle. I will also need a 3 zeny fee.";
218                                next;
219                                mes "[Merchant Marx Hansen]";
220                                mes "When you have prepared everything, I will blend the fruit to give you delicious juice.";
221                                close;
222                        }
223
224                        mes "[Merchant Marx Hansen]";
225                        mes "How many would you like?";
226                        next;
227                        switch(select("As many as I can.:I want a certain amount.:Cancel.")) {
228                        case 1:
229                                set .@make,countitem(.@fruit);
230                                break;
231                        case 2:
232                                mes "[Merchant Marx Hansen]";
233                                mes "Choose a number less than 100. If you don't want to, put '0'. You can make up to " + countitem(.@fruit) + " bottles of juice.";
234                                next;
235                                while(1) {
236                                        input .@input;
237                                        if (.@input == 0) {
238                                                mes "[Merchant Marx Hansen]";
239                                                mes "Well then...";
240                                                mes "Come again.";
241                                                close;
242                                        }
243                                        else if (.@input > 100) {
244                                                mes "[Merchant Marx Hansen]";
245                                                mes "More than 100 bottles is impossible. Choose a different amount.";
246                                                next;
247                                        }
248                                        else {
249                                                break;
250                                        }
251                                }
252                                set .@make,.@input;
253                                break;
254                        case 3:
255                                mes "[Merchant Marx Hansen]";
256                                mes "Well then...";
257                                mes "Come again.";
258                                close;
259                        }
260
261                        set .@total_zeny,3 * .@make;
262
263                        if (countitem(.@fruit) < .@make || countitem(713) < .@make || Zeny < .@total_zeny) {
264                                mes "[Merchant Marx Hansen]";
265                                mes "Oh no...";
266                                mes "You don't have all the necessary materials. I can't help a situation like this. I guess you collect what you need.";
267                                close;
268                        }
269                        delitem .@fruit,.@make;
270                        delitem 713,.@make;
271                        set zeny,zeny-.@total_zeny;
272                        getitem .@juice,.@make;
273
274                        mes "[Merchant Marx Hansen]";
275                        mes "Here you go! Fresh and delicious juice as promised. It should be very refreshing and palatable.";
276                        next;
277                        mes "[Merchant Marx Hansen]";
278                        mes "Well then...";
279                        mes "Come again.";
280                        close;
281                case 2:
282                        mes "[Merchant Marx Hansen]";
283                        mes "Before humans were able to develop such vast societies, they gathered fruit from trees to survive. Fruits may have been nature's blessing that allowed us to exist in the world.";
284                        next;
285                        mes "[Merchant Marx Hansen]";
286                        mes "Since life became so prosperous, the younger generation seems not to eat fruit any more. So, I started thinking of ways to make fruit easier to eat.";
287                        next;
288                        mes "[Merchant Marx Hansen]";
289                        mes "I realized that when you make fruit juice, it's more convenient to eat and has a much better taste.";
290                        next;
291                        mes "# Fruit Juice Information #";
292                        mes "^CC4E5C- Apple Juice -^000000";
293                        mes "Apple x 1 ea, Empty Bottle x 1 ea, 3 zeny.";
294                        mes "";
295                        mes "^E3CF57- Banana Juice -^000000";
296                        mes "Banana x 1 ea, Empty Bottle x 1 ea, 3 zeny.";
297                        mes "";
298                        mes "^ED9121- Carrot Juice -^000000";
299                        mes "Carrot x 1 ea, Empty Bottle x 1 ea, 3 zeny.";
300                        mes "";
301                        mes "^CC00FF- Grape Juice -^000000";
302                        mes "Grape x 1 ea, Empty Bottle x 1 ea, 3 zeny.";
303                        close;
304                case 3:
305                        mes "[Merchant Marx Hansen]";
306                        mes "Hey!";
307                        mes "If you visit";
308                        mes "somebody, talk to them!";
309                        close;
310                }
311        }
312        else {
313                mes "[Merchant Marx Hansen]";
314                mes "Welcome.";
315                mes "How may I help you?";
316                next;
317                if (select("Talk:Cancel") == 1) {
318                        mes "[Merchant Marx Hansen]";
319                        mes "Before humans were able to develop such vast societies, they gathered fruit from trees to survive. Fruits may have been nature's blessing that allowed us to exist in the world.";
320                        next;
321                        mes "[Merchant Marx Hansen]";
322                        mes "Since life became so prosperous, the younger generation seems not to eat fruit any more. So, I started thinking of ways to make fruit easier to eat.";
323                        next;
324                        mes "[Merchant Marx Hansen]";
325                        mes "I realized that when you make fruit juice, it's more convenient to eat and has a much better taste.";
326                        close;
327                }
328                mes "[Merchant Marx Hansen]";
329                mes "Hey!";
330                mes "If you vist";
331                mes "somebody, talk to them!";
332                close;
333        }
334}
335
336//============================================================
337// Old changelog
338//============================================================
339//= 1.1 fixed input number check [Lupus]
340//= 1.2 fixed misplaced Grape<->Carrot juices [Lupus]
341//= 1.3 added a loopless menu 'as many as possible' [Lupus]
342//= 1.3a Turned the juice making part of the Juicer npc into a
343//= subfunc.  Changed fruit amount needed to 1.[kobra_k88]
344//= Fixed exploits [Lupus]
345//= 1.6 fixed typo (where did @ipnut came from?) [Lance]
346//= 1.8 got rid of vars: 'MEAT',"MARIANNE","MORRISON"
347//=     From now, all common quests start using bits of the
348//=     same variable MISC_QUEST [Lupus]
349//============================================================
Note: See TracBrowser for help on using the browser.