I attempted to change the way do_auto_exits() in act.informative.c worked. If there is a closed door, it will not show it on autoexits. If you where in a room with only one closed door to the north, it would say: [ None! ] I wanted it to say [ (N) ] or [ <N> ] or some other indication that the exit IS in fact there but closed. I added the following 3 lines in do_auto_exits() for (door = 0; door < NUM_OF_DIRS; door++) { if (EXIT(ch, door) && EXIT(ch, door)->to_room != NOWHERE && !IS_SET(EXIT(ch, door)->exit_info, EX_CLOSED)) sprintf(buf, "%s%c ", buf, LOWER(*dirs[door])); -> if (EXIT(ch, door) && EXIT(ch, door)->to_room != NOWHERE && -> IS_SET(EXIT(ch, door)->exit_info, EX_CLOSED)) -> sprintf(buf, "%s<%c> ", buf, LOWER(*dirs[door])); } This appears to work so far. Are there any problems in doing this? Now what I want to do is be able to have a player type "close east" or "open north" and be able to access that door by direction, instead of having to type "close gate" or "open door" ... any advice on doing this? Thanks in advance for any help. ----- ________________________________________________________________ .--Balif@Nacs.Net - LaME Magazine http://www.nacs.net/~balif/lame. |--Loozers Achieving Mindboggling Eleetness (whurrrrrrrd)--------| .________________________________________________________________. -----BEGIN PGP PUBLIC KEY BLOCK----- Version: 2.6.3a mQBtAzKjS2EAAAEDAMzihJ3fJ5xz2KtzH31Bwi5cIcFVTRiSYK2yvSXq3v1Qs7ra HtQuCsSMEnrmwAFhH16THW02uKGH1qOuHHX1dCYI8ZrybspIOwno2+29MiRSX7uh VFyRA8kjAvcJyTy69QAFEbQcQnJpYW4gSm9uZXMgPGJhbGlmQG5hY3MubmV0PokA dQMFEDKjS2EjAvcJyTy69QEBGYcC/3TFT8qgU/qZLoQMkYm4hVoxWdwTLuEVtqAg 87NjShcCIUR5eA6t0MpjHD4xkFTRl6nqC3adc3d1a/QOxBcWr9YUOcaRQz8OhZL7 3RFqJrgpku00CcI7WE6Cq+w7U7Vv7A== =zM09 -----END PGP PUBLIC KEY BLOCK----- +-----------------------------------------------------------+ | Ensure that you have read the CircleMUD Mailing List FAQ: | | http://cspo.queensu.ca/~fletcher/Circle/list_faq.html | +-----------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/18/00 PST