Heh, so it's not going as well as I thought it would, I MUST be doing something wrong. i copied in the snippet and still no joy, it doesn't recognise sayto as a command in the mud. I decided to alter up the code a little, I added in a new phistory and added the command into mud.h right under say. altered a few small things and made it compile fine. It saw no problems and everyone can connect fine.
these are the things I altered and added in, let me know if it's wrong.
this is the mud.h additions i made.
PER_HISTORY *first_sayto, *last_sayto;
and
else if( type == 4 )
LINK( phistory, ch->pcdata->first_sayto, ch->pcdata->last_sayto, next, prev );
[code]
else if( type == 4 )
UNLINK( phistory_remove, ch->pcdata->first_sayto, ch->pcdata->last_sayto, next, prev );
DECLARE_DO_FUN( do_sayto );
then i have the snippet which i altered it's phistory to 4, i added this into db.c
while( ch->pcdata->last_sayto )
{
PER_HISTORY *phistory;
phistory = ch->pcdata->last_sayto;
UNLINK( phistory, ch->pcdata->first_sayto, ch->pcdata->last_sayto, next, prev );
free_phistory( phistory );
finally, i made these additions to act_comm.c
if( !ch || is_npc( ch ) || !ch->pcdata || !argument || argument[0] == '\0' )
return;
if( type < 0 || type > 4 )
return;
if( type == 0 )
history_start = ch->pcdata->first_tell;
else if( type == 1 )
history_start = ch->pcdata->first_say;
else if( type == 2 )
history_start = ch->pcdata->first_yell;
else if( type == 3 )
history_start = ch->pcdata->first_whisper;
else if( type == 4 )
history_start = ch->pcdata->first_sayto;
else if( type == 5 )
history_start = ch->pcdata->first_fchat;
else if( type == 4 )
UNLINK( phistory_remove, ch->pcdata->first_sayto, ch->pcdata->last_sayto, next, prev );
would it be possible for someone to log on to 89.184.37.193 port 2700 and lend a hand?
Thanks again