Zone loading, Checking mobs per zone/room

From: Del (caminturn@earthlink.net)
Date: 04/19/99


Below is the zone loading, and the zcmd.arg2 line checks the mob index for the
world, is there anything or any code or does anyone have an idea how I can
check a zone or room to see how many items/mobs of that type are in it?
I am trying to add in the qualifier, which I have the variable in the zon
files already, now I am trying to get it to check either zone, world, or room
(what ever the qualifier is). And I am stuck here on how to make it check zone
or room.

    case 'M':                   /* read a mobile */
      if ((mob_index[ZCMD.arg1].number < ZCMD.arg2) {
       mob = read_mobile(int_to_short(ZCMD.arg1), REAL);
       char_to_room(mob, int_to_short(ZCMD.arg3));


Thanks for the help!


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



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