LPC Library Functions: next_inventory

NAME

next_inventory() - return the next object in the same inventory

SYNOPSIS

object next_inventory( object ob );

DESCRIPTION

Return the next object in the same inventory as 'ob'.

Warning: if the object 'ob' is moved by move_object(), then next_inventory() will return an object from the new inventory. You may do better to use all_inventory(environment(ob)) and process the returned array.

Note that this efun is not available if the driver flag NO_ENVIRONMENT is defined.

SEE ALSO

first_inventory(), all_inventory(), deep_inventory()

Page design by Frank Jacquette & Tim Hollebeek
Copyright (C) 1998 Tim Hollebeek & Frank Jacquette
Back to MudOS