diamond.txt 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246
  1. //===== rAthena Script =======================================
  2. //= Rare Diamond Merchant
  3. //===== By: ==================================================
  4. //= Z3R0
  5. //===== Current Version: =====================================
  6. //= 1.5
  7. //===== Compatible With: =====================================
  8. //= rAthena Project
  9. //===== Description: =========================================
  10. //= [Official Conversion]
  11. //= Exchanges 17 Carat Diamond
  12. //===== Additional Comments: =================================
  13. //= 1.0 First / Optimized Version
  14. //= 1.1 Adjusted for Missing ; on Line #271 (#15425)
  15. //= 1.2 Removed Comments per Request (#15426)
  16. //= 1.3 Changed Emotion # to Const Definition (#15427)
  17. //= 1.4 Removed Double Space on Line #148 (#15428)
  18. //= 1.5 Added This Version History (#15429)
  19. //============================================================
  20. // Main NPC :: diamond
  21. //============================================================
  22. - script RareDiamondMerchant 58,{
  23. set .@npc$, "[Rare Diamond Merchant]";
  24. mes .@npc$;
  25. mes "Ladies and Gentlemen! ! !";
  26. mes "You've heard rumors but you've never once seen with your own eyes";
  27. mes "the world's rarest diamond!";
  28. mes "The ^FF82FF'17 Carat Diamond'^000000 is currently on sale for a cheap price!!";
  29. mes "If valuable diamonds interest you then listen up!";
  30. next;
  31. mes .@npc$;
  32. mes "You can give the diamond as a gift to your lover.";
  33. mes "The receiver of the ^FF82FF'17 Carat Diamond'^000000 will cherish it";
  34. mes "and treasure you in their heart.";
  35. emotion ET_BLABLA;
  36. next;
  37. mes .@npc$;
  38. mes "What? You don't have a lover?";
  39. mes "You can still just hang on to it for yourself.";
  40. mes "The enchanting aura of the ^FF82FF'17 Carat Diamond'^000000 is likely";
  41. mes "to bring love into your life.";
  42. next;
  43. mes .@npc$;
  44. mes "Known as the captivating diamond of diamonds...";
  45. mes "It is the ^FF82FF'17 Carat Diamond'^000000!";
  46. next;
  47. set .@menu$, "^FF82FF'17 Carat Diamond'^000000?";
  48. if (countitem(6024))
  49. set .@menu$, .@menu$ + ":Exchange my 17 Carat Diamond for zeny...";
  50. switch(select(.@menu$)) {
  51. case 1:
  52. mes .@npc$;
  53. mes "Yes!";
  54. mes "Hehe, the ^FF82FF'17 Carat Diamond'^000000 you see right now";
  55. mes "is one of the highest quality 17 carat diamonds.";
  56. mes "Comparing it to any pea-sized, colorless rock you may have";
  57. mes "dug up from Morocc is unspeakable!";
  58. emotion ET_HUK;
  59. next;
  60. mes .@npc$;
  61. mes "Some claim that this is the very same diamond";
  62. mes "that was seen by Kachua in Comodo!";
  63. next;
  64. if (select("End Conversation:How much is it?") == 1) {
  65. mes .@npc$;
  66. mes "It's rather inexpensive!";
  67. mes "If you're interested, talk to me any time!";
  68. close;
  69. }
  70. mes .@npc$;
  71. mes "Of course! The most important thing is price!";
  72. mes "As I've said earlier, the ^FF82FF'17 Carat Diamond'^000000 has been";
  73. mes "appraised as a 17 carat diamond.";
  74. mes "There aren't many like it in the world.";
  75. next;
  76. mes .@npc$;
  77. mes "The price is a mere 500 million zeny!";
  78. mes "There is also a 1,000,000z service fee.";
  79. mes "Compared to the quality of the diamond";
  80. mes "this is a small price to pay.";
  81. next;
  82. if (select("^828282It's too expensive.^000000:I'll buy it.") == 1) {
  83. mes .@npc$;
  84. mes "To say that a diamond such as the";
  85. mes "^FF82FF'17 Carat Diamond'^000000 is too expensive, ";
  86. mes "you leave me speechless.";
  87. close;
  88. }
  89. mes .@npc$;
  90. mes "OOOH! I knew from the moment I saw you that you were the rightful";
  91. mes "owner of this wonderful diamond.";
  92. mes "I'm glad I wasn't wrong!";
  93. mes "I believe this diamond will suit you quite well.";
  94. mes "All I need from you is to complete this contract.";
  95. next;
  96. while(1) {
  97. if (select("^B9062FI will sign the contract.^000000:^828282Nevermind, I changed my mind.^000000") == 2) {
  98. mes .@npc$;
  99. mes "I see, that's too bad..";
  100. close;
  101. }
  102. mes .@npc$;
  103. mes "What is your name?";
  104. next;
  105. mes "[" + strcharinfo(0) + "]";
  106. mes "My name is " + strcharinfo(0) + ".";
  107. next;
  108. mes .@npc$;
  109. mes "Alright then, please sign here.";
  110. next;
  111. input .@charname$;
  112. if (.@charname$ == strcharinfo(0)) {
  113. mes .@npc$;
  114. mes "Okay, good.";
  115. mes "All that is left now is payment.";
  116. next;
  117. if (Zeny >= 501000000) {
  118. mes .@npc$;
  119. mes ". . . . . .";
  120. next;
  121. mes .@npc$;
  122. mes "Calculating the price and service fee..";
  123. mes "501,000,000 zeny.";
  124. mes "Amount has been confirmed.";
  125. emotion ET_BLABLA;
  126. set Zeny, Zeny - 501000000;
  127. getitem 6024, 1;
  128. next;
  129. mes .@npc$;
  130. mes "You may exchange the diamond back for zeny at any time.";
  131. mes "However, there will be a 1,000,000z service fee.";
  132. mes "Thank you for your business.";
  133. emotion ET_THANKS;
  134. close;
  135. }
  136. else {
  137. mes .@npc$;
  138. mes "Hm?";
  139. mes "I'm sorry, but you don't have sufficient funds.";
  140. mes "Including the service fee, a total of 501,000,000z is required.";
  141. mes "Please check your zeny balance and try again.";
  142. emotion ET_SCRATCH;
  143. close;
  144. }
  145. }
  146. else {
  147. mes .@npc$;
  148. mes "Is this really your signature?";
  149. mes "Will sign again to confirm?";
  150. next;
  151. }
  152. }
  153. case 2:
  154. mes .@npc$;
  155. mes "AAH. You would like to exchange your ^FF82FF'17 Carat Diamond'^000000 for zeny?";
  156. emotion ET_SURPRISE;
  157. next;
  158. if (select("Yes:No") == 2) {
  159. mes .@npc$;
  160. mes "Then, what is it you desire?..";
  161. mes ". . . . . ....";
  162. emotion ET_THINK;
  163. close;
  164. }
  165. mes .@npc$;
  166. mes "I see. After I receive your signature, ";
  167. mes "You must offer your ^FF82FF'17 Carat Diamond'^000000.";
  168. mes "Also don't forget there is a 1,000,000z service fee!";
  169. next;
  170. mes .@npc$;
  171. mes "What is your name?";
  172. next;
  173. mes "[" + strcharinfo(0) + "]";
  174. mes "My name is " + strcharinfo(0) + ".";
  175. next;
  176. mes .@npc$;
  177. mes "Alright then, please sign here.";
  178. next;
  179. while (1) {
  180. if (select("Sign:Don't Sign") == 2) {
  181. mes .@npc$;
  182. mes "The trade cannot be completed without your signature.";
  183. close;
  184. }
  185. input .@charname$;
  186. if (.@charname$ == strcharinfo(0)) {
  187. mes .@npc$;
  188. mes "Your signature has been received.";
  189. mes "I will now take your ^FF82FF'17 Carat Diamond'^000000..";
  190. mes "You will receive ^0000FF499,000,000z^000000 afterwards.";
  191. next;
  192. mes .@npc$;
  193. mes "Thank you for your business.";
  194. mes "Whenever you need a ^FF82FF'17 Carat Diamond'^000000,";
  195. mes "come back anytime with 500 million zeny.";
  196. emotion ET_THANKS;
  197. delitem 6024, 1;
  198. set Zeny, Zeny + 499000000;
  199. close;
  200. }
  201. else {
  202. mes .@npc$;
  203. mes "Is this really your signature?";
  204. mes "Will sign again to confirm?";
  205. next;
  206. }
  207. }
  208. }
  209. }
  210. prontera,165,89,6 duplicate(RareDiamondMerchant) Rare Diamond Merchant#1 58
  211. geffen,106,63,6 duplicate(RareDiamondMerchant) Rare Diamond Merchant#2 58
  212. morocc,146,100,6 duplicate(RareDiamondMerchant) Rare Diamond Merchant#3 58
  213. alberta,129,60,6 duplicate(RareDiamondMerchant) Rare Diamond Merchant#4 58
  214. lighthalzen,163,65,6 duplicate(RareDiamondMerchant) Rare Diamond Merchant#5 58
  215. rachel,106,142,6 duplicate(RareDiamondMerchant) Rare Diamond Merchant#6 58
  216. payon,180,130,6 duplicate(RareDiamondMerchant) Rare Diamond Merchant#7 58