a little help with leveling and pk

Posted by Yetro on Sat 08 Jun 2002 11:02 AM — 7 posts, 23,592 views.

#0
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.
USA #1
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?
USA #2
just remembered i might have edited that file, just add the two lines after the xREMOVE_BIT( ch->act, PLR_BOUGHT_PET );
#3
i will check.. thanks
#4
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
#5
Seems that i correct it...

if ( ch->level == 10 )
SET_BIT( ch->pcdata->flags, PCFLAG_DEADLY);

I will check in game..
#6
Seems to be working.. but what are the deadly status??
because i get the level 10 as pre-deadly.