why not...

play with the preety colors. and adjust colums to your liking.

void do_wizhelp( CHAR_DATA *ch, char *argument )
{
    char buf[MSL];
    int  index[MIL*4];
    int  cmd;
    int  col = 0;
    int  i,count = 0;

    for ( count = 0; cmd_table[count].name[0] != '\0'; count++ )
        index[count]=count;

    qsort(index, count, sizeof(int), sort_cmd_table);

    col = 0;
    for ( i = 0; i < count ; i++ )
    {
        cmd = index[i];

        if ( cmd_table[cmd].level >= LEVEL_HERO
        &&   cmd_table[cmd].level <= get_trust( ch )
        &&   cmd_table[cmd].show)
        {
           sprintf( buf,"[{R%2d{x] {Y%-11s{x", 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;
}


Reply via email to