{\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\fswiss\fcharset0 Arial;}}
{\*\generator Msftedit 5.41.15.1515;}\viewkind4\uc1\pard\f0\fs20 At the top of mob_cmds.c in the command table you want to put this at the\par
bottom above \{"", 0\} \par
\par
\{"advance",  do_mpadvance\},\par
\par
=======*****=======*****========*****========*****=======*****=======\par
At the very bottom of mob_cmds.c add the following code :\par
\par
\par
/*************************************************************\par
*   Used for a mob to advance players!                     *\par
* Made by Terraco of FSmud and Bojack of DBA      *\par
* July 25 2009 If you use this be sure to leave this    *\par
* box of credits. Thank you.                                    *\par
*************************************************************/\par
void do_mpadvance( CHAR_DATA *ch, char *argument )\par
\{\par
    char arg1[ MAX_INPUT_LENGTH ];\par
    char arg2[ MAX_INPUT_LENGTH ];\par
    char buf[MAX_STRING_LENGTH];\par
    CHAR_DATA *victim;\par
    int level, iLevel;\par
\par
    argument = one_argument( argument, arg1 );\par
    argument = one_argument( argument, arg2 );\par
\par
    if (arg1[0] == '\\0' || arg2[0] == '\\0' || !is_number(arg2)) \{\par
            bug ("Mpadvance - Bad syntax from vnum %d.", IS_NPC(ch) ? ch->pIndexData->vnum : 0);\par
            return;\par
    \}\par
\par
    if ( ( victim = get_char_world (ch, arg1) ) == NULL)\par
        return;\par
\par
    if (IS_NPC (victim) )\par
        return;\par
\par
    if (victim->desc->original != NULL)\par
        return;\par
\par
    if ((level = atoi (arg2)) < 1 || level > MAX_LEVEL)\par
        return;\par
\par
    for (iLevel = victim->level; iLevel < level; iLevel++)\par
    \{\par
        victim->level += 1;\par
    \}\par
    sprintf (buf, "You are now level %d.\\n\\r", victim->level);\par
    send_to_char (buf, victim);\par
    save_char_obj(victim);\par
\par
\}\par
\par
=======******=======*******=======******=======******========\par
At the bottom of mob_cmds.h under mpremove you want to add in:\par
\par
DECLARE_DO_FUN( do_mpadvance    );\par
}