… | |
… | |
62 | |
62 | |
63 | Object events always relate to a specific object, which is always the |
63 | Object events always relate to a specific object, which is always the |
64 | first argument. Not all events get generated for every object, some are |
64 | first argument. Not all events get generated for every object, some are |
65 | specific to an object type. |
65 | specific 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 | |
69 | A basic item has been created (e.g. for shops, monsters drops etc.) |
69 | A basic item has been created (e.g. for shops, monsters drops etc.) |
70 | that needs bonus values applied. The B<creator> object is a template |
70 | that needs bonus values applied. The B<creator> object is a template |
71 | object that can be used to inherit stuff (and can be NULL). Flags is a |
71 | object that can be used to inherit stuff (and can be NULL). Flags is a |
72 | combination of GT_ENVIRONMENT (???) or GT_STARTEQUIP (set FLAG_STARTEQUIP |
72 | combination of GT_ENVIRONMENT (???) or GT_STARTEQUIP (set FLAG_STARTEQUIP |
… | |
… | |
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. |