On Sat, 24 Apr 1999, Phil Durand wrote: >int vlist_object(int lownumber, int highnumber, struct char_data *ch) >{ > int nr, found = 0; > strcpy(buf, "\0"); > > for (nr = real_object(lownumber); nr <= real_object(highnumber); nr++) ><===== here is the problem!!! > if(obj_index[nr].vnum <= highnumber && obj_index[nr].vnum >= lownumber) >{ > sprintf(buf + strlen(buf), " &K- [&W%5d&K]&w %s\r\n", >obj_index[nr].vnum, CAP(obj_proto[nr].short_description)); > ++found; > } > > page_string(ch->desc, buf, TRUE); > return(found); >} int vlist_room(struct char_data *ch, int low, int high) { int i = 0, found = 0; while (world[i].number < low) i++; while (world[i].number <= high) { create_list_object_here(); found++; i++; } page_string(ch->desc, *buf_made_above ? buf_made_above : "None.\r\n", TRUE); return (found); } world / obj_proto / mob_proto -- adjust as necessary. -- George Greer | Code from Erwin S. Andreasen (mudFTP, mcl) greerga@circlemud.org | http://www.andreasen.org/ +------------------------------------------------------------+ | Ensure that you have read the CircleMUD Mailing List FAQ: | | http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html | +------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/15/00 PST