Open richards-w opened 6 years ago
Player.cpp::GiveLevel should contain a call to a custom script. The script will pull in the current class and level and query world.npc_trainer to get the current skills for the current level. See https://trinitycore.atlassian.net/wiki/spaces/tc/pages/2130119/Trainer+reference for reference codes by class. With the spellIds available, the script will loop through and call Player.cpp::LearnSpell.
Auction house.cpp has examples of database queries.
With the removal of Eluna from this repo, characters will no longer learn new abilities on level. This can most likely be corrected in the Player.cpp class. The GiveLevel method would be where a new method call should be added.
Find where abilities get added and how they're validated for a given level/talent spec to proceed.