xmas_rings_event.txt 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194
  1. //===== rAthena Script =======================================
  2. //= Karachun Event (Xmas Rings Quest)
  3. //===== By: ==================================================
  4. //= Lupus (1.0)
  5. //===== Current Version: =====================================
  6. //= 1.2
  7. //===== Compatible With: =====================================
  8. //= rAthena Project; SVN r4880+
  9. //===== Description: =========================================
  10. //= Custom event: Karachun (from 8 Dec till 8 Jan), X-Mas, HNY
  11. //===== Additional Comments: =================================
  12. //= 1.0 Tested, fully working. 1.0a a few typos fix
  13. //= 1.1 Readded Mdef +1 and Luk +1 to Santa's Hat [Lupus]
  14. //= 1.2 Fixed double quotes not being escaped [brianluau]
  15. //============================================================
  16. prontera,156,174,4 script Snower 713,{
  17. mes "[Snower]";
  18. if (Q_XMSRINGS == 2) {
  19. mes "Oh... is it true? You've helped my sis Sneewy? Thank you.";
  20. } else if (Q_XMSRINGS == 3) {
  21. mes "Snoowy's sent me a bird with a message. She told me about your help...";
  22. mes "I'll tell you a secret of the magic rings.";
  23. emotion e_no1;
  24. next;
  25. mes "[Snower]";
  26. mes "They have magic power only from 8 December till 8 January.";
  27. next;
  28. mes "[Snower]";
  29. mes "By the way, just put on Santa's Hat to discover their true power.";
  30. next;
  31. mes "[Snower]";
  32. mes "If you put on both rings their power would be doubled.";
  33. mes "Have a nice day!";
  34. close;
  35. } else {
  36. mes "Hi! Two my sisters and I are preparing gifts for the whole 3 holidays!";
  37. }
  38. emotion e_sob;
  39. next;
  40. menu "Where are your sisters?",-, "What holidays?",M_PR,"What gifts?",M_WRAP,"May I help you?",M_QUEST;
  41. mes "[Snower]";
  42. mes "My younger sis Sneewy's left to some faraway land to prepare gifts for their poor children... I don't know where. You should ask my elder sis and her birdies.";
  43. next;
  44. mes "[Snower]";
  45. mes "My elder sis? Her name's Snoowy. She's sailed to some green island... She's talking about some gifts for dolphins or something...";
  46. close;
  47. M_PR:
  48. mes "[Snower]";
  49. mes "The whole three holidays? Well they come one after another!";
  50. mes "^000080The Christmas^000000, ^FF0000Karachun^000000 and ^008000New Year Eve^000000!";
  51. next;
  52. mes "[Snower]";
  53. mes "^FF0000Karachun^000000? Heh... This is an old pagans festival. They used to celebrate it before the appearance of HNY and XMas, you know.";
  54. next;
  55. goto M_QUEST;
  56. M_WRAP:
  57. mes "[Snower]";
  58. mes "My sisters say that all the gifts should look the same way. Or else some children might fight for fancy ones!";
  59. next;
  60. mes "[Snower]";
  61. mes "Would you like me to wrap your fancy gift boxes with a gray paper?";
  62. next;
  63. menu "Wrap them, please!",-, "No, thanks.",M_QUEST;
  64. set @prizes, countitem(664)+countitem(665)+countitem(666)+countitem(667);
  65. if (@prizes == 0) {
  66. mes "[Snower]";
  67. mes "I don't see any gifts in fancy boxes on you...";
  68. if(countitem(644))mes "You've got only gray boxes.";
  69. close;
  70. }
  71. delitem 664,countitem(664);
  72. delitem 665,countitem(665);
  73. delitem 666,countitem(666);
  74. delitem 667,countitem(667);
  75. getitem 644,@prizes;
  76. mes "[Snower]";
  77. mes "*shuffle* Here you go.";
  78. next;
  79. M_QUEST:
  80. mes "[Snower]";
  81. mes "I wish you find my sisters ASAP... They need help.";
  82. if (Q_XMSRINGS == 0) set Q_XMSRINGS,1;
  83. close;
  84. OnInit:
  85. //Santa's Hat
  86. setitemscript 2236,"{ bonus bMdef,1; bonus bLuk,1; if(isequipped(2636,2637)){if(@xmr == gettime(2))end; set @xmr,gettime(2); misceffect 410; end;} if(isequipped(2636)){if(@xmr == gettime(2))end; set @xmr,gettime(2); misceffect 72;} if(isequipped(2637)){if(@xmr == gettime(2))end; set @xmr,gettime(2); misceffect 338;}}";
  87. //Gold Xmas Ring
  88. setitemscript 2636,"{ bonus bLoseSPWhenUnequip,30; if(isequipped(2236)==0)end; if(getskilllv(\"AL_HEAL\")){skill \"TF_HIDING\",4+isequipped(2637);}else{skill \"AL_HEAL\",1+4*isequipped(2637);} }";
  89. //Silver Xmas Ring
  90. setitemscript 2637,"{ bonus bDamageWhenUnequip,40; if(isequipped(2236)==0)end; if(getskilllv(\"AL_TELEPORT\")){skill \"MC_IDENTIFY\",1;}else{skill \"AL_TELEPORT\",1+isequipped(2636);} }";
  91. end;
  92. }
  93. louyang,224,249,4 script Sneewy 717,{
  94. mes "[Sneewy]";
  95. if (Q_XMSRINGS == 0) {
  96. mes "Hi! I'm waithing for my sister's birdy with mail...";
  97. emotion e_sob;
  98. close;
  99. }
  100. if (Q_XMSRINGS == 1) {
  101. mes "I wish I had 4 more gray Gift Boxes for native children...";
  102. emotion e_sob;
  103. next;
  104. mes "[Sneewy]";
  105. mes "Oh, hello. Has my brother Snower told you everything?";
  106. next;
  107. menu "Here are your 4 Gift Boxes",-, "I don't know any Snowhatevers...",M_END;
  108. mes "[Sneewy]";
  109. if (countitem(644) < 4) {
  110. mes "Gimme 4 gifts for poor kids... Wait, you haven't got 4 of them!";
  111. emotion e_sry;
  112. close;
  113. }
  114. set Q_XMSRINGS,2;
  115. delitem 644,4;
  116. getnameditem 2637,strcharinfo(0);
  117. emotion e_kis2;
  118. mes "Thank you! Here's my li'l something for you!";
  119. next;
  120. mes "[Sneewy]";
  121. mes "By the way, if you put on 2 different rings then your holidays leveling would be easier!";
  122. close;
  123. }
  124. emotion e_thx;
  125. mes "Thanks again! No children will meet the holidays without the gifts!";
  126. close;
  127. M_END:
  128. mes "[Sneewy]";
  129. mes "Pity... I've got a magic Santa's ring... I'd exchange it for 4 Gift Boxes...";
  130. emotion e_swt;
  131. close;
  132. }
  133. izlu2dun,133,160,2 script Snoowy 714,{
  134. mes "[Snoowy]";
  135. if (Q_XMSRINGS == 0) {
  136. mes "Helloooou! Do you know my bro and sis? How so? My brother Snower's well known in Prontera!! Just ask any child there.";
  137. emotion e_hmm;
  138. close;
  139. }
  140. if (Q_XMSRINGS == 1) {
  141. mes "Darn... How could poor children be more important than the marine folks.. Am I wrong?";
  142. next;
  143. mes "[Snoowy]";
  144. mes "Errr. Helloou there. My sister Sneewy's sent me a birdie message. The letter was wet and I couldn't read anything but some ending letters of her address...";
  145. next;
  146. mes "[Snoowy]";
  147. mes "Look, it's something like 'yang' in the very end... Hmm... She must be misspelled 'Al Doo Boryang'...";
  148. close;
  149. }
  150. if (Q_XMSRINGS == 2) {
  151. mes "You've helped my sis? It's just great!";
  152. next;
  153. mes "[Snoowy]";
  154. mes "But I too need 3 more gifts for my marine folk friends...";
  155. next;
  156. menu "Have these gifts!",-, "I need a li'l something in return",M_END;
  157. mes "[Snoowy]";
  158. if (countitem(644) < 3) {
  159. mes "Oops!! You haven't got 3 gray gift boxes on you.";
  160. emotion e_sry;
  161. close;
  162. }
  163. set Q_XMSRINGS,3;
  164. delitem 644,3;
  165. getnameditem 2636,strcharinfo(0);
  166. emotion e_kis;
  167. mes "Thaank yoouu! Have this magic ring!";
  168. close;
  169. }
  170. emotion e_thx;
  171. mes "Oh... the whole marine folk send you their thanks! They love presents so much!!!";
  172. if (rand(2))
  173. mes "Didn't you know that Santa's Hat reveals the real power of the rings?";
  174. close;
  175. M_END:
  176. mes "[Snoowy]";
  177. mes "I'd exchange a GOLD magic ring for 3 gift boxes...";
  178. emotion e_swt;
  179. close;
  180. }