多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
The following were introduced along with socketed items and gems in[Patch 2.0](https://wow.gamepedia.com/Patch_2.0 "Patch 2.0"). ID refers to a 1-based index of the sockets in the item being considered for socketing. [C\_ItemSocketInfo.CompleteSocketing](https://wow.gamepedia.com/API_C_ItemSocketInfo.CompleteSocketing "API C ItemSocketInfo.CompleteSocketing")() - Completes socketing an item, binding it to the player. [AcceptSockets](https://wow.gamepedia.com/API_AcceptSockets "API AcceptSockets")() - Sockets tentative gems into the sockets, replacing existing gems if necessary. [CloseSocketInfo](https://wow.gamepedia.com/API_CloseSocketInfo "API CloseSocketInfo")() - Stops considering the item for socketing, without applying changes. [GetExistingSocketInfo](https://wow.gamepedia.com/index.php?title=API_GetExistingSocketInfo&action=edit&redlink=1 "API GetExistingSocketInfo (page does not exist)")(id) - Returns information about the existing gem in the socket. [GetExistingSocketLink](https://wow.gamepedia.com/index.php?title=API_GetExistingSocketLink&action=edit&redlink=1 "API GetExistingSocketLink (page does not exist)")(id) - Returns an item link for the existing gem in the socket. [GetNewSocketInfo](https://wow.gamepedia.com/index.php?title=API_GetNewSocketInfo&action=edit&redlink=1 "API GetNewSocketInfo (page does not exist)")(id) - Returns information about the new (tentative) gem in the socket. [GetNewSocketLink](https://wow.gamepedia.com/index.php?title=API_GetNewSocketLink&action=edit&redlink=1 "API GetNewSocketLink (page does not exist)")(id) - Returns an item link for the new (tentative) gem in the socket. [GetNumSockets](https://wow.gamepedia.com/API_GetNumSockets "API GetNumSockets")() - Returns the number of sockets in the item currently being socketed. [GetSocketItemBoundTradeable](https://wow.gamepedia.com/API_GetSocketItemBoundTradeable "API GetSocketItemBoundTradeable")() - Returns whether the item currently being socketed is temporarily tradable (BoP boss loot). [GetSocketItemInfo](https://wow.gamepedia.com/API_GetSocketItemInfo "API GetSocketItemInfo")() - Returns information about the item currently being socketed. [GetSocketItemRefundable](https://wow.gamepedia.com/API_GetSocketItemRefundable "API GetSocketItemRefundable")() - Returns whether the item currently being socketed is refundable. [GetSocketTypes](https://wow.gamepedia.com/API_GetSocketTypes "API GetSocketTypes")(id) - Returns the type (color) of a socket in the item. [HasBoundGemProposed](https://wow.gamepedia.com/index.php?title=API_HasBoundGemProposed&action=edit&redlink=1 "API HasBoundGemProposed (page does not exist)")() [SocketContainerItem](https://wow.gamepedia.com/index.php?title=API_SocketContainerItem&action=edit&redlink=1 "API SocketContainerItem (page does not exist)")(bag, slot) - Consider an item in a container slot for socketing. [SocketInventoryItem](https://wow.gamepedia.com/index.php?title=API_SocketInventoryItem&action=edit&redlink=1 "API SocketInventoryItem (page does not exist)")(slot) - Considers the item in the inventory slot for socketing.