[code] [prob]

Date: 10/23/96

Okie I am trying to put in a whois command that will display race and
class and level of the char, but I put it in and every time I do 'whois
<player>' I get the previous buffer for instance I did 'whois mch' and
got: 'Vigilante has quit the game.Level 110 Ninja' and then say I do
'score' and then do 'whois mch' it gives me:
You are 1000 years old.
You have 666(666+4) hit, 100(100+8) mana and 492(492+10) movement
Str: 25(100) Int: 25 Wis: 25 Con: 25 Dex: 25 Cha: 25.
Your armor class is 100/10, and your alignment is 31.
Your Damroll is: 0 and your Hitroll is: 0.
You have scored 209000000 exp, and have 999998351 gold coins.
You have 0 coins in the bank.
You have been playing for 1 days and 11 hours.
This ranks you as Mch Lord of Hades. (Cati) (Head-Builder) (Coder) ,
level 110 Dragon
You are standing.
Level 110 Ninja
Which is very anoying here is the code for do_whois:
  struct char_data *victim = 0;
  struct char_file_u tmp_store;


  if (!*argument) {
      send_to_char("Do a WhoIS on which player?\r\n", ch);
    } else {
      CREATE(victim, struct char_data, 1);
      if (load_char(argument, &tmp_store) > -1) {
        store_to_char(&tmp_store, victim);
        sprintf(buf, "%sLevel %d %s\r\n", buf, GET_LEVEL(victim),
                class_abbrevs[(int) GET_CLASS(victim)]);
        send_to_char(buf, ch);
      } else {
        send_to_char("There is no such player.\r\n", ch);

Hope you peoples can help.

Andrew Jones, Imp, DevastationsMUD
| Ensure that you have read the CircleMUD Mailing List FAQ: |
|   http://cspo.queensu.ca/~fletcher/Circle/list_faq.html   |

This archive was generated by hypermail 2b30 : 12/18/00 PST