I was helpping a friend of mine install a quest snippet she found into her mud, but her mud uses extended bit vectors, so these are the only stragglers that I've got no clue how to fix since I don't use extended bit vectors. Now, I don't know if it was a problem with the installation of the extended bit vectors, or really anything else. Anyways, have a look.
SMAUG1.4a R4 now compiling... o/quest.o
quest.c: In function `find_quest_mob':
quest.c:724: request for member `bits' in something not a structure or union
quest.c: In function `find_quest_obj':
quest.c:773: request for member `bits' in something not a structure or union
make[1]: *** [o/quest.o] Error 1
Now, the lines (724 and 773 ) are the same, and both look like this:
One of the functions is as follows:
The other does the same thing for objects.
Hopefully you can tell me what the error is about because it looks fine to me, then again, I'm an SWR person.
Thanks in advance.
SMAUG1.4a R4 now compiling... o/quest.o
quest.c: In function `find_quest_mob':
quest.c:724: request for member `bits' in something not a structure or union
quest.c: In function `find_quest_obj':
quest.c:773: request for member `bits' in something not a structure or union
make[1]: *** [o/quest.o] Error 1
Now, the lines (724 and 773 ) are the same, and both look like this:
&& !xIS_SET(victim->in_room->room_flags, ROOM_SAFE)
One of the functions is as follows:
CHAR_DATA *find_quest_mob( CHAR_DATA *ch)
{
CHAR_DATA *victim=NULL;
int counter, mob_vnum, level_diff;
for (counter = 0; counter < 2000; counter ++)
{
mob_vnum = number_range(50, 32000); /* Raise 32000 to your highest mobile vnum */
if ( (victim = get_mob(mob_vnum) ) != NULL )
{
level_diff = victim->level - ch->level;
if (((level_diff < questmaster->level_range && level_diff > -questmaster->level_range)
|| (ch->level > 30 && ch->level < 40 && victim->level > 30 && victim->level < 50)
|| (ch->level > 40 && victim->level > 40))
&& victim->pIndexData->pShop == NULL
&& victim->pIndexData->rShop == NULL
&& !xIS_SET( victim->act, ACT_PRACTICE)
&& !xIS_SET(victim->in_room->room_flags, ROOM_SAFE)
&& in_hard_range(ch, victim->in_room->area)
&& !xIS_SET( victim->act, ACT_NOQUEST)
&& !xIS_SET( victim->act, ACT_PET)
&& !xIS_SET( victim->act, ACT_IMMORTAL))
return victim;
else
continue;
}
}
return victim;
}
The other does the same thing for objects.
Hopefully you can tell me what the error is about because it looks fine to me, then again, I'm an SWR person.
Thanks in advance.