neko_isle,73,118,4 script ExchangerBoard4_BOARD3,{
setarray .@item,6078,6078,757,756;
setarray .@sellrate,100,100,15,15;
setarray .@exchange,757,756,985,984;
setarray .@amount,1,1,1,1;.@menu= select((countitem(6078)?"100x "+getitemname(6078)+" to 1x "+getitemname(757)+"":""),(countitem(6078)?"- Exchange with "+getitemname(6078)+"":""),(countitem(757)?"- Exchange with "+getitemname(757)+"":""),(countitem(756)?"- Exchange with "+getitemname(756)+"":""),"- Nothing");switch(.@menu){case1:.@amount= countitem(.@item[choice])/100;.@getitem= countitem(.@exchange[choice])/.@amount;.@divided=.@amount/.@exchange;
mes "You can exchange a total of "+.@getitem+".";
getitem .@exchange[choice],(.@getitem);
delitem .@item[choice],(.@amount);break;case2:set.choice,1;
delitem .@item[1],.@sellrate[.choice];
getitem .@exchange[.choice],.@amount[.choice];break;case3:set.choice,2;
delitem .@item[2],.@sellrate[.choice];
getitem .@exchange[.choice],.@amount[.choice];break;case4:set.choice,2;
delitem .@item[3],.@sellrate[.choice];
getitem .@exchange[.choice],.@amount[.choice];break;default:
mes "[ Exchanger ]";
mes "There's nothing i can do for you.";
mes " ";
mes "Please come back to me later!";break;}
end;}
i was only focus on case 1, since i got stuck there on other case would have same result?
Question
Dolphin86
As title, i was trying to make player have an option how many item can he exchange, but some what i keep failing, please help?
the idea was below:
Exchange Script:
i was only focus on case 1, since i got stuck there on other case would have same result?
Link to comment
Share on other sites
2 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.