OBJ_DATA *bait;
for ( bait = ch->carrying; bait; bait = bait->next_content )
{
if (bait->item_type == ITEM_TYPE_BAIT)
break;
}
if (!bait)
{
stc("You need some sort of bait to catch any fish!\r\n",ch);
return;
}
else
{
extract_obj(bait);
//do fishing stuff.
}
1.Have a few lines when the command is entered stating something like: 1a.You cast your line out. 2b.Something jostles your line. 3c. You feel a tug on your line and set your hook! Each a few pulses apart, and that can be interupted by the player being attacked.
2. (MORE IMPORTANT) Make it so an object: ITEM_TYPE_BAIT has to be in the player inventory, and when they use the command, the obj is automatically removed from inventory without the player actually having to use an argument (like: fish <item_type_bait name>).
I hope this is appropriate to post… Thanks for your help in advance.
THE CODE: