WoW:API EquipCursorItem: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
m (result) |
||
Line 1: | Line 1: | ||
{{wowapi}} | |||
EquipCursorItem( | Equips the currently picked up item to a specific inventory slot. | ||
EquipCursorItem(slot); | |||
== Parameters == | |||
=== Arguments === | |||
:;slot : Numric - The [[API_TYPE_InventorySlotID|slot ID]] to place the item into. Use [[API_GetInventorySlotInfo|GetInventorySlotInfo(slotname)]] to resolve an [[API_TYPE_InventorySlotName|inventory slot name]] to its ID. | |||
The | |||
. | |||
==Example== | |||
EquipCursorItem(GetInventorySlotInfo("HEADSLOT")); | |||
===Result=== | |||
Attempts to equip the currently picked up item to the head slot. |
Revision as of 22:12, 22 June 2006
Equips the currently picked up item to a specific inventory slot.
EquipCursorItem(slot);
Parameters
Arguments
- slot
- Numric - The slot ID to place the item into. Use GetInventorySlotInfo(slotname) to resolve an inventory slot name to its ID.
Example
EquipCursorItem(GetInventorySlotInfo("HEADSLOT"));
Result
Attempts to equip the currently picked up item to the head slot.