I am working on a new plugin: bank_vault. This will have an inventory as a part of the game, where people could buy items. The items would be in separate plugins, could be registrated with a native from the main plugin.
The trouble is, I don't know how I should tell bots to buy items, because every plugin handles it's own items separately. As far as I thinked of:
The money message is being hooked, and as soon as a bot has enough money, then it can buy items. But how to choose which items? How to tell other plugins in the same forward that some othe plugin already spent some of the bot's money.
Any ideas on this? I attached the source code so far...