WoW:API AutoEquipCursorItem: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
No edit summary
mNo edit summary
Line 1: Line 1:
AutoEquipCursorItem();
{{wowapi}} __NOTOC__
Automatically equips the item currently held on the cursor.
AutoEquipCursorItem();


straight forward, it equips the item currently on the cursor.
==Example==
 
  PickupContainerItem(0,1);
 
AutoEquipCursorItem();
Example - equips 6 items in sequentional backpack slots.
===Result===
  /script i=2; while i<=8 do PickupContainerItem(0,i); AutoEquipCursorItem(); i=i+1; end;
Equips the first item in your backpack to the relevant slot (if it can be equipped).
 
 
----
{{WoW API}}

Revision as of 18:29, 23 December 2006

WoW API < AutoEquipCursorItem

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