Rebirth system not saving correctly.

07/12/2013 09:26 raventh1984#1
Hi elitepvpers,

I have build in the rebirth system that Andrej released in his source.
Almost everything works. The only downside is that its not saving it to the database.

Inside the CHARACTER_TBL i have made an new field called m_nRebirthCount

In the CHARACTER_STR procedure i have added this to S1 U1 I1

Now when i do an rebirth i get this inside the m_nRebirthCount
-101
If i do an other rebirth its updating to -100 etc.

So what i dont get is where does it say that it must be -101 instead of 1

With kind regards.
07/12/2013 10:35 SourceShop#2
You have done the obj.cpp?

Code:
	
m_nRebirthCount= pMover->m_nRebirthCount;

if( m_nRebirthCount < 0 )
	m_nRebirthCount = 0;
so you do not have a negative value
07/12/2013 11:01 raventh1984#3
Thank you that works. Now i have run some tests and i noticed that everytime i reloged the m_nRebirthCount is set to 0 in the database.

So when i do an rebirth the field gets updated with the number 1 after relogging its back to 0. Where do i need to look for this.
07/12/2013 11:29 SourceShop#4
Do you have skype?
07/12/2013 17:31 ThoughtfulDev#5
Quote:
Originally Posted by raventh1984 View Post
Thank you that works. Now i have run some tests and i noticed that everytime i reloged the m_nRebirthCount is set to 0 in the database.

So when i do an rebirth the field gets updated with the number 1 after relogging its back to 0. Where do i need to look for this.
you have the correct dbmanagersave.cpp part?