Fandom

WoWWiki

API UseInventoryItem

104,753pages on
this wiki
Add New Page
Talk0 Share
WoW API < UseInventoryItem

Use an item in a specific inventory slot.

Syntax Edit

UseInventoryItem( slotID );

Arguments Edit

slotID 
The inventory slot ID
You can get the slot ID by using GetInventorySlotInfo(slot)

Return Value Edit

Always nil.

ExampleEdit

/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.

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.