Skip to content
everloot

Lore archive · Warcraft Wiki, 2023 dump

API GetItemGem

Last wiki revision 2022-09-14

Returns the gem for a socketed equipment item. itemName, itemLink = GetItemGem(item, index)

  • item: - The name of the equipment item (the item must be equipped or in your inventory for this to work) or the ItemLink
  • index: - The index of the desired gem: 1, 2, or 3
  • itemName: - The name of the gem at the specified index.
  • itemLink: : ItemLink
  • Using the name may be ambiguous if you have more than one of the named item.

Prints the 2nd gem socketed in this item.

Source

https://warcraft.wiki.gg/wiki/API_GetItemGem · retrieved 2023-11-13 · CC BY-SA 4.0

Converted from wikitext with templates, tables and images removed, so some sentences may be missing values.

This archive predates WoW: Forever. For collected gameplay facts see the Forever database. Search the archive.