Ok, I put in a piece of code and I solved all the errors with it myself(ain't ya proud of me?) except this one:
'TO_ROOM' undeclared(first use in this function)
I put a bit of the code here with 5 asterisks by the error line.
{
send_to_char( "You didn't realize it when you started, but you haven't enough material\n\r", ch);
return;
}
extract_obj( material );
}
obj_to_char( clothing, ch );
send_to_char("You snip and sew, creating a new piece of clothing.\n\r", ch);
act( AT_ACTION,"$n snips and sews, creating a new piece of clothing.", ch, NULL, NULL, T0_ROOM); *****
xnum = number_range(0, 100);
if (xnum < 25) /*did the sewkit break?*/
{
extract_obj( sewkit );
act( AT_ACTION, "$n pulls too hard on the needle and it breaks!", ch, NULL, NULL, TO_ROOM);
send_to_char( "You pull too hard on the needle and it breaks!\n\r", ch );
}
learn_from_failure( ch, gsn_tailor );
return;
}
else /* failure of skill */
{
for (x=number_range(1,9); x<=mnum; x++)
{
material = get_obj_carry (ch, arg1 );
if (material == NULL)
{
send_to_char( "Your thread knots, and your material is ruined.\n\r", ch);
return;
}
extract_obj( material );
}
send_to_char("You snip and sew, but only make a mess.\n\r", ch);
act( AT_ACTION, "$n snips and sews but doesn't make anything useful.", ch, NULL, NULL, TO_ROOM);
xnum = number_range(0, 100);
if (xnum < 25) /*did the sewkit break?*/
{
extract_obj( sewkit );
act( AT_ACTION, "$n pulls too hard on the needle and it breaks!", ch, NULL, NULL, TO_ROOM);
send_to_char( "You pull too hard on the needle and it breaks!\n\r", ch );
}
learn_from_success( ch, gsn_tailor );
}
}
Any ideas?
Godbless,
Longbow |