Hi there, I'll explain my problem, to see if anyone can help me out.
I compile a private server where we use none-official races (goblins, ogres, etc) with their own racial traits. So, a while ago, there was no problem. We just had to forget the old racial traits, and learn the new ones the first time we logged in, and it stayed like that.
After this, there was a commit where the deafult spells (racial and class specific) where loaded on player load, everytime we accessed the server. So I went to player.cpp and there, to Player::LoadFromDB function and commented out the line learnDefaultSpells(); and no problem. I fixed the issue and could still play with our own traits.
Now, the problem is that the default spells are loaded in memory and not saved to the player, so having this line commented will make NEW PLAYERS (this problem doesn't apply to old players) don't know anything (not even languages. for example, the warrior won't even have the arms tab in the spell book). So, I tryed to uncomment this line, so as to learn all the new spells. Did this, accessed the game, learnt all spells up to level 55, and again, commented the line. The problem was that, once again, when logging in, the player didn't know the default spells that it should know (but it did know the spells learn by trainers or by command). This leads me to thinking (and by having taken a good look at the code) that these default spells are loaded in a map, but aren't saved to the player's data.
Is this intended? What would be a possible solution to my problem?
Thx in advance