Try channel histories. Check out sacred codebase (www.mageslair.net/sacred.php) It has a full implementation of channel histories including the tell history.
Chris "Winston" Litchfield ----- Original Message ----- From: <[EMAIL PROTECTED]> To: <[email protected]> Sent: Sunday, November 16, 2003 5:53 PM Subject: (no subject) > Ok list, here is a new one! I've been trying to figure out a way to store tells while fighting. here is what i've come up with so far. > > /*SNIP< Do_Tell ) */ > > if (victim->fighting != NULL) > { > if (IS_NPC(victim)) > { > act("$E is a mob, and can't recieve tells.",ch,NULL,victim,TO_CHAR); > return; > } > > act("$E is fighting, but your tell will go through when $E is done.", > ch,NULL,victim,TO_CHAR); > sprintf(buf,"{R<{W*{R>{x{M %s tells you '%s'{x\n\r",PERS(ch,victim),argument); > buf[0] = UPPER(buf[0]); > add_buf(victim->pcdata->buffer,buf); > return; > } > > > > My question is, what should i put in Raw_kill? (assuming this would be a good place to put it) because i have tried the following > > > /* As suggested by Gabrielle Taylor */ > if ( buf_string( victim->pcdata->buffer )[ 0 ] == '\0' ) > send_to_char( "{x", victim ); > else > send_to_char( "You have tells waiting. Type replay.\n\r", victim ); > /* thru here */ > > > and the line > if ( buf_string( victim->pcdata->buffer )[ 0 ] == '\0' ) > throws an error code -> subscript requires array or pointer type > > > Im at a loss, so... any help would be appreciated > > Atm! > > __________________________________________________________________ > McAfee VirusScan Online from the Netscape Network. > Comprehensive protection for your entire computer. Get your free trial today! > http://channels.netscape.com/ns/computing/mcafee/index.jsp?promo=393397 > > Get AOL Instant Messenger 5.1 free of charge. Download Now! > http://aim.aol.com/aimnew/Aim/register.adp?promo=380455 > > -- > ROM mailing list > [email protected] > http://www.rom.org/cgi-bin/mailman/listinfo/rom > >

