Vger61674@legacy41580606 (talk | contribs) (New page) |
Vger61674@legacy41580606 (talk | contribs) m (→Returns) |
||
Line 8: | Line 8: | ||
== Returns == |
== Returns == |
||
:SocketType |
:SocketType |
||
− | :: |
+ | ::String - The type of the socket at position Index. The value could be any of these (apparently unlocalized) strings: |
:::"Red" - Red socket |
:::"Red" - Red socket |
||
:::"Yellow" - Yellow socket |
:::"Yellow" - Yellow socket |
||
Line 14: | Line 14: | ||
:::"Meta" - Meta socket |
:::"Meta" - Meta socket |
||
:::"Socket" - Prismatic socket |
:::"Socket" - Prismatic socket |
||
− | |||
== Example == |
== Example == |
Revision as of 23:57, 22 June 2009
Automated updating of API pages at this location, to reflect patch changes, has ceased from 10.1.7 onwards. |
Returns the type of one of the sockets in the item currently in the item socketing window.
Arguments
- Index
- Index - 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
- String - The type of the socket at position Index. The value could be any of these (apparently unlocalized) strings:
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.