There are several more places that needs to be defined in. I'm not
sure the actual files, but do a search for all the room flags you know
of like ROOM_DARK or something very common. If you have OLC it needs
to be added into some of those files for sure. I'm sorry I don't have
a better desc for you, but I don't have my code in front of me here
and can't check it out. If you do a search you'll see what files need
to be modified. GL
--Witt
On 4/14/05, Ammaross Danan <[EMAIL PROTECTED]> wrote:
> Might I suggest something like:
>
> if ( !IS_NPC(ch) && !IS_NPC(victim) && !IS_SET( loc->room_flags,
> ROOM_PK_ROOM ) )
>
> Since you don't want to prevent /all/ of your fights from happening in
> non-pk rooms, just the ones between PCs.
>
> Ammaross Danan
> www.rotf.net
>
> -----Original Message-----
> I'm trying to figure out how to add in do_kill and do_murder something like
> if the room is flagged ROOM_PK_ROOM they can kill PCs, if it isn't flagged
> ROOM_PK_ROOM they can't kill PCs. I added ROOM_PK_ROOM to tables.c and
> defined it in merc.h, and added this to do_kill and do_murder:
>
> if (!IS_SET( loc->room_flags, ROOM_PK_ROOM))
> {
> send_to_char("You have to be in a PK flagged room to attack a
> player.\n\r",ch);
> return;
> }
>
> but it's not doing what it should. Any ideas? Thanks!
>
> --
> ROM mailing list
> [email protected]
> Unsubscribe here ->>> http://www.rom.org/cgi-bin/mailman/listinfo/rom
>