Puts an arbitrary item onto the cursor. Puts an item onto the cursor regardless of its location (equipped, bags, bank or not even in the player's possession); can be used to put an item into an action slot (see PlaceAction()
) even if the player does not currently hold the item. Since the item is not picked up from a specific location, this function cannot be used to move an item to another bag, trade it to another player, attach it to a mail message, destroyed, etc.
See also Item functions, Cursor functions.
Signature:
PickupItem(itemID)
or
PickupItem("itemName")
or
PickupItem("itemLink")
Arguments:
itemID
- An item's ID (number
)itemName
- An item's name (string
)itemLink
- An item's hyperlink, or any string containing theitemString
portion of an item link (string
)