[CODE] Rent flag..

From: Brian Heimgartner (bheimie@hotmail.com)
Date: 03/30/99

I'm trying to make a small rent flag in the do_quit, I'll show a small
snippet of what I have:

  sh_int save_room;
  struct descriptor_data *d, *next_d;

  if (IS_NPC(ch) || !ch->desc)

~  if (IS_SET(ROOM_FLAGS(ch->in_room), !ROOM_RENT))
~    send_to_char("This doesn't look like a good place to camp.");

  if (subcmd != SCMD_QUIT && GET_LEVEL(ch) < LVL_IMMORT)
    send_to_char("You have to type quit--no less, to quit!\r\n", ch);
  else if (GET_POS(ch) == POS_FIGHTING)
    send_to_char("No way!  You're fighting for your life!\r\n", ch);

With the ~ by it is what I'm trying to do. I'm trying to make it so that
rooms that have the 'rent' flag on it, will be the only places to quit.
But, I'm having some trouble with why it won't work.
Get Your Private, Free Email at http://www.hotmail.com

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

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