Ah OK.. so you will need to add your new item types into this function:
perform_obj_type_list()
Here is an example:
Code:
/* The 'normal' items - don't provide extra info */
+ case ITEM_FISHING_POLE
+ case ITEM_HERB_TOOL
+ case all your other custom item types here
case ITEM_TREASURE:
case ITEM_TRASH:
case ITEM_OTHER:
case ITEM_WORN:
case ITEM_NOTE:
case ITEM_PEN:
case ITEM_BOAT:
case ITEM_KEY:
tmp_len = snprintf(buf+len, sizeof(buf)-len,"%s%3d%s) %s[%s%8d%s] %s%s\r\n",
QGRN, ++found, QNRM, QCYN, QYEL, ov, QCYN, obj_proto[r_num].short_description, QNRM);
break;
default:
send_to_char(ch, "Not a valid item type");
return;
This will fix that line break at 0:
Code:
for (i = 0; i < NUM_ITEM_FLAGS; i++)
{
send_to_char(ch, "%s%2d%s-%s%-14s%s", QNRM, i, QNRM, QYEL, extra_bits[i], QNRM);
- if (!(i%4)) send_to_char(ch, "\r\n");
+ if (!((i+1)%4)) send_to_char(ch, "\r\n");