API EquipItemByName

100,576pages on
this wiki
Revision as of 21:43, December 11, 2009 by Apophos (Talk | contribs)

(diff) ←Older revision | Latest revision (diff) | Newer revision → (diff)
WoW API < EquipItemByName

Equips an item, optionally into a specified slot.

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

Parameters Edit

Arguments Edit

(itemId or "itemName" or "itemLink"[, slot])
Integer - The numeric ID of the item. ie. 12345
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.
String - The itemLink, when Shift-Clicking items.
Numeric - (optional) - The inventory slot to put the item in, obtained via GetInventorySlotInfo().

Changes in 3.3.0 Edit

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 Edit

Around Wikia's network

Random Wiki