I have thought about doing this, something like
NPC Code:
clientr.item_241234412414 = type,name,quanity, then whatever else;
241234412414 being the ID.
The only problem I see with doing it like that is if someone picks up more of an item they already have with a different ID how could I get it to stack?