WoW API: GetNumSockets
← WoW API < GetNumSockets
Returns the number of sockets in the item currently in the item socketing window.
ArgumentsEdit
- none
ReturnsEdit
- Sockets
- Number - The number of sockets in the item currently in the item socketing window. If the item socketing window is closed, 0.
ExampleEdit
local SocketCount = GetNumSockets() for i = 1, SocketCount do print(GetSocketInfo(i)) end
DetailsEdit
This function is only useful if the item socketing window is currently visible.