Fandom

WoWWiki

API GetNumSockets

104,768pages on
this wiki
Add New Page
Talk0 Share
WoW API < GetNumSockets

Returns the number of sockets in the item currently in the item socketing window.

Arguments Edit

none

Returns Edit

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

Example Edit

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

Details Edit

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

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.