Hello again: OK, I noticed today that one of my pools for abilities was refreshing whenever I logged out and logged back in. So, I setup some powers to log if it was actually decreasing the pool and it says they were (see below). So, I then went to look at the player file, and it shows there as being correctly (also see below). Which leads me to believe that it is not loading correctly. But, I looked in the code and I think it is loading correctly, but am not sure.
Mon Oct 31 09:41:18 2011 - Rayal blood pool set to 14. Mon Oct 31 09:41:34 2011 - Log Rayal: timerclear rayal Mon Oct 31 09:41:37 2011 - Rayal blood pool set to 13. Mon Oct 31 09:41:45 2011 - Rayal has quit.
Excerpt from pfile:
RGW 13 15 10 10 10 10
Now, that should be loaded in fread_char, correct? So, I went there and looked and this is what the code says:
case 'R': if ( !str_cmp( word, "Race" ) ) { ch->race = fread_number( fp ); fMatch = TRUE; break; }
Being that the data you are talking about seems to be a current value, it would seem that someplace between where the pfile is loaded (normaly just after the enter password part of logon) and the player actually playing, a refresh is being done (setting current value to the max value). I would think most likely in nanny() where creating and old players converge again and a number of things are set up with new players (CON_READ_MOTD in my code).
I looked there but it looks like the only place it mentions that variable is for creating new characters and in the bust_a_prompt function. So, I don't think that is it, because I thought that too.
OK, I noticed today that one of my pools for abilities was refreshing whenever I logged out and logged back in. So, I setup some powers to log if it was actually decreasing the pool and it says they were (see below). So, I then went to look at the player file, and it shows there as being correctly (also see below). Which leads me to believe that it is not loading correctly. But, I looked in the code and I think it is loading correctly, but am not sure.
Excerpt from pfile:
Now, that should be loaded in fread_char, correct? So, I went there and looked and this is what the code says:
Is that correct or am I missing something?
Arholly