Hi i just wanted to know how to make this like 5TCGS = 10Statpoints??
set.@SellStatPOD,30;//Stat Points per 1 PODset.@SellStatTCG,10;//Stat Points per 1 TCGset.@PODid,7179;//POD item idset.@TCGid,7227;//TCG item idset.@MaxStat,2000;//Maximum Stat Points allowed to sell
mes "Hi ^FF0000"+strcharinfo(0)+"^000000!";
mes "Do you wish to buy Stat points?";
mes "1 POD = "+.@SellStatPOD+" stat points";
mes "5 TCG = "+.@SellStatTCG+" stat points";// for this line
mes "Maximum stat points can be purchase is "+.@MaxStat+".";switch(select(" ~ Yes, using PODs: ~ Yes, using TCGs: ~ No")){case1:
mes "How many PODs do you wish to exchange for stat points?";
input .@amount;if(countitem(.@PODid)<.@amount){
mes "Sorry, but don't have enough PODs in your inventory.";
mes " Please come back when you have enough.";
close;}else{set.@StatToBe,StatBought+(.@amount*.@SellStatPOD);if(.@MaxStat<.@StatToBe){
mes "Sorry, but you're about to reach the max stat points that can be bought.";
mes "You have already purchase "+StatBought+" stat points.";
close;}else{
mes "Here you go!";
mes "Please use your stat point wisely.";setStatusPoint,StatusPoint+(.@amount*.@SellStatPOD);setStatBought,StatBought+(.@amount*.@SellStatPOD);
delitem .@PODid[.@StatBought],.@amount;
close;}}case2:
mes "How many TCGs do you wish to exchange for stat points?";
input .@amount;if(countitem(.@TCGid)<.@amount){
mes "Sorry, but don't have enough TCGs in your inventory.";
mes " Please come back when you have enough.";
close;}else{set.@StatToBe,StatBought+(.@amount*.@SellStatTCG);if(.@MaxStat<.@StatToBe){
mes "Sorry, but you're about to reach the max stat points that can be bought.";
mes "You have already purchase "+StatBought+" stat points.";
close;}else{
mes "Here you go!";
mes "Please use your stat point wisely.";setStatusPoint,StatusPoint+(.@amount*.@SellStatTCG);setStatBought,StatBought+(.@amount*.@SellStatTCG);
delitem .@TCGid[.@StatBought],.@amount;
close;}}case3:
mes "I understand, Please come back to me whenever you change your mind.";
close;}OnInit:
waitingroom " Stat Seller",0;
end;}
Question
AinsLord
Hi i just wanted to know how to make this like 5TCGS = 10Statpoints??
thanks in advance
Link to comment
Share on other sites
0 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.