Caching talent info
So you used to be able to cache talent info (without inspecting) so you could quickly access it later via
Code:
local tname, tex, tier, column, sel, avail = GetTalentInfo (idx, true, nil, nil, class_id) However in WoD the GetTalentInfo is now Code:
talentID, name, iconTexture, selected, available = GetTalentInfo(tier, column, talentGroup [, isInspect, inspectedUnit]) So my question, did blizz remove the ability to get other class talent info without inspecting or do I just need to build the cache as players are inspected? |
GetTalentInfoByID() is extremely fast, so you could just do this:
Lua Code:
The only issue is that it doesn't tell you what class a talent belongs to. If you want to tighten up the ID range, the first talent is 15757, and it is highly improbable that it would ever decrease. The last is 21811. But, like I said, the function is super fast so it really doesn't matter much as long as you only ever iterate through once. Blizzard should have made GetTalentInfo() take specID as a parameter instead of talentGroup -- all their code would still be possible, and yours would be too. =/ |
Well thought I found a solution but I suspect it is bugged based on my results.
Functions I have been using: Lua Code:
EG. This is an example output if I used specID in that function for each tier/column Lua Code:
Lua Code:
These 3 paladin spec talents are displayed for each class's spec selections. A quick jump onto a few other classes and the appropriate loaded characters talents are displayed instead of the requested specIndex's talent section. |
All times are GMT -6. The time now is 07:51 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI