Skip to content
everloot

Lore archive · Warcraft Wiki, 2023 dump

API GetSocketTypes

Last wiki revision 2022-06-09

Returns the type (color) of a socket in the item.

  • Index
  • Number - The 1-based index of the socket for which to get information.
  • 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

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

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

Source

https://warcraft.wiki.gg/wiki/API_GetSocketTypes · retrieved 2023-11-13 · CC BY-SA 4.0

Converted from wikitext with templates, tables and images removed, so some sentences may be missing values.

This archive predates WoW: Forever. For collected gameplay facts see the Forever database. Search the archive.