blob: 1d218b5d10b5a9b0314987613c7118556fdcfd02 (
plain) (
blame)
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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
|
/**
* This file is part of Hercules.
* http://herc.ws - http://github.com/HerculesWS/Hercules
*
* Copyright (C) 2013-2015 Hercules Dev Team
*
* Hercules is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/* Hercules Renewal: Phase Two http://herc.ws/board/topic/383-hercules-renewal-phase-two/ */
#ifndef EVOL_MAP_PACKETS_STRUCT_H
#define EVOL_MAP_PACKETS_STRUCT_H
#include "common/cbasetypes.h"
#include "common/mmo.h"
struct packet_idle_unit_old {
short PacketType;
#if PACKETVER >= 20091103
short PacketLength;
unsigned char objecttype;
#endif
//#if PACKETVER >= 20131223
// unsigned int AID;
//#endif
unsigned int GID;
short speed;
short bodyState;
short healthState;
#if PACKETVER < 20080102
short effectState;
#else
int effectState;
#endif
short job;
short head;
#if PACKETVER < 7
short weapon;
#else
int weapon;
#endif
short accessory;
#if PACKETVER < 7
short shield;
#endif
short accessory2;
short accessory3;
short headpalette;
short bodypalette;
short headDir;
#if PACKETVER >= 20101124
short robe;
#endif
unsigned int GUID;
short GEmblemVer;
short honor;
#if PACKETVER > 7
int virtue;
#else
short virtue;
#endif
uint8 isPKModeON;
unsigned char sex;
unsigned char PosDir[3];
unsigned char xSize;
unsigned char ySize;
unsigned char state;
short clevel;
#if PACKETVER >= 20080102
short font;
#endif
#if PACKETVER >= 20120221
int maxHP;
int HP;
unsigned char isBoss;
#endif
#if PACKETVER >= 20150513
short body;
#endif
} __attribute__((packed));
struct packet_spawn_unit_old {
short PacketType;
#if PACKETVER >= 20091103
short PacketLength;
unsigned char objecttype;
#endif
//#if PACKETVER >= 20131223
// unsigned int AID;
//#endif
unsigned int GID;
short speed;
short bodyState;
short healthState;
#if PACKETVER < 20080102
short effectState;
#else
int effectState;
#endif
short job;
short head;
#if PACKETVER < 7
short weapon;
#else
int weapon;
#endif
short accessory;
#if PACKETVER < 7
short shield;
#endif
short accessory2;
short accessory3;
short headpalette;
short bodypalette;
short headDir;
#if PACKETVER >= 20101124
short robe;
#endif
unsigned int GUID;
short GEmblemVer;
short honor;
#if PACKETVER > 7
int virtue;
#else
short virtue;
#endif
uint8 isPKModeON;
unsigned char sex;
unsigned char PosDir[3];
unsigned char xSize;
unsigned char ySize;
short clevel;
#if PACKETVER >= 20080102
short font;
#endif
#if PACKETVER >= 20120221
int maxHP;
int HP;
unsigned char isBoss;
#endif
#if PACKETVER >= 20150513
short body;
#endif
} __attribute__((packed));
struct packet_unit_walking_old {
short PacketType;
#if PACKETVER >= 20091103
short PacketLength;
#endif
#if PACKETVER > 20071106
unsigned char objecttype;
#endif
//#if PACKETVER >= 20131223
// unsigned int AID;
//#endif
unsigned int GID;
short speed;
short bodyState;
short healthState;
#if PACKETVER < 7
short effectState;
#else
int effectState;
#endif
short job;
short head;
#if PACKETVER < 7
short weapon;
#else
int weapon;
#endif
short accessory;
unsigned int moveStartTime;
#if PACKETVER < 7
short shield;
#endif
short accessory2;
short accessory3;
short headpalette;
short bodypalette;
short headDir;
#if PACKETVER >= 20101124
short robe;
#endif
unsigned int GUID;
short GEmblemVer;
short honor;
#if PACKETVER > 7
int virtue;
#else
short virtue;
#endif
uint8 isPKModeON;
unsigned char sex;
unsigned char MoveData[6];
unsigned char xSize;
unsigned char ySize;
short clevel;
#if PACKETVER >= 20080102
short font;
#endif
#if PACKETVER >= 20120221
int maxHP;
int HP;
unsigned char isBoss;
#endif
#if PACKETVER >= 20150513
short body;
#endif
} __attribute__((packed));
struct packet_damage_old {
short PacketType;
unsigned int GID;
unsigned int targetGID;
unsigned int startTime;
int attackMT;
int attackedMT;
#if PACKETVER < 20071113
short damage;
#else
int damage;
#endif
//#if PACKETVER >= 20131223
// unsigned char is_sp_damaged;
//#endif
short count;
unsigned char action;
#if PACKETVER < 20071113
short leftDamage;
#else
int leftDamage;
#endif
} __attribute__((packed));
#endif /* EVOL_MAP_PACKETS_STRUCT_H */
|