View Single Post
09-20-22, 08:43 AM   #3
doofus
A Chromatic Dragonspawn
Join Date: Feb 2018
Posts: 159
At this stage of my testing, I only want to enumerate the talents. The talent trees resemble Classic/TBC/Wrath, however I cannot use this very simple code:

for i = 1, GetNumTalentTabs() do
for j = 1, GetNumTalents(i) do

local name , _ , _ , _ ,rank = GetTalentInfo(i, j);
if ( rank > 0 ) then
lDeathKnightTalents[name] = rank;
print(string.format("talent:[%s] - rank:[%d]",name,rank));
end

end
end

So I am now investigating the new API, like this

local lTalentConfigID = C_ClassTalents.GetActiveConfigID();
local lConfigInfo = C_Traits.GetConfigInfo(lTalentConfigID);
print(string.format("configID:%d - name:%s - treeIDs:%d - %d - %d",lTalentConfigID,lConfigInfo["name"],#lConfigInfo["treeIDs"],lConfigInfo["treeIDs"][1],lConfigInfo["treeIDs"][2]));

but am stuck there, there is only one tree ID returned. I would be expecting two.

And how to transverse the tree... Just testing
  Reply With Quote