Yes, that is the line above..

here is code I have:

                paf->where      = fread_number( fp );
                paf->level      = fread_number( fp );
                paf->duration   = fread_number( fp );
                paf->modifier   = fread_number( fp );
                paf->location   = fread_number( fp );
                paf->bitvector  = fread_number( fp );
                paf->next       = ch->affected;
                ch->affected    = paf;
                affect_modify( ch, paf, TRUE );         /* affect fix */
                
                fMatch = TRUE;
                break;
 

now that we have the formalities out of the way.. HELP! :)

- Valnir

----- Original Message ----- 
From: "Richard Lindsey" <[EMAIL PROTECTED]>
To: "Valnir" <[EMAIL PROTECTED]>; "ROM List" <[email protected]>
Sent: Tuesday, March 02, 2004 5:08 PM
Subject: RE: Affects do not re-apply properly.


Just a quick double-check here... When you say this:

I checked the archives, and all I could find was to add the
"affect_modify( ch, paf, TRUE );" line after the "ch->affected = paf;"
line. This didn't seem to help really.

The line before the "ch->affected = paf" does say "paf->next =
ch->affected" right?

Richard Lindsey

-----Original Message-----
From: Valnir [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 02, 2004 2:39 PM
To: ROM List
Subject: Affects do not re-apply properly.


I have been fighting this for a while now, and am starting to get a flat
head from beating it against the wall. Any help here would be greatly
appreciated.

When a character saves and exits and then logs back in we seem to have a
problem where the affects in the pfile are not always re-applied. The
same is true with the affects applied by some of the objects the
character is wearing. Here is the kicker. I managed to get the spells to
re-apply the res_flags and imm_flags, but have been unsuccessful with
the hitroll, damroll, ac, and the like. At the same time, the eq seems
to re-apply the hitroll, damroll, ac and all, but not the imm_flags, or
res_flags.

I checked the archives, and all I could find was to add the
"affect_modify( ch, paf, TRUE );" line after the "ch->affected = paf;"
line. This didn't seem to help really.

I can just say one thing here....... HELP!

- Valnir


-- 
ROM mailing list
[email protected]
http://www.rom.org/cgi-bin/mailman/listinfo/rom


Reply via email to