WoW:API UseInventoryItem: Difference between revisions

No edit summary
Line 11: Line 11:
=== Example===
=== Example===
:/script UseInventoryItem( GetInventorySlotInfo("Trinket0Slot") );
:/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.
Anonymous user