Hello! How can I make this first option trigger selling window rather than buy? Thanks in Advance.
crystilia,72,88,3 script Tool Dealer#prt 125,{
mes "What do you like to buy?";
switch( select( "Sell", "Ammunition Box", "Single Ammo", "Identify My Items", "Nothing" ) ) {
next;
case 1:
callshop "Sell",1;
end;
case 2:
callshop "AmmunitionBox",1;
end;
case 3:
callshop "SingleAmmo",1;
end;
case 4:
mes "Here you go";
callfunc "identify123";
end;
case 5:
mes "Okay, have a nice day";
close;
}
}
- shop Sell#shop::Sell -1,501:-1
- shop Tool Dealer#shop::AmmunitionBox -1,501:-1 // Add ammo box here
- shop Tool Dealer#shop::SingleAmmo -1,502:-1 //single ammo add here
function script identify123 {
getinventorylist;
while( .@idn < @inventorylist_count ){
if ( !@inventorylist_identify[.@idn] ){
delitem2 @inventorylist_id[.@idn],1,0,0,0,0,0,0,0;
getitem @inventorylist_id[.@idn],1;
}
.@idn++;
}
close;
}