kings_items.txt 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178
  1. //===== eAthena Script =======================================
  2. //= Event King Items
  3. //===== By: ==================================================
  4. //= $ephiroth
  5. //===== Current Version: =====================================
  6. //= 1.0
  7. //===== Compatible With: =====================================
  8. //= eAthena Version
  9. //===== Description: =========================================
  10. //= Grand Circlet Quest combined with Excalibur Quest.
  11. //= Converted to eAthena format from Fusion.
  12. //= 2006/09/27: 1.0 Release and fully working. [$ephiroth]
  13. //============================================================
  14. prt_castle,80,170,4 script King of Prontera 108,{
  15. set @npcname$,"[King of Prontera]";
  16. mes @npcname$;
  17. mes "Hello can you help me?";
  18. next;
  19. menu "Sure, what can I do?",L_Sure,"No sorry I'm busy",L_Quit;
  20. L_Sure:
  21. mes @npcname$;
  22. mes "Thank you.";
  23. mes "Well, my daughter next to me is a little rowdy";
  24. mes "if you got her these items I'm sure she would calm down.";
  25. mes "If you bring me these items I'll give you my crown or my sword";
  26. mes "Both are very special.";
  27. next;
  28. menu "Ok what do you need?",L_Req,"I have the items",L_Have,"Forget it",L_Quit;
  29. L_Req:
  30. mes @npcname$;
  31. mes "If you could get me:";
  32. mes "^00B6FF30 Chonchon doll^000000";
  33. mes "^D5A50050 Poring doll^000000";
  34. mes "^0080FF20 Yoyo doll^000000";
  35. mes "^CC66331 3carat diamond^000000";
  36. mes "^3131FF20 Illusion Flowers^000000";
  37. mes "^AA00AA20 Singing Flowers^000000";
  38. mes "I'll give you my crown.";
  39. next;
  40. mes @npcname$;
  41. mes "If you could get me:";
  42. mes "^0000881 Angel Band^000000";
  43. mes "^4422FF1 Heaven Ring^000000";
  44. mes "^AA00AA1 Emperium^000000";
  45. mes "I'll give my sword.";
  46. mes "Once you find those, come back to me.";
  47. close;
  48. L_Have:
  49. mes @npcname$;
  50. mes "What item you want?";
  51. next;
  52. menu "Crown",L_crown,"Sword",L_sword;
  53. L_crown:
  54. if(countitem(742)<30) goto L_Error;
  55. if(countitem(741)<50) goto L_Error1;
  56. if(countitem(753)<20) goto L_Error2;
  57. if(countitem(732)<1) goto L_Error3;
  58. if(countitem(710)<20) goto L_Error4;
  59. if(countitem(629)<20) goto L_Error5;
  60. delitem 742,30;
  61. delitem 741,50;
  62. delitem 753,20;
  63. delitem 732,1;
  64. delitem 710,20;
  65. delitem 629,20;
  66. mes @npcname$;
  67. mes "THANK YOU SOO MUCH!!";
  68. mes "This will surely calm her down.";
  69. mes "Let me just take the items from you.";
  70. next;
  71. mes @npcname$;
  72. mes "As I promised here is my crown.";
  73. getitem 5007,1;
  74. next;
  75. mes @npcname$;
  76. mes "Well, I have to calm her down now.";
  77. mes "Thanks again!";
  78. close;
  79. L_sword:
  80. if(countitem(2254)<1) goto L_NoAngel;
  81. if(countitem(2282)<1) goto L_NoHeaven;
  82. if(countitem(714)<1) goto L_NoEmp;
  83. delitem 2254,1;
  84. delitem 2282,1;
  85. delitem 714,1;
  86. mes @npcname$;
  87. mes "THANK YOU SOO MUCH!!";
  88. mes "This will surely calm her down.";
  89. mes "Let me just take the items from you.";
  90. next;
  91. mes @npcname$;
  92. mes "As I promised here is my sword.";
  93. getitem 1137,1;
  94. next;
  95. mes @npcname$;
  96. mes "Well, I have to calm her down now.";
  97. mes "Thanks again!";
  98. close;
  99. L_NoAngel:
  100. mes @npcname$;
  101. mes "Sorry but you must have at least one Angel Band.";
  102. mes "Come back after you get ALL the items.";
  103. close;
  104. L_NoHeaven:
  105. mes @npcname$;
  106. mes "Sorry but you must have at least one Heaven Ring.";
  107. mes "Come back after you get ALL the items.";
  108. close;
  109. L_NoEmp:
  110. mes @npcname$;
  111. mes "Sorry but you must have at least one Emperium.";
  112. mes "Come back after you get ALL the items.";
  113. close;
  114. L_Error:
  115. mes @npcname$;
  116. mes "Oh darn, you need 30 Chonchon Dolls.";
  117. close;
  118. L_Error1:
  119. mes @npcname$;
  120. mes "Oh darn, you need 50 Poring dolls.";
  121. close;
  122. L_Error2:
  123. mes @npcname$;
  124. mes "Oh darn, you need 20 Yoyo dolls.";
  125. close;
  126. L_Error3:
  127. mes @npcname$;
  128. mes "Oh darn, you need one 3 Carat Diamond.";
  129. close;
  130. L_Error4:
  131. mes @npcname$;
  132. mes "Oh darn, you need 20 Illusion Flowers.";
  133. close;
  134. L_Error5:
  135. mes @npcname$;
  136. mes "Oh darn, you need 20 Singing Flowers.";
  137. close;
  138. L_Quit:
  139. mes @npcname$;
  140. mes "Ok, that's fine, I'm sure someone else will help.";
  141. close;
  142. }
  143. prt_castle,84,170,4 script King's Daughter 62,{
  144. set @npcname$,"[King's Daughter]";
  145. mes @npcname$;
  146. mes "Hmph, I hate my dad right now!!";
  147. next;
  148. menu "Why?",L_Why,"Ok...Whatever..",L_Quit;
  149. L_Why:
  150. mes @npcname$;
  151. mes "Well, he won't give me what I want!!";
  152. mes "He's the King of Prontera, he should be able to get me ANYTHING!!!";
  153. close;
  154. L_Quit:
  155. mes @npcname$;
  156. mes "FINE THEN Hmph!!";
  157. close;
  158. }