Greetings,
I am having a small problem with an edit I'd like to make...I'm
trying to set all classes to the specified level with one command. The
area marked with the *** is the added lines. It will not work for me.
Can someone see anything wrong? There are no errors on compile. It
just does nothing.
Thanks
SKEDIT( skedit_levels )
{
int i;
char class[MSL];
char value[MSL];
SKILL_DATA *pSkill;
EDIT_SKILL( ch, pSkill );
if ( argument[0] != '\0' )
{
argument = one_argument(argument, class);
argument = one_argument(argument, value);
*** if ( !str_cmp( class, "all" ) )
*** {
*** for (i = 0; i >= MAX_CLASS; i++)
*** {
*** pSkill->skill_level[i] = atoi(value);
*** printf_to_char(ch, "All Classes set to %d", atoi(value) );
*** }
*** return;
*** }
if ( class_lookup(class) < 0 )
{
send_to_char("That class does not exist.\n\r", ch);
return FALSE;
}
if ( !is_number(value) )
{
send_to_char("Second argument must be numeric.\n\r", ch);
return FALSE;
}
pSkill->skill_level[ class_lookup( class ) ] = atoi(value);
printf_to_char(ch, "New class level is: %d", atoi(value) );
return TRUE;
}
send_to_char("Syntax: level <class> <level>\n\r", ch);
return FALSE;
}
Keith Mervine
"Non Omnis Moriar"
"Growing old is mandatory, growing up is optional"
Service Management Application Developer
International Monetary Fund
[EMAIL PROTECTED]
202-623-7610