void do_wizhelp( CHAR_DATA *ch, char *argument )
{
char buf[MAX_STRING_LENGTH];
int cmd;
int col;
int clevel;
col = 0;
send_to_char( "\n\r", ch );
for( clevel = LEVEL_HERO + 1; clevel < MAX_LEVEL + 1; clevel++ )
{
for ( cmd = 0; cmd_table[cmd].name[0] != '\0'; cmd++ )
{
if ( cmd_table[cmd].level >= LEVEL_HERO
&& cmd_table[cmd].show
&& cmd_table[cmd].level == clevel)
{
sprintf( buf, "[{c%-3d{x]{g %-13s{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;
}
----- Original Message -----
From: "Valnir" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Friday, January 23, 2004 11:34 AM
Subject: Re: Skill List Sorting.
> That would be great, thanks!
>
> (not sure where the archive is, link to that would be good too!)
>
> -Valnir
>
> ----- Original Message -----
> From: "Jesse Boulianne" <[EMAIL PROTECTED]>
> To: "Leath, Chad (C.L.)" <[EMAIL PROTECTED]>; "'Valnir'"
> <[EMAIL PROTECTED]>
> Cc: <[email protected]>
> Sent: Friday, January 23, 2004 11:25 AM
> Subject: Re: Skill List Sorting.
>
>
> > There's also a snippet out there for sorting the wizhelp by level and
> > alphabetically. It's quite nice, actually.
> > I can post it, as I've installed it.
> > Of course, you'd have to modify it to reflect the skill_table. :)
> >
> > ----- Original Message -----
> > From: "Leath, Chad (C.L.)" <[EMAIL PROTECTED]>
> > To: "'Valnir'" <[EMAIL PROTECTED]>
> > Cc: <[email protected]>
> > Sent: Friday, January 23, 2004 11:29 AM
> > Subject: RE: Skill List Sorting.
> >
> >
> > > There is a post in the archives about using qsort to sort and display
> > > commands. This could be changed to sort your skills.
> > >
> > > -----Original Message-----
> > > From: Valnir [mailto:[EMAIL PROTECTED]
> > > Sent: Friday, January 23, 2004 11:27 AM
> > > To: [email protected]
> > > Subject: Skill List Sorting.
> > >
> > >
> > > Here is a problem plaguing me.
> > >
> > > The SKILLS list on our mud is getting a little out of hand and I need
to
> > > find a way to sort it. Alphabetically if possible. Any help would be
> > GREATLY
> > > appreciated!
> > >
> > > - Valnir
> > >
> > >
> > > --
> > > ROM mailing list
> > > [email protected]
> > > http://www.rom.org/cgi-bin/mailman/listinfo/rom
> > >
> > > --
> > > ROM mailing list
> > > [email protected]
> > > http://www.rom.org/cgi-bin/mailman/listinfo/rom
> > >
> >
> >
>
>
> --
> ROM mailing list
> [email protected]
> http://www.rom.org/cgi-bin/mailman/listinfo/rom
>