EVENT(1) EVENT(1)
NNAAMMEE
_e_v_e_n_t_(_) - sets up an event to occur regularly
SSYYNNOOPPSSIISS
varargs void event(string fun, int when, mixed *args, int
reg)
DDEESSCCRRIIPPTTIIOONN
This function is exactly like the _c_a_l_l___o_u_t_(_) efun, except
in that this SimulEfun works across reboots. This is
useful for setting up long terms events, such as monthly
goblin raids or lunar based lycanthropy. The first
argument is a string representing the name of the function
to be called. The second argument is how long after
_e_v_e_n_t_(_) is called that the first event should happen. The
third and fourth arguments are optional. If given, the
third argument is an array of arguments to be passed to
the function when it is called. In addition, the fourth
argument, is a flag. If given and 1, it flags the event
to be recurring. If not give or 0, the event will only
happen the first time.
EEXXAAMMPPLLEESS
+o event("call_war", MONTH) will set the function
_c_a_l_l___w_a_r_(_) to be called one mud month from now
LLOOCCAATTIIOONN
/secure/SimulEfun/events.c
SSEEEE AALLSSOO
_c_a_l_l___o_u_t_(_), _e_v_e_n_t___p_e_n_d_i_n_g_(_), _r_e_m_o_v_e___c_a_l_l___o_u_t_(_),
_s_e_t___h_e_a_r_t___b_e_a_t_(_)
AAuutthhoorr
Descartes of Borg
1