Page 1 of 1
Skill Update
Posted: Tue Dec 26, 2017 8:37 pm
by Gangrenous
I noticed a bug tonight, still trying to figure out what is causing it. I noticed that if you level up, your skill sheet does not update. The database updates and if you log in and out, the new skill stats show. Can in point, something like piercing will say 5/5 and you go to level 5, it should be 5/25 but that does not show until you relog.
Re: Skill Update
Posted: Tue Dec 26, 2017 8:57 pm
by Gangrenous
Interesting thing, if you level naturally it seems to work. But if you level by command, it does not. Looks to me like command just calls ChangeLevel, so unsure the difference. Maybe something in natural leveling refreshes the character sheet that does not happen in ChangeLevel.
Re: Skill Update
Posted: Tue Dec 26, 2017 11:04 pm
by Cynnar
Maybe the command doesn't send the packet update?
Re: Skill Update
Posted: Wed Dec 27, 2017 4:50 am
by Ememjr
was looking and i do not see it sending the packet out to update the charactersheet (i believe that is where skill are sent) i could be wrong
Re: Skill Update
Posted: Wed Dec 27, 2017 4:12 pm
by tyrbo
The character sheet is flagged as changed and then sent out later, not necessarily in the ChangeLevel function.
The skill values are not sent in the character sheet, but in a separate WS_UpdateSkillBook message.
That packet is triggered from Client::SendCharInfo() used when you zone/connect by way of ClientPacketFunctions::SendSkillBook().
You can probably add a call to that function in ChangeLevel().
Re: Skill Update
Posted: Wed Dec 27, 2017 4:34 pm
by Gangrenous
I think I am.