Picks up or places a gem in the Item Socketing UI. If the Item Socketing UI is open and the cursor contains a socketable gem, places the gem into socket index
. If the cursor does not hold an item and socket index
is not locked, picks up the gem in that socket.
Only has an effect while the Item Socketing UI is open (i.e. between the SOCKET_INFO_UPDATE
and SOCKET_INFO_CLOSE
events).
See also Socketing functions, Cursor functions.
Signature:
ClickSocketButton(index)
Arguments:
index
- Index of a gem socket (between 1 andGetNumSockets()
) (number
)
Examples:
-- Put the item in the top left slot of the backpack into the first gem socket PickupContainerItem(0,1) ClickSocketButton(1)