Installation:
1: In act_wiz.c
Find: do_purge
After: Closeing }
Add:
void do_setlevels( CHAR_DATA *ch, char *argument)
{
int ability, iAbility, sn;
char buf[MAX_STRING_LENGTH];
if( !IS_IMMORTAL(ch))
{
sprintf(buf, "WARNING: MORTAL %s ATTEMPTING TO SET LEVELS.", ch->name);
log_string(buf);
send_to_char("YOU CAN'T DO THAT!! The immortals have been notified.\n\r",ch);
return;
}
ability = -1;
for ( iAbility = 0 ; iAbility < MAX_ABILITY ; iAbility++ )
{
ch->skill_level[iAbility] = 200;
ch->experience[iAbility] = exp_level(200);
}
for ( sn = 0; sn < top_sn; sn++ )
{
if (skill_table[sn]->guild < 0 || skill_table[sn]->guild >= MAX_ABILITY )
continue;
if ( skill_table[sn]->name
&& ( ch->skill_level[skill_table[sn]->guild] >= skill_table[sn]->min_level ) )
ch->pcdata->learned[sn] = 100;
}
ch->max_mana = 30000;
ch->max_move = 30000;
ch->max_hit = 32000;
ch_printf(ch, "All levels and skills have been set for you.\n\r");
return;
}
2: In mud.h
Find: DECLARE_DO_FUN( do_who );
Add: DECLARE_DO_FUN( do_setlevels );
3: In tables.c
Find: if ( !str_cmp( name, "do_setclan" )) return do_setclan;
Add: if ( !str_cmp( name, "do_setlevels" )) return do_setlevels;
Find: if ( skill == do_setclan ) return "do_setclan";
Add: if ( skill == do_setlevels ) return "do_setlevels";
4: In the mud, do a copyover/hotboot or a reboot
5: Then type: cedit setlevels create
cedit save cmdtable