You may try this one :
x,x,x,x script Unknown Trader 912,{
mes "[ Sarah ]";
mes "Hello, traveller!";
mes "How may I help you today?";
menu "- Trade Stuff",L_Trade,
"- Nothing",-;
mes "[ Sarah ]";
mes "Oh! Thank you...";
close;
L_Trade:
mes "[ Sarah ]";
mes "I will replace your 200 Deadbranch into 1 TCG!";
next;
mes "[ Sarah ]";
mes "Are you sure you want to exchange your stuff?";
next;
menu "- Yes",L_Yes,
"- No",-;
mes "[ Sarah ]";
mes "Oh! Thank you...";
close;
L_Yes:
mes "[ Sarah ]";
if(countitem(DBID) < 200) goto L_Not; // CHANGE DBID INTO Deadbranch Item ID
delitem DBID, 200; // CHANGE DBID INTO Deadbranch Item ID
getitem TCGID, 1; // CHANGE TCGID INTO TCG Item ID
mes "The trade is complete.";
close;
L_Not:
mes "[ Sarah ]";
mes "You do not have enought Deadbranch to complete this action.";
close;
}