Earlier Versions
Name | Size | Uploaded | Game Version | Downloads | |
1.01 release | 28.59 KB | Oct 17, 2014 | 6.0.2 | 232 | Download |
1.0 release | 27.65 KB | Aug 5, 2014 | 5.4.8 | 56 | Download |
r6 alpha | 28.53 KB | Feb 25, 2015 | 6.1.0 | 39 | Download |
r4 alpha | 28.55 KB | Oct 17, 2014 | 6.0.2 | 35 | Download |
r2 alpha | 27.66 KB | Oct 6, 2013 | 5.4.0 | 49 | Download |
Description
LibCraftLevels is a library containing the levels related to a craft.
Namely:
– Levels at which a craft is orange / yellow / green / grey
– Level at which a craft is learned
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 LCL = LibStub("LibCraftLevels-1.0") local orange, yellow, green, grey = LCL:GetCraftLevels(spellID)
API
Get the craft levels of a given spellID
function lib:GetCraftLevels(spellID)
Get the level at which a craft is learned
function lib:GetCraftLearnedAtLevel(spellID)
Sets the craft levels of a given spellID
function lib:SetCraftLevels(spellID, learnedAt, orange, yellow, green, grey)
Add a comment