count true items (by Silver) ============================ The problem with count_items() is that it only counts the number of different items you have. So if you have 1 pear and 1 banana it will correctly say you have 2 items, but if you have 1 pear and 10 bananas its still says you have 2 (when it should be 11 items). This function fixes this problem: int count_total_items(player *p) { item *i; struct s_item *s; int count = 0; if (!p->saved->item_top) return 0; for (i = p->saved->item_top; i; i = i->next) { s = find_item(0, i->id); if (!s) delete_entry_item(p->saved, i); else count += i->number; } return count; } an example of use of this could be: TELLPLAYER(p, "%s is carrying %d items\n", p2->name, count_total_items(p2)); All bugs/problems please mail silver@ewtoo.org.