Advertisement
Guest User

Credit Exchanger [Easy Modify]]

a guest
Dec 4th, 2011
1,269
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.52 KB | None | 0 0
  1. //==============================================================================//
  2. //=[Script Release : Credit Exchanger]
  3. //=[Easy Modification]
  4. //============================================================================//
  5. //=[Script : DaemonSpade]
  6. //==============================================================================//
  7. //=[Idea Came From : DaemonSpade]
  8. //=[Special Thanks to : Emistry]
  9. //==============================================================================//
  10. //= Description
  11. //==============================================================================//
  12. //=1. This Script Has Capacity Exchange
  13. //= Zeny Capacity is 2,000,000,000z
  14. //=A.Non Zeny Eater
  15. //=B.Zeny/Credit Limiter Make it Exact
  16. //=Example A: You Have 2b Zeny & You Exchange a Coin/Credit
  17. //= The NPC Will Ask You Agian How Many Credits or Zeny You Will Exchanged
  18. //=Example B: It Reads Your Zeny so The NPC Know The Max of Credit You Can Exchange Dont Put Wrong Ammount of Credit/Coin
  19. //= The NPC Will Ask You Agian How Many Credits or Zeny You Will Exchanged
  20. //==============================================================================//
  21. //= Rules for using this script
  22. //=1. Do not claim it as yours.
  23. //=2. Do not change the credits.
  24. //=3. Do not sell the script to earn money.
  25. //==============================================================================//
  26.  
  27. prontera,160,184,5 script Credit Exchanger 416,{
  28.  
  29. //====================================[Customization Area]==========================//
  30. set .npcname$,"^0000EE[Credit Exchanger]^000000"; //NPC Name
  31. set .coinname$,"^0000EECredit^000000"; //Name of Item as Coin Used
  32. set .CoinID,501; // Credit ID Set to Red Potion
  33. set .zeny,10000000; // Credit Price Set by 10,000,000 or 10m
  34. set .capzeny,2000000000; //Zeny Capacity Set by 2,000,000,000 or 2b
  35. //==============================================================================//
  36. // Check Line 89 To Edit The Chat/Pub Name Like This:
  37. // waitingroom "Credit Exchanger",0;
  38. //==============================================================================//
  39.  
  40. PlayerMode:
  41. mes .npcname$;
  42. mes "Hello there "+strcharinfo(0);
  43. mes "Rule's Of Exchange";
  44. mes "1 ^0000EE"+.coinname$+"^000000 is [^0000EE"+.zeny+"z^000000]";
  45. mes "Zeny Exchange Capacity is [^0000EE"+.capzeny+"z^000000]";
  46. switch(select("(Credits) to (Zeny):(Zeny) to (Credits)")) {
  47. Case 1:
  48. next;
  49. mes .npcname$;
  50. mes "How many Credits to exchange?";
  51. mes "Put The Credit Amount";
  52. mes "Put ^0000EE[0]^000000 to Cancel";
  53. mes "1 ^0000EE"+.coinname$+"^000000 is [^0000EE"+.zeny+"z^000000]";
  54. mes "Zeny Exchange Capacity is [^0000EE"+.capzeny+"z^000000]";
  55. next;
  56. do{
  57. input @Credit,0,countitem(.CoinID);
  58. if( @Credit < 1 ) close;
  59. }while( ( ( @Credit * .zeny ) + Zeny ) > .capzeny );
  60. next;
  61. mes .npcname$;
  62. mes "Thanks";
  63. delitem .CoinID,@Credit;
  64. set Zeny, Zeny + ( @Credit * .zeny );
  65. dispbottom "Zeny Exchange Finished";
  66. close;
  67.  
  68. Case 2:
  69. next;
  70. mes .npcname$;
  71. mes "How much Credit you like to Gain?";
  72. mes "Put The Credit Amount";
  73. mes "Put ^0000EE[0]^000000 to Cancel";
  74. mes "1 ^0000EE"+.coinname$+"^000000 is [^0000EE"+.zeny+"z^000000]";
  75. mes "Zeny Exchange Capacity is [^0000EE"+.capzeny+"z^000000]";
  76. next;
  77. input @Credit,0,( Zeny / .zeny );
  78. if( @Credit < 1 ) close;
  79. next;
  80. mes .npcname$;
  81. mes "Thanks.";
  82. set Zeny, Zeny - ( @Credit * .zeny);
  83. getitem .CoinID,@Credit;
  84. dispbottom "Credit Exchange Finished";
  85. close;
  86.  
  87. OnInit:
  88. waitingroom "Credit Exchanger",0;
  89. end;
  90. }
  91. close;
  92. }
  93.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement