WoW:API GetCraftSkillLine: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
m (delete)
No edit summary
Line 1: Line 1:
{{delete}}
{{delete}}
See history. I think this was meant to be at [[API GetCraftInfo]].
See history. I think this was meant to be at [[API GetCraftInfo]].
The command still exists though. While I don`t understand exactly what it does, I do know that it can be used to determine whether the enchanting-window is currently opened or not (which is a prequisite for [[API GetCraftInfo]] to work). You can use it like this to achieve that:
temp = GetCraftSkillLine(1);
if (temp) then
  -- You can use GetCraftInfo() here
else
  -- If you use GetCraftInfo() here it should produce an error
end

Revision as of 20:42, 11 January 2006

Template:Delete See history. I think this was meant to be at API GetCraftInfo.

The command still exists though. While I don`t understand exactly what it does, I do know that it can be used to determine whether the enchanting-window is currently opened or not (which is a prequisite for API GetCraftInfo to work). You can use it like this to achieve that:

temp = GetCraftSkillLine(1);
if (temp) then
  -- You can use GetCraftInfo() here
else
  -- If you use GetCraftInfo() here it should produce an error
end