Advertisement
Ryuuji

Coin to Coin Exchanger 1.0

Dec 24th, 2013
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.01 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.0
  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. //===== YOU CAN NOT ==========================================
  19. //= Remove the credits
  20. //= Re-release it as yours
  21. //= Re-release them in any way (modified or otherwise)
  22. //= Sell it (make money with it)
  23. //===== YOU CAN ==============================================
  24. //= Improve it
  25. //= Change the name of the NPC
  26. //= Add mes or extra options
  27. //============================================================
  28. prontera,159,177,4 script Exchange House 935,{
  29. mes "Table of values";
  30. mes "100 Bronze = 1 Silver";
  31. mes "100 Silver = 1 Gold";
  32. mes "100 Gold = 1 Mithril";
  33. mes "100 Mithril = 1 Platinum";
  34. mes "100 Platinum = 1 Proof of Donation";
  35. next;
  36. menu "Bronze to Silver",L_BS,"Silver to Gold",L_SG,"Gold to Mithril",L_GM,"Mithril to Platinum",L_MP,"Platinum to Proof of Don.",L_PP,"nothing, thank you anyway",L_ND;
  37. next;
  38. L_ND:
  39. mes "Allright, if you need to get some coins come to me.";
  40. close;
  41. no_item:
  42. mes "You don't have enought Coin to get the desired amount of coins that you specified.";
  43. close;
  44. L_BS:
  45. if(countitem(673)<100)goto no_item;
  46. mes "Input the amount of desired Silver Coins.";
  47. mes "Remember: 100 Bronze Coin = 1 Silver Coin";
  48. mes "I can exchange you a Maxium of: 100 of your desired coin.";
  49. mes "I DO NOT DO REFUNDS, input the amount that correctly matches with your affordable desired coins that you want.";
  50. input @amount,0,100;
  51. delitem 673,1*@amount*100;
  52. getitem 675,1*@amount;
  53. close;
  54. L_SG:
  55. if(countitem(675)<100)goto no_item;
  56. mes "Input the amount of desired Goldr Coins.";
  57. mes "Remember: 100 Silver Coin = 1 Gold Coin";
  58. mes "I can exchange you a Maxium of: 100 of your desired coin.";
  59. mes "I DO NOT DO REFUNDS, input the amount that correctly matches with your affordable desired coins that you want.";
  60. input @amount,0,100;
  61. delitem 675,1*@amount*100;
  62. getitem 671,1*@amount;
  63. close;
  64. L_GM:
  65. if(countitem(671)<100)goto no_item;
  66. mes "Input the amount of desired Mithril Coins.";
  67. mes "Remember: 100 Gold Coin = 1 Mithril Coin";
  68. mes "I can exchange you a Maxium of: 100 of your desired coin.";
  69. mes "I DO NOT DO REFUNDS, input the amount that correctly matches with your affordable desired coins that you want.";
  70. input @amount,0,100;
  71. delitem 671,1*@amount*100;
  72. getitem 674,1*@amount;
  73. close;
  74. L_MP:
  75. if(countitem(674)<100)goto no_item;
  76. mes "Input the amount of desired Platinum Coins.";
  77. mes "Remember: 100 Mithril Coin = 1 Platinum Coin";
  78. mes "I can exchange you a Maxium of: 100 of your desired coin.";
  79. mes "I DO NOT DO REFUNDS, input the amount that correctly matches with your affordable desired coins that you want.";
  80. input @amount,0,100;
  81. delitem 674,1*@amount*100;
  82. getitem 677,1*@amount;
  83. close;
  84. L_PP:
  85. if(countitem(677)<100)goto no_item;
  86. mes "Input the amount of desired Proof od Donation.";
  87. mes "Remember: 100 Platinum Coin = 1 Proof of Donation";
  88. mes "I can exchange you a Maxium of: 100 of your desired Proof of Donation.";
  89. mes "I DO NOT DO REFUNDS, input the amount that correctly matches with your affordable desired Proof of Donation that you want.";
  90. input @amount,0,100;
  91. delitem 677,1*@amount*100;
  92. getitem 7179,1*@amount;
  93. close;
  94. OnInit:
  95. waitingroom "Casa de Cambio",0;
  96. end;
  97. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement