elemental_trader.txt 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  1. //===== rAthena Script =======================================
  2. //= Elemental Stone Trader
  3. //===== By: ==================================================
  4. //= rAthena Team & MasterOfMuppets
  5. //===== Current Version: =====================================
  6. //= 1.1
  7. //===== Compatible With: =====================================
  8. //= rAthena Project
  9. //===== Description: =========================================
  10. //= [Official Conversion]
  11. //= Trade impure types of elemental stones for pure ones.
  12. //===== Additional Comments: =================================
  13. //= 1.0 Rescripted to Aegis 10.3 standards. [L0ne_W0lf]
  14. //= 1.1 Optimized. [Euphy]
  15. //============================================================
  16. ama_in02,61,27,7 script Alchemist#ama 749,{
  17. mes "[Laspuchin Gregory]";
  18. mes "KeekeekeeKeheheh.";
  19. mes "This is amazing!";
  20. mes "The results are extraordinary!!";
  21. next;
  22. mes "[Laspuchin Gregory]";
  23. mes "Using my skills in this distant";
  24. mes "land was unexpected...";
  25. mes "Keheheh... The lord of palace";
  26. mes "was quite accomodating.";
  27. next;
  28. mes "[Laspuchin Gregory]";
  29. mes "Oops, I better be careful...";
  30. mes "If the guild finds out my";
  31. mes "location, stupid Myster will";
  32. mes "get mad at me. Kehehehkeh...";
  33. next;
  34. mes "[Laspuchin Gregory]";
  35. mes "What? Wanna say something?";
  36. mes "If you are here for tourism,";
  37. mes "enjoy your day off, then go back to your hometown.";
  38. mes "Keekeekee... Or else,";
  39. mes "I will let you taste my acid bottle...!";
  40. next;
  41. if (select("Please, excuse me:Do you need help?") == 1) {
  42. mes "[Laspuchin Gregory]";
  43. mes "Keheheh... Did you hear";
  44. mes "what I said? It would be";
  45. mes "better to forget...";
  46. mes "Keekeekeekeekee...";
  47. close;
  48. }
  49. mes "[Laspuchin Gregory]";
  50. mes "Help, eh?...";
  51. mes "Now that I think about it...";
  52. mes "I need some items right now...";
  53. mes "Keeheeheekeehee...";
  54. next;
  55. mes "[Laspuchin Gregory]";
  56. mes "Sir Laspuchin needs some";
  57. mes "enchant stones for an experiment.";
  58. mes "I will use it efficiently...";
  59. mes "Do you have them now?";
  60. next;
  61. if (select("Nope:I got some") == 1) {
  62. mes "[Laspuchin Gregory]";
  63. mes "Then, find 8 stones of one kind.";
  64. mes "If you bring 8 of one kind of";
  65. mes "enchant stones, I will change it";
  66. mes "to a better one...";
  67. next;
  68. mes "[Laspuchin Gregory]";
  69. mes "Then, find 8 stones of one kind.";
  70. mes "not the round gemstones but";
  71. mes "enchant stones.";
  72. mes "If you bring the wrong stones,";
  73. mes "I will throw a flame bottle!";
  74. next;
  75. mes "[Laspuchin Gregory]";
  76. mes "Bring me stones, slave~!!";
  77. mes "And keep your promise! Kehehehkehkeh...";
  78. close;
  79. }
  80. mes "[Laspuchin Gregory]";
  81. mes "Uh-huh, what did you bring?";
  82. next;
  83. setarray .@Items[1],995,997,994,996;
  84. set .@i, .@Items[select("Mystic Frozen:Great Nature:Flame Heart:Rough Wind")];
  85. mes "[Laspuchin Gregory]";
  86. if (countitem(.@i) > 7) {
  87. mes "I will take 8 of them and";
  88. mes "give you an enchant stone.";
  89. mes "How's that sound?";
  90. mes "Keheheh.....";
  91. next;
  92. mes "[Laspuchin Gregory]";
  93. mes "HeeHee, what do you want? Choose one!";
  94. next;
  95. set .@menu$, "";
  96. for(set .@j,1; .@j<5; set .@j,.@j+1) {
  97. if (.@Items[.@j] != .@i) set .@menu$, .@menu$+getitemname(.@Items[.@j]);
  98. set .@menu$, .@menu$+":";
  99. }
  100. set .@menu$, .@menu$+"Cancel the trade";
  101. set .@j, select(.@menu$);
  102. mes "[Laspuchin Gregory]";
  103. if (.@j == 5) {
  104. mes "Oh, well.";
  105. mes "Don't tell anyone about my location...";
  106. mes "Keheheh...after all, you did promise~";
  107. close;
  108. }
  109. else if (.@j == 4) {
  110. if (countitem(.@i) > 11) {
  111. delitem .@i,12;
  112. getitem 996,1;
  113. mes "Kehhehheh, You know something?";
  114. mes "I don't have many of those";
  115. mes "so I'm going to take ^0000FF12^000000 of yours, okay?";
  116. mes "Of course, it is okay.";
  117. mes "It is an honor to help Laspuchin!";
  118. close;
  119. }
  120. mes "Keheheh, You know something.";
  121. mes "I don't have many of these so";
  122. mes "I can't just get 8 of yours.";
  123. mes "If you want to change them to Rough Wind,";
  124. mes "bring me 4 more stones. 8 + 4 = 12...";
  125. mes "Requires ^0000FF12^000000 stones.";
  126. next;
  127. mes "[Laspuchin Gregory]";
  128. mes "Bring me stones, slave~!!";
  129. mes "And keep your promise! Kehheheheheh...";
  130. close;
  131. }
  132. else {
  133. delitem .@i,8;
  134. getitem .@Items[.@j],1;
  135. mes "Keheheh! You've chosen a good one!";
  136. mes "Use it well...";
  137. mes "Bring me other stones if you have them!";
  138. close;
  139. }
  140. } else if (countitem(.@i)) {
  141. mes "You can't help Laspuchin with just a couple";
  142. mes "of enchant stones... I said 8!";
  143. mes "Bring me just 8 stones!";
  144. mes "Keheheh.....";
  145. next;
  146. mes "[Laspuchin Gregory]";
  147. mes "Bring me stones, slave~!!";
  148. mes "And keep your promise! Keheheheheh...";
  149. close;
  150. }
  151. mes "Keheheh~ Check your pockets";
  152. mes "before you tell me";
  153. mes "how foolish you are.....";
  154. next;
  155. mes "[Laspuchin Gregory]";
  156. mes "Bring me stones! You said you are going to help me!";
  157. mes "Keep your promises! Kehehehkehkeh...";
  158. close;
  159. }