00001 00002 /* attrs.h - Attribute definitions */ 00003 00004 /* $Id: attrs.h,v 1.3 2005/08/08 09:43:05 murrayma Exp $ */ 00005 00006 #include "config.h" 00007 00008 #ifndef _ATTRS_H 00009 #define _ATTRS_H 00010 00011 #include "copyright.h" 00012 00013 /* Attribute flags */ 00014 #define AF_ODARK 0x0001 /* players other than owner can't see it */ 00015 #define AF_DARK 0x0002 /* No one can see it */ 00016 #define AF_WIZARD 0x0004 /* only wizards can change it */ 00017 #define AF_MDARK 0x0008 /* Only wizards can see it. Dark to mortals */ 00018 #define AF_INTERNAL 0x0010 /* Don't show even to #1 */ 00019 #define AF_NOCMD 0x0020 /* Don't create a @ command for it */ 00020 #define AF_LOCK 0x0040 /* Attribute is locked */ 00021 #define AF_DELETED 0x0080 /* Attribute should be ignored */ 00022 #define AF_NOPROG 0x0100 /* Don't process $-commands from this attr */ 00023 #define AF_GOD 0x0200 /* Only #1 can change it */ 00024 #define AF_IS_LOCK 0x0400 /* Attribute is a lock */ 00025 #define AF_VISUAL 0x0800 /* Anyone can see */ 00026 #define AF_PRIVATE 0x1000 /* Not inherited by children */ 00027 #define AF_DIRTY 0x2000 /* This attribute has been compiled. */ 00028 #define AF_REGEXP 0x8000 /* Do a regexp rather than wildcard match */ 00029 00030 #define A_OSUCC 1 /* Others success message */ 00031 #define A_OFAIL 2 /* Others fail message */ 00032 #define A_FAIL 3 /* Invoker fail message */ 00033 #define A_SUCC 4 /* Invoker success message */ 00034 #define A_PASS 5 /* Password (only meaningful for players) */ 00035 #define A_DESC 6 /* Description */ 00036 #define A_SEX 7 /* Sex */ 00037 #define A_ODROP 8 /* Others drop message */ 00038 #define A_DROP 9 /* Invoker drop message */ 00039 #define A_OKILL 10 /* Others kill message */ 00040 #define A_KILL 11 /* Invoker kill message */ 00041 #define A_ASUCC 12 /* Success action list */ 00042 #define A_AFAIL 13 /* Failure action list */ 00043 #define A_ADROP 14 /* Drop action list */ 00044 #define A_AKILL 15 /* Kill action list */ 00045 #define A_AUSE 16 /* Use action list */ 00046 #define A_CHARGES 17 /* Number of charges remaining */ 00047 #define A_RUNOUT 18 /* Actions done when no more charges */ 00048 #define A_STARTUP 19 /* Actions run when game started up */ 00049 #define A_ACLONE 20 /* Actions run when obj is cloned */ 00050 #define A_APAY 21 /* Actions run when given COST pennies */ 00051 #define A_OPAY 22 /* Others pay message */ 00052 #define A_PAY 23 /* Invoker pay message */ 00053 #define A_COST 24 /* Number of pennies needed to invoke xPAY */ 00054 #define A_MONEY 25 /* Value or Wealth (internal) */ 00055 #define A_LISTEN 26 /* (Wildcarded) string to listen for */ 00056 #define A_AAHEAR 27 /* Actions to do when anyone says LISTEN str */ 00057 #define A_AMHEAR 28 /* Actions to do when I say LISTEN str */ 00058 #define A_AHEAR 29 /* Actions to do when others say LISTEN str */ 00059 #define A_LAST 30 /* Date/time of last login (players only) */ 00060 #define A_QUEUEMAX 31 /* Max. # of entries obj has in the queue */ 00061 #define A_IDESC 32 /* Inside description (ENTER to get inside) */ 00062 #define A_ENTER 33 /* Invoker enter message */ 00063 #define A_OXENTER 34 /* Others enter message in dest */ 00064 #define A_AENTER 35 /* Enter action list */ 00065 #define A_ADESC 36 /* Describe action list */ 00066 #define A_ODESC 37 /* Others describe message */ 00067 #define A_RQUOTA 38 /* Relative object quota */ 00068 #define A_ACONNECT 39 /* Actions run when player connects */ 00069 #define A_ADISCONNECT 40 /* Actions run when player disconnectes */ 00070 #define A_ALLOWANCE 41 /* Daily allowance, if diff from default */ 00071 #define A_LOCK 42 /* Object lock */ 00072 #define A_NAME 43 /* Object name */ 00073 #define A_COMMENT 44 /* Wizard-accessable comments */ 00074 #define A_USE 45 /* Invoker use message */ 00075 #define A_OUSE 46 /* Others use message */ 00076 #define A_SEMAPHORE 47 /* Semaphore control info */ 00077 #define A_TIMEOUT 48 /* Per-user disconnect timeout */ 00078 #define A_QUOTA 49 /* Absolute quota (to speed up @quota) */ 00079 #define A_LEAVE 50 /* Invoker leave message */ 00080 #define A_OLEAVE 51 /* Others leave message in src */ 00081 #define A_ALEAVE 52 /* Leave action list */ 00082 #define A_OENTER 53 /* Others enter message in src */ 00083 #define A_OXLEAVE 54 /* Others leave message in dest */ 00084 #define A_MOVE 55 /* Invoker move message */ 00085 #define A_OMOVE 56 /* Others move message */ 00086 #define A_AMOVE 57 /* Move action list */ 00087 #define A_ALIAS 58 /* Alias for player names */ 00088 #define A_LENTER 59 /* ENTER lock */ 00089 #define A_LLEAVE 60 /* LEAVE lock */ 00090 #define A_LPAGE 61 /* PAGE lock */ 00091 #define A_LUSE 62 /* USE lock */ 00092 #define A_LGIVE 63 /* Give lock (who may give me away?) */ 00093 #define A_EALIAS 64 /* Alternate names for ENTER */ 00094 #define A_LALIAS 65 /* Alternate names for LEAVE */ 00095 #define A_EFAIL 66 /* Invoker entry fail message */ 00096 #define A_OEFAIL 67 /* Others entry fail message */ 00097 #define A_AEFAIL 68 /* Entry fail action list */ 00098 #define A_LFAIL 69 /* Invoker leave fail message */ 00099 #define A_OLFAIL 70 /* Others leave fail message */ 00100 #define A_ALFAIL 71 /* Leave fail action list */ 00101 #define A_REJECT 72 /* Rejected page return message */ 00102 #define A_AWAY 73 /* Not_connected page return message */ 00103 #define A_IDLE 74 /* Success page return message */ 00104 #define A_UFAIL 75 /* Invoker use fail message */ 00105 #define A_OUFAIL 76 /* Others use fail message */ 00106 #define A_AUFAIL 77 /* Use fail action list */ 00107 #define A_PFAIL 78 /* Invoker page fail message */ 00108 #define A_TPORT 79 /* Invoker teleport message */ 00109 #define A_OTPORT 80 /* Others teleport message in src */ 00110 #define A_OXTPORT 81 /* Others teleport message in dst */ 00111 #define A_ATPORT 82 /* Teleport action list */ 00112 #define A_PRIVS 83 /* Individual permissions */ 00113 #define A_LOGINDATA 84 /* Recent login information */ 00114 #define A_LTPORT 85 /* Teleport lock (can others @tel to me?) */ 00115 #define A_LDROP 86 /* Drop lock (can I be dropped or @tel'ed) */ 00116 #define A_LRECEIVE 87 /* Receive lock (who may give me things?) */ 00117 #define A_LASTSITE 88 /* Last site logged in from, in cleartext */ 00118 #define A_INPREFIX 89 /* Prefix on incoming messages into objects */ 00119 #define A_PREFIX 90 /* Prefix used by exits/objects when audible */ 00120 #define A_INFILTER 91 /* Filter to zap incoming text into objects */ 00121 #define A_FILTER 92 /* Filter to zap text forwarded by audible. */ 00122 #define A_LLINK 93 /* Who may link to here */ 00123 #define A_LTELOUT 94 /* Who may teleport out from here */ 00124 #define A_FORWARDLIST 95 /* Recipients of AUDIBLE output */ 00125 #define A_MAILFOLDERS 96 /* @mail folders */ 00126 #define A_LUSER 97 /* Spare lock not referenced by server */ 00127 #define A_LPARENT 98 /* Who may @parent to me if PARENT_OK set */ 00128 #define A_VA 100 /* VA attribute (VB-VZ follow) */ 00129 00130 #define A_GFAIL 129 /* Give fail message */ 00131 #define A_OGFAIL 130 /* Others give fail message */ 00132 #define A_AGFAIL 131 /* Give fail action */ 00133 #define A_RFAIL 132 /* Receive fail message */ 00134 #define A_ORFAIL 133 /* Others receive fail message */ 00135 #define A_ARFAIL 134 /* Receive fail action */ 00136 #define A_DFAIL 135 /* Drop fail message */ 00137 #define A_ODFAIL 136 /* Others drop fail message */ 00138 #define A_ADFAIL 137 /* Drop fail action */ 00139 #define A_TFAIL 138 /* Teleport (to) fail message */ 00140 #define A_OTFAIL 139 /* Others teleport (to) fail message */ 00141 #define A_ATFAIL 140 /* Teleport fail action */ 00142 #define A_TOFAIL 141 /* Teleport (from) fail message */ 00143 #define A_OTOFAIL 142 /* Others teleport (from) fail message */ 00144 #define A_ATOFAIL 143 /* Teleport (from) fail action */ 00145 #define A_LASTNAME 144 /* Last time you changed your name */ 00146 /* #define A_UNUSED 145 */ 00147 #define A_MECHPREFID 146 /* Preferred Mech ID on map */ 00148 #define A_MAPCOLOR 147 /* ANSIMAP color scheme */ 00149 00150 #define A_LASTPAGE 200 /* Player last paged */ 00151 #define A_MAIL 201 /* Message echoed to sender */ 00152 #define A_AMAIL 202 /* Action taken when mail received */ 00153 #define A_SIGNATURE 203 /* Mail signature */ 00154 #define A_DAILY 204 /* Daily attribute to be executed */ 00155 #define A_MAILTO 205 /* Who is the mail to? */ 00156 #define A_MAILMSG 206 /* The mail message itself */ 00157 #define A_MAILSUB 207 /* The mail subject */ 00158 #define A_MAILCURF 208 /* The current @mail folder */ 00159 #define A_LSPEECH 209 /* Speechlocks */ 00160 #define A_PROGCMD 210 /* Command for exectution by @prog */ 00161 #define A_MAILFLAGS 211 /* Flags for extended mail */ 00162 #define A_DESTROYER 212 /* Who is destroying this object? */ 00163 #define A_UNUSED1 213 /* Old luck.c, now unused. */ 00164 00165 /* Mecha stuff */ 00166 00167 #define A_MECHSKILLS 214 /* Pilot's skills in using a mech */ 00168 #define A_XTYPE 215 /* Hardcode type */ 00169 #define A_TACSIZE 216 /* Tactical Size (H & W) */ 00170 #define A_LRSHEIGHT 217 /* LRS height */ 00171 #define A_CONTACTOPT 218 /* Contact options */ 00172 #define A_MECHNAME 219 /* Mech name */ 00173 #define A_MECHTYPE 220 /* Mech type */ 00174 #define A_MECHDESC 221 /* Mech extra desc (for view) */ 00175 #define A_MECHSTATUS 222 /* Mech status string. Not to be tampered. */ 00176 #define A_MWTEMPLATE 229 /* MW template to use (if any) */ 00177 #define A_FACTION 230 /* Faction */ 00178 #define A_JOB 231 /* Job field */ 00179 #define A_RANKNUM 232 /* 'true' rank, the thing comparisons are done with */ 00180 00181 /* BT-stats: */ 00182 #define A_HEALTH 233 /* Bruise,Lethal */ 00183 #define A_ATTRS 234 /* Attributes */ 00184 00185 #define A_BUILDLINKS 235 /* Links */ 00186 #define A_BUILDENTRANCE 236 /* Entrance(s) */ 00187 #define A_BUILDCOORD 237 /* X/Y coord */ 00188 00189 /* BT-stats: */ 00190 #define A_ADVS 238 /* Advantages */ 00191 #define A_PILOTNUM 239 /* Mech's pilot # */ 00192 #define A_MAPVIS 240 /* Visibility */ 00193 #define A_TZ 241 /* Timezone */ 00194 #define A_TECHTIME 242 /* Time (as a time_t number) until completion */ 00195 #define A_ECONPARTS 243 /* Econ parts */ 00196 00197 /* BT-stats: */ 00198 #define A_SKILLS 244 /* Skills */ 00199 #define A_PCEQUIP 245 /* PCombat equipment */ 00200 00201 #define A_HOURLY 246 00202 #define A_AMECHDEST 247 00203 #define A_AMINETRIGGER 248 00204 00205 /* #define FREE 250 Was A_VRNKL_URL */ 00206 /* #define FREE 251 Was A_HTDESC */ 00207 00208 /* End of it */ 00209 00210 #define A_VLIST 252 00211 #define A_LIST 253 00212 #define A_STRUCT 254 00213 #define A_TEMP 255 00214 00215 #define A_USER_START 256 /* Start of user-named attributes */ 00216 #define ATR_BUF_CHUNK 100 /* Min size to allocate for attribute buffer */ 00217 #define ATR_BUF_INCR 6 /* Max size of one attribute */ 00218 00219 #endif