[Source] Extra column in the database
I have been working on an addition to the character info window.
There is a little bar which increases each time you call an event (I have used a command for the ease of testing).
I want this value to be saved in the database just like the m_nStr value. I defined the value in I believe User.h and Obj.h (for the DB server) but when I change the value in mover.cpp it does not update it in the database.
What else should I edit so that when the user logs out, that value is saved to the character table in the m_nTest column?
I didn't add anything to make it know that column is in the character table, perhapd that's what is missing.
Thanks in advance.
Posted via Mobile Device
Re: [Source] Extra column in the database
in _Database/DbManager.cpp, find: CDbManager::DBQryCharacter
That's the function that controls every variable that is retrieved from a character and saved in the CHARACTER_TBL
Re: [Source] Extra column in the database
You will need to update the sp too. Then in dbmanager its like shadowdragon42 sais.
Posted via Mobile Device
Re: [Source] Extra column in the database
Quote:
Originally Posted by
caja
You will need to update the sp too. Then in dbmanager its like shadowdragon42 sais.
Posted via Mobile Device
Yeah, figured that out already. Thank you both.