WoW API: GetNumSockets

From AddOn Studio
Revision as of 04:46, 15 August 2023 by Move page script (talk | contribs) (Move page script moved page API GetNumSockets to API GetNumSockets without leaving a redirect)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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.