Returns information about gems socketed in an item


See also Item functions, Socketing functions, Hyperlink functions.

Signature:

name, link = GetItemGem(itemID, index) or GetItemGem("itemName", index) or GetItemGem("itemLink", index)

Arguments:

  • itemID - An item's ID (number)
  • itemName - An item's name (string)
  • itemLink - An item's hyperlink, or any string containing the itemString portion of an item link (string)
  • index - Index of a socket on the item (number)

Returns:

  • name - Name of the gem in the socket (string)
  • link - A hyperlink for the gem in the socket (string, hyperlink)