New look for autoexits by John Beckhoff **************************************************************************** DISCLAIMER: FYI - Please use at your own risk. I will not be resonsible for any damages cuased to your MUD if you use this code. USE AT YOUR OWN RISK!! This was coded for pl21 so if you have anything earlier than pl21 you will have to try to recode it yourself. If you are having trouble drop me a line and I will try to help if I have time :) I would also appreciate it if you would give me credit, if use my code. Thanks :) **************************************************************************** Ok, I did not like how the stock CircleMud did not display the exits that were closed. Even tho there are some autoexit codes out there, I did not really like how they were set up. Basically this is what it will look like when set up: Obvious exits: north [closed], east, south, west [closed]. Hope you get the picture :) In your act.informative.c file replace your current do_auto_exits funcion with this one: oid do_auto_exits(struct char_data *ch) { int door, len = 0; if (AFF_FLAGGED(ch, AFF_BLIND)) { send_to_char(ch, "%sYou can't see a damn thing, you're blind!%s",CCLCN(ch, C_NRM), CCNRM(ch, C_NRM)); return; } send_to_char(ch, "%sObvious exits:%s ", CCCYN(ch, C_NRM),CCLCN(ch, C_NRM)); for (door = 0; door < NUM_OF_DIRS; door++) { if (!EXIT(ch, door) || EXIT(ch, door)->to_room == NOWHERE) continue; len++; if (EXIT(ch, door) && (!EXIT_FLAGGED(EXIT(ch, door), EX_CLOSED))) send_to_char(ch, "%s, ", dirs[door]); if(EXIT(ch, door) && (EXIT_FLAGGED(EXIT(ch, door), EX_CLOSED))) send_to_char(ch, "%s [closed], ", dirs[door]); } if (!len) send_to_char(ch, "%s-= NONE! =-%s\r\n", CCLCN(ch, C_NRM), CCNRM(ch, C_NRM)); else send_to_char(ch, "%s\r\n", CCNRM(ch, C_NRM)); } eh, if you have any comments or question about my code, just drop me a line at the e-mail listed above. thanks