if ( !str_cmp( arg2, "mtitle" ) )
{
char arg3[MAX_INPUT_LENGTH];
int x;
argument = one_argument( argument, arg3 );
if ( arg3[0] == '\0' || argument[0] == '\0' )
{
send_to_char( "Syntax: setclass <class> mtitle <level> <title>\n\r", ch );
return;
}
if ( (x=atoi(arg3)) < 0 || x > MAX_LEVEL )
{
send_to_char( "Invalid level.\n\r", ch );
return;
}
if ( title_table[cl][x][0] )
DISPOSE( title_table[cl][x][0] );
title_table[cl][x-1][0] = str_dup( argument );
}
if ( !str_cmp( arg2, "ftitle" ) )
{
char arg3[MAX_INPUT_LENGTH];
char arg4[MAX_INPUT_LENGTH];
int x,sex;
argument = one_argument( argument, arg3 );
argument = one_argument( argument, arg4 );
if ( arg3[0] == '\0' || argument[0] == '\0' )
{
send_to_char( "Syntax: setclass <class> ftitle <level> <male/female> <title>\n\r", ch );
return;
}
if ( (x=atoi(arg4)) < 0 || x > MAX_LEVEL )
{
send_to_char( "Invalid level.\n\r", ch );
return;
}
if ( !str_cmp( arg4, "Male") )
sex = 0;
else
sex = 1;
if ( title_table[cl][x][sex] )
DISPOSE( title_table[cl][x][sex] );
/* Bug fix below -Shaddai*/
title_table[cl][x][sex] = str_dup( argument );
}
do_setclass( ch, "" );
}
It's strange. That cleared up the that bug, but now this happens:
Log: Toy: setclass 3 mtitle 54 admin
Syntax: setclass <class> <field> <value>
Syntax: setclass <class> create
Field being one of:
name prime weapon guild thac0 thac32
hpmin hpmax mana expbase mtitle ftitle
second, deficient affected resist suscept
No matter what I type in for mtitle and level, it just keeps show the Syntax message.
-Toy