Crafting Research Completed
Is there an easy way to check if all traits have been researched for a crafting skill? If not, is there a hard way? =P Thanks!
|
I use AI Research Grid, with a hot key to display it. There are several similar.
|
No, I meant in an addon, in the code.
|
GetSmithingResearchLineTraitInfo()
Call GetSmithingResearchLineTraitInfo(craftingType, researchLine, traitIndex) is probably the API you seek.
Quote:
researchLine is an index into the gear items you can craft at a station, 1..14 for blacksmithing (7 weapons, 7 heavy armor). 1..15 for clothing (8 light including jerkin, 7 medium), 6 for wood, 2 for jewelry. craftingType is CRAFTING_TYPE_whatever. I count trait knowledge in WritWorthy_Smithing.lua Parser:ToKnowList(), if you care to wade through pages and pages of not-really-relevant code to get to an example of GetSmithingResearchLineTraitInfo() --Z |
Trait knowledge
Quote:
Look for PopulateTraitDataForCraft in AIResearchGrid.lua. It has all the function calls necessary to determine if a trait is know for an item, as well as how much time might be left on research for a trait. |
All times are GMT -6. The time now is 07:15 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI