LibRecipes-3.0
LibRecipes organizes trade skill recipes, spells and items into sets. LibRecipes is a LibStub library for querying these sets. Its focus is efficiency and speed.
You can retrieve the spell taught by a recipe and the item it creates. Or you can find the recipe that teaches a spell. In WoW there is a big difference between each of them. For example:
Item 37337 (Formula: Enchant Bracer - Greater Stats)
teaches
spell 44616 (Greater Stats)
which creates
item 38987 (Enchant Bracer - Greater Stats).
Note: the ID's used in the example above are outdated.
Recipes, spells and items are all represented by numeric IDs. You can use WoW API methods GetSpellInfo(id) and GetItemInfo(id) to retrieve the details respectively of spell and recipe/item IDs.
You can read about how to use LibRecipes in your mod on the API page.
You can show your appreciation and support future development by donating!
Hello friend, when can we expect an update for Cata-Classic? :-) Thanks a lot!
Hello! Is there a reason not all recipes are included in this library?
I was testing something with a very simple craft, Bolt of Linen Cloth, but that one is not listed for example.
In reply to Sluimerstand:
Available recipes are retrieved from Wowhead
In reply to Warmexx_:
Can you elaborate? There's quite a few recipes available on wowhead but aren't in the library.
Per the Original Poster on bolt of linen cloth
Here's the spell: https://www.wowhead.com/classic/spell=2963/bolt-of-linen-cloth
Yet in your lib there's no 2963 (spell) or 2996 (item)
(There's also no bolt of mageweave, silk cloth, wool cloth, runecloth, frostweave, imbued frostweave, etc)
A similar one is smelt titansteel: https://www.wowhead.com/wotlk/spell=55208/smelt-titansteel.
Thank you
In reply to Warmexx_:
I think the issue is that your lib doesn't include recipes that are trained directly from a trainer, i.e.no in game item represents the recipe.
Hi there,
This library is a decent replacement for LibCraftInfo, which hasn't been updated since 2013. Are you willing to add the missing function that LCI had? A reverse lookup - get a spellID given an itemID.
I've forked your library and made the change here, but would prefer if it be "official": https://github.com/teelolws/Altoholic-Retail/blob/master/Altoholic/libs/LibRecipes-ForAltoholic-2.0/LibRecipes-ForAltoholic-2.0.lua
In reply to TeeloJubeithos:
I'll take a look...
Great library! I had been looking for something like this for a long time.
Method name (Taught) changed and therefore not compatible anymore.
Whats the difference between this and version 1.0?