Advertisement
Ryuuji

Coin To Coin Exchanger 1.1

Feb 12th, 2014
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.90 KB | None | 0 0
  1. //===== rAthena Script =======================================
  2. //= Kido's First Scrip Release: Coin to Coin Exchanger
  3. //===== By: ==================================================
  4. //= 100% Kido
  5. //===== Current Version: =====================================
  6. //= 1.1
  7. //===== Compatible With: =====================================
  8. //= rAthena (any version?)
  9. //===== Description: =========================================
  10. //= Just a Coin to Coin Exchanger
  11. //= Exchanges an amount of desired coins for an specific amount
  12. //= DO NOT CHANGE input @amount,0,100; <-- the 100, if you do to 1000 or more
  13. //=the script will give that amount to the player (bug?)
  14. //= Players have to specify the correct amount! if not, script will just
  15. //=delete any extra amount that does not complete the request of exchange
  16. //===== Version Change Log ==================================
  17. //= 1.0: First release, already tested and no bugs (report if any?)
  18. //= 1.1: Replaced a lot of labels L_thing for Switch(select (thanks Annie)
  19. //===== YOU CAN NOT ==========================================
  20. //= Remove the credits
  21. //= Re-release it as yours
  22. //= Re-release them in any way (modified or otherwise)
  23. //= Sell it (make money with it)
  24. //===== YOU CAN ==============================================
  25. //= Improve it
  26. //= Change the name of the NPC
  27. //= Add mes or extra options
  28. //============================================================
  29. izlude,99,147,4 script Exchange House 935,{
  30. mes "Table of values";
  31. mes "100 Bronze = 1 Silver";
  32. mes "100 Silver = 1 Gold";
  33. mes "100 Gold = 1 Mithril";
  34. mes "100 Mithril = 1 Platinum";
  35. mes "100 Platinum = 1 Proof of Donation";
  36. next;
  37. switch(select("Bronze to Silver:Silver to Gold:Gold to Mithril:Mithril to Platinum:Platinum to Proof of Donation:Nothing, thank you.")) {
  38. case 1:
  39. mes "Input the amount of desired Silver Coins.";
  40. mes "Remember: 100 Bronze Coin = 1 Silver Coin";
  41. mes "I can exchange you a Maxium of: 100 of your desired coin.";
  42. next;
  43. if(countitem(673)<100) {
  44. mes "You don't have enought Coin to get the desired amount of coins that you specified.";
  45. close;
  46. }
  47. else
  48. {
  49. input @amount,0,100;
  50. delitem 673,1*@amount*100;
  51. getitem 675,1*@amount;
  52. close;
  53. }
  54. case 2:
  55. mes "Input the amount of desired Goldr Coins.";
  56. mes "Remember: 100 Silver Coin = 1 Gold Coin";
  57. mes "I can exchange you a Maxium of: 100 of your desired coin.";
  58. next;
  59. if(countitem(675)<100) {
  60. mes "You don't have enought Coin to get the desired amount of coins that you specified.";
  61. close;
  62. }
  63. else
  64. {
  65. input @amount,0,100;
  66. delitem 675,1*@amount*100;
  67. getitem 671,1*@amount;
  68. close;
  69. }
  70. case 3:
  71. mes "Input the amount of desired Mithril Coins.";
  72. mes "Remember: 100 Gold Coin = 1 Mithril Coin";
  73. mes "I can exchange you a Maxium of: 100 of your desired coin.";
  74. next;
  75. if(countitem(671)<100) {
  76. mes "You don't have enought Coin to get the desired amount of coins that you specified.";
  77. close;
  78. }
  79. else
  80. {
  81. input @amount,0,100;
  82. delitem 671,1*@amount*100;
  83. getitem 674,1*@amount;
  84. close;
  85. }
  86. case 4:
  87. mes "Input the amount of desired Platinum Coins.";
  88. mes "Remember: 100 Mithril Coin = 1 Platinum Coin";
  89. mes "I can exchange you a Maxium of: 100 of your desired coin.";
  90. next;
  91. if(countitem(674)<100) {
  92. mes "You don't have enought Coin to get the desired amount of coins that you specified.";
  93. close;
  94. }
  95. else
  96. {
  97. input @amount,0,100;
  98. delitem 674,1*@amount*100;
  99. getitem 677,1*@amount;
  100. close;
  101. }
  102. case 5:
  103. mes "Input the amount of desired Proof od Donation.";
  104. mes "Remember: 100 Platinum Coin = 1 Proof of Donation";
  105. mes "I can exchange you a Maxium of: 100 of your desired Proof of Donation.";
  106. next;
  107. if(countitem(677)<100) {
  108. mes "You don't have enought Coin to get the desired amount of coins that you specified.";
  109. close;
  110. }
  111. else
  112. {
  113. input @amount,0,100;
  114. delitem 677,1*@amount*100;
  115. getitem 7179,1*@amount;
  116. close;
  117. }
  118. case 6:
  119. mes "Allright, if you need to get some coins come to me.";
  120. close;
  121. }
  122. OnInit:
  123. waitingroom "Coin Exchange",0;
  124. end;
  125. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement