How to make this script can exchange any ammount player want.
100 poring coin = 30 cashpoint.
100 poring coin = 30 cashpoint.
Code:
//===== eAthena Script =======================================//= Cash Point Exchanger//===== By: ==================================================//= Happ5//===== Current Version: =====================================//= v1//===== Description: =========================================//= exchange coins into point//============================================================izlude,160,149,4 script Point Exchanger 714,{ mes "[Point Exchanger]"; mes "Hi there..i can exchange Poring Coins into points?!"; next; menu "500 Poring Coins to 10 Point",-, "1000 Poring Coins to 30 Point",L_Bl,"Cancel",L_Cancel; mes "[Point Exchanger]"; mes "Good good, let me just check"; next; if(countitem(7539)<500) goto L_NoMake; delitem 7539,500; mes "[Point Exchanger]"; mes "wait a second....."; next; set #CASHPOINTS, #CASHPOINTS+10; mes "[Point Exchanger]"; mes "Total " + #CASHPOINTS + " Cash Points."; close;L_NoMake: mes "[Point Exchanger]"; mes "You don't have enough gold coins to exchange.."; close;L_Bl: mes "[Point Exchanger]"; mes "Good good, let me just check"; next; if(countitem(7539)<1000) goto L_NoMake; delitem 7539,1000; mes "[Point Exchanger]"; mes "Give me a second....."; next; set #CASHPOINTS, #CASHPOINTS+30; mes "[Point Exchanger]"; mes "You now have " + #CASHPOINTS + " Cash Points."; close;L_Leave: mes "[Point Exchanger]"; mes "Maybe another time?"; close;L_Cancel: mes "[Point Exchanger]"; mes "Aw, what a shame"; close;}