GetNumSockets

From Warcraft Wiki
Jump to navigation Jump to search
Flavors
Links
Patch
Added in 2.0.1 / 2.5.1 / 1.14.0

Returns the number of sockets for an item in the socketing window.

numSockets = GetNumSockets()

Returns

numSockets
number - The number of sockets in the item currently in the item socketing window. If the item socketing window is closed, 0.

Example

for i = 1, GetNumSockets() do
    print(GetSocketInfo(i))
end

Details

This function is only useful if the item socketing window is currently visible.