WoW:API GetQuestItemLink: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
No edit summary
 
mNo edit summary
Line 1: Line 1:
Returns linkto the quest items.
<center>'''GetQuestItemLink''' ''-Documentation by  [[user:Ledoc|Ledoc]]-''</center>
Returns link to the quest item.


  GetQuestItemLink(type, itemNum);
  itemLink = GetQuestItemLink("type", index);


----
== Parameters ==
;''Arguments''
=== Arguments ===
:(String "type", Integer index)
 
:;type : String - "required", "reward" or "choice"
:;index : Integer - Quest reward item index.


:(String type, Number itemNum)
=== Returns ===
;''Returns''
:itemLink


:;type : "required" "reward" or "choice"
:;itemLink : String - The link to the quest item specified.
:;itemNum : Item Index


----
== Example ==
;''Example''
  local link = GetQuestItemLink("choice", 1);
  local link = GetQuestItemLink(type, i);


;''Result''
====Result====
  dont know
  item:12345:0:0:0


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

Revision as of 17:49, 19 August 2005

GetQuestItemLink -Documentation by Ledoc-

Returns link to the quest item.

itemLink = GetQuestItemLink("type", index);

Parameters

Arguments

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

Returns

Returns
itemLink
itemLink
String - The link to the quest item specified.

Example

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

Result

item:12345:0:0:0


Last updated: Patch 1.6.1

Template:WoW API