I'd like to be able to set up a buying shop that will buy X amount of the specified item and no more so I don't end up with much more than I need and zero money. Right now the only workaround I've found is filling the chest with other stuff and leaving only one stack free so it doesn't buy more than 64 of the item.