WoW API: GetSocketTypes

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

WoW API < GetSocketTypes

Returns the type of one of the sockets in the item currently in the item socketing window.

Arguments[edit]

Index
Number - The 1-based index of the socket for which to get information.

Returns[edit]

SocketType
String - The type of the socket at position Index. The value could be any of these (apparently unlocalized) strings:
"Red" - Red socket
"Yellow" - Yellow socket
"Blue" - Blue socket
"Meta" - Meta socket
"Socket" - Prismatic socket

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.