Skip to content
everloot

Lore archive · Warcraft Wiki, 2023 dump

API PickupItem

Last wiki revision 2022-08-03

Place the item on the cursor. PickupItem(itemID or itemString or itemName or itemLink)

  • (itemId or "itemString" or "itemName" or "itemLink")
  • itemId: - The numeric ID of the item. ie. 12345
  • itemString: - The full item ID in string format, e.g. "item:12345:0:0:0:0:0:0:0".
  • Also supports partial itemStrings, by filling up any missing ":x" value with ":0", e.g. "item:12345:0:0:0"
  • itemName: - The Name of the Item, ex: "Hearthstone"
  • The item must have been equiped, in your bags or in your bank once in this session for this to work.
  • itemLink: - The itemLink, when Shift-Clicking items.

PickupItem(6948) PickupItem("item:6948") PickupItem("Hearthstone") PickupItem(GetContainerItemLink(0, 1))

  • Picks up the Hearthstone. 4th one picks up the item in backpack slot 1

PickupItem(link)

Source

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