MG Mud User | 88f1247 | 2016-06-24 23:31:02 +0200 | [diff] [blame] | 1 | SYNOPSIS |
| 2 | #include <configuration.h> |
| 3 | |
| 4 | void configure_object(object ob, int what, mixed data) |
| 5 | |
| 6 | DESCRIPTION |
| 7 | Sets the option <what> to the value <data> on the object <ob> |
Zesstra | 715ec20 | 2025-07-09 22:18:31 +0200 | [diff] [blame^] | 8 | or the default for all objects if <ob> is 0. |
MG Mud User | 88f1247 | 2016-06-24 23:31:02 +0200 | [diff] [blame] | 9 | |
| 10 | If the first argument <ob> is not this_object(), the privilege |
| 11 | violation ("configure_object", this_object(), ob, what, data) |
| 12 | occurs. |
| 13 | |
| 14 | As <what>, the following arguments are accepted: |
| 15 | |
| 16 | <what> == OC_COMMANDS_ENABLED |
| 17 | Sets whether <ob> can use commands normally accessible to |
| 18 | users (1) or not (0). This also marks the object as "living". |
| 19 | |
| 20 | <what> == OC_HEART_BEAT |
| 21 | Enables (1) or disables (0) the heart beat for <ob>. The |
| 22 | driver will apply the lfun heart_beat() to the <ob> every |
| 23 | __HEARTBEAT_INTERVAL__ seconds, if it is enabled. |
| 24 | A shadow over the heart_beat() lfun will be ignored. |
| 25 | |
| 26 | If the heart beat is not needed for the moment, then do disable |
| 27 | it. This will reduce system overhead. |
| 28 | |
| 29 | Note that heart_beat()s are called only if there are enabled |
| 30 | via configuer_driver(DC_ENABLE_HEART_BEATS), which is the |
| 31 | default. |
| 32 | |
Zesstra | a812fe6 | 2017-06-18 15:31:06 +0200 | [diff] [blame] | 33 | <what> == OC_EUID |
| 34 | Set effective uid to <data>. <data> must be a string or 0. |
| 35 | This call will always trigger a privilege violation check, |
| 36 | even if <ob> is this_object(). |
| 37 | |
| 38 | If strict euid usage is enforced, objects with euid 0 cannot |
| 39 | load or clone other objects or do any file operations. |
| 40 | |
MG Mud User | 88f1247 | 2016-06-24 23:31:02 +0200 | [diff] [blame] | 41 | |
| 42 | The current values for these options can be queried using |
| 43 | object_info(). |
| 44 | |
| 45 | HISTORY |
| 46 | Introduced in LDMud 3.5.0. |
| 47 | |
| 48 | SEE ALSO |
Zesstra | 715ec20 | 2025-07-09 22:18:31 +0200 | [diff] [blame^] | 49 | object_info(E), configure_interactive(E), configure_lwobject(E), |
| 50 | configure_driver(E) |