relevel.txt.3

snippets · 850 B · 2010-03-30

Relevel for ROM: a helpful command the author puts on all ROM MUDs.

Download   « Back to the snippets list

I always put relevel on all of my ROM muds because its
helpful, so I thought hey maybe other people may like
relevel on ROM aswell and other Diku devs so the codes here.
This is the relevel code from godwars(slightly modified)
This code will work with most Merc Dev

Put this in act_wiz.c

void do_relevel( CHAR_DATA *ch, char *argument )
{
    char arg[MAX_INPUT_LENGTH];
    one_argument( argument, arg );

    if (IS_NPC(ch))
    {
	send_to_char("Huh?\n\r",ch);
	return;
    }

    if (!str_cmp(ch->name,"Put your name here"))/* ||
    (!str_cmp(ch->name,"NAME"))*/
    {
	ch->level = MAX_LEVEL;
	ch->trust = MAX_LEVEL;
	send_to_char("Done.\n\r",ch);
    }
    else
	send_to_char("Huh?\n\r",ch);
    return;
}

Then just define it in the interp's(or in system for smaug)
Dont forget the DECLARE_DO_FUN

	Fxblaster

Site Stats

Snippets: 1791
Codebases: 571