Open up your build.c and in the do_mset function find and change what you have for the "flags" part to this
if( !str_cmp( arg2, "flags" ) )
{
bool pcflag;
if( !is_npc( victim ) && get_trust( ch ) < PERM_LEADER )
{
send_to_char( "You can only modify a mobile's flags.\r\n", ch );
return;
}
if( !argument || argument[0] == '\0' )
{
send_to_char( "Usage: mset <vic> flags <flag> [flag]...\r\n", ch );
return;
}
while( argument && argument[0] != '\0' )
{
argument = one_argument( argument, arg3 );
pcflag = false;
if( is_npc( victim ) )
{
value = get_flag( arg3, act_flags, ACT_MAX );
if( value < 0 || value >= ACT_MAX )
ch_printf( ch, "Unknown flag: %s\r\n", arg3 );
else if( value == ACT_PROTOTYPE && ch->level < sysdata.perm_modify_proto )
send_to_char( "You can't change the prototype flag.\r\n", ch );
else if( value == ACT_IS_NPC )
send_to_char( "If the NPC flag could be changed, it would cause many problems.\r\n", ch );
else
{
xTOGGLE_BIT( victim->act, value );
ch_printf( ch, "%s flag %s.\r\n", act_flags[value], xIS_SET( victim->act, value ) ? "set" : "removed" );
if( xIS_SET( victim->act, ACT_PROTOTYPE ) || value == ACT_PROTOTYPE )
{
xTOGGLE_BIT( victim->pIndexData->act, value );
ch_printf( ch, "%s index flag %s.\r\n", act_flags[value], xIS_SET( victim->pIndexData->act, value ) ? "set" : "removed" );
}
}
}
else
{
value = get_flag( arg3, plr_flags, PLR_MAX );
if( value < 0 || value >= PLR_MAX )
{
value = get_flag( arg3, pc_flags, PCFLAG_MAX );
if( value < 0 || value >= PCFLAG_MAX )
ch_printf( ch, "Unknown flag: %s\r\n", arg3 );
else
{
xTOGGLE_BIT( victim->pcdata->flags, value );
ch_printf( ch, "%s pcflag %s.\r\n", pc_flags[value], xIS_SET( victim->pcdata->flags, value ) ? "set" : "removed" );
}
}
else if( value == PLR_IS_NPC )
send_to_char( "If the NPC flag could be changed, it would cause many problems.\r\n", ch );
else
{
xTOGGLE_BIT( victim->act, value );
ch_printf( ch, "%s flag %s.\r\n", plr_flags[value], xIS_SET( victim->act, value ) ? "set" : "removed" );
}
}
}
return;
}
It was never set to allow pcflags to be set/unset so that should take care of it. I'm going to test it now and make sure it works for the next release as well. (it compiled fine just haven't tested it yet).