API AutoEquipCursorItem

From Wowpedia
Jump to: navigation, search

Automatically equips the item currently held on the cursor.

AutoEquipCursorItem();

Example

PickupContainerItem(0,1);
AutoEquipCursorItem();

Result

Equips the first item in your backpack to the relevant slot (if it can be equipped).