I have my slist that brings up skills with their levels next to them. I immed at one mud where their wizcommands displayed the imm levels and the wizcommands that you got at that level. I'm very new to mud coding and I'm not quite sure what all the variables mean so I'm having a lot of problems. My do wizcommand look like this.
void do_wizhelp( CHAR_DATA *ch, char *argument )
{
CMDTYPE * cmd;
int col, hash;
col = 0;
set_pager_color( AT_PLAIN, ch );
for ( hash = 0; hash < 126; hash++ )
for ( cmd = command_hash[hash]; cmd; cmd = cmd->next )
if ( cmd->level >= LEVEL_HERO
&& cmd->level <= get_trust( ch ) )
{
pager_printf( ch, " %-12s", cmd->name );
if ( ++col % 6 == 0 )
send_to_pager( "\n\r", ch );
}
if ( col % 6 != 0 )
send_to_pager( "\n\r", ch );
return;
}
I was looking at the regular slist command but there are different variables, could anyone help me with this?
void do_wizhelp( CHAR_DATA *ch, char *argument )
{
CMDTYPE * cmd;
int col, hash;
col = 0;
set_pager_color( AT_PLAIN, ch );
for ( hash = 0; hash < 126; hash++ )
for ( cmd = command_hash[hash]; cmd; cmd = cmd->next )
if ( cmd->level >= LEVEL_HERO
&& cmd->level <= get_trust( ch ) )
{
pager_printf( ch, " %-12s", cmd->name );
if ( ++col % 6 == 0 )
send_to_pager( "\n\r", ch );
}
if ( col % 6 != 0 )
send_to_pager( "\n\r", ch );
return;
}
I was looking at the regular slist command but there are different variables, could anyone help me with this?