mNo edit summary |
Cremor-gpuser (talk | contribs) (Also works with itemId and itemLink!) |
||
Line 1: | Line 1: | ||
− | {{wowapi}} |
+ | {{wowapi}}__NOTOC__ |
⚫ | |||
− | |||
+ | EquipItemByName(itemId or "itemName" or "itemLink"[, slot]) |
||
⚫ | |||
== Parameters == |
== Parameters == |
||
=== Arguments === |
=== Arguments === |
||
+ | :(itemId or "itemName" or "[[itemLink]]"[, [[inventorySlotId|slot]]]) |
||
⚫ | |||
+ | |||
⚫ | |||
+ | :;itemId : Integer - The numeric ID of the item. ie. 12345 |
||
⚫ | |||
+ | :;[[itemLink]] : String - The [[itemLink]], when Shift-Clicking items. |
||
⚫ |
Revision as of 17:06, 4 June 2008
Automated updating of API pages at this location, to reflect patch changes, has ceased from 10.1.7 onwards. |
Equips an item, optionally into a specified slot.
EquipItemByName(itemId or "itemName" or "itemLink"[, slot])
Parameters
Arguments
- itemId
- Integer - 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
- Numeric - (optional) - The inventory slot to put the item in, obtained via GetInventorySlotInfo().