On Tue, 25 Jun 1996, Skylar wrote:
Oops, forgot one important part.. the return... sorry.
> int num_mob_room(int mob_num, room_num room)
> {
> struct char_data i;
> int r_room, count = 0;
>
> if ((r_room = real_room(room)) < 0) /* non existant room */
> return -1;
>
> for (i = world[r_room].people; i; i = i->next_in_room)
> if (GET_MOB_VNUM(i) == mob_num)
> ++count;
return(count);
> }
This archive was generated by hypermail 2b30 : 12/18/00 PST