1 | //===== eAthena Script ======================================= |
---|
2 | //= Quest NPCs related to Lutie |
---|
3 | //===== By: ================================================== |
---|
4 | //= TonyMan & Samuray22 |
---|
5 | //===== Current Version: ===================================== |
---|
6 | //= 1.3b |
---|
7 | //===== Compatible With: ===================================== |
---|
8 | //= eAthena 1.0 |
---|
9 | //===== Description: ========================================= |
---|
10 | //= Blush, Cake Hat, Candle, Chef Hat, Raccoon Hat, Rainbow Eggshell, |
---|
11 | //= Spore Hat, Wonder Nutshell Quests |
---|
12 | //===== Additional Comments: ================================= |
---|
13 | //= 1.1 Optimized [Lupus] |
---|
14 | //= 1.2 Fixed Chef Hat items [Lupus] |
---|
15 | //= 1.3 Update NPC to the Official One. [Samuray22] |
---|
16 | //= 1.3a Changed item names to item IDs. [Samuray22] |
---|
17 | //= 1.3b Removed a scrap " left in a delitem. [L0ne_W0lf] |
---|
18 | //============================================================ |
---|
19 | |
---|
20 | xmas,117,295,3 script Vending Machine Man 704,{ |
---|
21 | mes "[Titicupe]"; |
---|
22 | mes "Ha ha ha ha ha ha"; |
---|
23 | mes "..You arrived"; |
---|
24 | mes "I'm a manager"; |
---|
25 | mes "of toy factory!!"; |
---|
26 | mes "I've opened my eyes"; |
---|
27 | mes "on new business!"; |
---|
28 | next; |
---|
29 | switch(select( "Talk to him about the vending machine", "Items in the vending machine", "Stop talking")) { |
---|
30 | case 1: |
---|
31 | mes "[Titicupe]"; |
---|
32 | mes "Can you see a little snowman"; |
---|
33 | mes "left side of me. can you?"; |
---|
34 | mes "If you look at his mouth cautiously"; |
---|
35 | mes "you can find out"; |
---|
36 | mes "that it was builted to"; |
---|
37 | mes "huge size as it can"; |
---|
38 | next; |
---|
39 | mes "[Titicupe]"; |
---|
40 | mes "swallow any thing."; |
---|
41 | mes ".. feel bad hah?"; |
---|
42 | mes "Try to put your"; |
---|
43 | mes "hand,legs,and even your head inside."; |
---|
44 | mes "Everything goes in."; |
---|
45 | mes "Hohoho . However"; |
---|
46 | next; |
---|
47 | mes "[Titicupe]"; |
---|
48 | mes "this is a"; |
---|
49 | mes "vending machine"; |
---|
50 | mes "which is you can get"; |
---|
51 | mes "fashionable decorating item."; |
---|
52 | mes "You have to provide"; |
---|
53 | mes "some items when you want to get."; |
---|
54 | next; |
---|
55 | mes "[Titicupe]"; |
---|
56 | mes "Pour out to snowman's mouth!!"; |
---|
57 | mes "If you do that"; |
---|
58 | mes "You can get"; |
---|
59 | mes "fancy items wHat"; |
---|
60 | mes "you dreamed for"; |
---|
61 | mes "Ha ha ha ha ha~~~"; |
---|
62 | next; |
---|
63 | goto L_end2; |
---|
64 | case 2: |
---|
65 | mes "[Titicupe]"; |
---|
66 | mes "Ho ho ho ho~"; |
---|
67 | mes "Do you have"; |
---|
68 | mes "any question?"; |
---|
69 | mes "then ask me"; |
---|
70 | mes "I'm genius.ha ha~"; |
---|
71 | next; |
---|
72 | switch( select( "Raccoon Hat", "Spore Hat", "Wonder Nutshell", "Rainbow Egg Shell", "Blush", "Chef Hat", "Candle", "Cake Hat", "Stop talking")) { |
---|
73 | case 1: |
---|
74 | mes "[Titicupe]"; |
---|
75 | mes "Raccoon Hat ?"; |
---|
76 | mes "Kitty Band 1"; |
---|
77 | mes "Dragon Scale 20"; |
---|
78 | mes "Tough Scalelike stem 200"; |
---|
79 | mes "Sea-Otter Fur 300"; |
---|
80 | goto L_end; |
---|
81 | case 2: |
---|
82 | mes "[Titicupe]"; |
---|
83 | mes "Spore Hat ?"; |
---|
84 | mes "Poison Spore 850"; |
---|
85 | mes "Burnt Tree 300"; |
---|
86 | mes "Long Tongue 1"; |
---|
87 | goto L_end; |
---|
88 | case 3: |
---|
89 | mes "[Titicupe]"; |
---|
90 | mes "Wonder Nutshell ?"; |
---|
91 | mes "Fruit Shell 1"; |
---|
92 | mes "Wing of Dragonfly 500"; |
---|
93 | goto L_end; |
---|
94 | case 4: |
---|
95 | mes "[Titicupe]"; |
---|
96 | mes "Rainbow Egg Shell ?"; |
---|
97 | mes "Egg Shell 1"; |
---|
98 | mes "Cobaltblue Dyestuffs 1"; |
---|
99 | mes "Claw Of Desert Wolf 50"; |
---|
100 | goto L_end; |
---|
101 | case 5: |
---|
102 | mes "[Titicupe]"; |
---|
103 | mes "Blush ?!"; |
---|
104 | mes "You !"; |
---|
105 | mes "You know something ha ha ?!"; |
---|
106 | mes "he he . anyway"; |
---|
107 | mes "- Alice's Apron 100 -"; |
---|
108 | goto L_end; |
---|
109 | case 6: |
---|
110 | mes "[Titicupe]"; |
---|
111 | mes "Chef Hat ?"; |
---|
112 | mes "Piece Of Cake 120"; |
---|
113 | mes "White Dyestuffs 1"; |
---|
114 | mes "Feather 330"; |
---|
115 | mes "Dragon Scale 450"; |
---|
116 | goto L_end; |
---|
117 | case 7: |
---|
118 | mes "[Titicupe]"; |
---|
119 | mes "Candle ?"; |
---|
120 | mes "Bomb Wick 1"; |
---|
121 | mes "Matchstick 50"; |
---|
122 | mes "Royal Jelly 100"; |
---|
123 | goto L_end; |
---|
124 | case 8: |
---|
125 | mes "[Titicupe]"; |
---|
126 | mes "Cake Hat ?"; |
---|
127 | mes "Candy 10"; |
---|
128 | mes "Candy Cane 5"; |
---|
129 | mes "Well Baked Cookie 15"; |
---|
130 | mes "Piece Of Cake 20"; |
---|
131 | mes "steel 10"; |
---|
132 | goto L_end; |
---|
133 | case 9: |
---|
134 | mes "[Titicupe]"; |
---|
135 | mes "Ask me any time"; |
---|
136 | mes " Actually you know?"; |
---|
137 | mes "'Genius' knows everything "; |
---|
138 | mes "My brain is number one"; |
---|
139 | mes "in the whole universe!"; |
---|
140 | mes "Just So Goooooood!"; |
---|
141 | goto L_end; |
---|
142 | } |
---|
143 | case 3: |
---|
144 | goto L_end2; |
---|
145 | } |
---|
146 | |
---|
147 | L_end: |
---|
148 | next; |
---|
149 | mes "[Titicupe]"; |
---|
150 | mes "So happy!!"; |
---|
151 | mes "I'm a genius"; |
---|
152 | mes "Ho ho ho"; |
---|
153 | mes "Ho ho ho ho"; |
---|
154 | close; |
---|
155 | L_end2: |
---|
156 | mes "[Titicupe]"; |
---|
157 | mes "I'm a genius!!"; |
---|
158 | mes "The world will suprise!"; |
---|
159 | mes "for my magnificient creation"; |
---|
160 | mes "of these beautiful"; |
---|
161 | mes "and so cool items"; |
---|
162 | mes "Ke-ke-ke"; |
---|
163 | next; |
---|
164 | mes "- Toy factory manager -"; |
---|
165 | mes "- Titicupe is jumping -"; |
---|
166 | mes "- around and pointing -"; |
---|
167 | mes "- the vending machine -"; |
---|
168 | mes "- snowman with very -"; |
---|
169 | mes "- uproarious attitude-"; |
---|
170 | mes "- and he looks very very happy -"; |
---|
171 | close; |
---|
172 | } |
---|
173 | |
---|
174 | xmas,115,297,3 script Vending Machine 111,{ |
---|
175 | mes "[Audi]"; |
---|
176 | mes "- Exciting item vending machine. -"; |
---|
177 | mes "- Thanks to find Audi. -"; |
---|
178 | mes "- Select a item that you want -"; |
---|
179 | mes "- and -"; |
---|
180 | mes "- Put required item to -"; |
---|
181 | mes "- my mouth. -"; |
---|
182 | next; |
---|
183 | switch( select( "^FF3355- notice (must read) -^000000", "Raccoon Hat", "Spore Hat", "Wonder Nutshell", "Rainbow Egg Shell", "Blush", "Hat Of Cooker", "Candle", "Cake Hat", "Cancel")) { |
---|
184 | case 1: |
---|
185 | mes "[Audi]"; |
---|
186 | mes "Hi~ !"; |
---|
187 | mes "I need to tell you"; |
---|
188 | mes "one important thing"; |
---|
189 | mes "This vending mashine is"; |
---|
190 | mes "not equipted to differentiate"; |
---|
191 | mes "special items and ordinary item"; |
---|
192 | next; |
---|
193 | mes "[Audi]"; |
---|
194 | mes "So If you use item that"; |
---|
195 | mes "^FF3355already applied valuable"; |
---|
196 | mes "Monster card in it^000000 or"; |
---|
197 | next; |
---|
198 | mes "[Audi]"; |
---|
199 | mes "^FF3355high level of"; |
---|
200 | mes "forged items^000000 will"; |
---|
201 | mes "^3355FFtreated as normal"; |
---|
202 | mes "item^000000 so. When you"; |
---|
203 | mes "try to exchange + generate item"; |
---|
204 | mes "Please put away valiable items"; |
---|
205 | next; |
---|
206 | mes "[Audi]"; |
---|
207 | mes "to Kafre warehouse"; |
---|
208 | mes "or seperate from"; |
---|
209 | mes "your body."; |
---|
210 | mes "This is very important."; |
---|
211 | mes "Because if when you use"; |
---|
212 | mes "this vending machine and"; |
---|
213 | next; |
---|
214 | mes "[Audi]"; |
---|
215 | mes "your valiable items"; |
---|
216 | mes "have used by vending machine."; |
---|
217 | mes "There will be no"; |
---|
218 | mes "refund and recover"; |
---|
219 | mes "to that item."; |
---|
220 | next; |
---|
221 | mes "[Audi]"; |
---|
222 | mes "Have a good time"; |
---|
223 | mes "Thank you"; |
---|
224 | close; |
---|
225 | case 2: |
---|
226 | if (countitem(2213) > 0 && countitem(1036) > 19 && countitem(7012) > 199 && countitem(7065) > 299) { |
---|
227 | callfunc "Vending Machine","good"; |
---|
228 | next; |
---|
229 | delitem 2213, 1; //Kitty Band |
---|
230 | delitem 1036, 20; //Dragon Scale |
---|
231 | delitem 7012, 200; //Tough Scalelike Stem |
---|
232 | delitem 7065, 300; //Sea-Otter Fur |
---|
233 | getitem 5033, 1; //Raccoon Hat |
---|
234 | callfunc "Vending Machine","finish"; |
---|
235 | } |
---|
236 | callfunc "Vending Machine","bad"; |
---|
237 | case 3: |
---|
238 | if (countitem(7033) > 849 && countitem(7068) > 299 && countitem(1015) > 0) { |
---|
239 | callfunc "Vending Machine","good"; |
---|
240 | next; |
---|
241 | delitem 7033, 850; //Poison Spore |
---|
242 | delitem 7068, 300; //Burnt Tree |
---|
243 | delitem 1015, 1; //Tongue |
---|
244 | getitem 5029, 1; //Spore Hat |
---|
245 | callfunc "Vending Machine","finish"; |
---|
246 | } |
---|
247 | callfunc "Vending Machine","bad"; |
---|
248 | case 4: |
---|
249 | if (countitem(5037) > 0 && countitem(7064) > 499) { |
---|
250 | callfunc "Vending Machine","good"; |
---|
251 | next; |
---|
252 | delitem 5037, 1; //Nutshell |
---|
253 | delitem 7064, 500; //Wing of Dragonfly |
---|
254 | getitem 5050, 1; //Wonder Nutshell |
---|
255 | callfunc "Vending Machine","finish"; |
---|
256 | } |
---|
257 | callfunc "Vending Machine","bad"; |
---|
258 | case 5: |
---|
259 | if (countitem(5015) > 0 && countitem(978) > 0 && countitem(7030) > 49) { |
---|
260 | callfunc "Vending Machine","good"; |
---|
261 | next; |
---|
262 | delitem 5015, 1; //Egg Shell |
---|
263 | delitem 978, 1; //Cobaltblue Dyestuff |
---|
264 | delitem 7030, 50; //Claw of Desert Wolf |
---|
265 | getitem 5039, 1; //Rainbow Eggshell |
---|
266 | callfunc "Vending Machine","finish"; |
---|
267 | } |
---|
268 | callfunc "Vending Machine","bad"; |
---|
269 | case 6: |
---|
270 | if (countitem(7047) > 99) { |
---|
271 | callfunc "Vending Machine","good"; |
---|
272 | next; |
---|
273 | delitem 7047, 100; //Alice's Apron |
---|
274 | getitem 5040, 1; //Blush |
---|
275 | callfunc "Vending Machine","finish"; |
---|
276 | } |
---|
277 | callfunc "Vending Machine","bad"; |
---|
278 | case 7: |
---|
279 | if (countitem(539) > 119 && countitem(982) > 0 && countitem(949) > 329 && countitem(1036) > 449) { |
---|
280 | callfunc "Vending Machine","good"; |
---|
281 | next; |
---|
282 | delitem 539, 120; //Piece of Cake |
---|
283 | delitem 982, 1; //White Dyestuff |
---|
284 | delitem 949, 330; //Feather |
---|
285 | delitem 1036, 450; //Dragon Scale |
---|
286 | getitem 5026, 1; //Chef Hat |
---|
287 | callfunc "Vending Machine","finish"; |
---|
288 | } |
---|
289 | callfunc "Vending Machine","bad"; |
---|
290 | case 8: |
---|
291 | if (countitem(2279) > 0 && countitem(7035) > 49 && countitem(526) > 99) { |
---|
292 | callfunc "Vending Machine","good"; |
---|
293 | next; |
---|
294 | delitem 2279, 1; //Bomb Wick |
---|
295 | delitem 7035, 50; //Matchstick |
---|
296 | delitem 526, 100; //Royal Jelly |
---|
297 | getitem 5028, 1; //Candle |
---|
298 | callfunc "Vending Machine","finish"; |
---|
299 | } |
---|
300 | callfunc "Vending Machine","bad"; |
---|
301 | case 9: |
---|
302 | if (countitem(529) > 9 && countitem(530) > 4 && countitem(538) > 14 && countitem(539) > 19 && countitem(999) > 9) { |
---|
303 | callfunc "Vending Machine","good"; |
---|
304 | next; |
---|
305 | delitem 529, 10; //Candy |
---|
306 | delitem 530, 5; //Candy Cane |
---|
307 | delitem 538, 15; //Well-baked Cookie |
---|
308 | delitem 539, 20; //Piece of Cake |
---|
309 | delitem 999, 10; //Steel |
---|
310 | getitem 5024, 1; //Cake Hat |
---|
311 | callfunc "Vending Machine","finish"; |
---|
312 | } |
---|
313 | callfunc "Vending Machine","bad"; |
---|
314 | case 10: |
---|
315 | mes "[Audi]"; |
---|
316 | mes "- Thank you so much -"; |
---|
317 | mes "- for use me -"; |
---|
318 | mes "- . . . . . -"; |
---|
319 | mes "- But you didn't use"; |
---|
320 | mes "- anything. hummmmm-"; |
---|
321 | mes "- Well see you again ! -"; |
---|
322 | close; |
---|
323 | } |
---|
324 | } |
---|
325 | |
---|
326 | function script Vending Machine { |
---|
327 | if(getarg(0) == "good") { |
---|
328 | mes "- You put items -"; |
---|
329 | mes "- that is required to -"; |
---|
330 | mes "- generate new item, -"; |
---|
331 | mes "- inside of me. hehe -"; |
---|
332 | return; |
---|
333 | } else if(getarg(0) == "bad") { |
---|
334 | mes "[Audi]"; |
---|
335 | mes "- Piiiiii !! -"; |
---|
336 | mes "- Ups ! Ups ! -"; |
---|
337 | mes "- lack of items -"; |
---|
338 | mes "- Ups ! Ups ! -"; |
---|
339 | mes "Don't think I'm fool."; |
---|
340 | close; |
---|
341 | } |
---|
342 | mes "[Audi]"; |
---|
343 | mes "- broook boom -"; |
---|
344 | mes "- boooom!! -"; |
---|
345 | mes "- weck weck !! -"; |
---|
346 | mes "- boom!! -"; |
---|
347 | mes "- ugh ! -"; |
---|
348 | if(countitem(5040) > 0) { |
---|
349 | mes "- Wow . Blush !! -"; |
---|
350 | mes "- You are so cool -"; |
---|
351 | mes "- you know real fashion ! -"; |
---|
352 | mes "- ah so cute Blush -"; |
---|
353 | mes "- Wanna touch .. -"; |
---|
354 | } |
---|
355 | mes "- Thanks for use! -"; |
---|
356 | close; |
---|
357 | } |
---|
358 | |
---|