bunnyband.txt 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  1. //===== rAthena Script =======================================
  2. //= Bunny Band Quest
  3. //===== By: ==================================================
  4. //= rAthena Dev Team
  5. //===== Current Version: =====================================
  6. //= 1.6
  7. //===== Compatible With: =====================================
  8. //= rAthena Project
  9. //===== Description: =========================================
  10. //= [Official Conversion]
  11. //= Quest to obtain a Bunny Band headgear.
  12. //===== Additional Comments: =================================
  13. //= 1.5 Rescripted to Aegis 10.3 standards. [L0ne_W0lf]
  14. // Changed @BUNYBAN back to BUNYBND, it should be this way.
  15. // Removed duplicates. NPC is ALberta-only.
  16. //= 1.6 Cleaning. [Euphy]
  17. //============================================================
  18. alberta,26,229,0 script Kafra Employee#bunny 83,{
  19. if (BUNYBND == 1) {
  20. mes "[Kafra Employee]";
  21. mes "Hello there~!";
  22. mes "How'd you like to";
  23. mes "participate in Kafra";
  24. mes "Corporation's special";
  25. mes "^529DFFBunny Band Event^000000?";
  26. next;
  27. switch(select("Sure, I brought the items.:Event Information:Cancel")) {
  28. case 1:
  29. mes "[Kafra Employee]";
  30. mes "Alrighty~";
  31. mes "Let me check to";
  32. mes "see if you brought";
  33. mes "all the items...";
  34. next;
  35. setarray .@Items[0],949,100,706,1,722,1,2213,1;
  36. for(set .@i,0; .@i<8; set .@i,.@i+2)
  37. if (countitem(.@Items[.@i]) < .@Items[.@i+1]) {
  38. mes "[Kafra Employee]";
  39. mes "Ooh, I'm sorry";
  40. mes "but you need to";
  41. mes "bring at least";
  42. mes callfunc("F_InsertPlural",.@Items[.@i+1],getitemname(.@Items[.@i]))+".";
  43. close;
  44. }
  45. mes "[Kafra Employee]";
  46. mes "Great, I see that";
  47. mes "you've gathered";
  48. mes "everything I need to";
  49. mes "make the Bunny Band.";
  50. mes "Please wait a moment";
  51. mes "while I put it together...";
  52. next;
  53. for(set .@i,0; .@i<8; set .@i,.@i+2)
  54. if (countitem(.@Items[.@i]) < .@Items[.@i+1]) {
  55. mes "[Kafra Employee]";
  56. mes "Hm? I'm sorry,";
  57. mes "but I actually can't";
  58. mes "make this right now. You";
  59. mes "need "+callfunc("F_InsertPlural",.@Items[.@i+1],getitemname(.@Items[.@i]));
  60. mes "in order for me to put this";
  61. mes "Bunny Band together...";
  62. close;
  63. }
  64. delitem 949,100; //Feather
  65. delitem 706,1; //Four_Leaf_Clover
  66. delitem 722,1; //Scarlet_Jewel
  67. delitem 2213,1; //Cat_Hairband
  68. mes "[Kafra Employee]";
  69. mes "Ah, here you go~";
  70. mes "The perfect Bunny Band!";
  71. mes "Well, I hope you enjoy it.";
  72. getitem 2214,1; //Bunny_Band
  73. set BUNYBND,0;
  74. next;
  75. mes "[Kafra Employee]";
  76. mes "Thank you for";
  77. mes "participating in this";
  78. mes "special event and your";
  79. mes "continued patronage";
  80. mes "of the Kafra Services~";
  81. close;
  82. case 2:
  83. goto L_Info;
  84. case 3:
  85. close;
  86. }
  87. }
  88. mes "[Kafra Employee]";
  89. mes "Hi there~! Would you like";
  90. mes "to join our special ^529DFFBunny";
  91. mes "Band Event^000000 hosted by the Kafra";
  92. mes "Corporation and sponsored by";
  93. mes "the Alberta Merchant Guild?";
  94. next;
  95. switch(select("Join the Event:Event Information:Cancel")) {
  96. case 1:
  97. set BUNYBND,1;
  98. mes "[Kafra Employee]";
  99. mes "Great! Thanks for";
  100. mes "participating! If you";
  101. mes "haven't already heard,";
  102. mes "you need to collect these";
  103. mes "items if you want me put a";
  104. mes "Bunny Band together for you...";
  105. next;
  106. mes "[Kafra Employee]";
  107. mes "100 Feathers,";
  108. mes "1 Four-Leaf Clover,";
  109. mes "1 Kitty Band and";
  110. mes "1 Pearl. That's it!";
  111. mes "Good luck and I'll be";
  112. mes "waiting for you here~";
  113. close;
  114. case 2:
  115. break;
  116. case 3:
  117. close;
  118. }
  119. L_Info:
  120. mes "[Kafra Employee]";
  121. mes "To thank our valued";
  122. mes "customers, Kafra Corporation";
  123. mes "has prepared a special event";
  124. mes "where Kafra Employee will assemble";
  125. mes "Bunny Bands for adventurers";
  126. mes "who bring the required items.";
  127. next;
  128. mes "[Kafra Employee]";
  129. mes "For this special,";
  130. mes "one of a kind item,";
  131. mes "bring 100 Feathers,";
  132. mes "1 Four-Leaf Clover,";
  133. mes "1 Kitty Band and";
  134. mes "1 Pearl.";
  135. next;
  136. mes "[Kafra Employee]";
  137. mes "When you're ready,";
  138. mes "come back and bring";
  139. mes "those items to me.";
  140. mes "(Sponsored by the";
  141. mes "Alberta Merchant Guild).";
  142. close;
  143. }
  144. //============================================================
  145. // Old changelog
  146. //============================================================
  147. //= 1.1 using duplicate command
  148. //= 1.2 Fixed NPC location, removed NPC dupes [Lupus]
  149. //= 1.3 RE-Fixed exploit V_V, also cleared used VAR [Lupus]
  150. //= 1.4 replaced BUNYBND with @BUNYBND [Lupus]
  151. //============================================================