- script Credit Exchanger#2 903,{
mes "[Credit Exchanger]";
mes "What do you want?";
switch(select("[Gold Credits to Violet Credits]","[Gold Credits to Zeny]","[Zeny to Gold Credits]")){
case 1:
if(!countitem(1230002)){
mes "You don't have any credit";
close;
}
mes "How many you want to exchange?";
input @u;
if(countitem(1230002)<@u || @u < 100){
mes "You don't have enough credit.";
close;
}
set @realu, @u / 100; //report to nearest 100 multiplier
mes "Ok~!";
delitem 1230002,@realu * 100;
getitem "1230001", @realu;
close;
case 2:
if(!countitem(1230002)){
mes "You don't have any credit";
close;
}
mes "How many you want to exchange?";
input @u;
if(countitem(1230002)<@u){
mes "You don't have enough credit.";
close;
}
mes "Ok~!";
delitem 1230002,@u;
set Zeny,Zeny+10000000*@u;
set @u,0;
close;
case 3:
if(Zeny<10000000){
mes "You don't have enough Zeny.";
close;
}
mes "How many you want to exchange?";
input @u;
if(10000000*@u>Zeny){
mes "You don't have enough Zeny.";
close;
}
set ztc_player,gettimetick(2);
mes "Ok~!";
getitem 1230002,@u;
set Zeny,Zeny-10000000*@u;
close;
case 4:
if(!countitem(1230001)){
mes "You don't have any credit";
close;
}
mes "How many you want to exchange?";
input @u;
if(countitem(1230001)<@u || @u < 1){
mes "You don't have enough credit.";
close;
}
set @realu, @u / 1; //report to nearest 1 multiplier
mes "Ok~!";
delitem 1230001,@realu * 1;
getitem "1230002", @realu;
close;
Question
GoldRoger
is it correct what i edited?.. case line 4 not appear at n pc
Link to comment
Share on other sites
4 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.