in act_comm.c find
void do_rip( CHAR_DATA * ch, char *argument )
{
char arg[MAX_INPUT_LENGTH];
one_argument( argument, arg );
if( arg[0] == '\0' )
{
send_to_char( "Rip ON or OFF?\r\n", ch );
return;
}
if( ( strcmp( arg, "on" ) == 0 ) || ( strcmp( arg, "ON" ) == 0 ) )
{
send_rip_screen( ch );
xSET_BIT( ch->act, PLR_RIP );
xSET_BIT( ch->act, PLR_ANSI );
return;
}
if( ( strcmp( arg, "off" ) == 0 ) || ( strcmp( arg, "OFF" ) == 0 ) )
{
xREMOVE_BIT( ch->act, PLR_RIP );
send_to_char( "!|*\r\nRIP now off...\r\n", ch );
return;
}
}
void do_ansi( CHAR_DATA * ch, char *argument )
{
char arg[MAX_INPUT_LENGTH];
one_argument( argument, arg );
if( arg[0] == '\0' )
{
send_to_char( "ANSI ON or OFF?\r\n", ch );
return;
}
if( ( strcmp( arg, "on" ) == 0 ) || ( strcmp( arg, "ON" ) == 0 ) )
{
xSET_BIT( ch->act, PLR_ANSI );
set_char_color( AT_WHITE + AT_BLINK, ch );
send_to_char( "ANSI ON!!!\r\n", ch );
return;
}
if( ( strcmp( arg, "off" ) == 0 ) || ( strcmp( arg, "OFF" ) == 0 ) )
{
xREMOVE_BIT( ch->act, PLR_ANSI );
send_to_char( "Okay... ANSI support is now off\r\n", ch );
return;
}
}
These two never check to make sure the character isn't an npc.
PLR_ANSI is the same as ACT_AUTONOMOUS
PLR_RIP is the same as ACT_PACIFIST
It's not that big of a deal, but it is probably best to toss in checks to keep npcs from doing those two commands.