12.07.2015 Views

Wiley-World.of.Warcraft.Programming.A.Guide.and.Reference.for.Creating.WoW.Addons

Wiley-World.of.Warcraft.Programming.A.Guide.and.Reference.for.Creating.WoW.Addons

Wiley-World.of.Warcraft.Programming.A.Guide.and.Reference.for.Creating.WoW.Addons

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

794 Part IV ■ <strong>Reference</strong>A Bind on Pickup item looted by the player can be traded to other characterswho were originally eligible to loot it, but only within a limited time afterlooting. This period can be ended prematurely if the player attempts certainactions (such as socketing gems into the item).Returns:tradeable—1 if the item can temporarily be traded to other players; otherwisenil (1nil)GetSocketItemInfoReturns in<strong>for</strong>mation about the item currently being socketed.name, icon, quality = GetSocketItemInfo()Only returns valid in<strong>for</strong>mation when the Item Socketing UI is open (i.e.between the SOCKET_INFO_UPDATE <strong>and</strong> SOCKET_INFO_CLOSE events).Returns:name—Name <strong>of</strong> the item (string)icon—Pathtoanicontexture<strong>for</strong>theitem(string)quality—Quality level <strong>of</strong> the item (number, itemQuality)GetSocketItemRefundableReturns whether the item open <strong>for</strong> socketing is temporarily refundable.refundable = GetSocketItemRefundable()Items bought with alternate currency (honor points, arena points, or specialitems such as Emblems <strong>of</strong> Heroism <strong>and</strong> Dalaran Cooking Awards) can bereturned to a vendor <strong>for</strong> a full refund, but only within a limited time after theoriginal purchase. This period can be ended prematurely if the player attemptscertain actions (such as socketing gems into the item).Returns:refundable—1 if the item can be returned to a vendor <strong>for</strong> a refund; otherwisenil (1nil)GetSocketTypesReturns in<strong>for</strong>mation about the gem types usable in a socket.gemColor = GetSocketTypes(index)Only returns valid in<strong>for</strong>mation when the Item Socketing UI is open (i.e.between the SOCKET_INFO_UPDATE <strong>and</strong> SOCKET_INFO_CLOSE events).Arguments:index—Index <strong>of</strong> a gem socket (between 1 <strong>and</strong> GetNumSockets())(number)Returns:gemColor—Type <strong>of</strong> the gem socket (string)Blue—Accepts any gem, but requires a blue, green, purple or prismatic gemto activate the item’s socket bonus

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!