blob: a3d660e6783f6f2d6f5801b93b8df82e2754cf1c [file] [log] [blame]
Zesstrab6ac9f62020-01-21 11:11:16 +01001SYNOPSIS
2 int set_next_reset(int delay)
MG Mud User88f12472016-06-24 23:31:02 +02003
Zesstra715ec202025-07-09 22:18:31 +02004DESCRIPTION
5 Instruct the gamedriver to reset this object not earlier than
6 in <delay> seconds. If a negative value is given as delay, the object
7 will never reset (useful for blueprints). If 0 is given, the
8 object's reset time is not changed.
MG Mud User88f12472016-06-24 23:31:02 +02009
Zesstra715ec202025-07-09 22:18:31 +020010 Result is the former delay to the objects next reset (which can be
11 negative if the reset was overdue).
MG Mud User88f12472016-06-24 23:31:02 +020012
Zesstra715ec202025-07-09 22:18:31 +020013 Note that the actual time the reset occurs depends on when
14 the object will be used after the given time delay.
MG Mud User88f12472016-06-24 23:31:02 +020015
Zesstra715ec202025-07-09 22:18:31 +020016EXAMPLES
17 set_next_reset(15*60); // Next reset in 15 Minutes or later
18 set_next_reset(0) --> just returns the time until the
19 next reset.
MG Mud User88f12472016-06-24 23:31:02 +020020
Zesstra715ec202025-07-09 22:18:31 +020021HISTORY
22 Introduced in LDMud 3.2.6, adapted from Morgengrauen.
23
24SEE ALSO