Posted by
| Nick Gammon
Australia (23,120 posts) Bio
Forum Administrator |
Message
| The wording isn't important - it is the number which is. This is the default setting for #WEARLIST from the source of the Area Editor:
static char * wear_table [] =
{
"(none)=-1", "Light", "Finger-L", "Finger-R", "Neck-1", "Neck-2", "Body", "Head", "Legs",
"Feet", "Hands", "Arms", "Shield", "About", "Waist", "Wrist-L", "Wrist-R",
"Wield", "Hold", "Dual Wield", "Ears", "Eyes", "Missile Wield",
"Back", "Face", "Ankle-L", "Ankle-R",
NULL
};
This has to agree, by position, to mud.h, so for example "Finger-L" will be 1 (from the table) which agrees with this from my copy of mud.h:
/*
* Equpiment wear locations.
* Used in #RESETS.
*/
typedef enum
{
WEAR_NONE = -1, WEAR_LIGHT = 0, WEAR_FINGER_L, WEAR_FINGER_R, WEAR_NECK_1,
WEAR_NECK_2, WEAR_BODY, WEAR_HEAD, WEAR_LEGS, WEAR_FEET, WEAR_HANDS,
WEAR_ARMS, WEAR_SHIELD, WEAR_ABOUT, WEAR_WAIST, WEAR_WRIST_L, WEAR_WRIST_R,
WEAR_WIELD, WEAR_HOLD, WEAR_DUAL_WIELD, WEAR_EARS, WEAR_EYES,
WEAR_MISSILE_WIELD, WEAR_BACK, WEAR_FACE, WEAR_ANKLE_L, WEAR_ANKLE_R,
MAX_WEAR
} wear_locations;
In the smaugconfig.dat file the #WEARLIST section is explicitly present:
#WEARLIST
(none)=-1
Light
Finger-L
Finger-R
Neck-1
Neck-2
Body
Head
Legs
Feet
Hands
Arms
Shield
About
Waist
Wrist-L
Wrist-R
Wield
Hold
Dual Wield
Ears
Eyes
Missile Wield
Back
Face
Ankle-L
Ankle-R
End
Note that the order is the same as in mud.h.
Based on what you posted as your own mud.h wearlist enum, your config.dat file should have something like this:
#WEARLIST
(none)=-1
Light
Head
Face
Eyes
L-Ear
R-Ear
Neck
L-Shoulder
R-Shoulder
Body
Back
Chest
Torso
Arms
L-Wrist
R-Wrist
L-Hand
R-Hand
L-Finger
R-Finger
Waist
Legs
L-Ankle
R-Ankle
Feet
About
Shield
Wield
Dual Wield
Missile Wield
Hold
End
|
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|