Wowpedia

We have moved to Warcraft Wiki. Click here for information and the new URL.

READ MORE

Wowpedia
Register
Advertisement

Equips an item, optionally into a specified slot.

EquipItemByName(itemId or itemName or itemLink[, slot])

Parameters[]

Arguments[]

(itemId or "itemName" or "itemLink"[, slot])
itemId
number - The numeric ID of the item. ie. 12345
itemName
string - The name of the item, ie "Worn Dagger". Partial names are valid inputs as well, ie "Worn". If several items with same piece of name exists, the first one found will be equipped.
itemLink
string - The itemLink, when Shift-Clicking items.
slot
number? - The inventory slot to put the item in, obtained via GetInventorySlotInfo().

Changes in 3.3.0[]

When in combat this function now "picks up" the item instead of equipping it, similar to PickupInventoryItem. Out of combat, the function behaves as expected. This change was made to address the issue of rogues using "poison swapping" addons to increase their DPS.[1]

References[]

Advertisement