Core:Trinity Core 3.3.5a
I have been working on this off and on till I get frustrated, thought I would ask some people with better C++ skills. I have posted on a few websites and am surprised this is not more sought after since it would seem to be a great mod for a lot of reasons.
I know that the Core looks at the DBC files for adding the spells for Gems. What I have been trying to do is change this so if I add stats to a Gem in sql (Stat_type1-Stat_type10) it would give those stats to the player when the gem was equipped in gear. Does anyone have any ideas for a custom script to get (Stat_type1-Stat_type10) to work on Gem sockets?
I was told on another website to "Look at the Player::*Enchantment functions and their call hierarchy, you'll eventually see where it calls the DBC lookup, you can just override that there."
I could not find a Player::*Enchantment. The closest I came to finding something was Player::CorrectMetaGemEnchants .
I have since been trying to figure out how to give it stats like in Player::_ApplyItemBonuses
I have been playing around with the code around Player::CorrectMetaGemEnchants just to try and get one stat working. Any ideas on how to do this?