Thread Tools Display Modes
Prev Previous Post   Next Post Next
04/17/14, 09:44 AM   #1
Artajörn
Join Date: Apr 2014
Posts: 19
Question How can I get the research slots in use?

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.
  Reply With Quote
 

ESOUI » Developer Discussions » Lua/XML Help » How can I get the research slots in use?


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off