Wikia

WoWWiki

Changes: API IsTradeSkillLinked

Edit

Back to page

(Typo fixing, typos fixed: rather then → rather than using AWB)
(Add 2nd return value)
 
Line 1: Line 1:
 
{{wowapi}}
 
{{wowapi}}
   
Returns true if the tradeskill being viewed is from a link rather than your own.
+
Returns true if the tradeskill being viewed is from a link along with the player's name, nil otherwise.
   
isLink = IsTradeSkillLinked()
+
isLink, playerName = IsTradeSkillLinked()
   
 
----
 
----
Line 13: Line 13:
 
;''Returns''
 
;''Returns''
   
: 1 if the tradeskill is is from a link, nil otherwise
+
: 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.
   
 
----
 
----

Latest revision as of 02:01, December 30, 2008

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

Around Wikia's network

Random Wiki