-
Notifications
You must be signed in to change notification settings - Fork 2
/
wStruct.h
107 lines (87 loc) · 1.4 KB
/
wStruct.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
typedef struct
{
short Index;
char EF1, EFV1;
char EF2, EFV2;
char EF3, EFV3;
} ITEM_ST;
typedef struct
{
short X;
short Y;
} POINT_ST;
typedef struct
{
short Level, // max MP
Defense,
Attack;
struct
{
char Merchant : 4;
char Direction : 4;
};
struct
{
char Speed : 4;
char ChaosRate : 4;
};
short MaxHP,
MaxMP,
CurHP,
CurMP;
short STR,
INT,
DEX,
CON;
char wMaster,
fMaster,
sMaster,
tMaster;
} SCORE_ST;
typedef struct
{
char Name[16];
char CapeInfo;
struct
{
char Merchant : 6;
char CityID : 2;
};
short GuildIndex;
char ClassInfo;
char BitInfo;
short QuestInfo;
int Gold, Exp;
POINT_ST Last;
SCORE_ST bStatus;
SCORE_ST Status;
ITEM_ST Equip[16];
ITEM_ST Inventory[64];
int Learn;
short pStatus,
pMaster,
pSkill;
char Critical;
char SaveMana;
char qSkillBar1[4];
char GuildMemberType;
char MagicIncrement;
char RegenHP,
RegenMP;
char Resist1,
Resist2,
Resist3,
Resist4;
short SelCharIndex,
ClientIndex;
} MOB_ST;
typedef struct
{
WORD Size;
BYTE Key;
BYTE CheckSum;
WORD PacketId;
WORD ClientId;
DWORD TimeStamp;
} PacketHeader;
// 74