im trying to put in this command that allows items to be connected together producing a final item.. now when i compile, it says:
act_obj.c: In function `do_connect':
act_obj.c:455: structure has no member named `level'
here's the part of the code in which it refers to:
/* check to see if the pieces connect */
if ( ( first_ob->value[0] == second_ob->pIndexData->vnum )
&& ( second_ob->value[0] == first_ob->pIndexData->vnum )
&& ( first_ob->value[1] == second_ob->value[1] )
&& (first_ob->pIndexData->vnum != second_ob->pIndexData->vnum) )
/* good connection */
{
new_ob = create_object( get_obj_index( first_ob->value[2] ), ch->level );/*!!!!!!!RIGHT HERE!!!!!!*/
extract_obj( first_ob );
extract_obj( second_ob );
obj_to_char( new_ob , ch );
act( AT_ACTION, "$n jiggles some pieces together...\r\n ...suddenly they snap in place, creating $p!", ch, new_ob,NULL, TO_ROOM );
act( AT_ACTION, "You jiggle the pieces together...\r\n ...suddenly they snap into place, creating $p!", ch, new_ob, NULL, TO_CHAR);
}
else
{
act( AT_ACTION, "$n jiggles some pieces together, but can't seem to make them connect.", ch, NULL, NULL, TO_ROOM);
act( AT_ACTION, "You try to fit them together every which way, but they just don't want to fit together.", ch, NULL, NULL, TO_CHAR);
Now what does it mean has no member? what do i need to do to fix it?
this is in the SWR codebase, of the act_obj.c file where i added it.
somebody please help!
-Kronos
act_obj.c: In function `do_connect':
act_obj.c:455: structure has no member named `level'
here's the part of the code in which it refers to:
/* check to see if the pieces connect */
if ( ( first_ob->value[0] == second_ob->pIndexData->vnum )
&& ( second_ob->value[0] == first_ob->pIndexData->vnum )
&& ( first_ob->value[1] == second_ob->value[1] )
&& (first_ob->pIndexData->vnum != second_ob->pIndexData->vnum) )
/* good connection */
{
new_ob = create_object( get_obj_index( first_ob->value[2] ), ch->level );/*!!!!!!!RIGHT HERE!!!!!!*/
extract_obj( first_ob );
extract_obj( second_ob );
obj_to_char( new_ob , ch );
act( AT_ACTION, "$n jiggles some pieces together...\r\n ...suddenly they snap in place, creating $p!", ch, new_ob,NULL, TO_ROOM );
act( AT_ACTION, "You jiggle the pieces together...\r\n ...suddenly they snap into place, creating $p!", ch, new_ob, NULL, TO_CHAR);
}
else
{
act( AT_ACTION, "$n jiggles some pieces together, but can't seem to make them connect.", ch, NULL, NULL, TO_ROOM);
act( AT_ACTION, "You try to fit them together every which way, but they just don't want to fit together.", ch, NULL, NULL, TO_CHAR);
Now what does it mean has no member? what do i need to do to fix it?
this is in the SWR codebase, of the act_obj.c file where i added it.
somebody please help!
-Kronos