new_1-3,100,52,4 hadghadf 729,{
if (BaseLevel < 11 || rcvitem = 0){
getitem 501,1; //item A
set rcvitem,1;
end;
}
if (BaseLevel > 10 || rcvitem2 = 0){
getitem 502,1; //item B
delitem 501,1; //delete item A
set rcvitem2,1;
end;
}
mes "[NPC]";
mes "You have received the items available for your level";
close;
}
try this one, I can't check it so just tell me the errors you'll get.
added a check so players can't abuse the item you are giving them (talking to npc many times)
edit to your preference.