Mana
Loading...
Searching...
No Matches
protocol.h
Go to the documentation of this file.
1/*
2 * The Mana Client
3 * Copyright (C) 2004-2009 The Mana World Development Team
4 * Copyright (C) 2009-2012 The Mana Developers
5 *
6 * This file is part of The Mana Client.
7 *
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with this program. If not, see <http://www.gnu.org/licenses/>.
20 */
21
22#pragma once
23
24#include "being.h"
25
26#include <cstdint>
27
28namespace TmwAthena {
29
30enum {
31 JOB = 0xa,
32
33 STRENGTH = 0xd,
39
46 CRIT
47};
48
49enum
50{
64};
65
66enum class LOOK : uint8_t
67{
68 BASE = 0,
69 HAIR = 1,
70 WEAPON = 2,
71 HEAD_BOTTOM = 3,
72 HEAD_TOP = 4,
73 HEAD_MID = 5,
74 HAIR_COLOR = 6,
75 CLOTHES_COLOR = 7,
76 SHIELD = 8,
77 SHOES = 9,
78 GLOVES = 10,
79 CAPE = 11,
80 MISC1 = 12,
81 MISC2 = 13,
82};
83
84enum class DIR : uint8_t
85{
86 S = 0,
87 SW = 1,
88 W = 2,
89 NW = 3,
90 N = 4,
91 NE = 5,
92 E = 6,
93 SE = 7,
94
95 COUNT,
96};
97
98enum class SEX : uint8_t
99{
100 FEMALE = 0,
101 MALE = 1,
102 UNSPECIFIED = 2,
103 NEUTRAL = 3,
104};
105
107{
108 switch (sex)
109 {
110 case SEX::FEMALE: return Gender::Female;
111 case SEX::MALE: return Gender::Male;
112 default: return Gender::Neutral;
113 }
114}
115
132
133static const int INVENTORY_OFFSET = 2;
134static const int STORAGE_OFFSET = 1;
135
136enum {
137 // login server messages
138 SMSG_UPDATE_HOST = 0x0063, // update host notify
139 CMSG_LOGIN_REGISTER = 0x0064, // account login
140 SMSG_LOGIN_DATA = 0x0069, // account login success
141 SMSG_LOGIN_ERROR = 0x006a, // account login error
142
143 // char server messages
144 CMSG_CHAR_PASSWORD_CHANGE = 0x0061, // change password
145 SMSG_CHAR_PASSWORD_RESPONSE = 0x0062, // change password result
146 CMSG_CHAR_SERVER_CONNECT = 0x0065, // connect char
147 CMSG_CHAR_SELECT = 0x0066, // select character
148 CMSG_CHAR_CREATE = 0x0067, // create character
149 CMSG_CHAR_DELETE = 0x0068, // delete character
150 SMSG_CHAR_LOGIN = 0x006b, // connect char success
151 SMSG_CHAR_LOGIN_ERROR = 0x006c, // connect char error
152 SMSG_CHAR_CREATE_SUCCEEDED = 0x006d, // create character success
153 SMSG_CHAR_CREATE_FAILED = 0x006e, // create character error
154 SMSG_CHAR_DELETE_SUCCEEDED = 0x006f, // delete character success
155 SMSG_CHAR_DELETE_FAILED = 0x0070, // delete character error
156 SMSG_CHAR_MAP_INFO = 0x0071, // select character success
157
158 // map server messages
159 CMSG_MAP_SERVER_CONNECT = 0x0072, // connect map
160 SMSG_MAP_LOGIN_SUCCESS = 0x0073, // connect map success
161 SMSG_BEING_VISIBLE = 0x0078, // being appear notify
162 SMSG_BEING_MOVE = 0x007b, // being move notify
163 SMSG_BEING_SPAWN = 0x007c, // being spawn notify
164 CMSG_MAP_LOADED = 0x007d, // map loaded
165 CMSG_MAP_PING = 0x007e, // ping
166 SMSG_SERVER_PING = 0x007f, // pong
167 SMSG_BEING_REMOVE = 0x0080, // remove being notify
168 CMSG_PLAYER_CHANGE_DEST = 0x0085, // walk
169 SMSG_WALK_RESPONSE = 0x0087, // walk success
170 SMSG_PLAYER_STOP = 0x0088, // stop walking notify
171 CMSG_PLAYER_CHANGE_ACT = 0x0089, // player action
172 SMSG_BEING_ACTION = 0x008a, // being action notify
173 CMSG_CHAT_MESSAGE = 0x008c, // global chat
174 SMSG_BEING_CHAT = 0x008d, // global chat notify
175 SMSG_PLAYER_CHAT = 0x008e, // global chat result
176 CMSG_NPC_TALK = 0x0090, // npc click
177 SMSG_PLAYER_WARP = 0x0091, // change map notify
178 SMSG_CHANGE_MAP_SERVER = 0x0092, // change map server notify
179 CMSG_NAME_REQUEST = 0x0094, // get being name
180 SMSG_BEING_NAME_RESPONSE = 0x0095, // get being name result
181 CMSG_CHAT_WHISPER = 0x0096, // whisper
182 SMSG_WHISPER = 0x0097, // receive whisper
183 SMSG_WHISPER_RESPONSE = 0x0098, // whisper result
184 SMSG_GM_CHAT = 0x009a, // gm announcement notify
185 CMSG_PLAYER_CHANGE_DIR = 0x009b, // face direction
186 SMSG_BEING_CHANGE_DIRECTION = 0x009c, // face direction notify
187 SMSG_ITEM_VISIBLE = 0x009d, // item visible notify
188 SMSG_ITEM_DROPPED = 0x009e, // item dropped notify
189 CMSG_ITEM_PICKUP = 0x009f, // item pickup
190 SMSG_PLAYER_INVENTORY_ADD = 0x00a0, // inventory add notify
191 SMSG_ITEM_REMOVE = 0x00a1, // flooritem delete notify
192 CMSG_PLAYER_INVENTORY_DROP = 0x00a2, // drop item
193 SMSG_PLAYER_EQUIPMENT = 0x00a4, // inventory equipment notify
194 SMSG_PLAYER_STORAGE_EQUIP = 0x00a6, // storage equipment notify
195 CMSG_PLAYER_INVENTORY_USE = 0x00a7, // use item
196 SMSG_ITEM_USE_RESPONSE = 0x00a8, // use item result
197 CMSG_PLAYER_EQUIP = 0x00a9, // equip item
198 SMSG_PLAYER_EQUIP = 0x00aa, // equip item result
199 CMSG_PLAYER_UNEQUIP = 0x00ab, // unequip item
200 SMSG_PLAYER_UNEQUIP = 0x00ac, // unequip item result
201 SMSG_PLAYER_INVENTORY_REMOVE = 0x00af, // inventory delete notify
202 SMSG_PLAYER_STAT_UPDATE_1 = 0x00b0, // player stat update 1 notify
203 SMSG_PLAYER_STAT_UPDATE_2 = 0x00b1, // player stat update 2 notify
204 CMSG_PLAYER_REBOOT = 0x00b2, // respawn or switch character
205 SMSG_CHAR_SWITCH_RESPONSE = 0x00b3, // character switch success
206 SMSG_NPC_MESSAGE = 0x00b4, // script message notify
207 SMSG_NPC_NEXT = 0x00b5, // (reverse) script next
208 SMSG_NPC_CLOSE = 0x00b6, // (reverse) script close
209 SMSG_NPC_CHOICE = 0x00b7, // (reverse) script menu
210 CMSG_NPC_LIST_CHOICE = 0x00b8, // (reverse) script menu result
211 CMSG_NPC_NEXT_REQUEST = 0x00b9, // (reverse) script next result
212 CMSG_STAT_UPDATE_REQUEST = 0x00bb, // stat increase
213 SMSG_PLAYER_STAT_UPDATE_4 = 0x00bc, // stat increase result
214 SMSG_PLAYER_STAT_UPDATE_5 = 0x00bd, // player stat update 5 notify
215 SMSG_PLAYER_STAT_UPDATE_6 = 0x00be, // stat price notify
216 CMSG_PLAYER_EMOTE = 0x00bf, // emote
217 SMSG_BEING_EMOTION = 0x00c0, // emote notify
218 SMSG_NPC_BUY_SELL_CHOICE = 0x00c4, // npc click result shop
219 CMSG_NPC_BUY_SELL_REQUEST = 0x00c5, // npc shop buy/sell select
220 SMSG_NPC_BUY = 0x00c6, // npc shop buy select result
221 SMSG_NPC_SELL = 0x00c7, // npc shop sell select result
222 CMSG_NPC_BUY_REQUEST = 0x00c8, // npc shop buy
223 CMSG_NPC_SELL_REQUEST = 0x00c9, // npc shop sell
224 SMSG_NPC_BUY_RESPONSE = 0x00ca, // npc shop buy result
225 SMSG_NPC_SELL_RESPONSE = 0x00cb, // npc shop sell result
226 SMSG_ADMIN_KICK_ACK = 0x00cd, // kick result
227 CMSG_TRADE_REQUEST = 0x00e4, // trade please
228 SMSG_TRADE_REQUEST = 0x00e5, // incoming trade request
229 CMSG_TRADE_RESPONSE = 0x00e6, // incoming trade request result
230 SMSG_TRADE_RESPONSE = 0x00e7, // trade please result
231 CMSG_TRADE_ITEM_ADD_REQUEST = 0x00e8, // trade add
232 SMSG_TRADE_ITEM_ADD = 0x00e9, // trade item added notify
233 CMSG_TRADE_ADD_COMPLETE = 0x00eb, // trade lock
234 SMSG_TRADE_OK = 0x00ec, // trade lock notify
235 CMSG_TRADE_CANCEL_REQUEST = 0x00ed, // trade cancel
236 SMSG_TRADE_CANCEL = 0x00ee, // trade cancel notify
237 CMSG_TRADE_OK = 0x00ef, // trade commit
238 SMSG_TRADE_COMPLETE = 0x00f0, // trade complete notify
239 SMSG_PLAYER_STORAGE_STATUS = 0x00f2, // storage size notify
240 CMSG_MOVE_TO_STORAGE = 0x00f3, // storage put
241 SMSG_PLAYER_STORAGE_ADD = 0x00f4, // storage added notify
242 CMSG_MOVE_FROM_STORAGE = 0x00f5, // storage take
243 SMSG_PLAYER_STORAGE_REMOVE = 0x00f6, // storage removed notify
244 CMSG_CLOSE_STORAGE = 0x00f7, // storage close
245 SMSG_PLAYER_STORAGE_CLOSE = 0x00f8, // storage closed notify
246 CMSG_PARTY_CREATE = 0x00f9, // party create
247 SMSG_PARTY_CREATE = 0x00fa, // party create result
248 SMSG_PARTY_INFO = 0x00fb, // party info notify
249 CMSG_PARTY_INVITE = 0x00fc, // party invite
250 SMSG_PARTY_INVITE_RESPONSE = 0x00fd, // party invite result
251 SMSG_PARTY_INVITED = 0x00fe, // (reverse) party invitation
252 CMSG_PARTY_INVITED = 0x00ff, // (reverse) party invitation result
253 CMSG_PARTY_LEAVE = 0x0100, // party leave
254 SMSG_PARTY_SETTINGS = 0x0101, // party option notify
255 CMSG_PARTY_SETTINGS = 0x0102, // party option
256 CMSG_PARTY_KICK = 0x0103, // party kick
257 SMSG_PARTY_LEAVE = 0x0105, // party left notify
258 SMSG_PARTY_UPDATE_HP = 0x0106, // party hp notify
259 SMSG_PARTY_UPDATE_COORDS = 0x0107, // party xy notify
260 CMSG_PARTY_MESSAGE = 0x0108, // party message
261 SMSG_PARTY_MESSAGE = 0x0109, // party message notify
262 SMSG_PLAYER_SKILL_UP = 0x010e, // skill raise result
263 SMSG_PLAYER_SKILLS = 0x010f, // skill info notify
264 SMSG_SKILL_FAILED = 0x0110, // skill failed
265 CMSG_SKILL_LEVELUP_REQUEST = 0x0112, // skill raise
266 CMSG_PLAYER_STOP_ATTACK = 0x0118, // attack stop
267 SMSG_PLAYER_STATUS_CHANGE = 0x0119, // player option notify
268 SMSG_PLAYER_MOVE_TO_ATTACK = 0x0139, // player move attack range notify
269 SMSG_PLAYER_ATTACK_RANGE = 0x013a, // player attack range notify
270 SMSG_PLAYER_ARROW_MESSAGE = 0x013b, // player arrow fail notify
271 SMSG_PLAYER_ARROW_EQUIP = 0x013c, // player arrow equip notify
272 SMSG_PLAYER_STAT_UPDATE_3 = 0x0141, // player stat update 3
273 SMSG_NPC_INT_INPUT = 0x0142, // (reverse) script input integer
274 CMSG_NPC_INT_RESPONSE = 0x0143, // (reverse) script input integer result
275 CMSG_NPC_CLOSE = 0x0146, // (reverse) script close response
276 SMSG_BEING_RESURRECT = 0x0148, // being resurrected notify
277 CMSG_CLIENT_QUIT = 0x018a, // client quit
278 SMSG_MAP_QUIT_RESPONSE = 0x018b, // client quit result
279 SMSG_PLAYER_GUILD_PARTY_INFO = 0x0195, // guild party info notify
280 SMSG_BEING_STATUS_CHANGE = 0x0196, // being status change notify
281 SMSG_PVP_MAP_MODE = 0x0199, // map pvp status
282 SMSG_PVP_SET = 0x019a, // being pvp status
283 SMSG_BEING_SELFEFFECT = 0x019b, // being effect
284 SMSG_TRADE_ITEM_ADD_RESPONSE = 0x01b1, // trade add result
285 SMSG_PLAYER_INVENTORY_USE = 0x01c8, // use item result
286 SMSG_NPC_STR_INPUT = 0x01d4, // (reverse) script input string
287 CMSG_NPC_STR_RESPONSE = 0x01d5, // (reverse) script input string result
288 SMSG_BEING_CHANGE_LOOKS2 = 0x01d7, // being change look
289 SMSG_PLAYER_UPDATE_1 = 0x01d8, // player appear notify
290 SMSG_PLAYER_UPDATE_2 = 0x01d9, // player appear notify
291 SMSG_PLAYER_MOVE = 0x01da, // player move notify
292 SMSG_SKILL_DAMAGE = 0x01de, // deal skill damage
293 SMSG_PLAYER_INVENTORY = 0x01ee, // inventory list notify
294 SMSG_PLAYER_STORAGE_ITEMS = 0x01f0, // storage list notify
295 SMSG_BEING_IP_RESPONSE = 0x020c, // player ip notify
296 CMSG_ONLINE_LIST = 0x0210, // online list request
297 SMSG_ONLINE_LIST = 0x0211, // advanced online list
298 SMSG_NPC_COMMAND = 0x0212, // npc command
299 SMSG_QUEST_SET_VAR = 0x0214, // send quest
300 SMSG_QUEST_PLAYER_VARS = 0x0215, // send all quest
301 SMSG_BEING_MOVE3 = 0x0225, // being move 3
302 SMSG_MAP_MASK = 0x0226, // send map mask
303 SMSG_MAP_MUSIC = 0x0227, // change map music
304 SMSG_NPC_CHANGETITLE = 0x0228, // npc change title
305 SMSG_SCRIPT_MESSAGE = 0x0229, // script message
306 SMSG_PLAYER_CLIENT_COMMAND = 0x0230, // remote client command
307 SMSG_MAP_SET_TILES_TYPE = 0x0231, // send area collision
308 SMSG_PLAYER_HP = 0x0232, // send hp update
309 SMSG_PLAYER_HP_FULL = 0x0233, // send full hp
310
311 // any server messages
312 SMSG_CONNECTION_PROBLEM = 0x0081, // connect foo error
313 CMSG_SERVER_VERSION_REQUEST = 0x7530, // version
314 SMSG_SERVER_VERSION_RESPONSE = 0x7531, // version result
315 CMSG_CLIENT_DISCONNECT = 0x7532, // disconnect
316};
317
318}
Gender
Definition being.h:58
Warning: buffers and other variables are shared, so there can be only one connection active at a time...
@ DEXTERITY
Definition protocol.h:37
@ INTELLIGENCE
Definition protocol.h:36
@ SPRITE_GLOVES
Definition protocol.h:60
@ SPRITE_BASE
Definition protocol.h:51
@ SPRITE_BOTTOMCLOTHES
Definition protocol.h:53
@ SPRITE_WEAPON
Definition protocol.h:61
@ SPRITE_MISC1
Definition protocol.h:55
@ SPRITE_SHOE
Definition protocol.h:52
@ SPRITE_HAT
Definition protocol.h:58
@ SPRITE_VECTOREND
Definition protocol.h:63
@ SPRITE_HAIR
Definition protocol.h:57
@ SPRITE_MISC2
Definition protocol.h:56
@ SPRITE_SHIELD
Definition protocol.h:62
@ SPRITE_CAPE
Definition protocol.h:59
@ SPRITE_TOPCLOTHES
Definition protocol.h:54
@ SMSG_PLAYER_STAT_UPDATE_1
Definition protocol.h:202
@ SMSG_PLAYER_STOP
Definition protocol.h:170
@ SMSG_PARTY_INFO
Definition protocol.h:248
@ SMSG_PARTY_UPDATE_COORDS
Definition protocol.h:259
@ SMSG_PLAYER_STAT_UPDATE_4
Definition protocol.h:213
@ CMSG_TRADE_RESPONSE
Definition protocol.h:229
@ SMSG_PARTY_MESSAGE
Definition protocol.h:261
@ SMSG_PLAYER_ATTACK_RANGE
Definition protocol.h:269
@ CMSG_MOVE_TO_STORAGE
Definition protocol.h:240
@ SMSG_PARTY_INVITED
Definition protocol.h:251
@ SMSG_PVP_MAP_MODE
Definition protocol.h:281
@ SMSG_BEING_CHANGE_DIRECTION
Definition protocol.h:186
@ SMSG_CHAR_PASSWORD_RESPONSE
Definition protocol.h:145
@ SMSG_PARTY_LEAVE
Definition protocol.h:257
@ SMSG_PLAYER_INVENTORY_ADD
Definition protocol.h:190
@ CMSG_NPC_SELL_REQUEST
Definition protocol.h:223
@ SMSG_ITEM_REMOVE
Definition protocol.h:191
@ CMSG_NPC_NEXT_REQUEST
Definition protocol.h:211
@ CMSG_TRADE_ADD_COMPLETE
Definition protocol.h:233
@ CMSG_PLAYER_UNEQUIP
Definition protocol.h:199
@ SMSG_NPC_COMMAND
Definition protocol.h:298
@ CMSG_NPC_STR_RESPONSE
Definition protocol.h:287
@ SMSG_PLAYER_SKILLS
Definition protocol.h:263
@ SMSG_SKILL_FAILED
Definition protocol.h:264
@ SMSG_LOGIN_ERROR
Definition protocol.h:141
@ SMSG_CHAR_SWITCH_RESPONSE
Definition protocol.h:205
@ SMSG_PLAYER_INVENTORY_USE
Definition protocol.h:285
@ CMSG_PARTY_LEAVE
Definition protocol.h:253
@ SMSG_TRADE_COMPLETE
Definition protocol.h:238
@ CMSG_PARTY_INVITED
Definition protocol.h:252
@ SMSG_PLAYER_STORAGE_CLOSE
Definition protocol.h:245
@ SMSG_CONNECTION_PROBLEM
Definition protocol.h:312
@ CMSG_ITEM_PICKUP
Definition protocol.h:189
@ SMSG_NPC_INT_INPUT
Definition protocol.h:273
@ SMSG_PLAYER_MOVE
Definition protocol.h:291
@ SMSG_ONLINE_LIST
Definition protocol.h:297
@ SMSG_BEING_MOVE
Definition protocol.h:162
@ SMSG_UPDATE_HOST
Definition protocol.h:138
@ SMSG_SERVER_PING
Definition protocol.h:166
@ SMSG_BEING_ACTION
Definition protocol.h:172
@ SMSG_PARTY_INVITE_RESPONSE
Definition protocol.h:250
@ SMSG_BEING_RESURRECT
Definition protocol.h:276
@ SMSG_NPC_NEXT
Definition protocol.h:207
@ SMSG_BEING_SELFEFFECT
Definition protocol.h:283
@ CMSG_CHAR_CREATE
Definition protocol.h:148
@ SMSG_TRADE_ITEM_ADD
Definition protocol.h:232
@ SMSG_PLAYER_ARROW_MESSAGE
Definition protocol.h:270
@ SMSG_PLAYER_STAT_UPDATE_5
Definition protocol.h:214
@ CMSG_CLOSE_STORAGE
Definition protocol.h:244
@ SMSG_BEING_NAME_RESPONSE
Definition protocol.h:180
@ SMSG_PLAYER_STORAGE_REMOVE
Definition protocol.h:243
@ CMSG_PLAYER_CHANGE_DIR
Definition protocol.h:185
@ CMSG_PARTY_INVITE
Definition protocol.h:249
@ SMSG_NPC_BUY_RESPONSE
Definition protocol.h:224
@ SMSG_NPC_MESSAGE
Definition protocol.h:206
@ CMSG_PARTY_KICK
Definition protocol.h:256
@ SMSG_PLAYER_WARP
Definition protocol.h:177
@ CMSG_CHAR_DELETE
Definition protocol.h:149
@ SMSG_MAP_QUIT_RESPONSE
Definition protocol.h:278
@ CMSG_PLAYER_REBOOT
Definition protocol.h:204
@ CMSG_TRADE_ITEM_ADD_REQUEST
Definition protocol.h:231
@ CMSG_CLIENT_DISCONNECT
Definition protocol.h:315
@ SMSG_CHAR_DELETE_SUCCEEDED
Definition protocol.h:154
@ CMSG_LOGIN_REGISTER
Definition protocol.h:139
@ CMSG_CHAR_SELECT
Definition protocol.h:147
@ CMSG_STAT_UPDATE_REQUEST
Definition protocol.h:212
@ CMSG_NPC_INT_RESPONSE
Definition protocol.h:274
@ SMSG_PLAYER_INVENTORY_REMOVE
Definition protocol.h:201
@ SMSG_BEING_IP_RESPONSE
Definition protocol.h:295
@ CMSG_PLAYER_INVENTORY_USE
Definition protocol.h:195
@ SMSG_CHAR_CREATE_SUCCEEDED
Definition protocol.h:152
@ SMSG_PLAYER_MOVE_TO_ATTACK
Definition protocol.h:268
@ SMSG_TRADE_OK
Definition protocol.h:234
@ SMSG_CHAR_DELETE_FAILED
Definition protocol.h:155
@ SMSG_PLAYER_EQUIP
Definition protocol.h:198
@ CMSG_ONLINE_LIST
Definition protocol.h:296
@ SMSG_QUEST_PLAYER_VARS
Definition protocol.h:300
@ SMSG_PLAYER_STORAGE_ADD
Definition protocol.h:241
@ SMSG_MAP_MUSIC
Definition protocol.h:303
@ CMSG_SKILL_LEVELUP_REQUEST
Definition protocol.h:265
@ SMSG_NPC_BUY_SELL_CHOICE
Definition protocol.h:218
@ SMSG_NPC_BUY
Definition protocol.h:220
@ SMSG_QUEST_SET_VAR
Definition protocol.h:299
@ SMSG_PLAYER_EQUIPMENT
Definition protocol.h:193
@ SMSG_PLAYER_STORAGE_EQUIP
Definition protocol.h:194
@ SMSG_PLAYER_HP
Definition protocol.h:308
@ SMSG_BEING_EMOTION
Definition protocol.h:217
@ CMSG_NPC_LIST_CHOICE
Definition protocol.h:210
@ SMSG_BEING_CHANGE_LOOKS2
Definition protocol.h:288
@ SMSG_CHAR_LOGIN_ERROR
Definition protocol.h:151
@ SMSG_PLAYER_STAT_UPDATE_6
Definition protocol.h:215
@ SMSG_NPC_STR_INPUT
Definition protocol.h:286
@ SMSG_PLAYER_UPDATE_1
Definition protocol.h:289
@ CMSG_PARTY_MESSAGE
Definition protocol.h:260
@ SMSG_SKILL_DAMAGE
Definition protocol.h:292
@ SMSG_PLAYER_UNEQUIP
Definition protocol.h:200
@ SMSG_PLAYER_INVENTORY
Definition protocol.h:293
@ SMSG_TRADE_RESPONSE
Definition protocol.h:230
@ SMSG_CHAR_CREATE_FAILED
Definition protocol.h:153
@ CMSG_PLAYER_EQUIP
Definition protocol.h:197
@ CMSG_NPC_TALK
Definition protocol.h:176
@ SMSG_BEING_MOVE3
Definition protocol.h:301
@ CMSG_TRADE_OK
Definition protocol.h:237
@ SMSG_PLAYER_SKILL_UP
Definition protocol.h:262
@ SMSG_CHANGE_MAP_SERVER
Definition protocol.h:178
@ CMSG_MAP_PING
Definition protocol.h:165
@ CMSG_PLAYER_CHANGE_DEST
Definition protocol.h:168
@ SMSG_MAP_SET_TILES_TYPE
Definition protocol.h:307
@ SMSG_BEING_SPAWN
Definition protocol.h:163
@ SMSG_CHAR_LOGIN
Definition protocol.h:150
@ CMSG_CHAR_SERVER_CONNECT
Definition protocol.h:146
@ CMSG_NPC_BUY_REQUEST
Definition protocol.h:222
@ SMSG_PLAYER_GUILD_PARTY_INFO
Definition protocol.h:279
@ SMSG_TRADE_REQUEST
Definition protocol.h:228
@ SMSG_TRADE_ITEM_ADD_RESPONSE
Definition protocol.h:284
@ CMSG_PARTY_CREATE
Definition protocol.h:246
@ CMSG_PLAYER_INVENTORY_DROP
Definition protocol.h:192
@ SMSG_PLAYER_UPDATE_2
Definition protocol.h:290
@ SMSG_PARTY_CREATE
Definition protocol.h:247
@ SMSG_PLAYER_STATUS_CHANGE
Definition protocol.h:267
@ SMSG_PARTY_SETTINGS
Definition protocol.h:254
@ SMSG_TRADE_CANCEL
Definition protocol.h:236
@ CMSG_NAME_REQUEST
Definition protocol.h:179
@ SMSG_ITEM_DROPPED
Definition protocol.h:188
@ SMSG_MAP_MASK
Definition protocol.h:302
@ CMSG_CHAT_WHISPER
Definition protocol.h:181
@ SMSG_BEING_STATUS_CHANGE
Definition protocol.h:280
@ SMSG_PLAYER_ARROW_EQUIP
Definition protocol.h:271
@ SMSG_PLAYER_HP_FULL
Definition protocol.h:309
@ SMSG_WHISPER
Definition protocol.h:182
@ CMSG_MAP_SERVER_CONNECT
Definition protocol.h:159
@ SMSG_ADMIN_KICK_ACK
Definition protocol.h:226
@ CMSG_CHAR_PASSWORD_CHANGE
Definition protocol.h:144
@ SMSG_PLAYER_CLIENT_COMMAND
Definition protocol.h:306
@ CMSG_MAP_LOADED
Definition protocol.h:164
@ CMSG_TRADE_CANCEL_REQUEST
Definition protocol.h:235
@ SMSG_NPC_SELL_RESPONSE
Definition protocol.h:225
@ CMSG_PARTY_SETTINGS
Definition protocol.h:255
@ CMSG_MOVE_FROM_STORAGE
Definition protocol.h:242
@ CMSG_CLIENT_QUIT
Definition protocol.h:277
@ SMSG_CHAR_MAP_INFO
Definition protocol.h:156
@ SMSG_PVP_SET
Definition protocol.h:282
@ SMSG_BEING_CHAT
Definition protocol.h:174
@ SMSG_PLAYER_CHAT
Definition protocol.h:175
@ SMSG_SCRIPT_MESSAGE
Definition protocol.h:305
@ CMSG_NPC_CLOSE
Definition protocol.h:275
@ CMSG_SERVER_VERSION_REQUEST
Definition protocol.h:313
@ SMSG_PLAYER_STORAGE_STATUS
Definition protocol.h:239
@ SMSG_PLAYER_STORAGE_ITEMS
Definition protocol.h:294
@ CMSG_PLAYER_STOP_ATTACK
Definition protocol.h:266
@ SMSG_BEING_REMOVE
Definition protocol.h:167
@ SMSG_WALK_RESPONSE
Definition protocol.h:169
@ SMSG_MAP_LOGIN_SUCCESS
Definition protocol.h:160
@ SMSG_BEING_VISIBLE
Definition protocol.h:161
@ CMSG_NPC_BUY_SELL_REQUEST
Definition protocol.h:219
@ SMSG_PARTY_UPDATE_HP
Definition protocol.h:258
@ SMSG_NPC_SELL
Definition protocol.h:221
@ SMSG_ITEM_USE_RESPONSE
Definition protocol.h:196
@ SMSG_NPC_CHOICE
Definition protocol.h:209
@ CMSG_PLAYER_CHANGE_ACT
Definition protocol.h:171
@ SMSG_ITEM_VISIBLE
Definition protocol.h:187
@ SMSG_NPC_CHANGETITLE
Definition protocol.h:304
@ SMSG_GM_CHAT
Definition protocol.h:184
@ SMSG_WHISPER_RESPONSE
Definition protocol.h:183
@ SMSG_SERVER_VERSION_RESPONSE
Definition protocol.h:314
@ CMSG_PLAYER_EMOTE
Definition protocol.h:216
@ CMSG_TRADE_REQUEST
Definition protocol.h:227
@ SMSG_PLAYER_STAT_UPDATE_2
Definition protocol.h:203
@ CMSG_CHAT_MESSAGE
Definition protocol.h:173
@ SMSG_LOGIN_DATA
Definition protocol.h:140
@ SMSG_PLAYER_STAT_UPDATE_3
Definition protocol.h:272
@ SMSG_NPC_CLOSE
Definition protocol.h:208
Gender sexToGender(SEX sex)
Definition protocol.h:106
@ NPC_CLOSE_DIALOG
Definition protocol.h:123
@ NPC_CAMERA_ACTOR
Definition protocol.h:119
@ NPC_REQUEST_LANG
Definition protocol.h:118
@ NPC_REQUEST_ITEMS
Definition protocol.h:130
@ NPC_CAMERA_POS
Definition protocol.h:120
@ NPC_SET_AVATAR_DIRECTION
Definition protocol.h:125
@ NPC_CAMERA_RELATIVE
Definition protocol.h:122
@ NPC_SET_AVATAR_ACTION
Definition protocol.h:126
@ NPC_SHOW_AVATAR
Definition protocol.h:124
@ NPC_REQUEST_ITEM_INDEX
Definition protocol.h:129
@ NPC_CAMERA_RESTORE
Definition protocol.h:121
@ NPC_CLEAR_DIALOG
Definition protocol.h:127
@ NPC_REQUEST_ITEM
Definition protocol.h:128
unsigned char uint8_t
Definition sha256.cpp:81