WoW:API PickupInventoryItem: Difference between revisions

m
Corrected spelling/grammar
m (User-controlled Bot: table syntax updated)
m (Corrected spelling/grammar)
Line 1: Line 1:
  PickupInventoryItem(slotId)
  PickupInventoryItem(slotId)


"Picks up" an item from the player's worn inventory. This appears to be a kind of catch-all "pick up/activate" function.
"Picks up" an item from the player's worn inventory. This appears to be a kind of catch-all "pick up/activate" function.


----
----
Line 83: Line 83:
  /script PickupInventoryItem(GetInventorySlotInfo("SecondaryHandSlot"))
  /script PickupInventoryItem(GetInventorySlotInfo("SecondaryHandSlot"))


The above attempts a main-offhand weapon swap. It will pick up the weapon from main hand and then pick up the weapon from offhand, attempting to equip the main-hand weapon to off-hand and sending the off-hand to main-hand if possible.
The above attempts a main hand/off-hand weapon swap. It will pick up the weapon from the main hand and then pick up the weapon from the off-hand, attempting to equip the main hand weapon to off-hand and sending the off-hand to main hand if possible.


----
----
{{wowapi}}
{{wowapi}}
Anonymous user