1 | =head1 CROSSFIRE+ PLUG-IN EVENTS |
1 | =head1 DELIANTRA PLUG-IN EVENTS |
2 | |
2 | |
3 | This document briefly describes each plug-in event. It is also used to |
3 | This document briefly describes each plug-in event. It is also used to |
4 | generate the event-list itself, so is always complete. Be careful wehn |
4 | generate the event-list itself, so is always complete. Be careful wehn |
5 | changing it, though. |
5 | changing it, though. |
6 | |
6 | |
… | |
… | |
50 | instances). If this is not the behaviour you need, you have to adjust the |
50 | instances). If this is not the behaviour you need, you have to adjust the |
51 | B<destination> object as you see fit. |
51 | B<destination> object as you see fit. |
52 | |
52 | |
53 | =head3 destroy (object -- ) |
53 | =head3 destroy (object -- ) |
54 | |
54 | |
55 | Invoked when the crossfire object gets destroyed, and only when the object |
55 | Invoked when the deliantra object gets destroyed, and only when the object |
56 | has a handler for this event. This event can occur many times, as its |
56 | has a handler for this event. This event can occur many times, as its |
57 | called when the in-memory object is destroyed, not when the object itself |
57 | called when the in-memory object is destroyed, not when the object itself |
58 | dies. |
58 | dies. |
59 | |
59 | |
60 | |
60 | |
… | |
… | |
271 | |
271 | |
272 | =head3 login (player) |
272 | =head3 login (player) |
273 | |
273 | |
274 | Invoked whenever a player logs in. |
274 | Invoked whenever a player logs in. |
275 | |
275 | |
276 | =head3 logout (player) |
276 | =head3 logout (player cleanly -- ) |
277 | |
277 | |
278 | Invoked whenever a player logs out, gets disconnected etc. |
278 | Invoked whenever a player logs out, gets disconnected etc. |
279 | |
279 | |
280 | =head3 death (player) |
280 | =head3 death (player) |
281 | |
281 | |
282 | Invoked whenever a player dies, before the death actually gets processed. |
282 | Invoked 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 | |
286 | Invoked before a player moves from one map to another, can override the movement. |
286 | Invoked before a player moves from one map to another, can override the movement. |
|
|
287 | |
|
|
288 | =head3 region_change (player newregion oldregion -- ) |
|
|
289 | |
|
|
290 | Invoked 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 | |
290 | Execute a user command send by the client. Programmable plug-ins usually |
294 | Execute a user command send by the client. Programmable plug-ins usually |
291 | handle this event internally. |
295 | handle this event internally. |