- exchange_eq_shop shop -1,909:-1
prontera,155,181,5 script Sample#exchange_eq 757,{
mes "+"+.eq_refine+" Equipment";
mes F_InsertComma( .zeny_cost )+" Zeny";
mes " ";
mes "Trade a New Equipment.";
dispbottom "Pick a +"+.eq_refine+" Equipment to trade-in!";
callshop "exchange_eq_shop",2;
end;
OnSellItem:
if ( @sold_refine[0] != .eq_refine ) {
mes "Only accept +"+.eq_refine+" Equipment.";
}
else if ( Zeny < .zeny_cost ) {
mes "Not enough zeny.";
}
else {
Zeny -= .zeny_cost;
delitem2 @sold_nameid[0],1,@sold_refine[0],@sold_attribute[0],@sold_identify[0],@sold_card1[0],@sold_card2[0],@sold_card3[0],@sold_card4[0];
getitem .reward_id,.reward_qty;
}
close;
OnInit:
// min equipment refine
.eq_refine = 10;
// zeny cost
.zeny_cost = 500000000;
// item gain + quantity
.reward_id = 5353;
.reward_qty = 1;
end;
}