Wikia

WoWWiki

API GetNumSockets

Talk0
101,310pages on
this wiki
Revision as of 23:56, June 22, 2009 by Vger (Talk | contribs)

(diff) ←Older revision | Latest revision (diff) | Newer revision → (diff)
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.

Around Wikia's network

Random Wiki