WoW:API AutoEquipCursorItem: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
No edit summary
 
No edit summary
Line 1: Line 1:
/script if ( not CursorHasItem() ) then PickupContainerItem(<0>, <11>); PickupInventoryItem(<equip#>); end
AutoEquipCursorItem();
 
straight forward, it equips the item currently on the cursor.
 
 
Example - equips 6 items in sequentional backpack slots.
/script i=2; while i<=8 do PickupContainerItem(0,i); AutoEquipCursorItem(); i=i+1; end;

Revision as of 07:32, 31 May 2005

AutoEquipCursorItem();

straight forward, it equips the item currently on the cursor.


Example - equips 6 items in sequentional backpack slots.

/script i=2; while i<=8 do PickupContainerItem(0,i); AutoEquipCursorItem(); i=i+1; end;