our Wizhelp only gives those of each lvl The powers of that lvl and lvl 5 IE, if your 11, you only have lv.11 powers and lv.5 powers same with 8 - lv. 8 powers and lv. 5 powers.. we wana make it so that 11 has all its powers and the ones below it.
here is the wizhelp code
void do_wizhelp( CHAR_DATA *ch, char *argument )
{
char buf[MAX_STRING_LENGTH];
int cmd;
int col;
int rep;
// Levels added by: NebuLogic
col = 0;
for ( rep = 1; rep <= 12; rep ++ )
{
for ( cmd = 0; cmd_table[cmd].name[0] != '\0'; cmd++ )
{
if (cmd_table[cmd].level != rep)
continue;
if (cmd_table[cmd].level < 4)
continue;
if (ch->level < 12 && ch->trust < 12 && ch->level > 3 &&
cmd_table[cmd].level != ch->level && cmd_table[cmd].level > 5)
continue;
else
{
sprintf( buf, "#c[#C%-2d#c]#7%-12s", cmd_table[cmd].level, cmd_table[cmd].name );
send_to_char( buf, ch );
if ( ++col % 4 == 0 )
send_to_char( "\n\r", ch );
}
}
}
if ( col % 4 != 0 )
send_to_char( "\n\r", ch );
return;
}
any help on this is greatly appreciated
here is the wizhelp code
void do_wizhelp( CHAR_DATA *ch, char *argument )
{
char buf[MAX_STRING_LENGTH];
int cmd;
int col;
int rep;
// Levels added by: NebuLogic
col = 0;
for ( rep = 1; rep <= 12; rep ++ )
{
for ( cmd = 0; cmd_table[cmd].name[0] != '\0'; cmd++ )
{
if (cmd_table[cmd].level != rep)
continue;
if (cmd_table[cmd].level < 4)
continue;
if (ch->level < 12 && ch->trust < 12 && ch->level > 3 &&
cmd_table[cmd].level != ch->level && cmd_table[cmd].level > 5)
continue;
else
{
sprintf( buf, "#c[#C%-2d#c]#7%-12s", cmd_table[cmd].level, cmd_table[cmd].name );
send_to_char( buf, ch );
if ( ++col % 4 == 0 )
send_to_char( "\n\r", ch );
}
}
}
if ( col % 4 != 0 )
send_to_char( "\n\r", ch );
return;
}
any help on this is greatly appreciated