From: Brian Helms Subject: List off all immortals in playerfile For want of something better to do I'll post this little snippet and hope it'll help a fellow newbie out there :) The following code, when added to do_show in act.wizard.c, will allow you to search through your player file and lists everyone >= LVL_IMMORT. For anyone who wants a "real" check of whos-who from your playerfile, this is it. In act.wizard.c: -in do_show add the following variables: FILE *fl; struct char_file_u player; -insert into show_struct: { "immortals", LVL_IMPL}, -insert into the big case statement at the end of do_show: case 15: if (!(fl = fopen(PLAYER_FILE, "r+"))) { send_to_char("Can't open player file.", ch); return; } sprintf(buf, "Player Name Player Level\r\n"); while (!done) { fread(&player, sizeof(struct char_file_u), 1, fl); if (feof(fl)) { fclose(fl); done=TRUE; } if (!done) if (player.level>=LVL_IMMORT) sprintf(buf, "%s%-20s %-2i\r\n", buf, player.name, player.level); } send_to_char(buf, ch); break; And that's it! The outline for this code has shamelessly been twisted out of the playerfile update utilities packaged with the stock code. Brian bhelms1@gl.umbc.edu