Alright my main promblem is not a compile error but a usage promblem.
void do_sayto(CHAR_DATA *ch, char *argument)
{
char arg[MAX_INPUT_LENGTH];/*, buf[MAX_STRING_LENGTH]*/
CHAR_DATA *victim;
argument = one_argument (argument, arg);
if (arg[0] == '\0' || argument[0] == '\0')
{
send_to_char ("Say what to whom?\n\r", ch);
return;
}
if ((victim = get_char_world (ch, arg)) == NULL ||
victim->in_room != ch->in_room )
{
send_to_char ("They are not here.\n\r",ch);
return;
}
else
{
act ("""You say to $N '""$t"
"'{x", ch, argument, victim, TO_CHAR);
act_new ("""$n says to you '""$t"
"'{x", ch, argument, victim, TO_VICT, POS_DEAD);
act_new ("""$n says to $N '""$t"
"'{x", ch, argument, victim, TO_ROOM, POS_DEAD);
}
The promblem being that it sends the message "Blah says to you 'poo'" and "Blah says to Blah2 'poo'".
I just want it to send to the victim the "Blah says to you 'poo'" portion and hide the "Blah says to Blah2 'poo'".
But I still want the room to see the message just not have it show up on the victims screen since he already gets the message.
Please help me!
void do_sayto(CHAR_DATA *ch, char *argument)
{
char arg[MAX_INPUT_LENGTH];/*, buf[MAX_STRING_LENGTH]*/
CHAR_DATA *victim;
argument = one_argument (argument, arg);
if (arg[0] == '\0' || argument[0] == '\0')
{
send_to_char ("Say what to whom?\n\r", ch);
return;
}
if ((victim = get_char_world (ch, arg)) == NULL ||
victim->in_room != ch->in_room )
{
send_to_char ("They are not here.\n\r",ch);
return;
}
else
{
act ("""You say to $N '""$t"
"'{x", ch, argument, victim, TO_CHAR);
act_new ("""$n says to you '""$t"
"'{x", ch, argument, victim, TO_VICT, POS_DEAD);
act_new ("""$n says to $N '""$t"
"'{x", ch, argument, victim, TO_ROOM, POS_DEAD);
}
The promblem being that it sends the message "Blah says to you 'poo'" and "Blah says to Blah2 'poo'".
I just want it to send to the victim the "Blah says to you 'poo'" portion and hide the "Blah says to Blah2 'poo'".
But I still want the room to see the message just not have it show up on the victims screen since he already gets the message.
Please help me!