: Updated WhoIS A few changes, lesser code..... It also makes it easier if you decide to add more levels This nifty little command will show a offline/online players level, class and title. If it is an imm (or higher) it will display the rank. It is based on an older version from Primacy with bug fixes from Ron Hensley . This version has been reworked by Hugor Level 1 Wa - Player the Swordpupil [Implementor] - Implementor the Implementor -----------------------------[ Step One ]----------------------------- ACMD(do_whois) { const char *immlevels[LVL_IMPL - (LVL_IMMORT-1)] = { "[Immortal]", /* highest mortal level +1 */ "[God]", /* highest mortal level +2 */ "[Greater God]", /* highest mortal level +3 */ "[Implementor]", /* highest mortal level +4 */ }; struct char_data *victim = 0; struct char_file_u tmp_store; skip_spaces(&argument); if (!*argument) { send_to_char("Who?\r\n", ch); } else { CREATE(victim, struct char_data, 1); clear_char(victim); if (load_char(argument, &tmp_store) > -1) { store_to_char(&tmp_store, victim); *buf = '\0'; if (GET_LEVEL(victim) >= LVL_IMMORT) sprintf(buf + strlen(buf), "%s %s %s\r\n", immlevels[GET_LEVEL(victim)-LVL_IMMORT], GET_NAME(victim), GET_TITLE(victim)); else if (GET_LEVEL(victim) < LVL_IMMORT) sprintf(buf + strlen(buf), "Level %d %s - %s %s\r\n", GET_LEVEL(victim), CLASS_ABBR(victim), GET_NAME(victim), GET_TITLE(victim)); send_to_char(buf, ch); } else { send_to_char("There is no such player.\r\n", ch); } free(victim); }} ---------------------------------------------------------------------- Do whatever you want with this piece of code. Enjoy it, hate it, smash it, remake it...... If you decide to use it, please send me a mail, including the address to your mud. A line in your credit file is of course also appreciated / Hugor (hugor@freebox.com)