ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/pod/events.pod
(Generate patch)

Comparing deliantra/server/pod/events.pod (file contents):
Revision 1.19 by root, Tue May 22 10:50:00 2007 UTC vs.
Revision 1.23 by root, Sat Nov 10 22:41:59 2007 UTC

1=head1 CROSSFIRE+ PLUG-IN EVENTS 1=head1 DELIANTRA PLUG-IN EVENTS
2 2
3This document briefly describes each plug-in event. It is also used to 3This document briefly describes each plug-in event. It is also used to
4generate the event-list itself, so is always complete. Be careful wehn 4generate the event-list itself, so is always complete. Be careful wehn
5changing it, though. 5changing it, though.
6 6
50instances). If this is not the behaviour you need, you have to adjust the 50instances). If this is not the behaviour you need, you have to adjust the
51B<destination> object as you see fit. 51B<destination> object as you see fit.
52 52
53=head3 destroy (object -- ) 53=head3 destroy (object -- )
54 54
55Invoked when the crossfire object gets destroyed, and only when the object 55Invoked when the deliantra object gets destroyed, and only when the object
56has a handler for this event. This event can occur many times, as its 56has a handler for this event. This event can occur many times, as its
57called when the in-memory object is destroyed, not when the object itself 57called when the in-memory object is destroyed, not when the object itself
58dies. 58dies.
59 59
60 60
62 62
63Object events always relate to a specific object, which is always the 63Object events always relate to a specific object, which is always the
64first argument. Not all events get generated for every object, some are 64first argument. Not all events get generated for every object, some are
65specific to an object type. 65specific to an object type.
66 66
67=head3 add_bonus (item creator difficulty max_magic flags) 67=head3 add_bonus (item creator difficulty max_magic flags -- )
68 68
69A basic item has been created (e.g. for shops, monsters drops etc.) 69A basic item has been created (e.g. for shops, monsters drops etc.)
70that needs bonus values applied. The B<creator> object is a template 70that needs bonus values applied. The B<creator> object is a template
71object that can be used to inherit stuff (and can be NULL). Flags is a 71object that can be used to inherit stuff (and can be NULL). Flags is a
72combination of GT_ENVIRONMENT (???) or GT_STARTEQUIP (set FLAG_STARTEQUIP 72combination of GT_ENVIRONMENT (???) or GT_STARTEQUIP (set FLAG_STARTEQUIP
271 271
272=head3 login (player) 272=head3 login (player)
273 273
274Invoked whenever a player logs in. 274Invoked whenever a player logs in.
275 275
276=head3 logout (player) 276=head3 logout (player cleanly -- )
277 277
278Invoked whenever a player logs out, gets disconnected etc. 278Invoked whenever a player logs out, gets disconnected etc.
279 279
280=head3 death (player) 280=head3 death (player)
281 281
282Invoked whenever a player dies, before the death actually gets processed. 282Invoked whenever a player dies, before the death actually gets processed.
283 283
284=head3 map_change (player newmap x y -- ) 284=head3 map_change (player newmap x y -- )
285 285
286Invoked before a player moves from one map to another, can override the movement. 286Invoked before a player moves from one map to another, can override the movement.
287
288=head3 region_change (player newregion oldregion -- )
289
290Invoked when a player entered a new region. Cannot be overriden.
287 291
288=head3 command (player command args -- time) 292=head3 command (player command args -- time)
289 293
290Execute a user command send by the client. Programmable plug-ins usually 294Execute a user command send by the client. Programmable plug-ins usually
291handle this event internally. 295handle this event internally.

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines