MG Mud User | 88f1247 | 2016-06-24 23:31:02 +0200 | [diff] [blame^] | 1 | SYNOPSIS |
| 2 | #include <wizlist.h> |
| 3 | |
| 4 | mixed * wizlist_info() |
| 5 | |
| 6 | DESCRIPTION |
| 7 | Returns an array with the interesting entries of the wizlist. |
| 8 | Needs to be privileged by the master object. |
| 9 | |
| 10 | The result is an array with one entry for every wizard (uid). |
| 11 | Every entry is an array itself: |
| 12 | |
| 13 | string w[WL_NAME] = Name of the wizard. |
| 14 | int w[WL_COMMANDS] = Weighted number of commands execute by |
| 15 | objects of this wizard. |
| 16 | int w[WL_COST], |
| 17 | int w[WL_GIGACOST] = Weighted sum of eval_costs. |
| 18 | int w[WL_TOTAL_COST], |
| 19 | int w[WL_TOTAL_GIGACOST] = Total sum of eval_costs. |
| 20 | int w[WL_HEART_BEATS] = Weighted count of heart_beats. |
| 21 | int w[WL_CALL_OUT] = Reserved for call_out() (unused yet). |
| 22 | int w[WL_ARRAY_TOTAL] = Total size of arrays in elements. |
| 23 | int w[WL_MAPPING_TOTAL] = Total size of mappings in elements. |
| 24 | int w[WL_STRUCT_TOTAL] = Total size of structs in elements. |
| 25 | mixed w[WL_EXTRA] = Extra wizlist-info if set. |
| 26 | |
| 27 | The 'weighted' entries decay every hour by 10%. |
| 28 | |
| 29 | HISTORY |
| 30 | LDMud 3.2.10 split the old WL_EVAL_COST into WL_COST and WL_GIGACOST |
| 31 | to accomodate for longer uptimes, and introduced |
| 32 | WL_TOTAL_COST/WL_TOTAL_GIGACOST. |
| 33 | LDMud 3.3.174 added WL_MAPPING_TOTAL. |
| 34 | LDMud 3.3.? added WL_STRUCT_TOTAL. |
| 35 | |
| 36 | SEE ALSO |
| 37 | privilege_violation(M), set_extra_wizinfo_size(E) |
| 38 | get_extra_wizinfo(E), set_extra_wizinfo(E) |