**** NOTEICE: This is the same old file, BUT there are bugfixes so you can now put it straight in without changing things to a stock CircleMUD, and also cleaned up the command output :) PS: This was done by the original person too, just to let you know. Ok, I dunno if this code will be of any use to anyone, but since I've got heaps of things off this ftp site, you guys may as well have it :P What it basically is is it replaces the old autoexit settings with new ones. You have a choice of multi-line, one-line or off for your autoexits. It is up to the player to decide :-=) *** Standard Discalimer: I am not resopnsible for anything that happens to your mud blady blah blah etc etc etc *** Enjoy. --== In structs.h ==-- Find PRF_ROOMFLAGS or the last line in the PRF_ (1 << thing and add: #define PRF_ONELINAUTO (1 << 22) (or whatever the next highest number is :P) --== In act.other.c ==-- ACMD(do_autoexits) { skip_spaces(&argument); delete_doubledollar(argument); if (!*argument) { sprintf(buf, "Usage: autoexit <1/2/3>.\r\n1 Is off\r\n2 Is One-Line Autoexits\r\n3 Is Multi-Line autoexits.\r\n"); send_to_char(buf, ch); return; } else if (strcmp(argument,"1")==0) { send_to_char("You turned off your autoexits.\r\n", ch); REMOVE_BIT(PRF_FLAGS(ch), PRF_AUTOEXIT); REMOVE_BIT(PRF_FLAGS(ch), PRF_ONELINAUTO); return; } else if (strcmp(argument,"2")==0) { send_to_char("You set your autoexits to one-line.\r\n", ch); REMOVE_BIT(PRF_FLAGS(ch), PRF_AUTOEXIT); SET_BIT(PRF_FLAGS(ch), PRF_ONELINAUTO); return; } else if (strcmp(argument,"3")==0) { send_to_char("You set your autoexits to multi-line.\r\n", ch); SET_BIT(PRF_FLAGS(ch), PRF_AUTOEXIT); REMOVE_BIT(PRF_FLAGS(ch), PRF_ONELINAUTO); return; } send_to_char("Thats an invalid argument!!\r\n", ch); return; } --== In file interpreter.c ==--: Add: ACMD(do_autoexits); in the list of ACMD declars Find: { "autoexit" , POS_DEAD , do_gen_tog , 0, SCMD_AUTOEXIT }, (or something similar) and replace it with { "autoexit" , POS_DEAD , do_autoexits , 0, 0 }, --== In file act.informative.c ==-- In function look_at_room find /* autoexits */ if (!IS_NPC(ch) && PRF_FLAGGED(ch, PRF_AUTOEXIT)) do_auto_exits(ch); and directly under it add: if (!IS_NPC(ch) && PRF_FLAGGED(ch, PRF_ONELINAUTO)) do_oneline_auto_exits(ch); declare the "do_oneline_auto_exits" function by adding void do_oneline_auto_exits(struct char_data * ch); now, you have to REPLACE the old do_auto_exits function with THIS one: (if you dont have the easy color patch installed, i suggest you install it, to add colour to the exits, as there will be "&c"s in the multiline exits if you don't, but you can remove the &whatever color codes :) void do_auto_exits(struct char_data *ch) { int door; *buf = '\0'; if (AFF_FLAGGED(ch, AFF_BLIND)) { send_to_char("You can't see a damned thing, you're blind!\r\n", ch); return; } for (door = 0; door < NUM_OF_DIRS; door++) if (EXIT(ch, door) && EXIT(ch, door)->to_room != NOWHERE && !EXIT_FLAGGED(EXIT(ch, door), EX_CLOSED)) { if (GET_LEVEL(ch) >= LVL_IMMORT) sprintf(buf2, "%-5s &c-\x1B[0m [%5d] %s\r\n", dirs[door], GET_ROOM_VNUM(EXIT(ch, door)->to_room), world[EXIT(ch, door)->to_room].name); else { sprintf(buf2, "%-5s &c-\x1B[0m ", dirs[door]); if (IS_DARK(EXIT(ch, door)->to_room) && !CAN_SEE_IN_DARK(ch)) strcat(buf2, "Too dark to tell\r\n"); else { strcat(buf2, world[EXIT(ch, door)->to_room].name); strcat(buf2, "\r\n"); } } strcat(buf, CAP(buf2)); } send_to_char("\r\n&cObvious exits:\x1B[0m\r\n", ch); if (*buf) send_to_char(buf, ch); else send_to_char(" &gNone!&n\r\n", ch); } to the top of the file with the other things that look like it and finally add this function: void do_oneline_auto_exits(struct char_data * ch) { int door, slen = 0; *buf = '\0'; for (door = 0; door < NUM_OF_DIRS; door++) if (EXIT(ch, door) && EXIT(ch, door)->to_room != NOWHERE && !EXIT_FLAGGED(EXIT(ch, door), EX_CLOSED)) slen += sprintf(buf + slen, "%c ", LOWER(*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); } If you need help just mail nitsuj39@hotmail.com or pop in and mudmail me on Refuge of the Damned (mud.iflipout.com:4080) and mudmail Konqueror.