WoW:API AutoEquipCursorItem: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
mNo edit summary
m (Move page script moved page API AutoEquipCursorItem to API AutoEquipCursorItem without leaving a redirect)
 
(3 intermediate revisions by 3 users not shown)
Line 1: Line 1:
AutoEquipCursorItem();
{{wowapi}}


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


AutoEquipCursorItem()


Example - equips 6 items in sequentional backpack slots.
==Example==
  /script i=2; while i<=8 do PickupContainerItem(0,i); AutoEquipCursorItem(); i=i+1; end;
  PickupContainerItem(0, 1)
AutoEquipCursorItem()


[[Category:API Functions|AutoEquipCursorItem]]
;Result
[[Category:API Cursor Functions|AutoEquipCursorItem]]
Equips the first item in your backpack to the relevant slot (if it can be equipped).
[[Category:API Inventory Functions|AutoEquipCursorItem]]

Latest revision as of 04:45, 15 August 2023

WoW API < AutoEquipCursorItem

Automatically equips the item currently held on the cursor.

AutoEquipCursorItem()

Example[edit]

PickupContainerItem(0, 1)
AutoEquipCursorItem()
Result

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