lunar_2008.txt 8.4 KB

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