Join The Fan Lab, a private Fandom research community for users in the US and UK where you will be asked to share your opinions on all things gaming and entertainment! Click here to see if you qualify

GetSocketTypes

From Wowpedia
Jump to: navigation, search

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

Arguments

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

Returns

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

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

Details

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