From the NannyMUD documentation

LAST CHANGE

2002-11-10

FUNCTION


NAME

        reset - Called by driver when an object is 'reset'

LOCATION

        Called in every object.

SYNTAX

        void reset(int arg);

DESCRIPTION

        The function reset() is called in every object, by the driver.
        There are two kinds of calls:

        At creation time of the object, when it is loaded, reset with
        an argument of 0 is called in the object. 

        At periodic intervals after this, reset is called with an
        argument of 1 passed to it. 
         
        At each reset time, a new integer with a value 
        'time() + X/2 + random(X/2)' is bound to the object.  This is
        the time of the next reset.  Every Y minutes the driver scans
        objects and resets those objects which are up for reset. With
        many objects in the game it can take several of these scans
        to go through all objects.

        The exact values of 'X' and 'Y' above are fixed in the driver.
        At this time (2002-11-10), 'X' is 6000 and 'Y' is 2.

NOTE

        The reset() function will only be called if the object has
        been touched since last time, i.e. if code has been run in
        the object.

NOTE

        It is NOT allowed to use call_out() to emulate the reset
        behaviour. Doing so will draw the attention of the admin.

SEE ALSO

        _exit in lfun/basic/_exit

SEE ALSO

        clean_up in lfun/basic/clean_up
        clean_up in lfun/living/living_functions