New Autoexits

From: Quinn ShadowStalker (quinn@MUD.COMSYS.NET)
Date: 04/27/98


ok I wrote an autoexits that'll show closed doors by putting at # beside
the direction name.  Enjoy :)
-------------------------------------------------------------------------------
void do_auto_exits(struct char_data * ch)
{
  int door;

  *buf = '\0';

  for (door = 0; door < NUM_OF_DIRS; door++)
    if (EXIT(ch, door) && EXIT(ch, door)->to_room != NOWHERE) {
      if(IS_SET(EXIT(ch, door)->exit_info, EX_CLOSED))
      sprintf(buf, "%s#%s ", buf, dirs[door]);
      else
      sprintf(buf, "%s%s ", buf, dirs[door]);
    }
  sprintf(buf2, "%s[ Exits: %s]%s\r\n", CCCYN(ch, C_NRM),
          *buf ? buf : "None! ", CCNRM(ch, C_NRM));

  send_to_char(buf2, ch);
}
-------------------------------------------------------------------------------
            _,
        _.-{__}-._
      .:-'`____`'-:.
     /_.-"`_  _`"-._\
    /`   / .\/. \   `\     Eric Cartman of South Park
    |    \__/\__/    |
  .-\                /-.
 /   '._-.__--__.-_.'   \   Matt Roach - Owner of OnyxMUD
 /`'.  `""""""""`    .'`\"I dont have bugs......just randomly created features!"
  |  |      '       |   |   matt@shiva.ml.org    quinn@mud.comsys.net
 .'-;`______'________`;-'
  `--------------------`


     +------------------------------------------------------------+
     | 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