Hi,
I'm trying to get the number of free research slots. To do that, I'm using the following code:
Code:
local currentSimultaneousResearches = 0
local researchLines = {}
for index = 1, GetNumSmithingResearchLines(CRAFTING_TYPE_BLACKSMITHING), 1 do
researchLines[index] = GetSmithingResearchLineInfo(CRAFTING_TYPE_BLACKSMITHING, index)
if researchLines[index].timeRequiredForNextResearchSecs > 0 then
currentSimultaneousResearches = currentSimultaneousResearches + 1
end
end
It seems not work, so I must be doing something wrong. Can you help me, please?
Regards and thanks in advance.