help with a code

Posted by Gorock on Wed 21 Sep 2005 10:51 PM — 4 posts, 16,881 views.

#0
i have been searching the web but i cant find anything on how to remove the code so that peacefulls can cast spells on deadly and how deadlys can enter town again so where would i find that at thanks
USA #1
Do a search in the files for the message. It should be in the function is_safe
#2
ok i found it in act_move.c and then i commented out the little piece of code that it was in but then i got a lot of errors here is what i got

/* Prevent deadlies from entering a nopkill-flagged area from a
non-flagged area, but allow them to move around if already
inside a nopkill area. - Blodkai
*/

if( IS_SET( to_room->area->flags, AFLAG_NOPKILL )
&& !IS_SET( ch->in_room->area->flags, AFLAG_NOPKILL ) && ( IS_PKILL( ch ) && !IS_IMMOR$
{
set_char_color( AT_MAGIC, ch );
send_to_char( "\n\rA godly force forbids deadly characters from entering that area...\n$
return rNONE;
}



then i changed it to



/* Prevent deadlies from entering a nopkill-flagged area from a
non-flagged area, but allow them to move around if already
inside a nopkill area. - Blodkai
*/

/* if( IS_SET( to_room->area->flags, AFLAG_NOPKILL )
&& !IS_SET( ch->in_room->area->flags, AFLAG_NOPKILL ) && ( IS_PKILL( ch ) && !IS_IMMOR$
{
set_char_color( AT_MAGIC, ch );
send_to_char( "\n\rA godly force forbids deadly characters from entering that area...\n$
return rNONE;
}*/

but i got a lot of errors and what not so what would i do

#3
ok never mind i got it working thanks though