root/npc/events/lunar_2008.txt @ 25

Revision 1, 8.7 kB (checked in by jinshiro, 17 years ago)
Line 
1//===== eAthena Script =======================================
2//= Lunar New Year Event (2008)
3//===== By: ==================================================
4//= L0ne_W0lf
5//===== Current Version: =====================================
6//= 1.1
7//===== Compatible With: =====================================
8//= eAthena SVN
9//===== Description: =========================================
10//= iRO Lunar New Year event; Year of the Rat. (2008)
11//= Kill Cramps, Taruus, and Matrins to retrieve "Rice Pouches"
12//= in return for various rice-themed foods, envelopes, and
13//= a "New year Doll" egg. Rates are guessed.
14//=
15//= Cramp, Tarou, and Matrin drops altered, Uncomment in
16//= mob_db2 to enable. [required]
17//=
18//= Miss Lunar NPC uses the sprite 4_f_nacoruri, which isn't
19//= standard in kRO's data files. If you're having problems
20//= or are unsure if your client supports that sprite, an
21//= alternate NPC header has been included.
22//===== Additional Comments: =================================
23//= 1.0 First version. [L0ne_W0lf]
24//= 1.1 Added missing checkweights. [L0ne_W0lf]
25//============================================================
26
27payon_in01,193,30,4     script  Rice Mill Grandma#rat   78,{
28        mes "[Rice Mill Grandma]";
29        if (!lunar_rat) {
30                mes "Those filthy little";
31                mes "creatures! Scurrying";
32                mes "around, snatching things";
33                mes "from me! If only they";
34                mes "weren't so blamed quick...";
35                next;
36                select("What's wrong?");
37                mes "[Rice Mill Grandma]";
38                mes "Oh, I was just making";
39                mes "some rice cakes and";
40                mes "pastries to celebrate";
41                mes "the new year, but these";
42                mes "animals have been stealing";
43                mes "the Rice Pouches I've prepared.";
44                next;
45                select("Rice Pouches?");
46                mes "[Rice Mill Grandma]";
47                mes "Yes, my son needs those";
48                mes "Rice Pouches to pound the";
49                mes "rice in a mortar, but I can't";
50                mes "make any pastries if I don't";
51                mes "even have the rice. Do you";
52                mes "think you can help me?";
53                next;
54                if (select("Of course.:I don't even know you.") == 1) {
55                        set lunar_rat,1;
56                        mes "[" + strcharinfo(0)+"]";
57                        mes "Of course.";
58                        mes "What can I do?";
59                        next;
60                        mes "[Rice Mill Grandma]";
61                        mes "Well, do you think you";
62                        mes "can catch the animals that";
63                        mes "stole my Rice Pouches?";
64                        mes "They're these blue and";
65                        mes "white rats and these";
66                        mes "nasty little moles.";
67                        next;
68                        select("Not a problem.");
69                        mes "[" + strcharinfo(0)+"]";
70                        mes "Not a problem.";
71                        mes "I'll catch those animals,";
72                        mes "and bring back any Rice";
73                        mes "Pouches that I can find.";
74                        next;
75                        mes "[Rice Mill Grandma]";
76                        mes "Oh, thank you!";
77                        mes "Good luck catching";
78                        mes "those pests for me~";
79                        close;
80                }
81                mes "[Rice Mill Grandma]";
82                mes "I... Well...";
83                mes "That's true, but I was";
84                mes "planning on giving you";
85                mes "something nice in return";
86                mes "for your help. I know you're";
87                mes "not a bad person, so...";
88                close;
89        }
90        else if ((lunar_rat >= 1 && lunar_rat <= 2) || lunar_rat == 4) {
91                if (countitem(7770) >= 1 && lunar_rat == 2) {
92                        mes "Oh, is that the";
93                        mes "Sweet Rice my son made?";
94                        mes "Would you let me have it?";
95                        mes "Please wait here a moment,";
96                        mes "and I'll make you some pastry~";
97                        delitem 7770,1; //Sweet_rice
98                        set lunar_rat,3;
99                        close;
100                }
101                else if (lunar_rat == 4) {
102                        if (countitem(7770) >= 1) {
103                                mes "Oh, is that the";
104                                mes "Sweet Rice my son made?";
105                                mes "Would you let me have it?";
106                                mes "Please wait here a moment,";
107                                mes "and I'll make you some pastry~";
108                                delitem 7770,1; //Sweet_rice
109                                set lunar_rat,5;
110                                close;
111                        }
112                        mes "Oh, where are all the";
113                        mes "Rice Pouches? We need";
114                        mes "them to make more rice cakes...";
115                        close;
116                }
117                else if (countitem(7869) < 1 && lunar_rat <= 2) {
118                        mes "Ooh, those white and";
119                        mes "blue mouses might have";
120                        mes "snatched my Rice Pouches";
121                        mes "Those moles probably took";
122                        mes "them too. Such nasty little";
123                        mes "creatures, aren't they?";
124                        close;
125                }
126                mes "Oh, is that one of my";
127                mes "Rice Pouches? I'm sorry,";
128                mes "but the pain my hips..";
129                mes "Would you mind being";
130                mes "a dear, and delivering";
131                mes "that to my son for me?";
132                set lunar_rat,2;
133                close;
134        }
135        else if (lunar_rat == 3 || lunar_rat == 5) {
136                set .@reward,rand(1,100);
137                if (.@reward <= 5) {
138                        if (lunar_rat == 3) {
139                                getitem 9038,1; // New_Year_Doll_Egg
140                                set lunar_rat,4;
141                        }
142                        else if (lunar_rat == 5) {
143                                getitem 668,1; // Red_Envelope
144                        }
145                }
146                else if (.@reward >= 6 && .@reward <= 10) getitem 12198,2; // Lucky_Rice_Cake
147                else if (.@reward >= 11 && .@reward <= 30) getitem 12195,3; // Plain_Rice_Cake
148                else if (.@reward >= 31 && .@reward <= 40) getitem 12196,2; // Hearty_Rice_Cake
149                else if (.@reward >= 41 && .@reward <= 55) getitem 12123,2; // Honey_Pastry
150                else if (.@reward >= 56 && .@reward <= 70) getitem 12122,2; // Sesame_Pastry
151                else if (.@reward >= 71 && .@reward <= 80) getitem 12124,2; // Rainbow_Cake
152                else if (.@reward >= 81 && .@reward <= 90) getitem 12198,2; // Korean_Rice_Cake
153                else if (.@reward >= 91 && .@reward <= 100) getitem 12197,3; // Salty_Rice_Cake
154                // After getting the egg there is a chance to get an envelope with each turn in
155                if (rand(1,20) <= 5 && lunar_rat == 4) getitem 668,1; // Red_Envelope
156                // Set the quest accordingly for repeat turn-ins.
157                if (lunar_rat == 3) set lunar_rat,2;
158                else if (lunar_rat == 5) set lunar_rat,4;
159                mes "It's not nearly enough";
160                mes "to repay you for what you've";
161                mes "done for me, but I'd like";
162                mes "you to have this pastry that";
163                mes "I just made. Please enjoy it~";
164                next;
165                mes "[Rice Mill Grandma]";
166                mes "Thank you for the";
167                mes "Sweet Rice! I'll be";
168                mes "sure to make something";
169                mes "delicious for you if you";
170                mes "bring me more, okay?";
171                close;
172        }
173}
174
175payon,215,127,4 script  Rice Mill Man#rat       54,{
176        mes "[Rice Mill Man]";
177        if (!lunar_rat) {
178                mes "Breaks my heart...";
179                mes "My mom spends all this";
180                mes "time preparing rice for";
181                mes "the new year, and it's all";
182                mes "stolen by rats and vermin!";
183                close;
184        }
185        else if (lunar_rat == 1) {
186                mes "I hear from my mother";
187                mes "that you're helping her out.";
188                mes "She's a sweet old lady, huh?";
189                mes "If you find ang Rice Pouches,";
190                mes "you might want to have her";
191                mes "inspect them first.";
192                close;
193        }
194        else if (lunar_rat >= 2) {
195                if (countitem(7869) < 1) {
196                        mes "If you bring me some";
197                        mes "Rice Pouches, then I can";
198                        mes "pound into into Sweet Rice.";
199                        mes "You're here to help out my";
200                        mes "mother, right? Thanks,";
201                        mes "I really appreciate that.";
202                        close;
203                }
204                mes "Oh, you brought me some";
205                mes "Rice Pouches from my mother?";
206                mes "Give me a second, and I'll";
207                mes "get this rice pounded into";
208                mes "paste, lickety split.";
209                next;
210                mes "[Rice Mill Man]";
211                mes "Hoo! Haa! Hi-yah!";
212                mes "Woosha! Whoosha!";
213                mes "Ka-taaaaaaaaaa!";
214                mes "WOOOSHA!";
215                next;
216                mes "[Rice Mill Man]";
217                mes "All done. Here, this";
218                mes "Sweet Rice is ready to";
219                mes "be made into pastries";
220                mes "Would you please bring";
221                mes "this to my mother?";
222                delitem 7869,1; //Rice_Pouch
223                getitem 7770,1; //Sweet_Rice
224                close;
225        }
226}
227
228//payon,126,113,4       script  Miss Lunar#rat  862,{
229payon,126,113,4 script  Miss Lunar#rat  719,{
230        mes "[Lunar]";
231        if ((MaxWeight-Weight) < 3000 || checkweight(1201,1) == 0) {
232                mes "Oh, I'm sorry, but we";
233                mes "can't do any business if";
234                mes "you're carry so much stuff.";
235                mes "Would you mind storing some of";
236                mes "your things with the Kafra Service?";
237                close;
238        }
239        if (lunar_rat < 4) {
240                mes "I want to earn enough";
241                mes "money to buy that big";
242                mes "crescent silver pin.";
243                mes "I have to sell as much";
244                mes "of this Mojji as I can!";
245                close;
246        }
247        else if (lunar_rat >= 4) {
248                mes "Oh, hello! I'm selling";
249                mes "special rice cakes made";
250                mes "from sweet rice. You can";
251                mes "eat it yourself, or feed it";
252                mes "to your New Year Doll if";
253                mes "you have one as a pet.";
254                next;
255                mes "[Lunar]";
256                mes "Anyway, I'm selling";
257                mes "10 Mojji for 3,000 zeny";
258                mes "Would you like to try some?";
259                next;
260                if (select("Yes:No") == 1) {
261                        if (Zeny >= 3000) {
262                                set Zeny,Zeny-3000;
263                                getitem 554,10; // Mojji
264                                mes "[Lunar]";
265                                mes "Thank you, and I hope you";
266                                mes "have a happy new year!";
267                                mes "Please come again~";
268                                close;
269                        }
270                        mes "[Lunar]";
271                        mes "Oh, I'm sorry, but you";
272                        mes "don't have enough";
273                        mes "zeny right now....";
274                        close;
275                }
276                mes "[Lunar]";
277                mes "Oh, alright. Well, I'll";
278                mes "be here if you or your";
279                mes "friends want some Mojji";
280                mes "later, alight? Goodbye~";
281                close;
282        }
283}
Note: See TracBrowser for help on using the browser.