summaryrefslogtreecommitdiff
path: root/src/net/eathena/protocol.h
blob: da873bda860b008f57bf6df220221ee6f19e4506 (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
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
/*
 *  The ManaPlus Client
 *  Copyright (C) 2004-2009  The Mana World Development Team
 *  Copyright (C) 2009-2010  The Mana Developers
 *  Copyright (C) 2011-2015  The ManaPlus Developers
 *
 *  This file is part of The ManaPlus Client.
 *
 *  This program 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 2 of the License, or
 *  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/>.
 */

#ifndef NET_EATHENA_PROTOCOL_H
#define NET_EATHENA_PROTOCOL_H

/*********************************
 * Packets from server to client *
 *********************************/
#define SMSG_SERVER_VERSION_RESPONSE 0x7531

#define SMSG_SERVER_PING             0x007f /**< Contains server tick */
#define SMSG_CONNECTION_PROBLEM      0x0081
#define SMSG_MAP_NOT_FOUND           0x0840

#define SMSG_LOGIN_DATA              0x0069
#define SMSG_LOGIN_ERROR             0x006a
#define SMSG_LOGIN_ERROR2            0x083e

// unused
#define SMSG_CHAR_LOGIN              0x006b
#define SMSG_CHAR_LOGIN2             0x082d
#define SMSG_CHAR_LOGIN_ERROR        0x006c
#define SMSG_CHAR_CREATE_SUCCEEDED   0x006d
#define SMSG_CHAR_PINCODE_STATUS     0x08b9
#define SMSG_CHAR_CHECK_RENAME       0x028e
#define SMSG_CHAR_RENAME             0x0290
#define SMSG_CHAR_CHANGE_SLOT        0x08d5

#define SMSG_CHAR_CREATE_FAILED      0x006e
#define SMSG_CHAR_DELETE_SUCCEEDED   0x006f
#define SMSG_CHAR_DELETE_FAILED      0x0070
#define SMSG_CHAR_MAP_INFO           0x0071

#define SMSG_CHAR_SWITCH_RESPONSE    0x00b3
#define SMSG_CHANGE_MAP_SERVER       0x0092

#define SMSG_MAP_LOGIN_SUCCESS       0x0a18 /**< Contains starting location */
#define SMSG_MAP_QUIT_RESPONSE       0x018b
#define SMSG_PLAYER_STOP             0x0088 /**< Stop walking, set position */
#define SMSG_PLAYER_MOVE_TO_ATTACK   0x0139 /**< Move to within attack range */
#define SMSG_PLAYER_STAT_UPDATE_1    0x00b0
#define SMSG_PLAYER_STAT_UPDATE_2    0x00b1
#define SMSG_PLAYER_STAT_UPDATE_3    0x0141
#define SMSG_PLAYER_STAT_UPDATE_4    0x00bc
#define SMSG_PLAYER_STAT_UPDATE_5    0x00bd
#define SMSG_PLAYER_STAT_UPDATE_6    0x00be
#define SMSG_PLAYER_GET_EXP          0x07f6
#define SMSG_WHO_ANSWER              0x00c2
#define SMSG_PLAYER_WARP             0x0091 /**< Warp player to map/location */
#define SMSG_PLAYER_INVENTORY        0x0991
#define SMSG_PLAYER_INVENTORY_ADD    0x0990
#define SMSG_PLAYER_INVENTORY_REMOVE 0x00af
#define SMSG_PLAYER_INVENTORY_REMOVE2 0x07fa
#define SMSG_PLAYER_INVENTORY_USE    0x01c8
#define SMSG_PLAYER_IDENTIFY_LIST    0x0177
#define SMSG_PLAYER_IDENTIFIED       0x0179
#define SMSG_PLAYER_CART_ADD         0x01c5
#define SMSG_PLAYER_CART_ITEMS       0x0993
#define SMSG_PLAYER_CART_EQUIP       0x0994
#define SMSG_PLAYER_CART_REMOVE      0x0125
#define SMSG_PLAYER_ITEM_RENTAL_TIME 0x0298
#define SMSG_PLAYER_ITEM_RENTAL_EXPIRED 0x0299
#define SMSG_PLAYER_REFINE           0x0188
#define SMSG_PLAYER_EQUIPMENT        0x0992
#define SMSG_PLAYER_EQUIP            0x0999
#define SMSG_PLAYER_UNEQUIP          0x099a
#define SMSG_PLAYER_UNE_CARD         0x017b
#define SMSG_PLAYER_INSERT_CARD      0x017d
#define SMSG_PLAYER_ATTACK_RANGE     0x013a
#define SMSG_PLAYER_ARROW_EQUIP      0x013c
#define SMSG_PLAYER_ARROW_MESSAGE    0x013b
#define SMSG_PLAYER_SKILLS           0x010f
#define SMSG_PLAYER_ADD_SKILL        0x0111
#define SMSG_PLAYER_DELETE_SKILL     0x0441
#define SMSG_PLAYER_UPDATE_SKILL     0x07e1
#define SMSG_PLAYER_SKILL_UP         0x010e
#define SMSG_PLAYER_HEAL             0x013d
#define SMSG_PLAYER_SKILL_COOLDOWN   0x043d
#define SMSG_PLAYER_SKILL_COOLDOWN_LIST 0x0985
#define SMSG_PLAYER_SKILL_MESSAGE    0x0215
#define SMSG_PLAYER_NOTIFY_MAPINFO   0x0189
#define SMSG_PLAYER_SKILL_PRODUCE_MIX_LIST 0x018d
#define SMSG_PLAYER_SKILL_PRODUCE_EFFECT 0x018f
#define SMSG_SKILL_FAILED            0x0110
#define SMSG_SKILL_DAMAGE            0x01de
#define SMSG_SKILL_AUTO_CAST         0x0147
#define SMSG_SKILL_SNAP              0x08d2
#define SMSG_SKILL_WARP_POINT        0x011c
#define SMSG_SKILL_MEMO_MESSAGE      0x011e
#define SMSG_ITEM_USE_RESPONSE       0x00a8
#define SMSG_ITEM_VISIBLE            0x009d /**< An item is on the floor */
#define SMSG_GRAFFITI_VISIBLE        0x01c9
#define SMSG_ITEM_DROPPED            0x084b /**< An item is dropped */
#define SMSG_ITEM_REMOVE             0x00a1 /**< An item disappers */
#define SMSG_BEING_VISIBLE           0x0915
#define SMSG_BEING_FAKE_NAME         0x0078
#define SMSG_BEING_MOVE              0x0914 /**< A nearby monster moves */
#define SMSG_BEING_SPAWN             0x090f /**< A being spawns nearby */
#define SMSG_BEING_MOVE2             0x0086 /**< New eAthena being moves */
#define SMSG_BEING_MOVE3             0x0b04
#define SMSG_BEING_REMOVE            0x0080
#define SMSG_BEING_REMOVE_SKILL      0x0120
// Same as 0x00c3, but 16 bit ID
#define SMSG_BEING_CHANGE_LOOKS2     0x01d7
#define SMSG_BEING_SELFEFFECT        0x019b
#define SMSG_BEING_SPECIAL_EFFECT    0x01f3
#define SMSG_BEING_SPECIAL_EFFECT_NUM 0x0284
#define SMSG_BEING_SOUND_EFFECT      0x01d3
#define SMSG_BEING_EMOTION           0x00c0
#define SMSG_BEING_ACTION            0x008a /**< Attack, sit, stand up, ... */
#define SMSG_BEING_ACTION2           0x02e1
#define SMSG_BEING_CHAT              0x008d /**< A being talks */
#define SMSG_COLOR_MESSAGE           0x02c1
#define SMSG_FORMAT_MESSAGE          0x0291
#define SMSG_FORMAT_MESSAGE_NUMBER   0x07e2
#define SMSG_FORMAT_MESSAGE_SKILL    0x07e6
#define SMSG_BEING_NAME_RESPONSE     0x0095 /**< Has to be requested */
#define SMSG_BEING_NAME_RESPONSE2    0x0b01 /**< Has to be requested */
#define SMSG_BEING_CHANGE_DIRECTION  0x009c
#define SMSG_BEING_RESURRECT         0x0148
#define SMSG_BEING_STAT_UPDATE_1     0x01ab
#define SMSG_BEING_ATTRS             0x0b0a
#define SMSG_IGNORE_NICK_ACK         0x00d1

#define SMSG_PLAYER_STATUS_CHANGE    0x0229
#define SMSG_PLAYER_STATUS_CHANGE2   0x028a
#define SMSG_PLAYER_STATUS_CHANGE_NO_TICK 0x0196
#define SMSG_PLAYER_GUILD_PARTY_INFO 0x0195
#define SMSG_BEING_STATUS_CHANGE     0x0983
#define SMSG_BEING_STATUS_CHANGE2    0x043f

#define SMSG_NPC_MESSAGE             0x00b4
#define SMSG_NPC_NEXT                0x00b5
#define SMSG_NPC_CLOSE               0x00b6
#define SMSG_NPC_CLOSE_TIMEOUT       0x08d6
#define SMSG_NPC_CHOICE              0x00b7 /**< Display a choice */
#define SMSG_NPC_BUY_SELL_CHOICE     0x00c4
#define SMSG_NPC_BUY                 0x00c6
#define SMSG_NPC_SELL                0x00c7
#define SMSG_NPC_BUY_RESPONSE        0x00ca
#define SMSG_NPC_SELL_RESPONSE       0x00cb
#define SMSG_NPC_INT_INPUT           0x0142 /**< Integer input */
#define SMSG_NPC_STR_INPUT           0x01d4 /**< String input */
#define SMSG_NPC_SHOW_PROGRESS_BAR   0x02f0
#define SMSG_NPC_CHANGETITLE         0x0b06
#define SMSG_NPC_MARKET_OPEN         0x09d5
#define SMSG_NPC_MARKET_BUY_ACK      0x09d7
#define SMSG_NPC_CASH_SHOP_OPEN      0x0287
#define SMSG_NPC_CASH_BUY_ACK        0x0289
#define SMSG_NPC_AREA                0x0b0b

#define SMSG_PLAYER_CHAT             0x008e /**< Player talks */
#define SMSG_WHISPER                 0x0097 /**< Whisper Recieved */
#define SMSG_WHISPER_RESPONSE        0x09df
#define SMSG_GM_CHAT                 0x009a /**< GM announce */
#define SMSG_GM_CHAT2                0x01c3
#define SMSG_WALK_RESPONSE           0x0087

#define SMSG_BUYINGSTORE_OPEN        0x0810
#define SMSG_BUYINGSTORE_CREATE_FAILED 0x0812
#define SMSG_BUYINGSTORE_OWN_ITEMS   0x0813
#define SMSG_BUYINGSTORE_SHOW_BOARD  0x0814
#define SMSG_BUYINGSTORE_HIDE_BOARD  0x0816
#define SMSG_BUYINGSTORE_ITEMS_LIST  0x0818
#define SMSG_BUYINGSTORE_SELL_FAILED 0x081a
#define SMSG_BUYINGSTORE_REPORT      0x081b
#define SMSG_BUYINGSTORE_DELETE_ITEM 0x081c
#define SMSG_BUYINGSTORE_SELLER_SELL_FAILED 0x0824

// Receiving a request to trade
#define SMSG_TRADE_REQUEST           0x01f4
#define SMSG_TRADE_RESPONSE          0x01f5
#define SMSG_TRADE_ITEM_ADD          0x080f
#define SMSG_TRADE_ITEM_ADD_RESPONSE 0x00ea
#define SMSG_TRADE_OK                0x00ec
#define SMSG_TRADE_CANCEL            0x00ee
#define SMSG_TRADE_COMPLETE          0x00f0
#define SMSG_TRADE_UNDO              0x00f1

#define SMSG_PARTY_CREATE            0x00fa
#define SMSG_PARTY_INFO              0x00fb
#define SMSG_PARTY_INVITE_RESPONSE   0x02c5
#define SMSG_PARTY_INVITED           0x02c6
#define SMSG_PARTY_SETTINGS          0x07d8
#define SMSG_PARTY_LEAVE             0x0105
#define SMSG_PARTY_UPDATE_COORDS     0x0107
#define SMSG_PARTY_MESSAGE           0x0109
#define SMSG_PARTY_INVITATION_STATS  0x02c9
#define SMSG_PARTY_MEMBER_INFO       0x01e9
#define SMSG_PARTY_ITEM_PICKUP       0x02b8
#define SMSG_PARTY_LEADER            0x07fc

#define SMSG_PLAYER_STORAGE_ITEMS    0x0995 /**< Item list for storage */
#define SMSG_PLAYER_STORAGE_EQUIP    0x0996 /**< Equipment list for storage */
#define SMSG_PLAYER_STORAGE_STATUS   0x00f2 /**< Slots used and total slots */
#define SMSG_PLAYER_STORAGE_ADD      0x01c4 /**< Add item/equip to storage */
// Remove item/equip from storage
#define SMSG_PLAYER_STORAGE_REMOVE   0x00f6
#define SMSG_PLAYER_STORAGE_CLOSE    0x00f8 /**< Storage access closed */

#define SMSG_ADMIN_KICK_ACK          0x00cd
#define SMSG_ADMIN_GET_LOGIN_ACK     0x01e0
#define SMSG_ADMIN_SET_TILE_TYPE     0x0192
#define SMSG_ADMIN_ACCOUNT_STATS     0x0214

#define SMSG_GUILD_CREATE_RESPONSE   0x0167
#define SMSG_GUILD_POSITION_INFO     0x016c
#define SMSG_GUILD_MEMBER_LOGIN      0x01f2
#define SMSG_GUILD_MASTER_OR_MEMBER  0x014e
#define SMSG_GUILD_BASIC_INFO        0x01b6
#define SMSG_GUILD_ALIANCE_INFO      0x014c
#define SMSG_GUILD_MEMBER_LIST       0x0154
#define SMSG_GUILD_POS_NAME_LIST     0x0166
#define SMSG_GUILD_POS_INFO_LIST     0x0160
#define SMSG_GUILD_POSITION_CHANGED  0x0174
#define SMSG_GUILD_MEMBER_POS_CHANGE 0x0156
#define SMSG_GUILD_EMBLEM            0x0152
#define SMSG_GUILD_SKILL_INFO        0x0162
#define SMSG_GUILD_NOTICE            0x016f
#define SMSG_GUILD_INVITE            0x016a
#define SMSG_GUILD_INVITE_ACK        0x0169
#define SMSG_GUILD_LEAVE             0x015a
#define SMSG_GUILD_EXPULSION         0x0839
#define SMSG_GUILD_EXPULSION_LIST    0x0163
#define SMSG_GUILD_MESSAGE           0x017f
#define SMSG_GUILD_SKILL_UP          0x010e
#define SMSG_GUILD_REQ_ALLIANCE      0x0171
#define SMSG_GUILD_REQ_ALLIANCE_ACK  0x0173
#define SMSG_GUILD_DEL_ALLIANCE      0x0184
#define SMSG_GUILD_OPPOSITION_ACK    0x0181
#define SMSG_GUILD_BROKEN            0x015e
#define SMSG_GUILD_UPDATE_COORDS     0x01eb

#define SMSG_QUEST_ADD               0x02b3
#define SMSG_QUEST_LIST              0x097a
#define SMSG_QUEST_LIST_OBJECTIVES   0x02b2
#define SMSG_QUEST_UPDATE_OBJECTIVES 0x02b5
#define SMSG_QUEST_REMOVE            0x02b4
#define SMSG_QUEST_ACTIVATE          0x02b7
#define SMSG_QUEST_NPC_EFFECT        0x0446

#define SMSG_MVP_ITEM                0x010a
#define SMSG_MVP_EXP                 0x010b
#define SMSG_MVP_EFFECT              0x010c
#define SMSG_MVP_NO_ITEM             0x010d

#define SMSG_RANKS_LIST              0x097d
#define SMSG_MONSTER_HP              0x0977
#define SMSG_MONSTER_INFO            0x018c
#define SMSG_PLAYER_HP               0x080e
#define SMSG_PVP_INFO                0x0210

#define SMSG_CHAT_IGNORE_LIST        0x00d4
#define SMSG_CHAT_CREATE_ACK         0x00d6
#define SMSG_CHAT_DISPLAY            0x00d7
#define SMSG_CHAT_DESTROY            0x00d8
#define SMSG_CHAT_JOIN_FAILED        0x00da
#define SMSG_CHAT_JOIN_ACK           0x00db
#define SMSG_CHAT_ADD_MEMBER         0x00dc
#define SMSG_CHAT_LEAVE              0x00dd
#define SMSG_CHAT_SETTINGS           0x00df
#define SMSG_CHAT_ROLE_CHANGE        0x00e1
#define SMSG_CHAT_JOIN_CHANNEL       0x0b08
#define SMSG_CHAT_TALKIE_BOX         0x0191

#define SMSG_MAIL_OPEN_WINDOW        0x0260

#define SMSG_FAMILY_ASK_FOR_CHILD    0x01f6
#define SMSG_FAMILY_CALL_PARTNER     0x01e6
#define SMSG_FAMILY_DIVORCED         0x0205

#define SMSG_PET_MESSAGE             0x01aa
#define SMSG_PET_ROULETTE            0x01a0
#define SMSG_PET_EGGS_LIST           0x01a6
#define SMSG_PET_DATA                0x01a4
#define SMSG_PET_STATUS              0x01a2
#define SMSG_PET_FOOD                0x01a3

#define SMSG_BANK_STATUS             0x09a6
#define SMSG_BANK_DEPOSIT            0x09a8
#define SMSG_BANK_WITHDRAW           0x09aa

#define SMSG_SOLVE_CHAR_NAME         0x0194
#define SMSG_SKILL_CASTING           0x07fb
#define SMSG_SKILL_CAST_CANCEL       0x01b9
#define SMSG_SKILL_NO_DAMAGE         0x011a
#define SMSG_SKILL_GROUND_NO_DAMAGE  0x0117
#define SMSG_SKILL_ENTRY             0x09ca

#define SMSG_PVP_MAP_MODE            0x0199
#define SMSG_PVP_SET                 0x019a
#define SMSG_MAP_TYPE_PROPERTY2      0x099b
#define SMSG_MAP_TYPE                0x01d6
#define SMSG_IGNORE_ALL_RESPONSE     0x00d2

#define SMSG_NPC_COMMAND             0x0B00

#define SMSG_MAP_ACCOUNT_ID          0x0283
#define SMSG_PLAYER_SHORTCUTS        0x0a00
#define SMSG_PLAYER_SHOW_EQUIP       0x02da
#define SMSG_NPC_CUTIN               0x01b3
#define SMSG_NPC_VIEWPOINT           0x0144

#define SMSG_MERCENARY_UPDATE        0x02a2
#define SMSG_MERCENARY_INFO          0x029b
#define SMSG_MERCENARY_SKILLS        0x029d

#define SMSG_HOMUNCULUS_SKILLS       0x0235
#define SMSG_HOMUNCULUS_DATA         0x0230
#define SMSG_HOMUNCULUS_INFO         0x022e
#define SMSG_HOMUNCULUS_SKILL_UP     0x0239
#define SMSG_HOMUNCULUS_FOOD         0x022f

#define SMSG_FRIENDS_PLAYER_ONLINE   0x0206
#define SMSG_FRIENDS_LIST            0x0201
#define SMSG_FRIENDS_REQUEST_ACK     0x0209

#define SMSG_AUCTION_OPEN_WINDOW     0x025f
#define SMSG_AUCTION_RESULTS         0x0252
#define SMSG_AUCTION_SET_ITEM        0x0256
#define SMSG_AUCTION_MESSAGE         0x0250
#define SMSG_AUCTION_CLOSE           0x025d

#define SMSG_VENDING_OPEN_REQ        0x012d
#define SMSG_VENDING_SHOW_BOARD      0x0131
#define SMSG_VENDING_HIDE_BOARD      0x0132
#define SMSG_VENDING_ITEMS_LIST      0x0800
#define SMSG_VENDING_BUY_ACK         0x0135
#define SMSG_VENDING_OPEN            0x0136
#define SMSG_VENDING_REPORT          0x0137

#define SMSG_ELEMENTAL_UPDATE_STATUS 0x081e
#define SMSG_ELEMENTAL_INFO          0x081d

#define SMSG_UPDATE_HOST             0x0063

#define SMSG_MAP_MASK                0x0b02

#define SMSG_MOB_INFO                0x0b03

#define SMSG_MAP_MUSIC               0x0b05

#define SMSG_CART_INFO               0x0121
#define SMSG_CART_REMOVE             0x012b

#define SMSG_SEARCHSTORE_SEARCH_ACK  0x0836
#define SMSG_SEARCHSTORE_SEARCH_FAILED 0x0837
#define SMSG_SEARCHSTORE_OPEN        0x083a
#define SMSG_SEARCHSTORE_CLICK_ACK   0x083d

#define SMSG_ONLINE_LIST             0x0b10

#define SMSG_MANNER_MESSAGE          0x014a
#define SMSG_CHAT_SILENCE            0x014b

/**********************************
 *  Packets from client to server *
 **********************************/

#define CMSG_SERVER_VERSION_REQUEST  0x7530

#define CMSG_LOGIN_REGISTER          0x0064
#define CMSG_LOGIN_REGISTER2         0x027c
#define CMSG_NAME_REQUEST            0x088a

// Custom change password packet
#define CMSG_CHAR_SERVER_CONNECT     0x0065
#define CMSG_CHAR_SELECT             0x0066
#define CMSG_CHAR_CREATE             0x0970
#define CMSG_CHAR_DELETE             0x0068
#define CMSG_CHAR_CREATE_PIN         0x08ba
#define CMSG_CHAR_CHECK_RENAME       0x08fc
#define CMSG_CHAR_RENAME             0x028f
#define CMSG_CHAR_CHANGE_SLOT        0x08d4

#define CMSG_MAP_SERVER_CONNECT      0x089c
#define CMSG_MAP_PING                0x035f /**< Send to server with tick */
#define CMSG_MAP_LOADED              0x007d
#define CMSG_CLIENT_QUIT             0x018A

#define CMSG_CHAT_MESSAGE            0x00f3
#define CMSG_CHAT_WHISPER            0x0096
#define CMSG_CHAT_WHO                0x00c1
#define CMSG_CHAT_JOIN               0x00d9
#define CMSG_CHAT_JOIN_CHANNEL       0x0b07
#define CMSG_CHAT_PART_CHANNEL       0x0b09
#define CMSG_BATTLE_CHAT_MESSAGE     0x02db

#define CMSG_CREAYE_CHAT_ROOM        0x00d5

#define CMSG_SKILL_LEVELUP_REQUEST   0x0112
#define CMSG_STAT_UPDATE_REQUEST     0x00bb
#define CMSG_SKILL_USE_BEING         0x083c
#define CMSG_SKILL_USE_POSITION      0x0436
// Variant of 0x116 with 80 char string at end (unsure of use)
#define CMSG_SKILL_USE_POSITION_MORE 0x0366
#define CMSG_SKILL_USE_MAP           0x011b

#define CMSG_PLAYER_INVENTORY_USE    0x0439
#define CMSG_PLAYER_INVENTORY_DROP   0x0362
#define CMSG_PLAYER_EQUIP            0x0998
#define CMSG_PLAYER_UNEQUIP          0x00ab
#define CMSG_PLAYER_USE_CARD         0x017a
#define CMSG_PLAYER_INSERT_CARD      0x017c
#define CMSG_PLAYER_VIEW_EQUIPMENT   0x02d6
#define CMSG_PLAYER_SET_EQUIPMENT_VISIBLE 0x02d8
#define CMSG_PLAYER_FAVORITE_ITEM    0x0907

#define CMSG_ITEM_PICKUP             0x07e4
#define CMSG_PLAYER_CHANGE_DIR       0x0202
#define CMSG_PLAYER_CHANGE_DEST      0x0437
#define CMSG_PLAYER_CHANGE_ACT       0x0871
#define CMSG_PLAYER_RESTART          0x00b2
#define CMSG_PLAYER_EMOTE            0x00bf
#define CMSG_PLAYER_STOP_ATTACK      0x0118
#define CMSG_WHO_REQUEST             0x00c1

#define CMSG_NPC_TALK                0x0090
#define CMSG_NPC_NEXT_REQUEST        0x00b9
#define CMSG_NPC_CLOSE               0x0146
#define CMSG_NPC_LIST_CHOICE         0x00b8
#define CMSG_NPC_INT_RESPONSE        0x0143
#define CMSG_NPC_STR_RESPONSE        0x01d5
#define CMSG_NPC_BUY_SELL_REQUEST    0x00c5
#define CMSG_NPC_BUY_REQUEST         0x00c8
#define CMSG_NPC_SELL_REQUEST        0x00c9
#define CMSG_NPC_MARKET_CLOSE        0x09d8
#define CMSG_NPC_MARKET_BUY          0x09d6
#define CMSG_NPC_CASH_SHOP_BUY       0x0288

#define CMSG_TRADE_REQUEST           0x00e4
#define CMSG_TRADE_RESPONSE          0x00e6
#define CMSG_TRADE_ITEM_ADD_REQUEST  0x00e8
#define CMSG_TRADE_CANCEL_REQUEST    0x00ed
#define CMSG_TRADE_ADD_COMPLETE      0x00eb
#define CMSG_TRADE_OK                0x00ef

#define CMSG_PARTY_CREATE            0x00f9
#define CMSG_PARTY_CREATE2           0x01e8
#define CMSG_PARTY_INVITE            0x00fc
#define CMSG_PARTY_INVITE2           0x095d
#define CMSG_PARTY_INVITED           0x00ff
#define CMSG_PARTY_INVITED2          0x02c7
#define CMSG_PARTY_LEAVE             0x0100
#define CMSG_PARTY_SETTINGS          0x0102
#define CMSG_PARTY_KICK              0x0103
#define CMSG_PARTY_MESSAGE           0x0108
#define CMSG_PARTY_CHANGE_LEADER     0x07da
#define CMSG_PARTY_ALLOW_INVITES     0x02c8

#define CMSG_MOVE_TO_STORAGE         0x07ec /** Move item to storage */
#define CSMG_MOVE_FROM_STORAGE       0x085b /** Remove item from storage */
#define CMSG_CLOSE_STORAGE           0x0193 /** Request storage close */

#define CMSG_MOVE_TO_CART            0x0126
#define CMSG_MOVE_FROM_CART          0x0127
#define CMSG_CHANGE_CART             0x01af
#define CMSG_MOVE_FROM_STORAGE_TO_CART 0x0128
#define CMSG_MOVE_FROM_CART_TO_STORAGE 0x0129

#define CMSG_ADMIN_ANNOUNCE          0x0099
#define CMSG_ADMIN_LOCAL_ANNOUNCE    0x019C
#define CMSG_ADMIN_HIDE              0x019D
#define CMSG_ADMIN_KICK              0x00CC
#define CMSG_ADMIN_KICK_ALL          0x00ce
#define CMSG_ADMIN_MUTE              0x0149
#define CMSG_ADMIN_RESET_PLAYER      0x0197
#define CMSG_ADMIN_GOTO              0x01bb
#define CMSG_ADMIN_RECALL            0x01bd
#define CMSG_ADMIN_MUTE              0x0149
#define CMSG_ADMIN_MUTE_NAME         0x0212
#define CMSG_ADMIN_ID_TO_LOGIN       0x01df
#define CMSG_ADMIN_SET_TILE_TYPE     0x0198
#define CMSG_ADMIN_UNEQUIP_ALL       0x07f5
#define CMSG_ADMIN_REQUEST_STATS     0x0213

#define CMSG_GUILD_CHECK_MASTER      0x014d
#define CMSG_GUILD_REQUEST_INFO      0x014f
#define CMSG_GUILD_REQUEST_EMBLEM    0x0151
#define CMSG_GUILD_CHANGE_EMBLEM     0x0153
#define CMSG_GUILD_CHANGE_MEMBER_POS 0x0155
#define CMSG_GUILD_LEAVE             0x0159
#define CMSG_GUILD_EXPULSION         0x015b
#define CMSG_GUILD_BREAK             0x015d
#define CMSG_GUILD_CHANGE_POS_INFO   0x0161
#define CMSG_GUILD_CREATE            0x0165
#define CMSG_GUILD_INVITE            0x0168
#define CMSG_GUILD_INVITE_REPLY      0x016b
#define CMSG_GUILD_CHANGE_NOTICE     0x016e
#define CMSG_GUILD_ALLIANCE_REQUEST  0x0170
#define CMSG_GUILD_ALLIANCE_REPLY    0x0172
#define CMSG_GUILD_MESSAGE           0x017e
#define CMSG_GUILD_OPPOSITION        0x0180
#define CMSG_GUILD_ALLIANCE_DELETE   0x0183

#define CMSG_SOLVE_CHAR_NAME         0x0368
#define CMSG_IGNORE_ALL              0x00d0
#define CMSG_IGNORE_NICK             0x00cf
#define CMSG_REQUEST_IGNORE_LIST     0x00d3
#define CMSG_REQUEST_RANKS           0x097c
#define CMSG_SET_SHORTCUTS           0x02ba
#define CMSG_NPC_COMPLETE_PROGRESS_BAR 0x02f1
#define CMSG_NPC_PRODUCE_MIX         0x018e
#define CMSG_NPC_COOKING             0x025b
#define CMSG_NPC_REPAIR              0x01fd
#define CMSG_NPC_REFINE              0x0222
#define CMSG_NPC_IDENTIFY            0x0178
#define CMSG_NPC_SELECT_ARROW        0x01ae
#define CMSG_NPC_SELECT_AUTO_SPELL   0x01ce

#define CMSG_PLAYER_MAPMOVE          0x0140
#define CMSG_REMOVE_OPTION           0x012a
#define CMSG_PLAYER_SET_MEMO         0x011d

#define CMSG_PET_CATCH               0x019f
#define CMSG_PET_SEND_MESSAGE        0x01a9
#define CMSG_PET_SET_NAME            0x01a5
#define CMSG_PET_SELECT_EGG          0x01a7
#define CMSG_PET_MENU_ACTION         0x01a1
#define CMSG_PET_TALK                0x0b0c
#define CMSG_PET_EMOTE               0x0b0d
#define CMSG_PET_MOVE_TO             0x0b11
#define CMSG_PET_DIRECTION           0x0b12

#define CMSG_MERCENARY_ACTION        0x029f
#define CMSG_HOMUNCULUS_SET_NAME     0x0231
#define CMSG_HOMUNCULUS_MENU         0x0361
#define CMSG_HOMMERC_MOVE_TO_MASTER  0x0234
#define CMSG_HOMMERC_MOVE_TO         0x0232
#define CMSG_HOMMERC_ATTACK          0x0233
#define CMSG_HOMMERC_TALK            0x0b13
#define CMSG_HOMMERC_EMOTE           0x0b14
#define CMSG_HOMMERC_DIRECTION       0x0b15

#define CMSG_DORI_DORI               0x01e7
#define CMSG_EXPLOSION_SPIRITS       0x01ed
#define CMSG_PVP_INFO                0x020f
#define CMSG_PLAYER_AUTO_REVIVE      0x0292
#define CMSG_QUEST_ACTIVATE          0x02b6

#define CMSG_MAIL_REFRESH_INBOX      0x023f
#define CMSG_MAIL_READ_MESSAGE       0x0241
#define CMSG_MAIL_GET_ATTACH         0x0244
#define CMSG_MAIL_DELETE_MESSAGE     0x0243
#define CMSG_MAIL_RETURN_MESSAGE     0x0273
#define CMSG_MAIL_SET_ATTACH         0x0247
#define CMSG_MAIL_RESET_ATTACH       0x0246
#define CMSG_MAIL_SEND               0x0248

#define CMSG_FAMILY_ASK_FOR_CHILD    0x01f9
#define CMSG_FAMILY_ASK_FOR_CHILD_REPLY 0x01f7

#define CMSG_BANK_DEPOSIT            0x09a7
#define CMSG_BANK_WITHDRAW           0x09a9
#define CMSG_BANK_CHECK              0x09ab

#define CMSG_FRIENDS_ADD_PLAYER      0x091a
#define CMSG_FRIENDS_REQUEST_ACK     0x0208
#define CMSG_FRIENDS_DELETE_PLAYER   0x020a

#define CMSG_AUCTION_CANCEL_REG      0x024b
#define CMSG_AUCTION_SET_ITEM        0x024c
#define CMSG_AUCTION_REGISTER        0x024d
#define CMSG_AUCTION_CANCEL          0x024e
#define CMSG_AUCTION_CLOSE           0x025d
#define CMSG_AUCTION_BID             0x024f
#define CMSG_AUCTION_SEARCH          0x0251
#define CMSG_AUCTION_BUY_SELL        0x025c

#define CMSG_VENDING_CLOSE           0x012e
#define CMSG_VENDING_LIST_REQ        0x0130
#define CMSG_VENDING_BUY             0x0134
#define CMSG_VENDING_BUY2            0x0801
#define CMSG_VENDING_CREATE_SHOP     0x01b2

#define CMSG_BUYINGSTORE_CREATE      0x0815
#define CMSG_BUYINGSTORE_CLOSE       0x0817
#define CMSG_BUYINGSTORE_OPEN        0x0360
#define CMSG_BUYINGSTORE_SELL        0x0811

#define CMSG_SEARCHSTORE_SEARCH      0x0819
#define CMSG_SEARCHSTORE_NEXT_PAGE   0x0940
#define CMSG_SEARCHSTORE_CLOSE       0x083b
#define CMSG_SEARCHSTORE_CLICK       0x0835

#define CMSG_SET_STATUS              0x0b0e

#define CMSG_ONLINE_LIST             0x0b0f

#endif  // NET_EATHENA_PROTOCOL_H