WoW:API GetTradeSkillListLink: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
(New page: {{wowapi}} == Synopsis == Retrieves the link to the currently open tradeskill. link = GetTradeSkillListLink() == Arguments == :;None == Returns == :link or nil :;link : String - The ...)
 
Line 2: Line 2:


== Synopsis ==
== Synopsis ==
Retrieves the link to the currently open tradeskill.
Retrieves the [[TradeSkillLink]] to the currently open tradeskill.


  link = GetTradeSkillListLink()
  link = GetTradeSkillListLink()

Revision as of 06:05, 10 November 2008

WoW API < GetTradeSkillListLink

Synopsis

Retrieves the TradeSkillLink to the currently open tradeskill.

link = GetTradeSkillListLink()

Arguments

None

Returns

link or nil
link
String - The link for the currently open tradeskill. Will return nil if there is no tradeskill open, or if the currently open tradeskill linking is disabled (Poisons, Runeforging, Mining, ...)

Example

local link = GetTradeSkillListLink()
if link then
	print(link)
else
	print("Linking is not available for this tradeskill!")
end

Result

Displays a link to the currently open tradeskill in the chat window, unless there is none available.

Details