PDA

View Full Version : spawnStruct as of 5-20-2003



codepig666
05-20-2003, 08:50 PM
Shifted the equipment column to where it belongs.

struct spawnStruct
{
/*000*/ int32_t race; // race
/*004*/ char unknown004[4];
/*008*/ uint8_t class_; // class
/*009*/ uint16_t level;
/*011*/ char unknown011[1];
/*012*/ int8_t curHp;
/*013*/ char unknown013[2];
/*015*/ uint8_t NPC; // 0=player,1=npc,2=pc corpse,3=npc corpse,4=???,5=unknown spawn,10=self
/*016*/ char unknown016[6];
/*022*/ int32_t maxHp; // max hp
/*026*/ uint8_t gender; // 0=male, 1=female, 2=other
/*027*/ unsigned heading:12;
signed deltaHeading:10;
unsigned animation:10;
signed deltaX:13;
/*xxx*/ signed x:19;
/*xxx*/ signed y:19;
signed deltaY:13;
signed deltaZ:13;
/*031*/ signed z:19;
/*043*/ char unknown043[2];
/*045*/ uint16_t spawnId; // Id of spawn
/*047*/ char unknown047[3];
/*050*/ char lastName[20]; // lastname
/*070*/ char unknown070[12];
/*082*/ int32_t equipment[9]; // 0=helm, 1=chest, 2=arm, 3=bracer
// 4=hand, 5=leg 6=boot, 7=melee1, 8=melee2
/*118*/ char name[64]; // name
/*182*/ int32_t dyergb[7]; // armor dye colors
/*210*/ char unknown210;
/*211*/ uint8_t light;
/*212*/ char unknown212[20];
/*232*/ int32_t guildID; // GuildID
/*236*/ char unknown236[1];
/*237*/ uint32_t typeflag; // Bodytype
/*241*/ char unknown241[4];
/*245*/ uint16_t petOwnerId;
/*247*/ char unknown247[2];
/*249*/ int16_t deity; // deity
/*251*/ char unknown251[2];
}; // 253 bytes