Ha, I've just found the answer: StoreCampaignObject() only stores items and creatures, and it does not seem possible to store objects in a more "direct" fashion, StoreCampaignObject() seems to be the only alternative. It explains why most storage systems use an invisible creature as the "container". The NPC's inventory is filled, then the NPC itself is stored in the DB.
So it leaves two solutions: Storing the items as a whole(in a tinyblob type column), or storing the items ref + stack + charges and re-create them at retrieval time. I wonder wich of these two possibilities will create the less lag, though. Any idea?
Thank you!
Kato
Modifié par Kato_Yang, 08 janvier 2012 - 04:17 .