… | |
… | |
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 | |