char_list will go through all the mobs as well.

descriptor list is a valid way to loop through online players.


> -----Original Message-----
> From: Chris "Winston" Litchfield [mailto:[EMAIL PROTECTED]
> Sent: Sunday, February 10, 2002 4:13 PM
> To: [email protected]
> Subject: Re: hmm
> 
> 
> First, it seems you are using the wrong thing to loop on
> 
> Use char_list, or player_list if you have it.
> 
> Second,  the victim->spouce == ch->name wont work.
> 
> use (is_exact_name(...spouse, ch->name))
> 
> I assume those are char *
> 
> 
> ----- Original Message ----- 
> From: "Tom Whiting" <[EMAIL PROTECTED]>
> To: <[email protected]>
> Sent: Sunday, February 10, 2002 3:58 PM
> Subject: hmm
> 
> 
> > Okay, I'm kind of perplexed here.. Maybe someone can see 
> what I'm doing
> > wrong here, or offer a better way of doing things.
> > On DR, the relationship system is kinda, well, complex. The person
> > starts out dating, works their way up to getting married, 
> all done in
> > stages, limited by a certain timer (for example, you can't 
> ask someone
> > to marry you if you've been dating less than 20 weeks, etc).
> > Occasionally, this timer seems to not want to work. With 
> some it will,
> > yet with some others it won't.. Personally, I have never 
> had a problem
> > with it, but I know others it won't move for, won't budge.. 
> Here's the
> > code for the update.
> > 
> > 
> > void spouse_update( void )
> > {
> >     DESCRIPTOR_DATA *d;
> >     DESCRIPTOR_DATA *b;
> >     CHAR_DATA *ch;
> >     CHAR_DATA *victim;
> > 
> >     for ( d = descriptor_list; d != NULL; d = d->next )
> >     {
> >         if (d->character != NULL && d->connected == CON_PLAYING)
> >         {
> >         ch = d->character; //this is me
> >           for ( b = descriptor_list; b != NULL; b = b->next )
> >           {
> > 
> >         victim = b->original ? b->original : b->character; 
> //this is my
> > spouse
> > 
> >         if (b->connected == CON_PLAYING &&
> >             victim != ch &&
> >             victim->pcdata->spouse == ch->name)
> > 
> >         //are we online together?? If so, update the rtime
> >         {
> >         ch->pcdata->rtime ++ ;
> >         victim->pcdata->rtime ++ ;
> >         }
> >           }
> >         }
> >     }
> > return;
> > }
> > 
> > Can anyone see anything in here that might cause that to do that? I
> > can't, myself.
> > 
> > 
> > -------------------------------------------
> > TJW: Head tech, Dreamless Realms Mud
> > Personal: http://twhiting.kyndig.com
> > Mud: http://drealms.kyndig.com
> > Snippets http://drealms.kyndig.com/snippets
> > Telnet telnet://drealms.kyndig.com:9275
> > The OLC2 Pages http://olc.kyndig.com
> > -------------------------------------------
> > 
> >  
> > 
> > 
> > 
> > -- 
> > ROM mailing list
> > [email protected]
> > http://www.rom.org/cgi-bin/mailman/listinfo/rom
> > 
> > 
> 
> 
> -- 
> ROM mailing list
> [email protected]
> http://www.rom.org/cgi-bin/mailman/listinfo/rom
> 

Reply via email to