Skip to content
everloot

Lore archive · Warcraft Wiki, 2023 dump

API GetItemSpell

Last wiki revision 2022-07-21

Returns the spell effect for an item. spellName, spellID = GetItemSpell(itemID or itemString or itemName or itemLink)

One of the following four ways to specify which item to query:

  • itemId: - Numeric ID of the item.
  • itemName: - Name of an item owned by the player at some point during this session.
  • itemString: - A fragment of the itemString for the item, e.g. "item:30234:0:0:0:0:0:0:0" or "item:30234".
  • itemLink: - The full itemLink.
  • spellName: - The name of the spell.
  • spellID: - The spell's unique identifier.
  • Useful for determining whether an item is usable.

Source

https://warcraft.wiki.gg/wiki/API_GetItemSpell · 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.