[CODE] HELP - How to get a monster name ?

From: Mr R.H.Green (rgreen@mudman.idiscover.co.uk)
Date: 10/27/96


Hiy, I have been trying to do a command that will list all the monster
within a certain range of numbers. I have managed to do the searching part
and was wondering if someone could help out and explain how i can get the 
mobiles name into the code.

ACMD(do_mlist)
{
 int i, r_num;
 int num1, num2; 

 two_arguments(argument, buf, buf1);

 num1 = atoi(buf);
 num2 = atoi(buf1);

   if (num1 == 0 || num2 == 0 || num1 >= num2) {
        send_to_char("Usage: mlist <start num> <end num>\r\n", ch);
        return;
   }

 for (i=num1;  i <= num2; i++) {
  if((r_num = real_mobile(i)) < 0) 
        { sprintf(buf, "       Num [%-5d] - <FREE>\r\n",i);
        send_to_char(buf,ch);
        } else {
        sprintf(buf, "        Num [%-5d] - <USED>\r\n", i);
						 ,
						/|\
        send_to_char(buf, ch);                   |
        }					 |___ Instead of used
 }						      i would like the mobs
}						      name displayed here

Yours hopfully
 Russell.
+-----------------------------------------------------------+
| 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