31 Oct, 2011, arholly wrote in the 1st comment:
Votes: 0
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;

KEY( "Reject", ch->pcdata->ignore_reject,fread_string( fp ) );

if ( !str_cmp( word, "Room" ) )
ch->in_room = get_room_index( fread_number( fp ) );
if ( ch->in_room == NULL )
ch->in_room = get_room_index( ROOM_VNUM_LIMBO );
fMatch = TRUE;

ch->RBPG = fread_number( fp );
ch->max_RBPG = fread_number( fp );
ch->GHB = fread_number( fp );
ch->max_GHB = fread_number( fp );
ch->willpower = fread_number( fp );
ch->max_willpower = fread_number( fp );
fMatch = TRUE;


Is that correct or am I missing something?

01 Nov, 2011, Sharmair wrote in the 2nd comment:
Votes: 0
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).
01 Nov, 2011, arholly wrote in the 3rd comment:
Votes: 0
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.
01 Nov, 2011, arholly wrote in the 4th comment:
Votes: 0
Nevermind. It was a bit of code that was put in to refresh staff when they logged in. Thanks anyway. Appreciate it.