themanaworld/tmwa-server-data — pull request #157 by mekolat (2014-08-23 04:18:03+00:00)
Title: Hermes the Arcane Chef

Hermes the Arcane Chef will enable users to craft their own items by mixing other items together.
By default, players can only add 1 ingredient to the cauldron. If the player get a cookbook, 2 items can be used. If the player get a legendary cookbook, 3 items can be used. The first time you make a recipe it have a chance to fail; afterwards, it is added to your cookbook (which you can consult for a list of your known recipes) and you can make it without failing.

It works this way:
- user add 1 to 3 ingredients to the cauldron by entering the item id
- if the ingredients match a recipe, the corresponding item is crafted and the ingredients are lost
- if the ingredients do not make a recipe, an Iten is crafted and the ingredients are lost

recipes are stored in 3 arrays: one for single-item recipes, one for two-items recipes and one for three-items recipes