Re: Non Snoop Rooms

From: George (greerga@CIRCLEMUD.ORG)
Date: 08/13/98


On Thu, 13 Aug 1998, Ryan [BossTone] wrote:

>In my mud we want rooms where snooping wouldent be permitted. I think i
>might have an idea on how to do it like in do_snoop add somthing like
>this
>
>if room_flagged NO_SNOOP blah blah...

Sigh...

structs.h:
 #define ROOM_OLC                (1 << 14)  /* (R) Modifyable/!compress  */
 #define ROOM_BFS_MARK           (1 << 15)  /* (R) breath-first srch mrk */
+#define ROOM_NO_SNOOP           (1 << 16)  /* no snooping */

act.wizard.c:
  else if (victim->desc->snoop_by)
    send_to_char("Busy already. \r\n", ch);
  else if (victim->desc->snooping == ch->desc)
    send_to_char("Don't be stupid.\r\n", ch);
+ else if (ROOM_FLAGGED(INROOM(ch), ROOM_NO_SNOOP))
+   send_to_char("No, I don't wanna!\r\n", ch);
  else {

One of the many < 1 minute projects...

--
George Greer, greerga@circlemud.org | Genius may have its limitations, but
http://mouse.van.ml.org/ (not done) | stupidity is not thus handicapped.
http://www.van.ml.org/CircleMUD/    |                  -- Elbert Hubbard


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
     +------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/15/00 PST