[REQUEST] Position of "level up-function"

Hello,

i want that a player get one item by level up. My problem is that i cannot find the position of code where the player get the level up. I mean that position where the player get level+1, stats+x, and the message “You reach level xx”.

Does anyone have an idea?

i searched on github for you and maybe is helping you:

https://github.com/TrinityCore/TrinityCore/blob/master/src/server/game/Entities/Player/Player.cpp#L3083

The function for level up start from line 3083

Why modify the core when you could just add a player script? See example codes and scriptmgr.h

Thanks. Problem solved.

wrong, problem made worse… make a script for apollo’s sake.