merchant_skills.txt 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  1. //===== rAthena Script =======================================
  2. //= Merchant Skills Quests
  3. //===== Description: =========================================
  4. //= [Official Conversion]
  5. //- NPC for skills Pushcart Decoration.
  6. //===== Changelogs: ==========================================
  7. //= 1.0 First version. [Capuche]
  8. //============================================================
  9. alberta,47,37,5 script Cart Remodel Expert 4_M_REPAIR,{
  10. .@max_skill_lvl = 1;
  11. if (cart_remodel == 0) {
  12. mes "[Jason]";
  13. mes "The original pushcart is beautiful!";
  14. next;
  15. mes "[Jason]";
  16. mes "The solid grey color pushcart.";
  17. next;
  18. mes "[Jason]";
  19. mes "I can remodel it into new cute designs.";
  20. next;
  21. switch( select( "What is Pushcart Decoration?", "Learn Pushcart Decoration", "End Dialog" ) ) {
  22. case 1:
  23. mes "[Jason]";
  24. mes "I would like to completely remodel the poor pushcart.";
  25. next;
  26. mes "[Jason]";
  27. mes "A little remodel isn't enough, don't you agree?";
  28. next;
  29. mes "[Jason]";
  30. mes "Therefore I have invented some new designs.";
  31. next;
  32. mes "[Jason]";
  33. mes "It is cute and refreshing!";
  34. close;
  35. case 2:
  36. if (BaseClass != Job_Merchant) {
  37. mes "[Jason]";
  38. mes "Why do you want learn Pushcart Decoration? Don't disturb me!";
  39. close;
  40. }
  41. if (countitem(6606) == 0) {
  42. mes "[Jason]";
  43. mes "It is difficult to learn the Pushcart Decoration.";
  44. next;
  45. mes "[Jason]";
  46. mes "I will teach you if you bring the ^3131FFCute Cart Remodel Coupon^000000 to me.";
  47. close;
  48. }
  49. mes "[Jason]";
  50. mes "You have brought the Cute Cart Remodel Coupon. Are you sure you want to learn Pushcart Decoration?";
  51. next;
  52. if (select("YES", "NO") == 2) {
  53. mes "[Jason]";
  54. mes "Come again after you have changed your mind!";
  55. close;
  56. }
  57. mes "[Jason]";
  58. mes "Alright! Follow me.";
  59. next;
  60. mes "[Jason]";
  61. mes "This design";
  62. mes "needs to catch the pushcart...";
  63. next;
  64. mes "[Jason]";
  65. mes "This design";
  66. mes "needs to catch the pushcart.";
  67. mes "Then add this....";
  68. mes "...";
  69. next;
  70. mes "[Jason]";
  71. mes "You are a genius! You have learned it!";
  72. next;
  73. mes "[Jason]";
  74. mes "Now is your turn to do it.";
  75. mes "Press Alt+S to change your pushcart!";
  76. next;
  77. mes "[Jason]";
  78. mes "This is the new cute design pushcart. You are one of our family now...!";
  79. delitem 6606,1; // P_Cart_C
  80. cart_remodel = 1;
  81. skill "MC_CARTDECORATE",1,SKILL_PERM;
  82. close;
  83. case 3:
  84. close;
  85. }
  86. }
  87. mes "[Jason]";
  88. mes "Have you decorated the pushcart?";
  89. next;
  90. switch( select( "Is there more to learn?", "I forgot how to decorate my pushcart" ) ) {
  91. case 1:
  92. if (cart_remodel == .@max_skill_lvl) {
  93. mes "[Jason]";
  94. mes "No. I am still exploring new designs. I will teach you once I have learned it.";
  95. close;
  96. }
  97. mes "[Jason]";
  98. mes "I have something to teach, do you want to learn?";
  99. next;
  100. mes "[Jason]";
  101. mes "I need a ^3131FFCute Cart Remodel Coupon^000000.";
  102. next;
  103. if (select("I want to learn", "No") == 2) {
  104. mes "[Jason]";
  105. mes "You can come back anytime.";
  106. close;
  107. }
  108. if (countitem(6606) < 0) {
  109. mes "[Jason]";
  110. mes "You don't have any Cute Cart Remodel Coupon?";
  111. close;
  112. }
  113. mes "[Jason]";
  114. mes "Ok, let's begin!";
  115. next;
  116. mes "[Jason]";
  117. mes "Doing it like this is better.";
  118. mes "Do that like this as well...";
  119. next;
  120. mes "[Jason]";
  121. mes "....";
  122. mes "Let's do it!";
  123. next;
  124. mes "[Jason]";
  125. mes "I have taught you the skill, you can try it now.";
  126. delitem 6606,1; // P_Cart_C
  127. cart_remodel++;
  128. skill "MC_CARTDECORATE", cart_remodel ,SKILL_PERM;
  129. close;
  130. case 2:
  131. mes "[Jason]";
  132. mes "Oh? Let me see.";
  133. next;
  134. if (BaseClass != Job_Merchant) {
  135. mes "[Jason]";
  136. mes "Please come again after you can use the pushcart!";
  137. close;
  138. }
  139. mes "[Jason]";
  140. mes "Do you not remember what I have taught you?";
  141. mes "I have taught you this method.";
  142. next;
  143. mes "[Jason]";
  144. mes "You have forgotten?";
  145. mes "Let's recall now!";
  146. next;
  147. mes "[Jason]";
  148. mes "Think carefully, you will remember it again.";
  149. skill "MC_CARTDECORATE",1,SKILL_PERM;
  150. close;
  151. }
  152. }