richards-w / TrinityCore

Personal modifications for TrinityCore
GNU General Public License v2.0
0 stars 0 forks source link

Add auto learn abilities on level to server. #2

Open richards-w opened 6 years ago

richards-w commented 6 years ago

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.

richards-w commented 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.

richards-w commented 6 years ago

Auction house.cpp has examples of database queries.