Gets information about an item
Input / Output
- Input
-
ID:
- has to be a string or number
- ID of the item to retrieve information about
-
returnTable (new in v0.26):
- (boolean)
- if true, the function will return all item info as one table.
- Output
-
- name (string): name of the item
- icon (string): path of the icon
- quality (number): quality of the item. Ranging from 0 to 6
- white1 (string): first white text
- white2 (string): secound white text
- comment (string): comment in yellow
- stackSize (number): stackSize of the item
- creator (string): name of the creator of the item
- version (number): version of the item (not including right click actions
- rightClick (table): right click information about the item
- rightClickText (string): use text of the item
Example Usage
Lua Code
Lets say the item is called "test" and it has a "rare" quality.
-- withtout second argument, or set to false local n,_,q = GHI_GetItemInfo("Laruna_12345678"); GHI_Message("[via vars] The item called \""..n.."\" has a "..q.." quality."); -- with second argument "true" local item_table = GHI_GetItemInfo("Laruna_12345678",true); GHI_Message("[via table] \""..item_table[1].."\" is a "..item_table[3].." quality item.");
ChatFrame
[via vars] The Item called "test" has a rare quality. [via table] "test" is a rare quality item.




