This is an altered version of reports.c file that has been up on the site for a while. To install, just add the reports.c file to your makefile, and add ACMD(do_wlist) to the interpreter.c along with an entry for "wlist" which calls the do_wlist function. I've added in the options so that you can choose different information o be displayed. I've also put in some "configurable" options for whether dgscripts are installed and if colorcodes are used (its nice to strip them out of the wlist funcitons because they throw off the spacing and add to the used buffer length) DHL Notes from me: ( (Optional display) comments to dluther@ex-pressnet.com ) Changes: Adjusted to include the tlist function for triggers. DHL-6/27/2000 Added a "switch" option for displaying the attached triggers. DHL-6/28/2000 Added a "switch" option for displaying AFF_ flags DHL-8/28/2000 Added a "switch" option for displaying room sectors DHL-12/26/2000 Added a "switch" option for displaying room flags DHL-12/26/2000 Comments: I love these Wlist commands! I have found them very helpful in trying to straighten out what has been created and where, which is why I started adding in the switch options. To do that, I've made numerous modifications, which is why I'm submitting this entire file instead of a snippet update. Full kudos to the original author! - DHL Notes from the original author: ( comments to raymond@brokersys.com ) These are several functions created to assist me in taking inventory of new areas and spot-checking my own work. There are several functions in here, but only do_wlist needs to be added to the command interpreter. The functions in this file seem a little fragmented since I am still trying to decide exactly what I personally want to display. After the function list I have included a paragraph that can be added to your Wizhelp file. Main function ACMD (do_wlist) sub functions: void do_olist (struct char_data *ch, char *input); List all objs in specified zone. If no arg, it defaults to your current zone. It includes type; for Armor/worn, it shows where and AC; for weapons it shows damage dice and +dam applies. calls: void list_object_zone (struct char_data *ch, int whichzone); int get_weapon_dam (struct obj_data *o); int get_armor_ac (struct obj_data *o); void do_mlist (struct char_data *ch, char *input); List all mobs in specified zone, plus their levels. If no arg, it defaults to your current zone. calls: void list_mob_zone (struct char_data *ch, int whichzone); void list_wands_staves (struct char_data *ch, char *input); void list_scrolls_potions (struct char_data *ch, char *input); List each specified item, giving spell and charge information /****************************************************************************\ This is a utility I created to strip color codes out of the wlist displays. I keep it in utils.c so that it can be used elsewhere as well. Just cut and paste it in there. -DHL (Note: If you don't use colorcodes, comment out the #define USECOLORCODES 1 and don't worry about copying this to anywhere. If you do use colorcodes, you might want to check the letters here and compare them to what you use to make sure everything is covered. This uses the &n, &C, etc. format) #define IS_COLOR_CHAR(c) (c == 'n' || c == 'R' || c == 'r' || c == 'Y' ||\ c == 'y' || c == 'G' || c == 'g' || c == 'B' || c == 'b' || c == 'f' ||\ c == 'M' || c == 'm' || c == 'W' || c == 'w' || c == 'D' || c == 'd' ||\ c == 'C' || c == 'c' || c == '0') void remove_colorcodes(char *string) { int i, j, stringLen; stringLen = (strlen(string) + 1); for (i = 0; i < stringLen; i++) { if ((string[i] == '&') && (string[i-1] != '&') && IS_COLOR_CHAR(string[i+1])) { j = i; while (j < (stringLen - 2)) /* String will be two characters shorter */ { string[j] = string[j+2]; j++; } string[j] = '\0'; } } return; } #undef IS_COLOR_CHAR(c) /*****************************************************************************\ This is mostly the original helpfile that was provided with reports.c, but with the addition of the scripts and the options available. For Help File: WLIST (World list) Options Wlist obj