Earlier Versions
Name | Size | Uploaded | Game Version | Downloads | |
1.01 release | 43.91 KB | Oct 17, 2014 | 6.0.2 | 238 | ![]() |
1.0 release | 41.74 KB | Aug 5, 2014 | 5.4.8 | 49 | ![]() |
r12 alpha | 47.17 KB | Apr 26, 2015 | 6.1.0 | 44 | ![]() |
r10 alpha | 43.95 KB | Jan 12, 2015 | 6.0.3 | 52 | ![]() |
r8 alpha | 43.87 KB | Oct 17, 2014 | 6.0.2 | 50 | ![]() |
r6 alpha | 41.89 KB | Oct 7, 2013 | 5.4.0 | 57 | ![]() |
r5 alpha | 41.86 KB | Oct 7, 2013 | 5.4.0 | 26 | ![]() |
r4 alpha | 41.86 KB | Oct 7, 2013 | 5.4.0 | 24 | ![]() |
r3 alpha | 41.83 KB | Oct 6, 2013 | 5.4.0 | 61 | ![]() |
r2 alpha | 41.79 KB | Oct 6, 2013 | 5.4.0 | 41 | ![]() |
Description
LibCraftInfo is a library containing a complete list of crafts existing in the game.
This library contains various information about crafts, namely:
– the item id that results from a craft
– the item id of the recipe that taught the craft (if any)
– the expansion pack to which that craft is related
– the profession to which a given spell/craft belongs
Encoding:
Information is encoded into a single lua number, and is extracted through bitwise operations.
If you wish to correct information about a given spell, edit the file manualFixes.lua, and follow the instructions.
Usage:
local LCI = LibStub("LibCraftInfo-1.0") local itemID = LCI:GetCraftResultItem(spellID)
API
Get the localized name of the profession to which a given craft belongs
function lib:GetCraftProfession(spellID)
Get the expansion pack of a given craft
function lib:GetCraftXPack(spellID)
Get the itemID of the item created by a given spellID
function lib:GetCraftResultItem(spellID)
Get the itemID of the item/recipe that taught this spellID
function lib:GetCraftSourceItem(spellID)
Get the name of the profession that created the item
function lib:GetItemSource(searchedItemID)
Get the spellID taught by a given itemID (recipe item)
function lib:GetRecipeLearnedSpell(itemID)
Get a list of crafts (=spellID's) for a given profession, for a given expansion
function lib:GetProfessionCraftList(professionSpellID, expansionID)
Sets information about a given spellID
function lib:SetCraftInfo(professionId, spellID, xpack, itemID, recipeID)
Add a comment