WoW:API GetTradeSkillListLink: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 4: | Line 4: | ||
Retrieves the [[TradeSkillLink]] to the currently open tradeskill. | Retrieves the [[TradeSkillLink]] to the currently open tradeskill. | ||
link = GetTradeSkillListLink() | [[TradeSkillLink | link]] = GetTradeSkillListLink() | ||
== Arguments == | == Arguments == | ||
Line 10: | Line 10: | ||
== Returns == | == Returns == | ||
; [[TradeSkillLink | link]] : If tradeskill is linkable. | |||
; nil : If tradeskill is not linkable (runeforging) or if no tradeskill is open. | |||
== Example == | == Example == | ||
Line 23: | Line 22: | ||
==== Result ==== | ==== Result ==== | ||
:Displays a link to the currently open tradeskill in the chat window, unless there is none available. | :Displays a [[TradeSkillLink | link]] to the currently open tradeskill in the chat window, unless there is none available. | ||
== Details == | == Details == | ||
*Added in 3.0.1 | *Added in 3.0.1 | ||
*See also [[API GetTradeSkillInfo|GetTradeSkillInfo()]], [[API GetSpellLink|GetSpellLink()]] | *See also [[API GetTradeSkillInfo|GetTradeSkillInfo()]], [[API GetSpellLink|GetSpellLink()]], [[TradeSkillLink]] |
Revision as of 17:31, 20 April 2009
← WoW API < GetTradeSkillListLink
Synopsis
Retrieves the TradeSkillLink to the currently open tradeskill.
link = GetTradeSkillListLink()
Arguments
- None
Returns
- link
- If tradeskill is linkable.
- nil
- If tradeskill is not linkable (runeforging) or if no tradeskill is open.
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
- Added in 3.0.1
- See also GetTradeSkillInfo(), GetSpellLink(), TradeSkillLink