From the NannyMUD documentation
2001-09-29
timed_hooks - Timed hooks
/obj/util/timed.c
Any object can use hooks.
timed_new_year_hook timed_new_season_hook timed_new_month_hook timed_new_week_hook timed_new_moon_phase_hook timed_new_day_hook timed_new_part_of_day_hook timed_new_hour_hook
Whenever a Nanny - year - season - month/ - moon phase - week - day - part of day - hour has passed and we entered a new one.
Remember that these hooks must be registred after reboots to stay in the timed daemon.
timed in daemon/timed
NAME
timed_new_year_hook - New year hookSYNTAX
void timed_new_year_hook(mixed arr, object timed)DESCRIPTION
Whenever a Nanny year has passed and we entered a new one. The arguments to the hook are as follows: ({Old year nr, New year nr }), TimedNOTE
Remember that the hook must be registered after reboots to stay in the timed daemon.
FUNCTION
NAME
timed_new_season_hook - New season hookSYNTAX
void timed_new_season_hook(mixed arr, object timed)DESCRIPTION
Whenever a Nanny season has passed and we entered a new one. The arguments to the hook are as follows: ({Old season string, New season string }), TimedNOTE
Remember that the hook must be registered after reboots to stay in the timed daemon.
FUNCTION
NAME
timed_new_month_hook - New month hookSYNTAX
void timed_new_month_hook(mixed arr, object timed)DESCRIPTION
Whenever a Nanny month has passed and we entered a new one. The arguments to the hook are as follows: ({Old month nr, New month nr, Old season string, New season string }), TimedNOTE
Remember that the hook must be registered after reboots to stay in the timed daemon.
FUNCTION
NAME
timed_new_moon_phase_hook - New moon phase hookSYNTAX
void timed_new_moon_phase_hook(mixed arr, object timed)DESCRIPTION
Whenever a Nanny moon phase has passed and we entered a new one. The arguments to the hook are as follows: ({Old phase str, New phase str, }), TimedNOTE
Remember that the hook must be registered after reboots to stay in the timed daemon.
FUNCTION
NAME
timed_new_week_hook - New week hookSYNTAX
void timed_new_week_hook(mixed arr, object timed)DESCRIPTION
Whenever a Nanny week has passed and we entered a new one. The arguments to the hook are as follows: ({Old week nr, New week nr, }), TimedNOTE
Remember that the hook must be registered after reboots to stay in the timed daemon.
FUNCTION
NAME
timed_new_day_hook - New day hookSYNTAX
void timed_new_day_hook(mixed arr, object timed)DESCRIPTION
Whenever a Nanny day has passed and we entered a new one. The arguments to the hook are as follows: ({Old day nr, New day nr, }), TimedNOTE
Remember that the hook must be registered after reboots to stay in the timed daemon.
FUNCTION
NAME
timed_new_part_of_day_hook - New part of day hookSYNTAX
void timed_new_part_of_day_hook(mixed arr, object timed)DESCRIPTION
Whenever a Nanny part of day has passed and we entered a new one. The arguments to the hook are as follows: ({Old day part string, New day part string }), TimedNOTE
Remember that the hook must be registered after reboots to stay in the timed daemon.
FUNCTION
NAME
timed_new_hour_hook - New hour hookSYNTAX
void timed_new_hour_hook(mixed arr, object timed)DESCRIPTION
Whenever a Nanny hour has passed and we entered a new one. The arguments to the hook are as follows: ({Old hour nr, New hour nr, Old day part string, New day part string }), TimedNOTE
Remember that the hook must be registered after reboots to stay in the timed daemon.