World of Warcraft Forever API · C_ItemSocketInfo.md, for your AI
C_ItemSocketInfo
16 functions, 8 events, 3 tables, as Blizzard documents them for Forever 1.60.1 (70959).
Making an addon with an AI? Tell it: Read https://wowaddons.gg/agents.md, then make me a World of Warcraft Forever addon that …, try it with me in the game, and publish it. It checks every call against this API before you try it in the game, then publishes it here. How it works.
Functions
C_ItemSocketInfo.AcceptSockets
C_ItemSocketInfo.AcceptSockets()
C_ItemSocketInfo.ClickSocketButton
C_ItemSocketInfo.ClickSocketButton(index)
Arguments
index | luaIndex |
|---|
C_ItemSocketInfo.CloseSocketInfo
C_ItemSocketInfo.CloseSocketInfo()
C_ItemSocketInfo.CompleteSocketing
C_ItemSocketInfo.CompleteSocketing()
C_ItemSocketInfo.GetCurrUIType
uiType = C_ItemSocketInfo.GetCurrUIType()
Returns
uiType | ItemSocketInfoUIType |
|---|
C_ItemSocketInfo.GetExistingSocketInfo
name, icon, gemMatchesSocket = C_ItemSocketInfo.GetExistingSocketInfo(index)
Arguments
index | luaIndex |
|---|
Returns
name | string may be nil | |
|---|---|---|
icon | fileID may be nil | |
gemMatchesSocket | bool |
C_ItemSocketInfo.GetExistingSocketLink
existingSocketLink = C_ItemSocketInfo.GetExistingSocketLink(index)
Arguments
index | luaIndex |
|---|
Returns
existingSocketLink | string may be nil |
|---|
C_ItemSocketInfo.GetNewSocketInfo
name, icon, gemMatchesSocket = C_ItemSocketInfo.GetNewSocketInfo(index)
Arguments
index | luaIndex |
|---|
Returns
name | string may be nil | |
|---|---|---|
icon | fileID may be nil | |
gemMatchesSocket | bool |
C_ItemSocketInfo.GetNewSocketLink
newSocketLink = C_ItemSocketInfo.GetNewSocketLink(index)
Arguments
index | luaIndex |
|---|
Returns
newSocketLink | string may be nil |
|---|
C_ItemSocketInfo.GetNumSockets
numSockets = C_ItemSocketInfo.GetNumSockets()
Returns
numSockets | number |
|---|
C_ItemSocketInfo.GetSocketItemBoundTradeable
socketItemTradeable = C_ItemSocketInfo.GetSocketItemBoundTradeable()
Returns
socketItemTradeable | bool |
|---|
C_ItemSocketInfo.GetSocketItemInfo
name, icon, quality = C_ItemSocketInfo.GetSocketItemInfo()
Returns
name | string may be nil | |
|---|---|---|
icon | fileID may be nil | |
quality | ItemQuality |
C_ItemSocketInfo.GetSocketItemRefundable
socketItemRefundable = C_ItemSocketInfo.GetSocketItemRefundable()
Returns
socketItemRefundable | bool |
|---|
C_ItemSocketInfo.GetSocketTypes
socketType = C_ItemSocketInfo.GetSocketTypes(index)
Arguments
index | luaIndex |
|---|
Returns
socketType | string may be nil |
|---|
C_ItemSocketInfo.HasBoundGemProposed
hasBoundGemProposed = C_ItemSocketInfo.HasBoundGemProposed()
Returns
hasBoundGemProposed | bool |
|---|
C_ItemSocketInfo.IsArtifactRelicItem
isArtifactRelicItem = C_ItemSocketInfo.IsArtifactRelicItem(info)
Arguments
info | ItemInfo |
|---|
Returns
isArtifactRelicItem | bool |
|---|
Events
SOCKET_INFO_ACCEPT
No payload.
SOCKET_INFO_BIND_CONFIRM
No payload.
SOCKET_INFO_CLOSE
No payload.
SOCKET_INFO_FAILURE
No payload.
SOCKET_INFO_REFUNDABLE_CONFIRM
No payload.
SOCKET_INFO_SUCCESS
No payload.
SOCKET_INFO_UI_EVENT_REGISTRATION_UPDATE
uiType | ItemSocketInfoUIType |
|---|
SOCKET_INFO_UPDATE
No payload.
Tables
Enum.ItemSocketInfoUIType enumeration
Default | 0 |
|---|
SocketInfo structure
name | string may be nil | |
|---|---|---|
icon | fileID may be nil | |
gemMatchesSocket | bool |
SocketItemInfo structure
name | string may be nil | |
|---|---|---|
icon | fileID may be nil | |
quality | ItemQuality |