API UseInventoryItem

Revision as of 18:08, January 6, 2007 by Hobinbot (Talk | contribs)

(diff) ←Older revision | Latest revision (diff) | Newer revision → (diff)
104,159pages on
this wiki
WoW API < UseInventoryItem

Use an item in a specific inventory slot.

Syntax Edit

UseInventoryItem( slotID );

Arguments Edit

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

Return Value Edit

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.

Around Wikia's network

Random Wiki