Thread Tools Display Modes
04-16-09, 06:07 PM   #1
ArrchDK
A Fallenroot Satyr
 
ArrchDK's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2009
Posts: 25
Gem API

Currently my mod uses an invisible tooltip and scans the text to look for "Yellow Socket", "Red Socket", etc... and counts the missing gems.

I'm trying to update it to go one step further and determine what kind of gem it is. I've checked WoWWiki and WoWProgramming, so I don't think it's possible, but are their any functions that return information on how many gem sockets an item has (without opening the gem socket menu), or any function that may help me?

The only thing I can come up with is to store a table with Known good gem "+"s (Like "+16", "+32"), scan the tooltip for "Socket Bonus", scan the itemString for how many gems there are then compare the prior tooltip lines(depending on how many gems) to the known good list.

It's a ridiculous amount of coding, so I'm hoping for a shortcut. Thanks.
  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » AddOn Help/Support » Gem API


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off