npc_card_remover.txt 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197
  1. // Card removal NPC by TyrNemesis^ 日本語訳:胡蝶蘭
  2. prt_in,28,73,4 script 賢い老女 78,{
  3. UPGRADEROOT:
  4. // mes "[Wise Old Woman]";
  5. // mes "Good day, young one. I have the power to remove cards that you have compounded onto your equipment. Does this idea please you?";
  6. mes "[賢い老女]";
  7. mes "いい天気だね、若いの。";
  8. mes "ところで、アタシは武具に装着している";
  9. mes "カードを取り外す力を持っているけど、";
  10. mes "力を貸そうかね?";
  11. next;
  12. // menu "Yes, it does.",REMOVEMENU,
  13. // "What do you charge?",REMOVEPRICE,
  14. // "No thanks.",CLOSEOUT;
  15. menu "お願いします。",REMOVEMENU,
  16. "いくらかかるんですか?",REMOVEPRICE,
  17. "必要ないです。",CLOSEOUT;
  18. REMOVEPRICE:
  19. // mes "[Wise Old Woman]";
  20. // mes "I charge a flat fee of 200000 zeny, plus 25000 zeny for each card I remove from the item. In addition, I need a star crumb and a yellow gemstone to work my magic.";
  21. mes "[賢い老女]";
  22. mes "そうだね、";
  23. mes "まず基本料金として^4040FF200000z^000000。";
  24. mes "そしてカード1枚につき^4040FF25000z^000000貰うよ。";
  25. mes "あとは、魔法を使うために^4040FF星のかけら^000000と";
  26. mes "^4040FFイエロージェムストーン^000000が1つずつ必要だよ。";
  27. next;
  28. // menu "Very well. Let's do it.",REMOVEMENU,
  29. // "No thanks.",CLOSEOUT;
  30. menu "お願いします。",REMOVEMENU,
  31. "必要ないです。",CLOSEOUT;
  32. REMOVEMENU:
  33. // mes "[Wise Old Woman]";
  34. // mes "Very well. Which item shall I examine for you?";
  35. mes "[賢い老女]";
  36. mes "よしよし。";
  37. mes "どの武具のカードを取り外すんだね?";
  38. next;
  39. // menu "I changed my mind.",CLOSEOUT,
  40. menu "やっぱりやめます。",CLOSEOUT,
  41. getequipname(1),-,
  42. getequipname(2),-,
  43. getequipname(3),-,
  44. getequipname(4),-,
  45. getequipname(5),-,
  46. getequipname(6),-,
  47. getequipname(7),-,
  48. getequipname(8),-,
  49. getequipname(9),-,
  50. getequipname(10),-;
  51. set @part,@menu-1;
  52. if(getequipcardcnt(@part) == 0) goto DENYCARDCOUNT;
  53. set @cardcount,getequipcardcnt(@part);
  54. // if(@cardcount > 1) goto CARDNUMMULTIMSG;
  55. // mes "[Wise Old Woman]";
  56. // mes "This item has " + @cardcount + " card compounded on it. To perform my magic, I will need 225000 zeny, a ^0000FFStar Crumb^000000, and a ^0000FFYellow Gemstone^000000.";
  57. // goto CARDNUMPOSTMSG;
  58. //CARDNUMMULTIMSG:
  59. // mes "[Wise Old Woman]";
  60. // mes "This item has " + @cardcount + " cards compounded on it. To perform my magic, I will need " + (200000+(@cardcount * 25000)) + " zeny, a ^0000FFStar Crumb^000000, and a ^0000FFYellow Gemstone^000000.";
  61. mes "[賢い老女]";
  62. mes "この武具には" + @cardcount + "つカードがついてるね。";
  63. mes "^0000FF" + (200000+(@cardcount * 25000)) + "z^000000と^0000FF星のかけら^000000と^0000FFイエロージェムストーン^000000が必要だよ。";
  64. //CARDNUMPOSTMSG:
  65. next;
  66. // menu "Very well. Do it.",REMOVECARDWARNING,
  67. // "Never mind.",CLOSEOUT;
  68. menu "わかりました、お願いします。",REMOVECARDWARNING,
  69. "やっぱりやめます。",CLOSEOUT;
  70. REMOVECARDWARNING:
  71. // mes "[Wise Old Woman]";
  72. // mes "Before I begin, I must warn you--I may fail. If I do, I may destroy the cards, the item, or both. I do not give refunds. That being said, which is more important to you: The cards, or the item?";
  73. mes "[賢い老女]";
  74. mes "おっと言い忘れるところだったね。";
  75. mes "この魔法はとても難しいから、";
  76. mes "^FF4040失敗するかもしれない^000000のさ。";
  77. mes "失敗したらカードか武具、あるいは";
  78. mes "その両方が^FF4040破壊されてしまう^000000かも";
  79. mes "しれないんだよ。";
  80. next;
  81. mes "[賢い老女]";
  82. mes "失敗しても^FF4040返金はしない^000000から、";
  83. mes "一応聞いて置くけど、比べるなら";
  84. mes "カードと武具のどっちが大切だい?";
  85. next;
  86. // menu "I changed my mind about this.",CLOSEOUT,
  87. // "The item.",PRIORITYITEM,
  88. // "The cards.",PRIORITYCARD;
  89. menu "それならやめます。",CLOSEOUT,
  90. "武具の方が大切です。",PRIORITYITEM,
  91. "カードの方が大切です",PRIORITYCARD;
  92. PRIORITYITEM:
  93. set @failtype,1;
  94. goto REMOVECARD;
  95. PRIORITYCARD:
  96. set @failtype,2;
  97. goto REMOVECARD;
  98. REMOVECARD:
  99. // mes "[Wise Old Woman]";
  100. // mes "Very well. I shall begin.";
  101. mes "[賢い老女]";
  102. mes "よし、始めるよ。";
  103. next;
  104. if((zeny < (200000+(@cardcount * 25000))) || (countitem(1000) < 1) || (countitem(715) < 1)) goto DENYMATERIAL;
  105. set zeny,zeny - (200000+(@cardcount * 25000));
  106. delitem 1000,1;
  107. delitem 715,1;
  108. // Replace the constants in the next 3 lines with failure chance values defined in refine_db.txt
  109. // First value = Total failure chance (item and cards destroyed)
  110. // Second value = Partial failure chance (one or the other is destroyed, player decides which one is safe)
  111. // Third value = Harmless failure chance (all that's lost is your investment)
  112. set @failchance,rand(100);
  113. if(@failchance < 2) goto FAILREMOVECARD0;
  114. if((@failchance < 6) && (@failtype == 1)) goto FAILREMOVECARD1;
  115. if((@failchance < 6) && (@failtype == 2)) goto FAILREMOVECARD2;
  116. if(@failchance < 10) goto FAILREMOVECARD3;
  117. successremovecards @part;
  118. // mes "[Wise Old Woman]";
  119. // mes "The process was a success. Here are your cards and your item. Farewell.";
  120. mes "[賢い老女]";
  121. mes "うまくいったよ。";
  122. mes "これらが武具とアイテムさ。じゃあね。";
  123. close;
  124. FAILREMOVECARD0:
  125. // mes "[Wise Old Woman]";
  126. // mes "The process was a total failure. I am afraid the item and the cards were destroyed.";
  127. mes "[賢い老女]";
  128. mes "残念だけど完全に失敗したよ。";
  129. mes "武具もカードも壊れてしまった。";
  130. failedremovecards @part,0;
  131. close;
  132. FAILREMOVECARD1:
  133. // mes "[Wise Old Woman]";
  134. // mes "While I have managed to remove the cards from the item, they were destroyed in the process. The item, however, is okay.";
  135. mes "[賢い老女]";
  136. mes "頑張ったけどね、";
  137. mes "カードのほうは全部壊れてしまったよ。";
  138. mes "でも武具の方は無事だったよ。";
  139. failedremovecards @part,1;
  140. close;
  141. FAILREMOVECARD2:
  142. // mes "[Wise Old Woman]";
  143. // mes "Most unfortunate. I succeeded at removing the cards, but the item itself was destroyed in the process.";
  144. mes "[賢い老女]";
  145. mes "不運だったね。";
  146. mes "カードを取り外すのはうまくいったけど";
  147. mes "武具が壊れてしまったよ。";
  148. failedremovecards @part,2;
  149. close;
  150. FAILREMOVECARD3:
  151. // mes "[Wise Old Woman]";
  152. // mes "I have failed to remove the cards. Luckily, however, both the item and the cards are still okay.";
  153. mes "[賢い老女]";
  154. mes "カードを取り外すのに失敗したよ。";
  155. mes "でも、不幸中の幸いさ。";
  156. mes "武具もカードも無事だよ。";
  157. failedremovecards @part,3;
  158. close;
  159. DENYCARDCOUNT:
  160. // mes "[Wise Old Woman]";
  161. // mes "Young one... There are no cards compounded on this item. I can do nothing with it, I'm afraid.";
  162. mes "[賢い老女]";
  163. mes "若いの、カードがついてないよ。";
  164. mes "それじゃアタシの出番はないさ。";
  165. close;
  166. DENYMATERIAL:
  167. // mes "[Wise Old Woman]";
  168. // mes "You do not have all the items I require to work my magic, child. Come again when you do.";
  169. mes "[賢い老女]";
  170. mes "必要なアイテムが足りないようだね。";
  171. mes "アイテムを揃えてもう一度来な。";
  172. close;
  173. CLOSEOUT:
  174. // mes "[Wise Old Woman]";
  175. // mes "Very well. Return at once if you seek my services.";
  176. mes "[賢い老女]";
  177. mes "わかったよ。";
  178. mes "アタシの力が必要ならいつでも来な。";
  179. close;
  180. }