Advertisement
Guest User

Exchanger

a guest
Jul 12th, 2013
624
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.43 KB | None | 0 0
  1. //////////////////////////////////
  2. sl_mall02,91,165,3 script Andelinia Exchanger 860,{
  3.  
  4. cutin "kafra_08",2;
  5. mes "[ ^336699Credit Master^000000 ]";
  6. mes "What do you want to do today?";
  7. menu "Coin -> Zeny",L_coin,"Zeny -> coin",L_Zeny,"Gold -> Zeny",L_Gold,"Zeny -> Gold",L_Zeny1,"Nevermind",L_No;
  8.  
  9. ////////////////////////
  10. L_coin:
  11. next;
  12. mes "[ ^336699coin Master^000000 ]";
  13. mes "Very well. Here is the list on how much each coin is worth:";
  14. mes "^996633coin^000000: 500,000 Zeny";
  15. mes "Tell me, what coin would you like to exchange?";
  16. next;
  17. menu "^996633coin^000000",M_coin;
  18.  
  19.  
  20.  
  21. M_coin:
  22. next;
  23. mes "[ ^336699coin Master^000000 ]";
  24. mes "How many coins would you like to give up?";
  25. set @mamount,0;
  26. input @mamount;
  27. if(@mamount < 0) goto L_No;
  28. if(countitem(7517) < @mamount) goto L_No;
  29. set Zeny,(zeny + (500000* @mamount));
  30. delitem 7517,@mamount;
  31. goto L_Thanks;
  32.  
  33. L_Zeny:
  34. next;
  35. mes "[ ^336699coin Master^000000 ]";
  36. mes "Very well. Here is the list on how much each coin is worth:";
  37. mes "^996633coin^000000: 10,000,000m Zeny";
  38. mes "Tell me, what coin would you like to get?";
  39. next;
  40. menu "^996633coin^000000",M_coin1;
  41.  
  42. M_coin1:
  43. next;
  44. mes "[ ^336699coin Master^000000 ]";
  45. mes "How many coins would you like?";
  46. set @mamount,0;
  47. input @mamount;
  48. if (zeny < 0) goto L_No;
  49. if (zeny < (1000000* @mamount)) goto L_No;
  50. set Zeny,(zeny - (500000* @mamount));
  51. getitem 7517,@mamount;
  52. goto L_Thanks;
  53.  
  54. L_Gold:
  55. next;
  56. mes "[ ^336699Gold Master^000000 ]";
  57. mes "Very well. Here is the list on how much each Gold is worth:";
  58. mes "^996633Gold^000000: 100,000k Zeny";
  59. mes "Tell me, what Gold would you like to exchange?";
  60. next;
  61. menu "^996633Gold^000000",M_Gold;
  62.  
  63. M_Gold:
  64. next;
  65. mes "[ ^336699Gold Master^000000 ]";
  66. mes "How many Golds would you like to give up?";
  67. set @mamount,0;
  68. input @mamount;
  69. if(@mamount < 0) goto L_No;
  70. if(countitem(969) < @mamount) goto L_No;
  71. set Zeny,(zeny + (100000* @mamount));
  72. delitem 969,@mamount;
  73. goto L_Thanks;
  74.  
  75.  
  76. L_Zeny1:
  77. next;
  78. mes "[ ^336699Gold Master^000000 ]";
  79. mes "Very well. Here is the list on how much each Gold is worth:";
  80. mes "^996633Gold^000000: 10,000,000m Zeny";
  81. mes "Tell me, what Gold would you like to get?";
  82. next;
  83. menu "^996633Gold^000000",M_Gold1;
  84.  
  85. M_Gold1:
  86. next;
  87. mes "[ ^336699Gold Master^000000 ]";
  88. mes "How many Golds would you like?";
  89. set @mamount,0;
  90. input @mamount;
  91. if (zeny < 0) goto L_No;
  92. if (zeny < (1000000* @mamount)) goto L_No;
  93. set Zeny,(zeny - (100000* @mamount));
  94. getitem 969,@mamount;
  95. goto L_Thanks;
  96.  
  97.  
  98. L_Thanks:
  99. mes "[ ^336699coin Master^000000 ]";
  100. mes "Pleasure doing business with you.";
  101. close2;
  102. cutin "", 255;
  103. close;
  104.  
  105. L_No:
  106. mes "[ ^336699coin Master^000000 ]";
  107. mes "Okay~ Bye!";
  108. close2;
  109. cutin "", 255;
  110. close;
  111. OnInit:
  112. waitingroom "Andelinia Exchanger",0;
  113. end;
  114.  
  115. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement