Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are
spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the
password reset link.
Due to spam on this forum, all posts now need moderator approval.
Entire forum
➜ SMAUG
➜ SMAUG coding
➜ custom wizhelp problem
It is now over 60 days since the last post. This thread is closed.
Refresh page
| Posted by
| Bryn
(14 posts) Bio
|
| Date
| Tue 07 Jan 2003 07:03 AM (UTC) |
| Message
| this is the modified code i currentlky use for my wizhelp:
void do_wizhelp( CHAR_DATA *ch, char *argument )
{
CMDTYPE * cmd;
int col, hash;
int curr_lvl;
col = 0;
set_pager_color( AT_WHITE, ch );
for ( curr_lvl = LEVEL_AVATAR; curr_lvl <= get_trust( ch );
curr_lvl++)
{
send_to_pager( "\n\r\n\r", ch);
col = 1;
pager_printf( ch, "[LEVEL %-2d] ", curr_lvl);
for (hash = 0; hash < 126; hash++ )
for ( cmd = command_hash[hash]; cmd; cmd = cmd->next )
if (( cmd->level == curr_lvl)
&& 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;
}
normally, when this is used, when i access the wizhelp, it divides the wiz commands up by level and displays them.
The problem i recently found with this code is that when i increased the number of levels in my mud(to 115) and try to access the wizlist, it doesnt show the commands, it just shows the level numbers. Why might it be doing this?
Thanks once again,
Bryn
| | Top |
|
| Posted by
| Bryn
(14 posts) Bio
|
| Date
| Reply #1 on Wed 08 Jan 2003 06:04 AM (UTC) |
| Message
| Nevermind, Problem solved
Thanks for everything
Bryn | | Top |
|
The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).
To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.
10,448 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top