I added this to character creation.
it works for the most part unless you input a name and go to is this the last name you wish to have? and if you hit n, it skips straight to class skipping both the both the place to reenter a last name, and where it puts in your sex, sets you has neutral then puts you right at the class selection
case CON_GET_LAST_NAME:
if( argument[0] == '\0' )
{
STRFREE( ch->lname );
sprintf( buf, "none");
ch->lname = STRALLOC( buf );
write_to_buffer( d, echo_on_str, 0 );
write_to_buffer( d, "\r\nWhat is your sex (M/F/N)? ", 0 );
d->connected = CON_GET_NEW_SEX;
break;
}
else
{
STRFREE( ch->lname );
sprintf( buf, "%s", argument);
ch->lname = STRALLOC( buf );
write_to_buffer( d, echo_on_str, 0 );
write_to_buffer( d, "\r\nIs this last name you wish? YES/NO", 0);
d->connected = CON_CONFIRM_LAST_NAME;
break;
}
case CON_CONFIRM_LAST_NAME:
switch ( argument[0] )
{
case 'y':
case 'Y':
write_to_buffer( d, echo_on_str, 0 );
write_to_buffer( d, "\r\nWhat is your sex (M/F/N)? ", 0 );
d->connected = CON_GET_NEW_SEX;
break;
case 'n':
case 'N':
write_to_buffer( d, echo_on_str, 0 );
write_to_buffer( d, "\r\nWhat is the last name you wish to have? [PRESS ENTER FOR NONE]", 0 );
d->connected = CON_GET_LAST_NAME;
break;
default:
write_to_buffer( d, "If thats not your last name, then what is?\r\n ", 0 );
return;
}it works for the most part unless you input a name and go to is this the last name you wish to have? and if you hit n, it skips straight to class skipping both the both the place to reenter a last name, and where it puts in your sex, sets you has neutral then puts you right at the class selection