WoW:API GetQuestItemLink: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
mNo edit summary
m (Move page script moved page API GetQuestItemLink to API GetQuestItemLink without leaving a redirect)
 
(5 intermediate revisions by 5 users not shown)
Line 1: Line 1:
<center>'''GetQuestItemLink''' ''-Documentation by  [[user:Ledoc|Ledoc]]-''</center>
{{wowapi}}
Returns link to the quest item.
Returns link to the quest item.


  itemLink = GetQuestItemLink("type", index);
  [[itemLink]] = GetQuestItemLink("type", index);


== Parameters ==
== Parameters ==
Line 12: Line 12:


=== Returns ===
=== Returns ===
;''Returns''
:;[[itemLink]] : String - The link to the quest item specified.
:itemLink
 
:;itemLink : String - The link to the quest item specified.


== Example ==
== Example ==
Line 21: Line 18:


====Result====
====Result====
  item:12345:0:0:0
  |cff9d9d9d|Hitem:7073:0:0:0:0:0:0:0|h[Broken Fang]|h|r


<br><center><i>Last updated: Patch 1.6.1</i></center>
<br><center>''Last updated: Patch 1.6.1''</center>
----
__NOTOC__
{{Template:WoW API}}
[[Category:API Functions|GetQuestItemLink]]
[[Category:API Item Functions|GetQuestItemLink]]
[[Category:API Quest Functions|GetQuestItemLink]]

Latest revision as of 04:46, 15 August 2023

WoW API < GetQuestItemLink

Returns link to the quest item.

itemLink = GetQuestItemLink("type", index);

Parameters[edit]

Arguments[edit]

(String "type", Integer index)
type
String - "required", "reward" or "choice"
index
Integer - Quest reward item index.

Returns[edit]

itemLink
String - The link to the quest item specified.

Example[edit]

local link = GetQuestItemLink("choice", 1);

Result[edit]

|cff9d9d9d|Hitem:7073:0:0:0:0:0:0:0|h[Broken Fang]|h|r


Last updated: Patch 1.6.1