RE: PK flagged Rooms

"Richard Lindsey" <[email protected]>
Newsgroups gmane.games.devel.mud.rom
Message-ID <[email protected]>
That looks like it should be correct, I'd try checking the room flags of
the room you're testing it in... also, you can try taking out the ! from
that if check to reverse it, and if you still don't get the results
you're expecting, then apparently it's not getting checked at all...
when you say it's not doing what it should, are you referring to
stopping the pk from happening, or is it doing something different? And
if it's doing something different, then describe what it's doing...

Richard Lindsey.

-----Original Message-----
From: Brinny [mailto:[email protected]] 
Sent: Wednesday, April 13, 2005 3:23 PM
To: [email protected]
Subject: PK flagged Rooms

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!

Brittany.


		
__________________________________ 
Do you Yahoo!? 
Yahoo! Small Business - Try our new resources site!
http://smallbusiness.yahoo.com/resources/
-- 
ROM mailing list
[email protected]
Unsubscribe here ->>> http://www.rom.org/cgi-bin/mailman/listinfo/rom
-- 
ROM mailing list
[email protected]
Unsubscribe here ->>> http://www.rom.org/cgi-bin/mailman/listinfo/rom
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.