WoW API: IsTradeSkillLinked

Revision as of 04:46, 15 August 2023 by Move page script (talk | contribs) (Move page script moved page API IsTradeSkillLinked to API IsTradeSkillLinked without leaving a redirect)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

WoW API < IsTradeSkillLinked

Returns true if the tradeskill being viewed is from a link along with the player's name, nil otherwise.

isLink, playerName = IsTradeSkillLinked()

Arguments
none

Returns
isLink - 1 if the tradeskill shown in the UI is from a link (in chat), nil otherwise
playerName - The name of the player the tradeskill link is for if isLink is 1, nil otherwise.

Example
if not IsTradeSkillLinked() then
    -- do something with the player's tradeskills
end