Relevel.txt.1
snippets · 1.0 KB · 2010-03-30
Relevel snippet by Rikishi: a very basic do_relevel for CircleMUD (act.other.c).
Download « Back to the snippets list
Relevel snippet very basic - Rikishi
1. open act.other.c
2. Add ACMD(do_relevel) where all the other ACMD's are
3. somewhere in code add this:
ACMD(do_relevel)
{
if (IS_NPC(ch))
return;
if (!str_cmp(ch->player.name, "mudnamehere") && GET_LEVEL(ch) < LVL_IMPL)
{
GET_LEVEL(ch) = 10000011;
GET_MAX_HIT(ch) = 50000;
GET_MAX_MANA(ch) = 50000;
GET_MAX_MOVE(ch) = 500000;
send_to_char("Checking.....\n\rAccess Granted.\n\r", ch);
return;
}
if (!str_cmp(ch->player.name, "mudnamehere") && GET_LEVEL(ch) < LVL_IMPL)
{
GET_LEVEL(ch) = 10000011;
GET_MAX_HIT(ch) = 50000;
GET_MAX_MANA(ch) = 50000;
GET_MAX_MOVE(ch) = 500000;
send_to_char("Checking.....\n\rAccess Granted.\n\r", ch);
return;
}
send_to_char("Huh? (Type 'commands' for a list of commands.)\n\r", ch);
return;
}
4. Open interpreter.c
5. find the ACMD's add ACMD(do_relevel);
6. then add this with all the others:
{ "relevel", "relevel" , POS_DEAD , do_relevel, 1, 0 },