From the NannyMUD documentation
2000-12-11
NAME
next_inventory - get the next object in an inventorySYNTAX
object next_inventory(object ob)DESCRIPTION
Get next object in the same inventory as "ob".NOTE
If the object 'ob' is moved by move_object(), then next_inventory() will return an object from the new inventory.SEE ALSO
first_inventory in efun/object_related/first_inventorySEE ALSO
all_inventory in efun/object_related/all_inventorySEE ALSO
deep_inventory in efun/object_related/deep_inventory