[CODE] Find Familiar

From: Chuck Reed (creed@I-55.COM)
Date: 12/07/97


I added the following spell code for find familiar, but it will not find
mob 10099(which IS made and saved) or any others for that matter to load
them.  It always doesn't pass the checker function at the bottom and
gives me "there is no mob with that number."  If anyone knows why,
please help out.


ASPELL(spell_find_fam)
{
   int rnum = 0;
   struct char_data *mob;

  if(GET_LEVEL(ch) >= 15 && GET_LEVEL(ch) <= 24)
      rnum = 10099;
   else if(GET_LEVEL(ch) >= 25 && GET_LEVEL(ch) <= 30)
      rnum = 10098;
   else if(GET_LEVEL(ch) >= 31 && GET_LEVEL(ch) <= 40)
      rnum = 10097;
   else if(GET_LEVEL(ch) >= 41 && GET_LEVEL(ch) <= 45)
      rnum = 10096;
   else if(GET_LEVEL(ch) >= 46 && GET_LEVEL(ch) <= 55)
      rnum = 10095;
   else if(GET_LEVEL(ch) >= 56)
      rnum = 10094;
   else {
      send_to_char("Internal error, please report using the bug
command!\r\n",
ch);
      mudlog("SYSERR: Unreachable case in FIND FAMILIAR spell.", BRF,
LVL_IMMORT, TRUE);
     }

if ((rnum = real_mobile(number)) < 0) {
      send_to_char("There is no monster with that number.\r\n", ch);
      return;
    }
else {
   mob = read_mobile(rnum, REAL);
   char_to_room(mob, ch->in_room);
   add_follower(mob, ch);
   }
}


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
     +------------------------------------------------------------+



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