Well, from the code you posted it looks like your classes are filtered based
on the following statement:
if (pc_race_table[ch->race].class_mult[iClass] == 0)
So, that would make the code further on need to be:
if ( iClass == 0 || pc_race_table[ch->race].class_mult[iClass] == 0 )
{
write_to_buffer( d,
"That's not a valid class.\n\rWhat IS your class? ", 0 );
return;
}
----- Original Message -----
From: "Atm" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Sunday, March 28, 2004 6:09 PM
Subject: Creation Problem
> Hey list, got a different problem here. I got the "Select a class" and
the part that doesnt let you see the class you want restricted. Only, you
can still select that. How can i fix this? Thanks for any help.
>
>
> strcpy( buf, "Select a class [" );
> for ( iClass = 0; iClass < MAX_CLASS; iClass++ )
> {
> if (pc_race_table[ch->race].class_mult[iClass] == 0)
> continue;
> else
> if (iClass > 0)
> strcat( buf, " " );
> strcat( buf, class_table[iClass].name );
> }
> strcat( buf, "]: " );
> write_to_buffer( d, buf, 0 );
> d->connected = CON_GET_NEW_CLASS;
> break;
>
> case CON_GET_NEW_CLASS:
> iClass = class_lookup(argument);
>
> if ( iClass == 0 )
> {
> write_to_buffer( d,
> "That's not a valid class.\n\rWhat IS your class? ", 0 );
> return;
> }
> else
> {
> ch->class = iClass;
> }
>
> --
> Atm of Forgotten Empire!
>
>
> __________________________________________________________________
> Introducing the New Netscape Internet Service.
> Only $9.95 a month -- Sign up today at http://isp.netscape.com/register
>
> Netscape. Just the Net You Need.
>
> New! Netscape Toolbar for Internet Explorer
> Search from anywhere on the Web and block those annoying pop-ups.
> Download now at http://channels.netscape.com/ns/search/install.jsp
>
> --
> ROM mailing list
> [email protected]
> http://www.rom.org/cgi-bin/mailman/listinfo/rom
>