MG Mud User | 88f1247 | 2016-06-24 23:31:02 +0200 | [diff] [blame] | 1 | // MorgenGrauen MUDlib |
| 2 | // |
| 3 | // userinfo.h -- Daten im Spieler-Cache (siehe /secure/master/userinfo.c) |
| 4 | // |
| 5 | // $Id: userinfo.h 6207 2007-02-18 23:32:35Z Zesstra $ |
| 6 | |
| 7 | #ifndef _USERINFO_ |
| 8 | #define _USERINFO_ |
| 9 | |
| 10 | /* |
Zesstra | 79c61dd | 2020-01-17 19:39:06 +0100 | [diff] [blame] | 11 | * Indices for the fields in the userlist of /secure/master/userinfo.c |
| 12 | * Important: these are the *internal* field indices. When obtained by |
| 13 | * get_userinfo(), the fields in the resulting array are off by +1, |
| 14 | * i.e. to get the level, you need to index with USER_LEVEL+1. |
| 15 | * TODO: change that and use either correct additional defines or a |
| 16 | * TODO::new data structure. |
MG Mud User | 88f1247 | 2016-06-24 23:31:02 +0200 | [diff] [blame] | 17 | */ |
| 18 | |
| 19 | /* password (encrypted) */ |
| 20 | #define USER_PASSWORD 0 |
| 21 | |
| 22 | /* wizard level (or programming level) (0 for simple users) */ |
| 23 | #define USER_LEVEL 1 |
| 24 | |
| 25 | /* domain (if any) master == *domainname */ |
| 26 | #define USER_DOMAIN 2 |
| 27 | |
| 28 | /* player object to be loaded by /secure/login */ |
| 29 | #define USER_OBJECT 3 |
| 30 | |
| 31 | /* time of first login */ |
| 32 | #define USER_CREATION_DATE 4 |
| 33 | |
| 34 | /* Time userinfo has been touched last */ |
| 35 | #define USER_TOUCH 5 |
| 36 | |
| 37 | /* exploration points of player */ |
| 38 | #define USER_EP 6 |
| 39 | |
| 40 | /* npcs killed by player */ |
| 41 | #define USER_EK 7 |
| 42 | |
| 43 | /* miniquests solved by player */ |
| 44 | #define USER_MQ 8 |
| 45 | |
| 46 | /* guilds (if any) master == *guildname */ |
| 47 | #define USER_GUILD 9 |
| 48 | |
| 49 | /* tips for eks given to player */ |
| 50 | #define USER_EKTIPS 10 |
| 51 | |
| 52 | /* tips for fps given to player */ |
| 53 | #define USER_FPTIPS 11 |
| 54 | |
| 55 | /* UIDs fuer den ein Magier u.U. explizit verantwortlich ist */ |
| 56 | #define USER_UIDS_TO_TAKE_CARE 12 |
| 57 | |
| 58 | #endif |