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.
|