Lore archive · Warcraft Wiki, 2023 dump
API UseInventoryItem
Last wiki revision 2022-07-21
Use an item in a specific inventory slot.
UseInventoryItem( slotID )
- slotID:The inventory slot ID
- You can get the slot ID by using GetInventorySlotInfo(slot)
Always nil.
- /script UseInventoryItem( GetInventorySlotInfo("Trinket0Slot") );
After patch 1.6 you cant auto-use items anymore. Addons can no longer activate items without the press of a button. In order to use UseInventoryItem( GetInventorySlotInfo("Trinket0Slot") ) you will have to call it from a button, keypress or icon as you do with spells.
Source
https://warcraft.wiki.gg/wiki/API_UseInventoryItem · 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.