Right now vendors dont keep bought items, If u modify it by script or code, u will find that items inside the layer_special are sold one by one ignoring the amount. So if there are 50 heal potions, u will need to open buy dialog 50 times. Only one will appear on the buy dialog.
Any clue?