WoW:API UseInventoryItem: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
No edit summary
 
No edit summary
Line 1: Line 1:
Use an item in a specific inventory slot.


=== Syntax ===
UseInventoryItem( slotID );
=== Arguments ===
:;slotID :The inventory slot ID
:You can get the slot ID by using [[API GetInventorySlotInfo|GetInventorySlotInfo(slot)]]
=== Example===
:/script UseInventoryItem( GetInventorySlotInfo("Trinket0Slot") );

Revision as of 07:43, 22 May 2005

Use an item in a specific inventory slot.

Syntax

UseInventoryItem( slotID );

Arguments

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

Example

/script UseInventoryItem( GetInventorySlotInfo("Trinket0Slot") );