I want to make the players of my mud autocatimaly become deadly when they reach level 10+. But i don't know how and where to do it. Can anyone help. I can do it.. but not auto, with mprog.. and mset command.. but that is not the idea.
greetings.
just an idea, not sure if work or not im not that great coding but in update.c at line 2961 add:
if ( ch->level == 10 )
SET_BIT( victim-pcdata->flags, PCFLAG_DEADLY);
will that work?
just remembered i might have edited that file, just add the two lines after the xREMOVE_BIT( ch->act, PLR_BOUGHT_PET );
Don't work... i guess the if line its okay, but the set_bit it isnot.
victim undeclared first use of this...
pcdata undeclared..
that where the errors
Seems that i correct it...
if ( ch->level == 10 )
SET_BIT( ch->pcdata->flags, PCFLAG_DEADLY);
I will check in game..
Seems to be working.. but what are the deadly status??
because i get the level 10 as pre-deadly.