Horizon Official Technical Documentation
HandledPackets.hpp
Go to the documentation of this file.
1/***************************************************
2 * _ _ _ *
3 * | | | | (_) *
4 * | |_| | ___ _ __ _ _______ _ __ *
5 * | _ |/ _ \| '__| |_ / _ \| '_ \ *
6 * | | | | (_) | | | |/ / (_) | | | | *
7 * \_| |_/\___/|_| |_/___\___/|_| |_| *
8 ***************************************************
9 * This file is part of Horizon (c).
10 * Copyright (c) 2023 Horizon Dev Team.
11 *
12 * Base Author - Sephus. (sagunxp@gmail.com)
13 *
14 * This library is free software; you can redistribute it and/or modify
15 * it under the terms of the GNU General Public License as published by
16 * the Free Software Foundation, either version 3 of the License, or
17 * (at your option) any later version.
18 *
19 * This library is distributed in the hope that it will be useful,
20 * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 * GNU General Public License for more details.
23 *
24 * You should have received a copy of the GNU General Public License
25 * along with this library. If not, see <http://www.gnu.org/licenses/>.
26 **************************************************/
27
28#ifndef HORIZON_ZONE_HANDLED_PACKETS_HPP
29#define HORIZON_ZONE_HANDLED_PACKETS_HPP
30
34
35namespace Horizon
36{
37namespace Zone
38{
39class ZoneSession;
40enum {
41#if CLIENT_TYPE == 'M' && ( \
42 PACKET_VERSION >= 20220000 \
43 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
44 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000))
46#elif CLIENT_TYPE == 'R' && ( \
47 PACKET_VERSION >= 20210000 \
48 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000))
50#elif CLIENT_TYPE == 'Z' && ( \
51 PACKET_VERSION >= 20220000 \
52 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
53 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000))
55#else
56ID_CZ_ACK_ANSWER_MACRO_DETECTOR = 0x0000 // Disabled
57#endif
58};
64{
65public:
66 CZ_ACK_ANSWER_MACRO_DETECTOR(std::shared_ptr<ZoneSession> s)
68 {}
70
71 void handle(ByteBuffer &&buf);
73
74/* Structure */
75};
76
77enum {
78#if CLIENT_TYPE == 'M' && ( \
79 PACKET_VERSION >= 20220000 \
80 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
81 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
82 || PACKET_VERSION >= 20140702)
83ID_CZ_ACK_AU_BOT = 0x0a2a
84#elif CLIENT_TYPE == 'R' && ( \
85 PACKET_VERSION >= 20210000 \
86 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
87 || PACKET_VERSION >= 20140702)
88ID_CZ_ACK_AU_BOT = 0x0a2a
89#elif CLIENT_TYPE == 'Z' && ( \
90 PACKET_VERSION >= 20220000 \
91 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
92 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
93 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
94ID_CZ_ACK_AU_BOT = 0x0a2a
95#else
96ID_CZ_ACK_AU_BOT = 0x0000 // Disabled
97#endif
98};
103class CZ_ACK_AU_BOT : public Base::NetworkPacket<ZoneSession>
104{
105public:
106 CZ_ACK_AU_BOT(std::shared_ptr<ZoneSession> s)
108 {}
109 virtual ~CZ_ACK_AU_BOT() {}
110
111 void handle(ByteBuffer &&buf);
113
114/* Structure */
115};
116
117enum {
118#if CLIENT_TYPE == 'A' && \
119 PACKET_VERSION >= 20070205
121#elif CLIENT_TYPE == 'M' && ( \
122 PACKET_VERSION >= 20220000 \
123 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
124 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
125 || PACKET_VERSION >= 20070205)
127#elif CLIENT_TYPE == 'R' && ( \
128 PACKET_VERSION >= 20210000 \
129 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
130 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
132#elif CLIENT_TYPE == 'S' && \
133 PACKET_VERSION >= 20070205
135#elif CLIENT_TYPE == 'Z' && ( \
136 PACKET_VERSION >= 20220000 \
137 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
138 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
139 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
141#else
142ID_CZ_ACK_CASH_PASSWORD = 0x0000 // Disabled
143#endif
149class CZ_ACK_CASH_PASSWORD : public Base::NetworkPacket<ZoneSession>
150{
151public:
152 CZ_ACK_CASH_PASSWORD(std::shared_ptr<ZoneSession> s)
154 {}
156
157 void handle(ByteBuffer &&buf);
159
160/* Structure */
161};
162
163enum {
164#if CLIENT_TYPE == 'A' && \
165 PACKET_VERSION >= 20040000
167#elif CLIENT_TYPE == 'M' && ( \
168 PACKET_VERSION >= 20220000 \
169 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
170 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
171 || (PACKET_VERSION >= 20030000 && PACKET_VERSION < 20200000))
173#elif CLIENT_TYPE == 'R' && ( \
174 PACKET_VERSION >= 20210000 \
175 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
176 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
178#elif CLIENT_TYPE == 'S' && \
179 PACKET_VERSION >= 20030000
181#elif CLIENT_TYPE == 'Z' && ( \
182 PACKET_VERSION >= 20220000 \
183 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
184 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
185 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
187#else
188ID_CZ_ACK_EXCHANGE_ITEM = 0x0000 // Disabled
189#endif
195class CZ_ACK_EXCHANGE_ITEM : public Base::NetworkPacket<ZoneSession>
196{
197public:
198 CZ_ACK_EXCHANGE_ITEM(std::shared_ptr<ZoneSession> s)
200 {}
202
203 void handle(ByteBuffer &&buf);
205
206/* Structure */
207 int8_t _result{ 0 };
208};
209
210enum {
211#if CLIENT_TYPE == 'A' && \
212 PACKET_VERSION >= 20050404
214#elif CLIENT_TYPE == 'M' && ( \
215 PACKET_VERSION >= 20220000 \
216 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
217 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
218 || PACKET_VERSION >= 20050404)
220#elif CLIENT_TYPE == 'R' && ( \
221 PACKET_VERSION >= 20210000 \
222 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
223 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
225#elif CLIENT_TYPE == 'S' && \
226 PACKET_VERSION >= 20050404
228#elif CLIENT_TYPE == 'Z' && ( \
229 PACKET_VERSION >= 20220000 \
230 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
231 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
232 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
234#else
235ID_CZ_ACK_GAME_GUARD = 0x0000 // Disabled
236#endif
242class CZ_ACK_GAME_GUARD : public Base::NetworkPacket<ZoneSession>
243{
244public:
245 CZ_ACK_GAME_GUARD(std::shared_ptr<ZoneSession> s)
247 {}
249
250 void handle(ByteBuffer &&buf);
252
253/* Structure */
254};
255
256enum {
257#if CLIENT_TYPE == 'A' && \
258 PACKET_VERSION >= 20040000
260#elif CLIENT_TYPE == 'M' && ( \
261 PACKET_VERSION >= 20220000 \
262 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
263 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
264 || PACKET_VERSION >= 20040705)
266#elif CLIENT_TYPE == 'R' && ( \
267 PACKET_VERSION >= 20210000 \
268 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
269 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
271#elif CLIENT_TYPE == 'S' && \
272 PACKET_VERSION >= 20040705
274#elif CLIENT_TYPE == 'Z' && ( \
275 PACKET_VERSION >= 20220000 \
276 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
277 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
278 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
280#else
281ID_CZ_ACK_REQ_ADD_FRIENDS = 0x0000 // Disabled
282#endif
289{
290public:
291 CZ_ACK_REQ_ADD_FRIENDS(std::shared_ptr<ZoneSession> s)
293 {}
295
296 void handle(ByteBuffer &&buf);
298
299/* Structure */
302 int _result{ 0 };
303};
304
305enum {
306#if CLIENT_TYPE == 'A' && \
307 PACKET_VERSION >= 20040000
309#elif CLIENT_TYPE == 'M' && ( \
310 PACKET_VERSION >= 20220000 \
311 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
312 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
313 || (PACKET_VERSION >= 20030000 && PACKET_VERSION < 20200000))
315#elif CLIENT_TYPE == 'R' && ( \
316 PACKET_VERSION >= 20210000 \
317 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
318 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
320#elif CLIENT_TYPE == 'S' && \
321 PACKET_VERSION >= 20030000
323#elif CLIENT_TYPE == 'Z' && ( \
324 PACKET_VERSION >= 20220000 \
325 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
326 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
327 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
329#else
330ID_CZ_ACK_SELECT_DEALTYPE = 0x0000 // Disabled
331#endif
338{
339public:
340 CZ_ACK_SELECT_DEALTYPE(std::shared_ptr<ZoneSession> s)
342 {}
344
345 void handle(ByteBuffer &&buf);
347
348/* Structure */
349 int _guid{ 0 };
350 int8_t _type{ 0 };
351};
352
353enum {
354#if CLIENT_TYPE == 'A' && \
355 PACKET_VERSION >= 20050608
357#elif CLIENT_TYPE == 'M' && ( \
358 PACKET_VERSION >= 20220000 \
359 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
360 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
361 || PACKET_VERSION >= 20130116)
363#elif CLIENT_TYPE == 'M' && ( \
364 PACKET_VERSION == 20190821 \
365 || PACKET_VERSION == 20190807 \
366 || PACKET_VERSION == 20190802 \
367 || PACKET_VERSION == 20190731 \
368 || PACKET_VERSION == 20190724 \
369 || PACKET_VERSION == 20190717 \
370 || PACKET_VERSION == 20190703 \
371 || PACKET_VERSION == 20190605 \
372 || PACKET_VERSION == 20190530 \
373 || PACKET_VERSION == 20190523 \
374 || PACKET_VERSION == 20190522 \
375 || PACKET_VERSION == 20190508 \
376 || PACKET_VERSION == 20190418 \
377 || PACKET_VERSION == 20190417 \
378 || PACKET_VERSION == 20190327 \
379 || PACKET_VERSION == 20190322 \
380 || PACKET_VERSION == 20190320 \
381 || PACKET_VERSION == 20190313 \
382 || PACKET_VERSION == 20190306 \
383 || PACKET_VERSION == 20190228 \
384 || PACKET_VERSION == 20190123 \
385 || PACKET_VERSION == 20190116 \
386 || (PACKET_VERSION >= 20190000 && PACKET_VERSION < 20190116) \
387 || PACKET_VERSION == 20181226 \
388 || PACKET_VERSION == 20181219 \
389 || PACKET_VERSION == 20181212 \
390 || PACKET_VERSION == 20181205 \
391 || PACKET_VERSION == 20181128 \
392 || PACKET_VERSION == 20181114 \
393 || PACKET_VERSION == 20181107 \
394 || PACKET_VERSION == 20181024 \
395 || PACKET_VERSION == 20180919 \
396 || PACKET_VERSION == 20180831 \
397 || PACKET_VERSION == 20180822 \
398 || PACKET_VERSION >= 20180808 \
399 || PACKET_VERSION >= 20180718 \
400 || PACKET_VERSION >= 20180704 \
401 || PACKET_VERSION >= 20180621 \
402 || PACKET_VERSION >= 20180620 \
403 || PACKET_VERSION >= 20180530 \
404 || PACKET_VERSION >= 20180523 \
405 || PACKET_VERSION >= 20180516 \
406 || PACKET_VERSION >= 20180509 \
407 || PACKET_VERSION >= 20180502 \
408 || PACKET_VERSION >= 20180425 \
409 || PACKET_VERSION >= 20180404 \
410 || PACKET_VERSION >= 20180328 \
411 || PACKET_VERSION >= 20180321 \
412 || PACKET_VERSION >= 20180315 \
413 || PACKET_VERSION >= 20180124 \
414 || PACKET_VERSION >= 20180117 \
415 || PACKET_VERSION >= 20180103 \
416 || PACKET_VERSION >= 20171101 \
417 || PACKET_VERSION >= 20171025 \
418 || PACKET_VERSION >= 20171018 \
419 || PACKET_VERSION >= 20171011 \
420 || PACKET_VERSION >= 20170719 \
421 || PACKET_VERSION >= 20170712 \
422 || PACKET_VERSION >= 20170705 \
423 || PACKET_VERSION >= 20170628 \
424 || PACKET_VERSION >= 20170621 \
425 || PACKET_VERSION >= 20170614 \
426 || PACKET_VERSION >= 20170419 \
427 || PACKET_VERSION >= 20170412 \
428 || PACKET_VERSION >= 20170329 \
429 || PACKET_VERSION >= 20170322 \
430 || PACKET_VERSION >= 20170315 \
431 || PACKET_VERSION >= 20170308 \
432 || PACKET_VERSION >= 20170104 \
433 || PACKET_VERSION >= 20161214 \
434 || PACKET_VERSION >= 20161207 \
435 || PACKET_VERSION >= 20160928 \
436 || PACKET_VERSION >= 20160921 \
437 || PACKET_VERSION >= 20160913 \
438 || PACKET_VERSION >= 20160907 \
439 || PACKET_VERSION >= 20160831 \
440 || PACKET_VERSION >= 20160824 \
441 || PACKET_VERSION >= 20160803 \
442 || PACKET_VERSION >= 20160727 \
443 || PACKET_VERSION >= 20160629 \
444 || PACKET_VERSION >= 20160622 \
445 || PACKET_VERSION >= 20160504 \
446 || PACKET_VERSION >= 20160427 \
447 || PACKET_VERSION >= 20160323 \
448 || PACKET_VERSION >= 20160316 \
449 || PACKET_VERSION >= 20160309 \
450 || PACKET_VERSION >= 20160217 \
451 || PACKET_VERSION >= 20160211 \
452 || PACKET_VERSION >= 20160127 \
453 || PACKET_VERSION >= 20160120 \
454 || PACKET_VERSION >= 20160113 \
455 || PACKET_VERSION >= 20160106 \
456 || PACKET_VERSION >= 20151209 \
457 || PACKET_VERSION >= 20151202 \
458 || PACKET_VERSION >= 20151111 \
459 || PACKET_VERSION >= 20151104 \
460 || PACKET_VERSION >= 20151028 \
461 || PACKET_VERSION >= 20151021 \
462 || PACKET_VERSION >= 20151007 \
463 || PACKET_VERSION >= 20151001 \
464 || PACKET_VERSION >= 20150916 \
465 || PACKET_VERSION >= 20150909 \
466 || PACKET_VERSION >= 20150902 \
467 || PACKET_VERSION >= 20150819 \
468 || PACKET_VERSION >= 20150805 \
469 || PACKET_VERSION >= 20150729 \
470 || PACKET_VERSION >= 20150722 \
471 || PACKET_VERSION >= 20150715 \
472 || PACKET_VERSION >= 20150708 \
473 || PACKET_VERSION >= 20150701 \
474 || PACKET_VERSION >= 20150603 \
475 || PACKET_VERSION >= 20150527 \
476 || PACKET_VERSION >= 20150513 \
477 || PACKET_VERSION >= 20150507 \
478 || PACKET_VERSION >= 20150429 \
479 || PACKET_VERSION >= 20150422 \
480 || PACKET_VERSION >= 20150325 \
481 || PACKET_VERSION >= 20150318 \
482 || PACKET_VERSION >= 20150311 \
483 || PACKET_VERSION >= 20150225 \
484 || PACKET_VERSION >= 20150217 \
485 || PACKET_VERSION >= 20150211 \
486 || PACKET_VERSION >= 20150204 \
487 || PACKET_VERSION >= 20150128 \
488 || PACKET_VERSION >= 20150107 \
489 || PACKET_VERSION >= 20141231 \
490 || PACKET_VERSION >= 20141105 \
491 || PACKET_VERSION >= 20141029 \
492 || PACKET_VERSION >= 20141022 \
493 || PACKET_VERSION >= 20141015 \
494 || PACKET_VERSION >= 20141008 \
495 || PACKET_VERSION >= 20140903 \
496 || PACKET_VERSION >= 20140827 \
497 || PACKET_VERSION >= 20140813 \
498 || PACKET_VERSION >= 20140806 \
499 || PACKET_VERSION >= 20140709 \
500 || PACKET_VERSION >= 20140702 \
501 || PACKET_VERSION >= 20140625 \
502 || PACKET_VERSION >= 20140611 \
503 || PACKET_VERSION >= 20140508 \
504 || PACKET_VERSION >= 20140430 \
505 || PACKET_VERSION >= 20140423 \
506 || PACKET_VERSION >= 20140416 \
507 || PACKET_VERSION >= 20140409 \
508 || PACKET_VERSION >= 20140402 \
509 || PACKET_VERSION >= 20140319 \
510 || PACKET_VERSION >= 20140312 \
511 || PACKET_VERSION >= 20140212 \
512 || PACKET_VERSION >= 20140205 \
513 || PACKET_VERSION >= 20140115 \
514 || PACKET_VERSION >= 20140108 \
515 || PACKET_VERSION >= 20131230 \
516 || PACKET_VERSION >= 20131223 \
517 || PACKET_VERSION >= 20131008 \
518 || PACKET_VERSION >= 20131002 \
519 || PACKET_VERSION >= 20130904 \
520 || PACKET_VERSION >= 20130828 \
521 || PACKET_VERSION >= 20130814 \
522 || PACKET_VERSION >= 20130807 \
523 || PACKET_VERSION >= 20130717 \
524 || PACKET_VERSION >= 20130710 \
525 || PACKET_VERSION >= 20130612 \
526 || PACKET_VERSION >= 20130605 \
527 || PACKET_VERSION >= 20130529 \
528 || PACKET_VERSION >= 20130502 \
529 || PACKET_VERSION >= 20130424 \
530 || PACKET_VERSION >= 20130410 \
531 || PACKET_VERSION >= 20130403 \
532 || PACKET_VERSION >= 20130306 \
533 || PACKET_VERSION >= 20130220 \
534 || PACKET_VERSION >= 20130215 \
535 || PACKET_VERSION >= 20130109 \
536 || PACKET_VERSION >= 20130103 \
537 || PACKET_VERSION >= 20121024 \
538 || PACKET_VERSION >= 20121017 \
539 || PACKET_VERSION >= 20120925 \
540 || PACKET_VERSION >= 20120919 \
541 || PACKET_VERSION >= 20120724 \
542 || PACKET_VERSION >= 20120716 \
543 || PACKET_VERSION >= 20120626 \
544 || PACKET_VERSION >= 20120612 \
545 || PACKET_VERSION >= 20120529 \
546 || PACKET_VERSION >= 20120522 \
547 || PACKET_VERSION >= 20120515 \
548 || PACKET_VERSION >= 20120508 \
549 || PACKET_VERSION >= 20120503 \
550 || PACKET_VERSION >= 20120424 \
551 || PACKET_VERSION >= 20120417 \
552 || PACKET_VERSION >= 20120214 \
553 || PACKET_VERSION >= 20120207 \
554 || PACKET_VERSION >= 20120120 \
555 || PACKET_VERSION >= 20120117 \
556 || PACKET_VERSION >= 20120110 \
557 || PACKET_VERSION >= 20120103 \
558 || PACKET_VERSION >= 20111220 \
559 || PACKET_VERSION >= 20111213 \
560 || PACKET_VERSION >= 20111207 \
561 || PACKET_VERSION >= 20111114 \
562 || PACKET_VERSION >= 20111108 \
563 || PACKET_VERSION >= 20111101 \
564 || PACKET_VERSION >= 20111025 \
565 || PACKET_VERSION >= 20111010 \
566 || PACKET_VERSION >= 20111004 \
567 || PACKET_VERSION >= 20110928 \
568 || PACKET_VERSION >= 20110920 \
569 || PACKET_VERSION >= 20110906 \
570 || PACKET_VERSION >= 20110831 \
571 || PACKET_VERSION >= 20110823 \
572 || PACKET_VERSION >= 20110816 \
573 || PACKET_VERSION >= 20110726 \
574 || PACKET_VERSION >= 20110718 \
575 || PACKET_VERSION >= 20110705 \
576 || PACKET_VERSION >= 20110627 \
577 || PACKET_VERSION >= 20110620 \
578 || PACKET_VERSION >= 20110531 \
579 || PACKET_VERSION >= 20110523 \
580 || PACKET_VERSION >= 20110517 \
581 || PACKET_VERSION >= 20110511 \
582 || PACKET_VERSION >= 20110426 \
583 || PACKET_VERSION >= 20110419 \
584 || PACKET_VERSION >= 20110405 \
585 || PACKET_VERSION >= 20110329 \
586 || PACKET_VERSION >= 20110308 \
587 || PACKET_VERSION >= 20110228 \
588 || PACKET_VERSION >= 20110222 \
589 || PACKET_VERSION >= 20110215 \
590 || PACKET_VERSION >= 20110208 \
591 || PACKET_VERSION >= 20110131 \
592 || PACKET_VERSION >= 20110125 \
593 || PACKET_VERSION >= 20110118 \
594 || PACKET_VERSION >= 20110111 \
595 || PACKET_VERSION >= 20110104 \
596 || PACKET_VERSION >= 20101228 \
597 || PACKET_VERSION >= 20101221 \
598 || PACKET_VERSION >= 20101214 \
599 || PACKET_VERSION >= 20101207 \
600 || PACKET_VERSION >= 20101123 \
601 || PACKET_VERSION >= 20100105 \
602 || (PACKET_VERSION >= 20090000 && PACKET_VERSION < 20100105) \
603 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20090000) \
604 || (PACKET_VERSION >= 20070000 && PACKET_VERSION < 20080000) \
605 || (PACKET_VERSION >= 20060000 && PACKET_VERSION < 20070000) \
606 || PACKET_VERSION >= 20050608)
608#elif CLIENT_TYPE == 'M' && ( \
609 PACKET_VERSION == 20131108 \
610 || PACKET_VERSION == 20131107 \
611 || PACKET_VERSION == 20130107)
613#elif CLIENT_TYPE == 'M' && \
614 PACKET_VERSION >= 20120926
616#elif CLIENT_TYPE == 'M' && \
617 PACKET_VERSION >= 20120712
619#elif CLIENT_TYPE == 'M' && ( \
620 PACKET_VERSION == 20140613 \
621 || PACKET_VERSION == 20140612)
623#elif CLIENT_TYPE == 'M' && \
624 PACKET_VERSION >= 20140814
626#elif CLIENT_TYPE == 'M' && \
627 PACKET_VERSION >= 20141016
629#elif CLIENT_TYPE == 'M' && ( \
630 PACKET_VERSION == 20150130 \
631 || PACKET_VERSION == 20150129)
633#elif CLIENT_TYPE == 'M' && \
634 PACKET_VERSION >= 20150226
636#elif CLIENT_TYPE == 'M' && \
637 PACKET_VERSION >= 20150618
639#elif CLIENT_TYPE == 'M' && \
640 PACKET_VERSION >= 20150702
642#elif CLIENT_TYPE == 'M' && \
643 PACKET_VERSION >= 20150812
645#elif CLIENT_TYPE == 'M' && \
646 PACKET_VERSION >= 20151022
648#elif CLIENT_TYPE == 'M' && \
649 PACKET_VERSION >= 20151029
651#elif CLIENT_TYPE == 'M' && \
652 PACKET_VERSION >= 20160318
654#elif CLIENT_TYPE == 'M' && \
655 PACKET_VERSION >= 20160526
657#elif CLIENT_TYPE == 'M' && \
658 PACKET_VERSION >= 20160609
660#elif CLIENT_TYPE == 'M' && \
661 PACKET_VERSION >= 20160630
663#elif CLIENT_TYPE == 'M' && \
664 PACKET_VERSION >= 20161103
666#elif CLIENT_TYPE == 'M' && \
667 PACKET_VERSION >= 20180131
669#elif CLIENT_TYPE == 'M' && \
670 PACKET_VERSION >= 20180309
672#elif CLIENT_TYPE == 'R' && \
673 PACKET_VERSION >= 20120712
675#elif CLIENT_TYPE == 'R' && ( \
676 PACKET_VERSION == 20190821 \
677 || PACKET_VERSION == 20190807 \
678 || PACKET_VERSION == 20190802 \
679 || PACKET_VERSION == 20190731 \
680 || PACKET_VERSION == 20190724 \
681 || PACKET_VERSION == 20190717 \
682 || PACKET_VERSION == 20190703 \
683 || PACKET_VERSION == 20190626 \
684 || PACKET_VERSION == 20190605 \
685 || PACKET_VERSION == 20190530 \
686 || PACKET_VERSION == 20190522 \
687 || PACKET_VERSION == 20190508 \
688 || PACKET_VERSION == 20190418 \
689 || PACKET_VERSION == 20190417 \
690 || PACKET_VERSION == 20190327 \
691 || PACKET_VERSION == 20190322 \
692 || PACKET_VERSION == 20190320 \
693 || PACKET_VERSION == 20190306 \
694 || PACKET_VERSION == 20190228 \
695 || PACKET_VERSION == 20190123 \
696 || PACKET_VERSION == 20190116 \
697 || (PACKET_VERSION >= 20190000 && PACKET_VERSION < 20190116) \
698 || PACKET_VERSION == 20181226 \
699 || PACKET_VERSION == 20181219 \
700 || PACKET_VERSION == 20181212 \
701 || PACKET_VERSION == 20181205 \
702 || PACKET_VERSION == 20181128 \
703 || PACKET_VERSION == 20181121 \
704 || PACKET_VERSION == 20181114 \
705 || PACKET_VERSION == 20181107 \
706 || PACKET_VERSION == 20180822 \
707 || PACKET_VERSION >= 20180808 \
708 || PACKET_VERSION >= 20180718 \
709 || PACKET_VERSION >= 20180711 \
710 || PACKET_VERSION >= 20180621 \
711 || PACKET_VERSION >= 20180620 \
712 || PACKET_VERSION >= 20180612 \
713 || PACKET_VERSION >= 20180530 \
714 || PACKET_VERSION >= 20180523 \
715 || PACKET_VERSION >= 20180516 \
716 || PACKET_VERSION >= 20180502 \
717 || PACKET_VERSION >= 20180425 \
718 || PACKET_VERSION >= 20180404 \
719 || PACKET_VERSION >= 20180328 \
720 || PACKET_VERSION >= 20180321 \
721 || PACKET_VERSION >= 20180124 \
722 || PACKET_VERSION >= 20180117 \
723 || PACKET_VERSION >= 20180103 \
724 || PACKET_VERSION >= 20171101 \
725 || PACKET_VERSION >= 20171025 \
726 || PACKET_VERSION >= 20171018 \
727 || PACKET_VERSION >= 20171011 \
728 || PACKET_VERSION >= 20170719 \
729 || PACKET_VERSION >= 20170712 \
730 || PACKET_VERSION >= 20170705 \
731 || PACKET_VERSION >= 20170628 \
732 || PACKET_VERSION >= 20170621 \
733 || PACKET_VERSION >= 20170614 \
734 || PACKET_VERSION >= 20170419 \
735 || PACKET_VERSION >= 20170412 \
736 || PACKET_VERSION >= 20170329 \
737 || PACKET_VERSION >= 20170322 \
738 || PACKET_VERSION >= 20170315 \
739 || PACKET_VERSION >= 20170308 \
740 || PACKET_VERSION >= 20170104 \
741 || PACKET_VERSION >= 20161214 \
742 || PACKET_VERSION >= 20161207 \
743 || PACKET_VERSION >= 20160928 \
744 || PACKET_VERSION >= 20160921 \
745 || PACKET_VERSION >= 20160913 \
746 || PACKET_VERSION >= 20160907 \
747 || PACKET_VERSION >= 20160831 \
748 || PACKET_VERSION >= 20160824 \
749 || PACKET_VERSION >= 20160803 \
750 || PACKET_VERSION >= 20160727 \
751 || PACKET_VERSION >= 20160629 \
752 || PACKET_VERSION >= 20160622 \
753 || PACKET_VERSION >= 20160504 \
754 || PACKET_VERSION >= 20160427 \
755 || PACKET_VERSION >= 20160323 \
756 || PACKET_VERSION >= 20160316 \
757 || PACKET_VERSION >= 20160309 \
758 || PACKET_VERSION >= 20160217 \
759 || PACKET_VERSION >= 20160211 \
760 || PACKET_VERSION >= 20160127 \
761 || PACKET_VERSION >= 20160120 \
762 || PACKET_VERSION >= 20160113 \
763 || PACKET_VERSION >= 20160106 \
764 || PACKET_VERSION >= 20151209 \
765 || PACKET_VERSION >= 20151202 \
766 || PACKET_VERSION >= 20151111 \
767 || PACKET_VERSION >= 20151104 \
768 || PACKET_VERSION >= 20151028 \
769 || PACKET_VERSION >= 20151021 \
770 || PACKET_VERSION >= 20151007 \
771 || PACKET_VERSION >= 20151001 \
772 || PACKET_VERSION >= 20150916 \
773 || PACKET_VERSION >= 20150909 \
774 || PACKET_VERSION >= 20150902 \
775 || PACKET_VERSION >= 20150819 \
776 || PACKET_VERSION >= 20150805 \
777 || PACKET_VERSION >= 20150729 \
778 || PACKET_VERSION >= 20150722 \
779 || PACKET_VERSION >= 20150715 \
780 || PACKET_VERSION >= 20150708 \
781 || PACKET_VERSION >= 20150701 \
782 || PACKET_VERSION >= 20150603 \
783 || PACKET_VERSION >= 20150527 \
784 || PACKET_VERSION >= 20150513 \
785 || PACKET_VERSION >= 20150507 \
786 || PACKET_VERSION >= 20150429 \
787 || PACKET_VERSION >= 20150422 \
788 || PACKET_VERSION >= 20150325 \
789 || PACKET_VERSION >= 20150318 \
790 || PACKET_VERSION >= 20150311 \
791 || PACKET_VERSION >= 20150225 \
792 || PACKET_VERSION >= 20150217 \
793 || PACKET_VERSION >= 20150211 \
794 || PACKET_VERSION >= 20150204 \
795 || PACKET_VERSION >= 20150128 \
796 || PACKET_VERSION >= 20150107 \
797 || PACKET_VERSION >= 20141231 \
798 || PACKET_VERSION >= 20141105 \
799 || PACKET_VERSION >= 20141029 \
800 || PACKET_VERSION >= 20141022 \
801 || PACKET_VERSION >= 20141015 \
802 || PACKET_VERSION >= 20141008 \
803 || PACKET_VERSION >= 20140903 \
804 || PACKET_VERSION >= 20140827 \
805 || PACKET_VERSION >= 20140813 \
806 || PACKET_VERSION >= 20140806 \
807 || PACKET_VERSION >= 20140709 \
808 || PACKET_VERSION >= 20140702 \
809 || PACKET_VERSION >= 20140625 \
810 || PACKET_VERSION >= 20140508 \
811 || PACKET_VERSION >= 20140430 \
812 || PACKET_VERSION >= 20140423 \
813 || PACKET_VERSION >= 20140416 \
814 || PACKET_VERSION >= 20140409 \
815 || PACKET_VERSION >= 20140402 \
816 || PACKET_VERSION >= 20140319 \
817 || PACKET_VERSION >= 20140312 \
818 || PACKET_VERSION >= 20140212 \
819 || PACKET_VERSION >= 20140205 \
820 || PACKET_VERSION >= 20140115 \
821 || PACKET_VERSION >= 20140108 \
822 || PACKET_VERSION >= 20131230 \
823 || PACKET_VERSION >= 20131223 \
824 || PACKET_VERSION >= 20131008 \
825 || PACKET_VERSION >= 20131002 \
826 || PACKET_VERSION >= 20130904 \
827 || PACKET_VERSION >= 20130828 \
828 || PACKET_VERSION >= 20130814 \
829 || PACKET_VERSION >= 20130807 \
830 || PACKET_VERSION >= 20130717 \
831 || PACKET_VERSION >= 20130710 \
832 || PACKET_VERSION >= 20130612 \
833 || PACKET_VERSION >= 20130605 \
834 || PACKET_VERSION >= 20130529 \
835 || PACKET_VERSION >= 20130502 \
836 || PACKET_VERSION >= 20130424 \
837 || PACKET_VERSION >= 20130410 \
838 || PACKET_VERSION >= 20130403 \
839 || PACKET_VERSION >= 20130306 \
840 || PACKET_VERSION >= 20130220 \
841 || PACKET_VERSION >= 20130215 \
842 || PACKET_VERSION >= 20130109 \
843 || PACKET_VERSION >= 20130103 \
844 || PACKET_VERSION >= 20121024 \
845 || PACKET_VERSION >= 20121017 \
846 || PACKET_VERSION >= 20120925 \
847 || PACKET_VERSION >= 20120919 \
848 || PACKET_VERSION >= 20120724 \
849 || PACKET_VERSION >= 20120716 \
850 || PACKET_VERSION >= 20120626 \
851 || PACKET_VERSION >= 20120612 \
852 || PACKET_VERSION >= 20120529 \
853 || PACKET_VERSION >= 20120523 \
854 || PACKET_VERSION >= 20120515 \
855 || PACKET_VERSION >= 20120508 \
856 || PACKET_VERSION >= 20120502 \
857 || PACKET_VERSION >= 20120424 \
858 || PACKET_VERSION >= 20120417 \
859 || PACKET_VERSION >= 20120214 \
860 || PACKET_VERSION >= 20120207 \
861 || PACKET_VERSION >= 20120120 \
862 || PACKET_VERSION >= 20120117 \
863 || PACKET_VERSION >= 20120110 \
864 || PACKET_VERSION >= 20120103 \
865 || PACKET_VERSION >= 20111220 \
866 || PACKET_VERSION >= 20111213 \
867 || PACKET_VERSION >= 20111207 \
868 || PACKET_VERSION >= 20111114 \
869 || PACKET_VERSION >= 20111108 \
870 || PACKET_VERSION >= 20111101 \
871 || PACKET_VERSION >= 20111025 \
872 || PACKET_VERSION >= 20111010 \
873 || PACKET_VERSION >= 20111004 \
874 || PACKET_VERSION >= 20110928 \
875 || PACKET_VERSION >= 20110920 \
876 || PACKET_VERSION >= 20110906 \
877 || PACKET_VERSION >= 20110831 \
878 || PACKET_VERSION >= 20110823 \
879 || PACKET_VERSION >= 20110816 \
880 || PACKET_VERSION >= 20110104 \
881 || (PACKET_VERSION >= 20100000 && PACKET_VERSION < 20110104) \
882 || (PACKET_VERSION >= 20090000 && PACKET_VERSION < 20100000) \
883 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20090000))
885#elif CLIENT_TYPE == 'R' && \
886 PACKET_VERSION >= 20120926
888#elif CLIENT_TYPE == 'R' && \
889 PACKET_VERSION >= 20121011
891#elif CLIENT_TYPE == 'R' && ( \
892 PACKET_VERSION >= 20210000 \
893 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
894 || PACKET_VERSION >= 20130116)
896#elif CLIENT_TYPE == 'R' && \
897 PACKET_VERSION >= 20141016
899#elif CLIENT_TYPE == 'R' && \
900 PACKET_VERSION >= 20150226
902#elif CLIENT_TYPE == 'R' && \
903 PACKET_VERSION >= 20150618
905#elif CLIENT_TYPE == 'R' && \
906 PACKET_VERSION >= 20150812
908#elif CLIENT_TYPE == 'R' && \
909 PACKET_VERSION >= 20151022
911#elif CLIENT_TYPE == 'R' && \
912 PACKET_VERSION >= 20151029
914#elif CLIENT_TYPE == 'R' && \
915 PACKET_VERSION >= 20160630
917#elif CLIENT_TYPE == 'R' && \
918 PACKET_VERSION >= 20161103
920#elif CLIENT_TYPE == 'S' && \
921 PACKET_VERSION >= 20050608
923#elif CLIENT_TYPE == 'Z' && ( \
924 PACKET_VERSION == 20190814 \
925 || PACKET_VERSION == 20190724 \
926 || PACKET_VERSION == 20190717 \
927 || PACKET_VERSION == 20190710 \
928 || PACKET_VERSION == 20190709 \
929 || PACKET_VERSION == 20190605 \
930 || PACKET_VERSION == 20190530 \
931 || PACKET_VERSION == 20190515 \
932 || PACKET_VERSION == 20190508 \
933 || PACKET_VERSION == 20190502 \
934 || PACKET_VERSION == 20190424 \
935 || PACKET_VERSION == 20190410 \
936 || PACKET_VERSION == 20190403 \
937 || PACKET_VERSION == 20190313 \
938 || PACKET_VERSION == 20190227 \
939 || PACKET_VERSION == 20190213 \
940 || PACKET_VERSION == 20190117 \
941 || PACKET_VERSION == 20181226 \
942 || PACKET_VERSION == 20181219 \
943 || PACKET_VERSION == 20181212 \
944 || PACKET_VERSION == 20181128 \
945 || PACKET_VERSION == 20181120 \
946 || PACKET_VERSION == 20180928 \
947 || PACKET_VERSION == 20180912 \
948 || PACKET_VERSION == 20180829 \
949 || PACKET_VERSION >= 20180808 \
950 || PACKET_VERSION >= 20180801 \
951 || PACKET_VERSION >= 20180711 \
952 || PACKET_VERSION >= 20180703 \
953 || PACKET_VERSION >= 20180627 \
954 || PACKET_VERSION >= 20180509 \
955 || PACKET_VERSION >= 20180411 \
956 || PACKET_VERSION >= 20180321 \
957 || PACKET_VERSION >= 20171113 \
958 || PACKET_VERSION >= 20171031 \
959 || PACKET_VERSION >= 20171030 \
960 || PACKET_VERSION >= 20171027 \
961 || PACKET_VERSION >= 20171025 \
962 || PACKET_VERSION >= 20171024 \
963 || PACKET_VERSION >= 20171023 \
964 || PACKET_VERSION >= 20171019)
966#elif CLIENT_TYPE == 'Z' && ( \
967 PACKET_VERSION == 20171117 \
968 || PACKET_VERSION == 20171116)
970#elif CLIENT_TYPE == 'Z' && \
971 PACKET_VERSION >= 20171122
973#elif CLIENT_TYPE == 'Z' && \
974 PACKET_VERSION >= 20171128
976#elif CLIENT_TYPE == 'Z' && ( \
977 PACKET_VERSION == 20171213 \
978 || PACKET_VERSION == 20171212 \
979 || PACKET_VERSION == 20171211 \
980 || PACKET_VERSION == 20171210 \
981 || PACKET_VERSION == 20171209 \
982 || PACKET_VERSION == 20171208)
984#elif CLIENT_TYPE == 'Z' && \
985 PACKET_VERSION >= 20171221
987#elif CLIENT_TYPE == 'Z' && ( \
988 PACKET_VERSION >= 20220000 \
989 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
990 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
991 || PACKET_VERSION >= 20180309 \
992 || PACKET_VERSION >= 20180307 \
993 || PACKET_VERSION >= 20171229)
995#else
996ID_CZ_ACK_STORE_PASSWORD = 0x0000 // Disabled
997#endif
1004{
1005public:
1006 CZ_ACK_STORE_PASSWORD(std::shared_ptr<ZoneSession> s)
1008 {}
1010
1011 void handle(ByteBuffer &&buf);
1012 void deserialize(ByteBuffer &buf);
1013
1014/* Structure */
1015 int16_t _type{ 0 };
1018};
1019
1020enum {
1021#if CLIENT_TYPE == 'A' && \
1022 PACKET_VERSION >= 20070622
1023ID_CZ_ACTIVE_QUEST = 0x02b6
1024#elif CLIENT_TYPE == 'M' && ( \
1025 PACKET_VERSION >= 20220000 \
1026 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
1027 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
1028 || PACKET_VERSION >= 20070622)
1029ID_CZ_ACTIVE_QUEST = 0x02b6
1030#elif CLIENT_TYPE == 'R' && ( \
1031 PACKET_VERSION >= 20210000 \
1032 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
1033 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
1034ID_CZ_ACTIVE_QUEST = 0x02b6
1035#elif CLIENT_TYPE == 'S' && \
1036 PACKET_VERSION >= 20070622
1037ID_CZ_ACTIVE_QUEST = 0x02b6
1038#elif CLIENT_TYPE == 'Z' && ( \
1039 PACKET_VERSION >= 20220000 \
1040 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
1041 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
1042 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
1043ID_CZ_ACTIVE_QUEST = 0x02b6
1044#else
1045ID_CZ_ACTIVE_QUEST = 0x0000 // Disabled
1046#endif
1052class CZ_ACTIVE_QUEST : public Base::NetworkPacket<ZoneSession>
1053{
1054public:
1055 CZ_ACTIVE_QUEST(std::shared_ptr<ZoneSession> s)
1057 {}
1058 virtual ~CZ_ACTIVE_QUEST() {}
1059
1060 void handle(ByteBuffer &&buf);
1061 void deserialize(ByteBuffer &buf);
1062
1063/* Structure */
1064 int _quest_id{ 0 };
1065 int8_t _active{ 0 };
1066};
1067
1068enum {
1069#if CLIENT_TYPE == 'A' && \
1070 PACKET_VERSION >= 20040000
1072#elif CLIENT_TYPE == 'M' && ( \
1073 PACKET_VERSION >= 20220000 \
1074 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
1075 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
1076 || (PACKET_VERSION >= 20030000 && PACKET_VERSION < 20200000))
1078#elif CLIENT_TYPE == 'R' && ( \
1079 PACKET_VERSION >= 20210000 \
1080 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
1081 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
1083#elif CLIENT_TYPE == 'S' && \
1084 PACKET_VERSION >= 20030000
1086#elif CLIENT_TYPE == 'Z' && ( \
1087 PACKET_VERSION >= 20220000 \
1088 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
1089 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
1090 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
1092#else
1093ID_CZ_ADD_EXCHANGE_ITEM = 0x0000 // Disabled
1094#endif
1101{
1102public:
1103 CZ_ADD_EXCHANGE_ITEM(std::shared_ptr<ZoneSession> s)
1105 {}
1107
1108 void handle(ByteBuffer &&buf);
1109 void deserialize(ByteBuffer &buf);
1110
1111/* Structure */
1112 int16_t _inventory_index{ 0 };
1113 int _amount{ 0 };
1114};
1115
1116enum {
1117#if CLIENT_TYPE == 'A' && \
1118 PACKET_VERSION >= 20040000
1119ID_CZ_ADD_FRIENDS = 0x0202
1120#elif CLIENT_TYPE == 'M' && ( \
1121 PACKET_VERSION == 20190821 \
1122 || PACKET_VERSION == 20190807 \
1123 || PACKET_VERSION == 20190802 \
1124 || PACKET_VERSION == 20190731 \
1125 || PACKET_VERSION == 20190724 \
1126 || PACKET_VERSION == 20190717 \
1127 || PACKET_VERSION == 20190703 \
1128 || PACKET_VERSION == 20190605 \
1129 || PACKET_VERSION == 20190530 \
1130 || PACKET_VERSION == 20190523 \
1131 || PACKET_VERSION == 20190522 \
1132 || PACKET_VERSION == 20190508 \
1133 || PACKET_VERSION == 20190418 \
1134 || PACKET_VERSION == 20190417 \
1135 || PACKET_VERSION == 20190327 \
1136 || PACKET_VERSION == 20190322 \
1137 || PACKET_VERSION == 20190320 \
1138 || PACKET_VERSION == 20190313 \
1139 || PACKET_VERSION == 20190306 \
1140 || PACKET_VERSION == 20190228 \
1141 || PACKET_VERSION == 20190123 \
1142 || PACKET_VERSION == 20190116 \
1143 || (PACKET_VERSION >= 20190000 && PACKET_VERSION < 20190116) \
1144 || PACKET_VERSION == 20181226 \
1145 || PACKET_VERSION == 20181219 \
1146 || PACKET_VERSION == 20181212 \
1147 || PACKET_VERSION == 20181205 \
1148 || PACKET_VERSION == 20181128 \
1149 || PACKET_VERSION == 20181114 \
1150 || PACKET_VERSION == 20181107 \
1151 || PACKET_VERSION == 20181024 \
1152 || PACKET_VERSION == 20180919 \
1153 || PACKET_VERSION == 20180831 \
1154 || PACKET_VERSION == 20180822 \
1155 || PACKET_VERSION >= 20180808 \
1156 || PACKET_VERSION >= 20180718 \
1157 || PACKET_VERSION >= 20180704 \
1158 || PACKET_VERSION >= 20180621 \
1159 || PACKET_VERSION >= 20180620 \
1160 || PACKET_VERSION >= 20180530 \
1161 || PACKET_VERSION >= 20180523 \
1162 || PACKET_VERSION >= 20180516 \
1163 || PACKET_VERSION >= 20180509 \
1164 || PACKET_VERSION >= 20180502 \
1165 || PACKET_VERSION >= 20180425 \
1166 || PACKET_VERSION >= 20180404 \
1167 || PACKET_VERSION >= 20180328 \
1168 || PACKET_VERSION >= 20180321 \
1169 || PACKET_VERSION >= 20180315 \
1170 || PACKET_VERSION >= 20180307 \
1171 || PACKET_VERSION >= 20180221 \
1172 || PACKET_VERSION >= 20180124 \
1173 || PACKET_VERSION >= 20180117 \
1174 || PACKET_VERSION >= 20180103 \
1175 || PACKET_VERSION >= 20171220 \
1176 || PACKET_VERSION >= 20171213 \
1177 || PACKET_VERSION >= 20171115 \
1178 || PACKET_VERSION >= 20171108 \
1179 || PACKET_VERSION >= 20171101 \
1180 || PACKET_VERSION >= 20171025 \
1181 || PACKET_VERSION >= 20170913 \
1182 || PACKET_VERSION >= 20170906 \
1183 || PACKET_VERSION >= 20170719 \
1184 || PACKET_VERSION >= 20170712 \
1185 || PACKET_VERSION >= 20170705 \
1186 || PACKET_VERSION >= 20170628 \
1187 || PACKET_VERSION >= 20170621 \
1188 || PACKET_VERSION >= 20170329 \
1189 || PACKET_VERSION >= 20170322 \
1190 || PACKET_VERSION >= 20170315 \
1191 || PACKET_VERSION >= 20170308 \
1192 || PACKET_VERSION >= 20170228 \
1193 || PACKET_VERSION >= 20170222 \
1194 || PACKET_VERSION >= 20170104 \
1195 || PACKET_VERSION >= 20161012 \
1196 || PACKET_VERSION >= 20161005 \
1197 || PACKET_VERSION >= 20160928 \
1198 || PACKET_VERSION >= 20160921 \
1199 || PACKET_VERSION >= 20160913 \
1200 || PACKET_VERSION >= 20160907 \
1201 || PACKET_VERSION >= 20160831 \
1202 || PACKET_VERSION >= 20160824 \
1203 || PACKET_VERSION >= 20160803 \
1204 || PACKET_VERSION >= 20160727 \
1205 || PACKET_VERSION >= 20160706 \
1206 || PACKET_VERSION >= 20160629 \
1207 || PACKET_VERSION >= 20160511 \
1208 || PACKET_VERSION >= 20160427 \
1209 || PACKET_VERSION >= 20160323 \
1210 || PACKET_VERSION >= 20160316 \
1211 || PACKET_VERSION >= 20160224 \
1212 || PACKET_VERSION >= 20160217 \
1213 || PACKET_VERSION >= 20160211 \
1214 || PACKET_VERSION >= 20160203 \
1215 || PACKET_VERSION >= 20160127 \
1216 || PACKET_VERSION >= 20160120 \
1217 || PACKET_VERSION >= 20160106 \
1218 || PACKET_VERSION >= 20151209 \
1219 || PACKET_VERSION >= 20151202 \
1220 || PACKET_VERSION >= 20151104 \
1221 || PACKET_VERSION >= 20151028 \
1222 || PACKET_VERSION >= 20151021 \
1223 || PACKET_VERSION >= 20151014 \
1224 || PACKET_VERSION >= 20151007 \
1225 || PACKET_VERSION >= 20151001 \
1226 || PACKET_VERSION >= 20150826 \
1227 || PACKET_VERSION >= 20150819 \
1228 || PACKET_VERSION >= 20150805 \
1229 || PACKET_VERSION >= 20150603 \
1230 || PACKET_VERSION >= 20150527 \
1231 || PACKET_VERSION >= 20150520 \
1232 || PACKET_VERSION >= 20150429 \
1233 || PACKET_VERSION >= 20150422 \
1234 || PACKET_VERSION >= 20150401 \
1235 || PACKET_VERSION >= 20150325 \
1236 || PACKET_VERSION >= 20150318 \
1237 || PACKET_VERSION >= 20150225 \
1238 || PACKET_VERSION >= 20150217 \
1239 || PACKET_VERSION >= 20150211 \
1240 || PACKET_VERSION >= 20150204 \
1241 || PACKET_VERSION >= 20150128 \
1242 || PACKET_VERSION >= 20150107 \
1243 || PACKET_VERSION >= 20141231 \
1244 || PACKET_VERSION >= 20141210 \
1245 || PACKET_VERSION >= 20141203 \
1246 || PACKET_VERSION >= 20141126 \
1247 || PACKET_VERSION >= 20141119 \
1248 || PACKET_VERSION >= 20141105 \
1249 || PACKET_VERSION >= 20141029 \
1250 || PACKET_VERSION >= 20141015 \
1251 || PACKET_VERSION >= 20141008 \
1252 || PACKET_VERSION >= 20140903 \
1253 || PACKET_VERSION >= 20140827 \
1254 || PACKET_VERSION >= 20140813 \
1255 || PACKET_VERSION >= 20140806 \
1256 || PACKET_VERSION >= 20140702 \
1257 || PACKET_VERSION >= 20140625 \
1258 || PACKET_VERSION >= 20140611 \
1259 || PACKET_VERSION >= 20140605 \
1260 || PACKET_VERSION >= 20140528 \
1261 || PACKET_VERSION >= 20140508 \
1262 || PACKET_VERSION >= 20140423 \
1263 || PACKET_VERSION >= 20140416 \
1264 || PACKET_VERSION >= 20140319 \
1265 || PACKET_VERSION >= 20140312 \
1266 || PACKET_VERSION >= 20140305 \
1267 || PACKET_VERSION >= 20140226 \
1268 || PACKET_VERSION >= 20140219 \
1269 || PACKET_VERSION >= 20140212 \
1270 || PACKET_VERSION >= 20140205 \
1271 || PACKET_VERSION >= 20140115 \
1272 || PACKET_VERSION >= 20140108 \
1273 || PACKET_VERSION >= 20131230 \
1274 || PACKET_VERSION >= 20131223 \
1275 || PACKET_VERSION >= 20131218 \
1276 || PACKET_VERSION >= 20131211 \
1277 || PACKET_VERSION >= 20131016 \
1278 || PACKET_VERSION >= 20131008 \
1279 || PACKET_VERSION >= 20131002 \
1280 || PACKET_VERSION >= 20130828 \
1281 || PACKET_VERSION >= 20130821 \
1282 || PACKET_VERSION >= 20130814 \
1283 || PACKET_VERSION >= 20130807 \
1284 || PACKET_VERSION >= 20130717 \
1285 || PACKET_VERSION >= 20130710 \
1286 || PACKET_VERSION >= 20130703 \
1287 || PACKET_VERSION >= 20130612 \
1288 || PACKET_VERSION >= 20130605 \
1289 || PACKET_VERSION >= 20130502 \
1290 || PACKET_VERSION >= 20130424 \
1291 || PACKET_VERSION >= 20130417 \
1292 || PACKET_VERSION >= 20130320 \
1293 || PACKET_VERSION >= 20130313 \
1294 || PACKET_VERSION >= 20130227 \
1295 || PACKET_VERSION >= 20130220 \
1296 || PACKET_VERSION >= 20130109 \
1297 || PACKET_VERSION >= 20130103 \
1298 || PACKET_VERSION >= 20121227 \
1299 || PACKET_VERSION >= 20121128 \
1300 || PACKET_VERSION >= 20121121 \
1301 || PACKET_VERSION >= 20121017 \
1302 || PACKET_VERSION >= 20121010 \
1303 || PACKET_VERSION >= 20120925 \
1304 || PACKET_VERSION >= 20120919 \
1305 || PACKET_VERSION >= 20120814 \
1306 || PACKET_VERSION >= 20120808 \
1307 || PACKET_VERSION >= 20120724 \
1308 || PACKET_VERSION >= 20120716 \
1309 || PACKET_VERSION >= 20120710 \
1310 || PACKET_VERSION >= 20120626 \
1311 || PACKET_VERSION >= 20120612 \
1312 || PACKET_VERSION >= 20120515 \
1313 || PACKET_VERSION >= 20120508 \
1314 || PACKET_VERSION >= 20120503 \
1315 || PACKET_VERSION >= 20120424 \
1316 || PACKET_VERSION >= 20120417 \
1317 || PACKET_VERSION >= 20120214 \
1318 || PACKET_VERSION >= 20120131 \
1319 || PACKET_VERSION >= 20120120 \
1320 || PACKET_VERSION >= 20120117 \
1321 || PACKET_VERSION >= 20120110 \
1322 || PACKET_VERSION >= 20120103 \
1323 || PACKET_VERSION >= 20111220 \
1324 || PACKET_VERSION >= 20111213 \
1325 || PACKET_VERSION >= 20111207 \
1326 || PACKET_VERSION >= 20111122 \
1327 || PACKET_VERSION >= 20111101 \
1328 || PACKET_VERSION >= 20111025 \
1329 || PACKET_VERSION >= 20111017 \
1330 || PACKET_VERSION >= 20111010 \
1331 || PACKET_VERSION >= 20110920 \
1332 || PACKET_VERSION >= 20110906 \
1333 || PACKET_VERSION >= 20110823 \
1334 || PACKET_VERSION >= 20110816 \
1335 || PACKET_VERSION >= 20110726 \
1336 || PACKET_VERSION >= 20110718 \
1337 || PACKET_VERSION >= 20110711 \
1338 || PACKET_VERSION >= 20110531 \
1339 || PACKET_VERSION >= 20110523 \
1340 || PACKET_VERSION >= 20110517 \
1341 || PACKET_VERSION >= 20110511 \
1342 || PACKET_VERSION >= 20110426 \
1343 || PACKET_VERSION >= 20110419 \
1344 || PACKET_VERSION >= 20110405 \
1345 || PACKET_VERSION >= 20110329 \
1346 || PACKET_VERSION >= 20110322 \
1347 || PACKET_VERSION >= 20110315 \
1348 || PACKET_VERSION >= 20110308 \
1349 || PACKET_VERSION >= 20110222 \
1350 || PACKET_VERSION >= 20110215 \
1351 || PACKET_VERSION >= 20110125 \
1352 || PACKET_VERSION >= 20110118 \
1353 || PACKET_VERSION >= 20110111 \
1354 || PACKET_VERSION >= 20110104 \
1355 || PACKET_VERSION >= 20101228 \
1356 || PACKET_VERSION >= 20101221 \
1357 || PACKET_VERSION >= 20101130 \
1358 || PACKET_VERSION >= 20101123 \
1359 || PACKET_VERSION >= 20100105 \
1360 || PACKET_VERSION >= 20090406 \
1361 || PACKET_VERSION >= 20090401 \
1362 || PACKET_VERSION >= 20090218 \
1363 || PACKET_VERSION >= 20090211 \
1364 || PACKET_VERSION >= 20090204 \
1365 || PACKET_VERSION >= 20090129 \
1366 || PACKET_VERSION >= 20090114 \
1367 || PACKET_VERSION >= 20090107 \
1368 || PACKET_VERSION >= 20081217 \
1369 || PACKET_VERSION >= 20081203 \
1370 || PACKET_VERSION >= 20081126 \
1371 || PACKET_VERSION >= 20081119 \
1372 || PACKET_VERSION >= 20081112 \
1373 || PACKET_VERSION >= 20081029 \
1374 || PACKET_VERSION >= 20081022 \
1375 || PACKET_VERSION >= 20081015 \
1376 || PACKET_VERSION >= 20081008 \
1377 || PACKET_VERSION >= 20080910 \
1378 || PACKET_VERSION >= 20080903 \
1379 || PACKET_VERSION >= 20080820 \
1380 || PACKET_VERSION >= 20080813 \
1381 || PACKET_VERSION >= 20080806 \
1382 || PACKET_VERSION >= 20080730 \
1383 || PACKET_VERSION >= 20080722 \
1384 || PACKET_VERSION >= 20080610 \
1385 || PACKET_VERSION >= 20080603 \
1386 || PACKET_VERSION >= 20080528 \
1387 || PACKET_VERSION >= 20080520 \
1388 || PACKET_VERSION >= 20080513 \
1389 || PACKET_VERSION >= 20080507 \
1390 || PACKET_VERSION >= 20080429 \
1391 || PACKET_VERSION >= 20080422 \
1392 || PACKET_VERSION >= 20080415 \
1393 || PACKET_VERSION >= 20080408 \
1394 || PACKET_VERSION >= 20080325 \
1395 || PACKET_VERSION >= 20080318 \
1396 || PACKET_VERSION >= 20080311 \
1397 || PACKET_VERSION >= 20080304 \
1398 || PACKET_VERSION >= 20080226 \
1399 || PACKET_VERSION >= 20080219 \
1400 || PACKET_VERSION >= 20080124 \
1401 || PACKET_VERSION >= 20080102 \
1402 || (PACKET_VERSION >= 20070000 && PACKET_VERSION < 20080102) \
1403 || (PACKET_VERSION >= 20060000 && PACKET_VERSION < 20070000) \
1404 || (PACKET_VERSION >= 20050000 && PACKET_VERSION < 20060000) \
1405 || PACKET_VERSION >= 20040705)
1406ID_CZ_ADD_FRIENDS = 0x0202
1407#elif CLIENT_TYPE == 'M' && \
1408 PACKET_VERSION >= 20120712
1409ID_CZ_ADD_FRIENDS = 0x0365
1410#elif CLIENT_TYPE == 'M' && \
1411 PACKET_VERSION >= 20120926
1412ID_CZ_ADD_FRIENDS = 0x087e
1413#elif CLIENT_TYPE == 'M' && ( \
1414 PACKET_VERSION == 20160318 \
1415 || PACKET_VERSION == 20151029 \
1416 || PACKET_VERSION == 20150812 \
1417 || PACKET_VERSION >= 20130107)
1418ID_CZ_ADD_FRIENDS = 0x023b
1419#elif CLIENT_TYPE == 'M' && \
1420 PACKET_VERSION >= 20130116
1421ID_CZ_ADD_FRIENDS = 0x0871
1422#elif CLIENT_TYPE == 'M' && ( \
1423 PACKET_VERSION == 20131108 \
1424 || PACKET_VERSION == 20131107)
1425ID_CZ_ADD_FRIENDS = 0x0935
1426#elif CLIENT_TYPE == 'M' && ( \
1427 PACKET_VERSION == 20140613 \
1428 || PACKET_VERSION == 20140612)
1429ID_CZ_ADD_FRIENDS = 0x089b
1430#elif CLIENT_TYPE == 'M' && \
1431 PACKET_VERSION >= 20140814
1432ID_CZ_ADD_FRIENDS = 0x0897
1433#elif CLIENT_TYPE == 'M' && \
1434 PACKET_VERSION >= 20141016
1435ID_CZ_ADD_FRIENDS = 0x094b
1436#elif CLIENT_TYPE == 'M' && ( \
1437 PACKET_VERSION == 20150130 \
1438 || PACKET_VERSION == 20150129)
1439ID_CZ_ADD_FRIENDS = 0x0963
1440#elif CLIENT_TYPE == 'M' && \
1441 PACKET_VERSION >= 20150226
1442ID_CZ_ADD_FRIENDS = 0x0946
1443#elif CLIENT_TYPE == 'M' && \
1444 PACKET_VERSION >= 20150618
1445ID_CZ_ADD_FRIENDS = 0x094e
1446#elif CLIENT_TYPE == 'M' && ( \
1447 PACKET_VERSION >= 20220000 \
1448 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
1449 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
1450 || PACKET_VERSION >= 20150702)
1451ID_CZ_ADD_FRIENDS = 0x095f
1452#elif CLIENT_TYPE == 'M' && \
1453 PACKET_VERSION >= 20151022
1454ID_CZ_ADD_FRIENDS = 0x086a
1455#elif CLIENT_TYPE == 'M' && \
1456 PACKET_VERSION >= 20160526
1457ID_CZ_ADD_FRIENDS = 0x0951
1458#elif CLIENT_TYPE == 'M' && \
1459 PACKET_VERSION >= 20160609
1460ID_CZ_ADD_FRIENDS = 0x0969
1461#elif CLIENT_TYPE == 'M' && \
1462 PACKET_VERSION >= 20160630
1463ID_CZ_ADD_FRIENDS = 0x094a
1464#elif CLIENT_TYPE == 'M' && \
1465 PACKET_VERSION >= 20161103
1466ID_CZ_ADD_FRIENDS = 0x0928
1467#elif CLIENT_TYPE == 'M' && \
1468 PACKET_VERSION >= 20180131
1469ID_CZ_ADD_FRIENDS = 0x0919
1470#elif CLIENT_TYPE == 'M' && \
1471 PACKET_VERSION >= 20180309
1472ID_CZ_ADD_FRIENDS = 0x08aa
1473#elif CLIENT_TYPE == 'R' && ( \
1474 PACKET_VERSION == 20190821 \
1475 || PACKET_VERSION == 20190807 \
1476 || PACKET_VERSION == 20190802 \
1477 || PACKET_VERSION == 20190731 \
1478 || PACKET_VERSION == 20190724 \
1479 || PACKET_VERSION == 20190717 \
1480 || PACKET_VERSION == 20190703 \
1481 || PACKET_VERSION == 20190626 \
1482 || PACKET_VERSION == 20190605 \
1483 || PACKET_VERSION == 20190530 \
1484 || PACKET_VERSION == 20190522 \
1485 || PACKET_VERSION == 20190508 \
1486 || PACKET_VERSION == 20190418 \
1487 || PACKET_VERSION == 20190417 \
1488 || PACKET_VERSION == 20190327 \
1489 || PACKET_VERSION == 20190322 \
1490 || PACKET_VERSION == 20190320 \
1491 || PACKET_VERSION == 20190306 \
1492 || PACKET_VERSION == 20190228 \
1493 || PACKET_VERSION == 20190123 \
1494 || PACKET_VERSION == 20190116 \
1495 || (PACKET_VERSION >= 20190000 && PACKET_VERSION < 20190116) \
1496 || PACKET_VERSION == 20181226 \
1497 || PACKET_VERSION == 20181219 \
1498 || PACKET_VERSION == 20181212 \
1499 || PACKET_VERSION == 20181205 \
1500 || PACKET_VERSION == 20181128 \
1501 || PACKET_VERSION == 20181121 \
1502 || PACKET_VERSION == 20181114 \
1503 || PACKET_VERSION == 20181107 \
1504 || PACKET_VERSION == 20180822 \
1505 || PACKET_VERSION >= 20180808 \
1506 || PACKET_VERSION >= 20180718 \
1507 || PACKET_VERSION >= 20180711 \
1508 || PACKET_VERSION >= 20180621 \
1509 || PACKET_VERSION >= 20180620 \
1510 || PACKET_VERSION >= 20180612 \
1511 || PACKET_VERSION >= 20180530 \
1512 || PACKET_VERSION >= 20180523 \
1513 || PACKET_VERSION >= 20180516 \
1514 || PACKET_VERSION >= 20180502 \
1515 || PACKET_VERSION >= 20180425 \
1516 || PACKET_VERSION >= 20180404 \
1517 || PACKET_VERSION >= 20180328 \
1518 || PACKET_VERSION >= 20180321 \
1519 || PACKET_VERSION >= 20180307 \
1520 || PACKET_VERSION >= 20180221 \
1521 || PACKET_VERSION >= 20180124 \
1522 || PACKET_VERSION >= 20180117 \
1523 || PACKET_VERSION >= 20180103 \
1524 || PACKET_VERSION >= 20171220 \
1525 || PACKET_VERSION >= 20171213 \
1526 || PACKET_VERSION >= 20171115 \
1527 || PACKET_VERSION >= 20171108 \
1528 || PACKET_VERSION >= 20171101 \
1529 || PACKET_VERSION >= 20171025 \
1530 || PACKET_VERSION >= 20170913 \
1531 || PACKET_VERSION >= 20170906 \
1532 || PACKET_VERSION >= 20170719 \
1533 || PACKET_VERSION >= 20170712 \
1534 || PACKET_VERSION >= 20170705 \
1535 || PACKET_VERSION >= 20170628 \
1536 || PACKET_VERSION >= 20170621 \
1537 || PACKET_VERSION >= 20170329 \
1538 || PACKET_VERSION >= 20170322 \
1539 || PACKET_VERSION >= 20170315 \
1540 || PACKET_VERSION >= 20170308 \
1541 || PACKET_VERSION >= 20170228 \
1542 || PACKET_VERSION >= 20170222 \
1543 || PACKET_VERSION >= 20170104 \
1544 || PACKET_VERSION >= 20161012 \
1545 || PACKET_VERSION >= 20161005 \
1546 || PACKET_VERSION >= 20160928 \
1547 || PACKET_VERSION >= 20160921 \
1548 || PACKET_VERSION >= 20160913 \
1549 || PACKET_VERSION >= 20160907 \
1550 || PACKET_VERSION >= 20160831 \
1551 || PACKET_VERSION >= 20160824 \
1552 || PACKET_VERSION >= 20160803 \
1553 || PACKET_VERSION >= 20160727 \
1554 || PACKET_VERSION >= 20160706 \
1555 || PACKET_VERSION >= 20160629 \
1556 || PACKET_VERSION >= 20160511 \
1557 || PACKET_VERSION >= 20160427 \
1558 || PACKET_VERSION >= 20160323 \
1559 || PACKET_VERSION >= 20160316 \
1560 || PACKET_VERSION >= 20160224 \
1561 || PACKET_VERSION >= 20160217 \
1562 || PACKET_VERSION >= 20160211 \
1563 || PACKET_VERSION >= 20160203 \
1564 || PACKET_VERSION >= 20160127 \
1565 || PACKET_VERSION >= 20160120 \
1566 || PACKET_VERSION >= 20160106 \
1567 || PACKET_VERSION >= 20151209 \
1568 || PACKET_VERSION >= 20151202 \
1569 || PACKET_VERSION >= 20151104 \
1570 || PACKET_VERSION >= 20151028 \
1571 || PACKET_VERSION >= 20151021 \
1572 || PACKET_VERSION >= 20151014 \
1573 || PACKET_VERSION >= 20151007 \
1574 || PACKET_VERSION >= 20151001 \
1575 || PACKET_VERSION >= 20150826 \
1576 || PACKET_VERSION >= 20150819 \
1577 || PACKET_VERSION >= 20150805 \
1578 || PACKET_VERSION >= 20150603 \
1579 || PACKET_VERSION >= 20150527 \
1580 || PACKET_VERSION >= 20150520 \
1581 || PACKET_VERSION >= 20150429 \
1582 || PACKET_VERSION >= 20150422 \
1583 || PACKET_VERSION >= 20150401 \
1584 || PACKET_VERSION >= 20150325 \
1585 || PACKET_VERSION >= 20150318 \
1586 || PACKET_VERSION >= 20150225 \
1587 || PACKET_VERSION >= 20150217 \
1588 || PACKET_VERSION >= 20150211 \
1589 || PACKET_VERSION >= 20150204 \
1590 || PACKET_VERSION >= 20150128 \
1591 || PACKET_VERSION >= 20150107 \
1592 || PACKET_VERSION >= 20141231 \
1593 || PACKET_VERSION >= 20141210 \
1594 || PACKET_VERSION >= 20141203 \
1595 || PACKET_VERSION >= 20141126 \
1596 || PACKET_VERSION >= 20141119 \
1597 || PACKET_VERSION >= 20141105 \
1598 || PACKET_VERSION >= 20141029 \
1599 || PACKET_VERSION >= 20141015 \
1600 || PACKET_VERSION >= 20141008 \
1601 || PACKET_VERSION >= 20140903 \
1602 || PACKET_VERSION >= 20140827 \
1603 || PACKET_VERSION >= 20140813 \
1604 || PACKET_VERSION >= 20140806 \
1605 || PACKET_VERSION >= 20140702 \
1606 || PACKET_VERSION >= 20140625 \
1607 || PACKET_VERSION >= 20140605 \
1608 || PACKET_VERSION >= 20140528 \
1609 || PACKET_VERSION >= 20140508 \
1610 || PACKET_VERSION >= 20140423 \
1611 || PACKET_VERSION >= 20140416 \
1612 || PACKET_VERSION >= 20140319 \
1613 || PACKET_VERSION >= 20140312 \
1614 || PACKET_VERSION >= 20140305 \
1615 || PACKET_VERSION >= 20140226 \
1616 || PACKET_VERSION >= 20140219 \
1617 || PACKET_VERSION >= 20140212 \
1618 || PACKET_VERSION >= 20140205 \
1619 || PACKET_VERSION >= 20140115 \
1620 || PACKET_VERSION >= 20140108 \
1621 || PACKET_VERSION >= 20131230 \
1622 || PACKET_VERSION >= 20131223 \
1623 || PACKET_VERSION >= 20131218 \
1624 || PACKET_VERSION >= 20131211 \
1625 || PACKET_VERSION >= 20131016 \
1626 || PACKET_VERSION >= 20131008 \
1627 || PACKET_VERSION >= 20131002 \
1628 || PACKET_VERSION >= 20130828 \
1629 || PACKET_VERSION >= 20130821 \
1630 || PACKET_VERSION >= 20130814 \
1631 || PACKET_VERSION >= 20130807 \
1632 || PACKET_VERSION >= 20130717 \
1633 || PACKET_VERSION >= 20130710 \
1634 || PACKET_VERSION >= 20130703 \
1635 || PACKET_VERSION >= 20130612 \
1636 || PACKET_VERSION >= 20130605 \
1637 || PACKET_VERSION >= 20130502 \
1638 || PACKET_VERSION >= 20130424 \
1639 || PACKET_VERSION >= 20130417 \
1640 || PACKET_VERSION >= 20130320 \
1641 || PACKET_VERSION >= 20130313 \
1642 || PACKET_VERSION >= 20130227 \
1643 || PACKET_VERSION >= 20130220 \
1644 || PACKET_VERSION >= 20130109 \
1645 || PACKET_VERSION >= 20130103 \
1646 || PACKET_VERSION >= 20121227 \
1647 || PACKET_VERSION >= 20121128 \
1648 || PACKET_VERSION >= 20121121 \
1649 || PACKET_VERSION >= 20121017 \
1650 || PACKET_VERSION >= 20121010 \
1651 || PACKET_VERSION >= 20120925 \
1652 || PACKET_VERSION >= 20120919 \
1653 || PACKET_VERSION >= 20120814 \
1654 || PACKET_VERSION >= 20120808 \
1655 || PACKET_VERSION >= 20120724 \
1656 || PACKET_VERSION >= 20120716 \
1657 || PACKET_VERSION >= 20120710 \
1658 || PACKET_VERSION >= 20120626 \
1659 || PACKET_VERSION >= 20120612 \
1660 || PACKET_VERSION >= 20120515 \
1661 || PACKET_VERSION >= 20120508 \
1662 || PACKET_VERSION >= 20120502 \
1663 || PACKET_VERSION >= 20120424 \
1664 || PACKET_VERSION >= 20120417 \
1665 || PACKET_VERSION >= 20120214 \
1666 || PACKET_VERSION >= 20120131 \
1667 || PACKET_VERSION >= 20120120 \
1668 || PACKET_VERSION >= 20120117 \
1669 || PACKET_VERSION >= 20120110 \
1670 || PACKET_VERSION >= 20120103 \
1671 || PACKET_VERSION >= 20111220 \
1672 || PACKET_VERSION >= 20111213 \
1673 || PACKET_VERSION >= 20111207 \
1674 || PACKET_VERSION >= 20111122 \
1675 || PACKET_VERSION >= 20111101 \
1676 || PACKET_VERSION >= 20111025 \
1677 || PACKET_VERSION >= 20111017 \
1678 || PACKET_VERSION >= 20111010 \
1679 || PACKET_VERSION >= 20110920 \
1680 || PACKET_VERSION >= 20110906 \
1681 || PACKET_VERSION >= 20110823 \
1682 || PACKET_VERSION >= 20110816 \
1683 || PACKET_VERSION >= 20110104 \
1684 || (PACKET_VERSION >= 20100000 && PACKET_VERSION < 20110104) \
1685 || (PACKET_VERSION >= 20090000 && PACKET_VERSION < 20100000) \
1686 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20090000))
1687ID_CZ_ADD_FRIENDS = 0x0202
1688#elif CLIENT_TYPE == 'R' && \
1689 PACKET_VERSION >= 20120712
1690ID_CZ_ADD_FRIENDS = 0x0365
1691#elif CLIENT_TYPE == 'R' && \
1692 PACKET_VERSION >= 20120926
1693ID_CZ_ADD_FRIENDS = 0x087e
1694#elif CLIENT_TYPE == 'R' && ( \
1695 PACKET_VERSION >= 20210000 \
1696 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
1697 || PACKET_VERSION >= 20121011)
1698ID_CZ_ADD_FRIENDS = 0x0964
1699#elif CLIENT_TYPE == 'R' && \
1700 PACKET_VERSION >= 20130116
1701ID_CZ_ADD_FRIENDS = 0x0871
1702#elif CLIENT_TYPE == 'R' && \
1703 PACKET_VERSION >= 20141016
1704ID_CZ_ADD_FRIENDS = 0x094b
1705#elif CLIENT_TYPE == 'R' && \
1706 PACKET_VERSION >= 20150226
1707ID_CZ_ADD_FRIENDS = 0x0946
1708#elif CLIENT_TYPE == 'R' && \
1709 PACKET_VERSION >= 20150618
1710ID_CZ_ADD_FRIENDS = 0x094e
1711#elif CLIENT_TYPE == 'R' && ( \
1712 PACKET_VERSION == 20151029 \
1713 || PACKET_VERSION == 20150812)
1714ID_CZ_ADD_FRIENDS = 0x023b
1715#elif CLIENT_TYPE == 'R' && \
1716 PACKET_VERSION >= 20151022
1717ID_CZ_ADD_FRIENDS = 0x086a
1718#elif CLIENT_TYPE == 'R' && \
1719 PACKET_VERSION >= 20160630
1720ID_CZ_ADD_FRIENDS = 0x094a
1721#elif CLIENT_TYPE == 'R' && \
1722 PACKET_VERSION >= 20161103
1723ID_CZ_ADD_FRIENDS = 0x0928
1724#elif CLIENT_TYPE == 'S' && \
1725 PACKET_VERSION >= 20040628
1726ID_CZ_ADD_FRIENDS = 0x0202
1727#elif CLIENT_TYPE == 'Z' && ( \
1728 PACKET_VERSION == 20190814 \
1729 || PACKET_VERSION == 20190724 \
1730 || PACKET_VERSION == 20190717 \
1731 || PACKET_VERSION == 20190710 \
1732 || PACKET_VERSION == 20190709 \
1733 || PACKET_VERSION == 20190605 \
1734 || PACKET_VERSION == 20190530 \
1735 || PACKET_VERSION == 20190515 \
1736 || PACKET_VERSION == 20190508 \
1737 || PACKET_VERSION == 20190502 \
1738 || PACKET_VERSION == 20190424 \
1739 || PACKET_VERSION == 20190410 \
1740 || PACKET_VERSION == 20190403 \
1741 || PACKET_VERSION == 20190313 \
1742 || PACKET_VERSION == 20190227 \
1743 || PACKET_VERSION == 20190213 \
1744 || PACKET_VERSION == 20190117 \
1745 || PACKET_VERSION == 20181226 \
1746 || PACKET_VERSION == 20181219 \
1747 || PACKET_VERSION == 20181212 \
1748 || PACKET_VERSION == 20181128 \
1749 || PACKET_VERSION == 20181120 \
1750 || PACKET_VERSION == 20180928 \
1751 || PACKET_VERSION == 20180912 \
1752 || PACKET_VERSION == 20180829 \
1753 || PACKET_VERSION >= 20180808 \
1754 || PACKET_VERSION >= 20180801 \
1755 || PACKET_VERSION >= 20180711 \
1756 || PACKET_VERSION >= 20180703 \
1757 || PACKET_VERSION >= 20180627 \
1758 || PACKET_VERSION >= 20180509 \
1759 || PACKET_VERSION >= 20180411 \
1760 || PACKET_VERSION >= 20180321 \
1761 || PACKET_VERSION >= 20171113 \
1762 || PACKET_VERSION >= 20171031 \
1763 || PACKET_VERSION >= 20171030 \
1764 || PACKET_VERSION >= 20171027 \
1765 || PACKET_VERSION >= 20171025 \
1766 || PACKET_VERSION >= 20171024 \
1767 || PACKET_VERSION >= 20171023 \
1768 || PACKET_VERSION >= 20171019)
1769ID_CZ_ADD_FRIENDS = 0x0202
1770#elif CLIENT_TYPE == 'Z' && ( \
1771 PACKET_VERSION >= 20220000 \
1772 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
1773 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
1774 || PACKET_VERSION >= 20171117 \
1775 || PACKET_VERSION >= 20171116)
1776ID_CZ_ADD_FRIENDS = 0x0966
1777#elif CLIENT_TYPE == 'Z' && \
1778 PACKET_VERSION >= 20171122
1779ID_CZ_ADD_FRIENDS = 0x0928
1780#elif CLIENT_TYPE == 'Z' && ( \
1781 PACKET_VERSION == 20180309 \
1782 || PACKET_VERSION == 20180307 \
1783 || PACKET_VERSION == 20171128)
1784ID_CZ_ADD_FRIENDS = 0x023b
1785#elif CLIENT_TYPE == 'Z' && ( \
1786 PACKET_VERSION == 20171213 \
1787 || PACKET_VERSION == 20171212 \
1788 || PACKET_VERSION == 20171211 \
1789 || PACKET_VERSION == 20171210 \
1790 || PACKET_VERSION == 20171209 \
1791 || PACKET_VERSION == 20171208)
1792ID_CZ_ADD_FRIENDS = 0x0893
1793#elif CLIENT_TYPE == 'Z' && \
1794 PACKET_VERSION >= 20171221
1795ID_CZ_ADD_FRIENDS = 0x092e
1796#elif CLIENT_TYPE == 'Z' && \
1797 PACKET_VERSION >= 20171229
1798ID_CZ_ADD_FRIENDS = 0x0941
1799#else
1800ID_CZ_ADD_FRIENDS = 0x0000 // Disabled
1801#endif
1807class CZ_ADD_FRIENDS : public Base::NetworkPacket<ZoneSession>
1808{
1809public:
1810 CZ_ADD_FRIENDS(std::shared_ptr<ZoneSession> s)
1812 {}
1813 virtual ~CZ_ADD_FRIENDS() {}
1814
1815 void handle(ByteBuffer &&buf);
1816 void deserialize(ByteBuffer &buf);
1817
1818/* Structure */
1820};
1821
1822enum {
1823#if CLIENT_TYPE == 'M' && ( \
1824 PACKET_VERSION >= 20220000 \
1825 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
1826 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000))
1828#elif CLIENT_TYPE == 'R' && ( \
1829 PACKET_VERSION >= 20210000 \
1830 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000))
1832#elif CLIENT_TYPE == 'Z' && ( \
1833 PACKET_VERSION >= 20220000 \
1834 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
1835 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000))
1837#else
1838ID_CZ_ADVENTURER_AGENCY_JOIN_REQ = 0x0000 // Disabled
1839#endif
1846{
1847public:
1848 CZ_ADVENTURER_AGENCY_JOIN_REQ(std::shared_ptr<ZoneSession> s)
1850 {}
1852
1853 void handle(ByteBuffer &&buf);
1854 void deserialize(ByteBuffer &buf);
1855
1856/* Structure */
1857};
1858
1859enum {
1860#if CLIENT_TYPE == 'M' && ( \
1861 PACKET_VERSION >= 20220000 \
1862 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
1863 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000))
1865#elif CLIENT_TYPE == 'R' && ( \
1866 PACKET_VERSION >= 20210000 \
1867 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000))
1869#elif CLIENT_TYPE == 'Z' && ( \
1870 PACKET_VERSION >= 20220000 \
1871 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
1872 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000))
1874#else
1875ID_CZ_ADVENTURER_AGENCY_JOIN_RESULT = 0x0000 // Disabled
1876#endif
1883{
1884public:
1885 CZ_ADVENTURER_AGENCY_JOIN_RESULT(std::shared_ptr<ZoneSession> s)
1887 {}
1889
1890 void handle(ByteBuffer &&buf);
1891 void deserialize(ByteBuffer &buf);
1892
1893/* Structure */
1894};
1895
1896enum {
1897#if CLIENT_TYPE == 'A' && \
1898 PACKET_VERSION >= 20050822
1899ID_CZ_AGREE_STARPLACE = 0x0254
1900#elif CLIENT_TYPE == 'M' && ( \
1901 PACKET_VERSION >= 20220000 \
1902 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
1903 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
1904 || PACKET_VERSION >= 20050822)
1905ID_CZ_AGREE_STARPLACE = 0x0254
1906#elif CLIENT_TYPE == 'R' && ( \
1907 PACKET_VERSION >= 20210000 \
1908 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
1909 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
1910ID_CZ_AGREE_STARPLACE = 0x0254
1911#elif CLIENT_TYPE == 'S' && \
1912 PACKET_VERSION >= 20050817
1913ID_CZ_AGREE_STARPLACE = 0x0254
1914#elif CLIENT_TYPE == 'Z' && ( \
1915 PACKET_VERSION >= 20220000 \
1916 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
1917 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
1918 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
1919ID_CZ_AGREE_STARPLACE = 0x0254
1920#else
1921ID_CZ_AGREE_STARPLACE = 0x0000 // Disabled
1922#endif
1928class CZ_AGREE_STARPLACE : public Base::NetworkPacket<ZoneSession>
1929{
1930public:
1931 CZ_AGREE_STARPLACE(std::shared_ptr<ZoneSession> s)
1933 {}
1935
1936 void handle(ByteBuffer &&buf);
1937 void deserialize(ByteBuffer &buf);
1938
1939/* Structure */
1940 int8_t _type{ 0 };
1941};
1942
1943enum {
1944#if CLIENT_TYPE == 'A' && \
1945 PACKET_VERSION >= 20041108
1946ID_CZ_ALCHEMIST_RANK = 0x0218
1947#elif CLIENT_TYPE == 'M' && ( \
1948 PACKET_VERSION >= 20220000 \
1949 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
1950 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
1951 || PACKET_VERSION >= 20041108)
1952ID_CZ_ALCHEMIST_RANK = 0x0218
1953#elif CLIENT_TYPE == 'R' && ( \
1954 PACKET_VERSION >= 20210000 \
1955 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
1956 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
1957ID_CZ_ALCHEMIST_RANK = 0x0218
1958#elif CLIENT_TYPE == 'S' && \
1959 PACKET_VERSION >= 20041108
1960ID_CZ_ALCHEMIST_RANK = 0x0218
1961#elif CLIENT_TYPE == 'Z' && ( \
1962 PACKET_VERSION >= 20220000 \
1963 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
1964 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
1965 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
1966ID_CZ_ALCHEMIST_RANK = 0x0218
1967#else
1968ID_CZ_ALCHEMIST_RANK = 0x0000 // Disabled
1969#endif
1975class CZ_ALCHEMIST_RANK : public Base::NetworkPacket<ZoneSession>
1976{
1977public:
1978 CZ_ALCHEMIST_RANK(std::shared_ptr<ZoneSession> s)
1980 {}
1982
1983 void handle(ByteBuffer &&buf);
1984 void deserialize(ByteBuffer &buf);
1985
1986/* Structure */
1987};
1988
1989enum {
1990#if CLIENT_TYPE == 'A' && \
1991 PACKET_VERSION >= 20040000
1992ID_CZ_ALLY_GUILD = 0x0172
1993#elif CLIENT_TYPE == 'M' && ( \
1994 PACKET_VERSION >= 20220000 \
1995 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
1996 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
1997 || (PACKET_VERSION >= 20030000 && PACKET_VERSION < 20200000))
1998ID_CZ_ALLY_GUILD = 0x0172
1999#elif CLIENT_TYPE == 'R' && ( \
2000 PACKET_VERSION >= 20210000 \
2001 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
2002 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
2003ID_CZ_ALLY_GUILD = 0x0172
2004#elif CLIENT_TYPE == 'S' && \
2005 PACKET_VERSION >= 20030000
2006ID_CZ_ALLY_GUILD = 0x0172
2007#elif CLIENT_TYPE == 'Z' && ( \
2008 PACKET_VERSION >= 20220000 \
2009 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
2010 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
2011 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
2012ID_CZ_ALLY_GUILD = 0x0172
2013#else
2014ID_CZ_ALLY_GUILD = 0x0000 // Disabled
2015#endif
2021class CZ_ALLY_GUILD : public Base::NetworkPacket<ZoneSession>
2022{
2023public:
2024 CZ_ALLY_GUILD(std::shared_ptr<ZoneSession> s)
2026 {}
2027 virtual ~CZ_ALLY_GUILD() {}
2028
2029 void handle(ByteBuffer &&buf);
2030 void deserialize(ByteBuffer &buf);
2031
2032/* Structure */
2034 int _response{ 0 };
2035};
2036
2037enum {
2038#if CLIENT_TYPE == 'M' && \
2039 PACKET_VERSION >= 20190000
2041#elif CLIENT_TYPE == 'R' && \
2042 PACKET_VERSION >= 20190000
2044#elif CLIENT_TYPE == 'Z' && \
2045 PACKET_VERSION >= 20190000
2047#else
2048ID_CZ_ALT_EQUIPMENT_ADD = 0x0000 // Disabled
2049#endif
2056{
2057public:
2058 CZ_ALT_EQUIPMENT_ADD(std::shared_ptr<ZoneSession> s)
2060 {}
2062
2063 void handle(ByteBuffer &&buf);
2064 void deserialize(ByteBuffer &buf);
2065
2066/* Structure */
2067};
2068
2069enum {
2070#if CLIENT_TYPE == 'M' && ( \
2071 PACKET_VERSION >= 20220000 \
2072 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
2073 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
2074 || PACKET_VERSION >= 20160928)
2076#elif CLIENT_TYPE == 'R' && ( \
2077 PACKET_VERSION >= 20210000 \
2078 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
2079 || PACKET_VERSION >= 20160928)
2081#elif CLIENT_TYPE == 'Z' && ( \
2082 PACKET_VERSION >= 20220000 \
2083 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
2084 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
2085 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
2087#else
2088ID_CZ_ALT_EQUIPMENT_EQUIP = 0x0000 // Disabled
2089#endif
2096{
2097public:
2098 CZ_ALT_EQUIPMENT_EQUIP(std::shared_ptr<ZoneSession> s)
2100 {}
2102
2103 void handle(ByteBuffer &&buf);
2104 void deserialize(ByteBuffer &buf);
2105
2106/* Structure */
2107};
2108
2109enum {
2110#if CLIENT_TYPE == 'M' && ( \
2111 PACKET_VERSION >= 20220000 \
2112 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
2113 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
2114 || (PACKET_VERSION >= 20190000 && PACKET_VERSION < 20200000))
2116#elif CLIENT_TYPE == 'R' && ( \
2117 PACKET_VERSION >= 20210000 \
2118 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
2119 || (PACKET_VERSION >= 20190000 && PACKET_VERSION < 20200000))
2121#elif CLIENT_TYPE == 'Z' && ( \
2122 PACKET_VERSION >= 20220000 \
2123 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
2124 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
2125 || (PACKET_VERSION >= 20190000 && PACKET_VERSION < 20200000))
2127#else
2128ID_CZ_ALT_EQUIPMENT_REMOVE = 0x0000 // Disabled
2129#endif
2136{
2137public:
2138 CZ_ALT_EQUIPMENT_REMOVE(std::shared_ptr<ZoneSession> s)
2140 {}
2142
2143 void handle(ByteBuffer &&buf);
2144 void deserialize(ByteBuffer &buf);
2145
2146/* Structure */
2147};
2148
2149enum {
2150#if CLIENT_TYPE == 'M' && ( \
2151 PACKET_VERSION >= 20220000 \
2152 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
2153 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
2154 || (PACKET_VERSION >= 20190000 && PACKET_VERSION < 20200000))
2156#elif CLIENT_TYPE == 'R' && ( \
2157 PACKET_VERSION >= 20210000 \
2158 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
2159 || (PACKET_VERSION >= 20190000 && PACKET_VERSION < 20200000))
2161#elif CLIENT_TYPE == 'Z' && ( \
2162 PACKET_VERSION >= 20220000 \
2163 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
2164 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
2165 || (PACKET_VERSION >= 20190000 && PACKET_VERSION < 20200000))
2167#else
2168ID_CZ_ALT_EQUIPMENT_SWITCH = 0x0000 // Disabled
2169#endif
2176{
2177public:
2178 CZ_ALT_EQUIPMENT_SWITCH(std::shared_ptr<ZoneSession> s)
2180 {}
2182
2183 void handle(ByteBuffer &&buf);
2184 void deserialize(ByteBuffer &buf);
2185
2186/* Structure */
2187};
2188
2189enum {
2190#if CLIENT_TYPE == 'M' && ( \
2191 PACKET_VERSION >= 20220000 \
2192 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
2193 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
2194 || PACKET_VERSION >= 20180117)
2196#elif CLIENT_TYPE == 'R' && ( \
2197 PACKET_VERSION >= 20210000 \
2198 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
2199 || PACKET_VERSION >= 20180117)
2201#elif CLIENT_TYPE == 'Z' && ( \
2202 PACKET_VERSION >= 20220000 \
2203 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
2204 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
2205 || PACKET_VERSION >= 20180117)
2207#else
2208ID_CZ_ATTENDANCE_REWARD_REQUEST = 0x0000 // Disabled
2209#endif
2216{
2217public:
2218 CZ_ATTENDANCE_REWARD_REQUEST(std::shared_ptr<ZoneSession> s)
2220 {}
2222
2223 void handle(ByteBuffer &&buf);
2224 void deserialize(ByteBuffer &buf);
2225
2226/* Structure */
2227};
2228
2229enum {
2230#if CLIENT_TYPE == 'A' && \
2231 PACKET_VERSION >= 20050808
2232ID_CZ_AUCTION_ADD = 0x024d
2233#elif CLIENT_TYPE == 'M' && ( \
2234 PACKET_VERSION >= 20220000 \
2235 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
2236 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
2237 || PACKET_VERSION >= 20050808)
2238ID_CZ_AUCTION_ADD = 0x024d
2239#elif CLIENT_TYPE == 'R' && ( \
2240 PACKET_VERSION >= 20210000 \
2241 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
2242 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
2243ID_CZ_AUCTION_ADD = 0x024d
2244#elif CLIENT_TYPE == 'S' && \
2245 PACKET_VERSION >= 20050808
2246ID_CZ_AUCTION_ADD = 0x024d
2247#elif CLIENT_TYPE == 'Z' && ( \
2248 PACKET_VERSION >= 20220000 \
2249 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
2250 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
2251 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
2252ID_CZ_AUCTION_ADD = 0x024d
2253#else
2254ID_CZ_AUCTION_ADD = 0x0000 // Disabled
2255#endif
2261class CZ_AUCTION_ADD : public Base::NetworkPacket<ZoneSession>
2262{
2263public:
2264 CZ_AUCTION_ADD(std::shared_ptr<ZoneSession> s)
2266 {}
2267 virtual ~CZ_AUCTION_ADD() {}
2268
2269 void handle(ByteBuffer &&buf);
2270 void deserialize(ByteBuffer &buf);
2271
2272/* Structure */
2273 int _now_money{ 0 };
2274 int _max_money{ 0 };
2275 int16_t _delete_hour{ 0 };
2276};
2277
2278enum {
2279#if CLIENT_TYPE == 'A' && \
2280 PACKET_VERSION >= 20051107
2282#elif CLIENT_TYPE == 'M' && ( \
2283 PACKET_VERSION >= 20220000 \
2284 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
2285 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
2286 || PACKET_VERSION >= 20051107)
2288#elif CLIENT_TYPE == 'R' && ( \
2289 PACKET_VERSION >= 20210000 \
2290 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
2291 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
2293#elif CLIENT_TYPE == 'S' && \
2294 PACKET_VERSION >= 20051107
2296#elif CLIENT_TYPE == 'Z' && ( \
2297 PACKET_VERSION >= 20220000 \
2298 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
2299 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
2300 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
2302#else
2303ID_CZ_AUCTION_ADD_CANCEL = 0x0000 // Disabled
2304#endif
2311{
2312public:
2313 CZ_AUCTION_ADD_CANCEL(std::shared_ptr<ZoneSession> s)
2315 {}
2317
2318 void handle(ByteBuffer &&buf);
2319 void deserialize(ByteBuffer &buf);
2320
2321/* Structure */
2322 int _auction_id{ 0 };
2323};
2324
2325enum {
2326#if CLIENT_TYPE == 'A' && \
2327 PACKET_VERSION >= 20050718
2329#elif CLIENT_TYPE == 'M' && ( \
2330 PACKET_VERSION >= 20220000 \
2331 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
2332 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
2333 || PACKET_VERSION >= 20050718)
2335#elif CLIENT_TYPE == 'R' && ( \
2336 PACKET_VERSION >= 20210000 \
2337 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
2338 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
2340#elif CLIENT_TYPE == 'S' && \
2341 PACKET_VERSION >= 20050718
2343#elif CLIENT_TYPE == 'Z' && ( \
2344 PACKET_VERSION >= 20220000 \
2345 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
2346 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
2347 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
2349#else
2350ID_CZ_AUCTION_ADD_ITEM = 0x0000 // Disabled
2351#endif
2357class CZ_AUCTION_ADD_ITEM : public Base::NetworkPacket<ZoneSession>
2358{
2359public:
2360 CZ_AUCTION_ADD_ITEM(std::shared_ptr<ZoneSession> s)
2362 {}
2364
2365 void handle(ByteBuffer &&buf);
2366 void deserialize(ByteBuffer &buf);
2367
2368/* Structure */
2370 int _amount{ 0 };
2371};
2372
2373enum {
2374#if CLIENT_TYPE == 'A' && \
2375 PACKET_VERSION >= 20050718
2376ID_CZ_AUCTION_BUY = 0x024f
2377#elif CLIENT_TYPE == 'M' && ( \
2378 PACKET_VERSION >= 20220000 \
2379 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
2380 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
2381 || PACKET_VERSION >= 20050718)
2382ID_CZ_AUCTION_BUY = 0x024f
2383#elif CLIENT_TYPE == 'R' && ( \
2384 PACKET_VERSION >= 20210000 \
2385 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
2386 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
2387ID_CZ_AUCTION_BUY = 0x024f
2388#elif CLIENT_TYPE == 'S' && \
2389 PACKET_VERSION >= 20050718
2390ID_CZ_AUCTION_BUY = 0x024f
2391#elif CLIENT_TYPE == 'Z' && ( \
2392 PACKET_VERSION >= 20220000 \
2393 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
2394 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
2395 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
2396ID_CZ_AUCTION_BUY = 0x024f
2397#else
2398ID_CZ_AUCTION_BUY = 0x0000 // Disabled
2399#endif
2405class CZ_AUCTION_BUY : public Base::NetworkPacket<ZoneSession>
2406{
2407public:
2408 CZ_AUCTION_BUY(std::shared_ptr<ZoneSession> s)
2410 {}
2411 virtual ~CZ_AUCTION_BUY() {}
2412
2413 void handle(ByteBuffer &&buf);
2414 void deserialize(ByteBuffer &buf);
2415
2416/* Structure */
2417 int _auction_id{ 0 };
2418 int _money{ 0 };
2419};
2420
2421enum {
2422#if CLIENT_TYPE == 'A' && \
2423 PACKET_VERSION >= 20050718
2424ID_CZ_AUCTION_CREATE = 0x024b
2425#elif CLIENT_TYPE == 'M' && ( \
2426 PACKET_VERSION >= 20220000 \
2427 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
2428 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
2429 || PACKET_VERSION >= 20050718)
2430ID_CZ_AUCTION_CREATE = 0x024b
2431#elif CLIENT_TYPE == 'R' && ( \
2432 PACKET_VERSION >= 20210000 \
2433 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
2434 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
2435ID_CZ_AUCTION_CREATE = 0x024b
2436#elif CLIENT_TYPE == 'S' && \
2437 PACKET_VERSION >= 20050718
2438ID_CZ_AUCTION_CREATE = 0x024b
2439#elif CLIENT_TYPE == 'Z' && ( \
2440 PACKET_VERSION >= 20220000 \
2441 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
2442 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
2443 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
2444ID_CZ_AUCTION_CREATE = 0x024b
2445#else
2446ID_CZ_AUCTION_CREATE = 0x0000 // Disabled
2447#endif
2453class CZ_AUCTION_CREATE : public Base::NetworkPacket<ZoneSession>
2454{
2455public:
2456 CZ_AUCTION_CREATE(std::shared_ptr<ZoneSession> s)
2458 {}
2460
2461 void handle(ByteBuffer &&buf);
2462 void deserialize(ByteBuffer &buf);
2463
2464/* Structure */
2465 int16_t _type{ 0 };
2466};
2467
2468enum {
2469#if CLIENT_TYPE == 'A' && \
2470 PACKET_VERSION >= 20051107
2472#elif CLIENT_TYPE == 'M' && ( \
2473 PACKET_VERSION >= 20220000 \
2474 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
2475 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
2476 || PACKET_VERSION >= 20051107)
2478#elif CLIENT_TYPE == 'R' && ( \
2479 PACKET_VERSION >= 20210000 \
2480 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
2481 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
2483#elif CLIENT_TYPE == 'S' && \
2484 PACKET_VERSION >= 20051107
2486#elif CLIENT_TYPE == 'Z' && ( \
2487 PACKET_VERSION >= 20220000 \
2488 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
2489 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
2490 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
2492#else
2493ID_CZ_AUCTION_ITEM_SEARCH = 0x0000 // Disabled
2494#endif
2501{
2502public:
2503 CZ_AUCTION_ITEM_SEARCH(std::shared_ptr<ZoneSession> s)
2505 {}
2507
2508 void handle(ByteBuffer &&buf);
2509 void deserialize(ByteBuffer &buf);
2510
2511/* Structure */
2512 int16_t _search_type{ 0 };
2513 int _auction_id{ 0 };
2515 int16_t _page_number{ 0 };
2516};
2517
2518enum {
2519#if CLIENT_TYPE == 'A' && \
2520 PACKET_VERSION >= 20051013
2522#elif CLIENT_TYPE == 'M' && ( \
2523 PACKET_VERSION >= 20220000 \
2524 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
2525 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
2526 || PACKET_VERSION >= 20051013)
2528#elif CLIENT_TYPE == 'R' && ( \
2529 PACKET_VERSION >= 20210000 \
2530 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
2531 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
2533#elif CLIENT_TYPE == 'S' && \
2534 PACKET_VERSION >= 20051013
2536#elif CLIENT_TYPE == 'Z' && ( \
2537 PACKET_VERSION >= 20220000 \
2538 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
2539 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
2540 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
2542#else
2543ID_CZ_AUCTION_REQ_MY_INFO = 0x0000 // Disabled
2544#endif
2551{
2552public:
2553 CZ_AUCTION_REQ_MY_INFO(std::shared_ptr<ZoneSession> s)
2555 {}
2557
2558 void handle(ByteBuffer &&buf);
2559 void deserialize(ByteBuffer &buf);
2560
2561/* Structure */
2562 int16_t _type{ 0 };
2563};
2564
2565enum {
2566#if CLIENT_TYPE == 'A' && \
2567 PACKET_VERSION >= 20051017
2569#elif CLIENT_TYPE == 'M' && ( \
2570 PACKET_VERSION >= 20220000 \
2571 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
2572 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
2573 || PACKET_VERSION >= 20051017)
2575#elif CLIENT_TYPE == 'R' && ( \
2576 PACKET_VERSION >= 20210000 \
2577 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
2578 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
2580#elif CLIENT_TYPE == 'S' && \
2581 PACKET_VERSION >= 20051017
2583#elif CLIENT_TYPE == 'Z' && ( \
2584 PACKET_VERSION >= 20220000 \
2585 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
2586 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
2587 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
2589#else
2590ID_CZ_AUCTION_REQ_MY_SELL_STOP = 0x0000 // Disabled
2591#endif
2598{
2599public:
2600 CZ_AUCTION_REQ_MY_SELL_STOP(std::shared_ptr<ZoneSession> s)
2602 {}
2604
2605 void handle(ByteBuffer &&buf);
2606 void deserialize(ByteBuffer &buf);
2607
2608/* Structure */
2609 int _auction_id{ 0 };
2610};
2611
2612enum {
2613#if CLIENT_TYPE == 'A' && \
2614 PACKET_VERSION >= 20071002
2616#elif CLIENT_TYPE == 'M' && ( \
2617 PACKET_VERSION >= 20220000 \
2618 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
2619 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
2620 || PACKET_VERSION >= 20071002)
2622#elif CLIENT_TYPE == 'R' && ( \
2623 PACKET_VERSION >= 20210000 \
2624 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
2625 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
2627#elif CLIENT_TYPE == 'S' && \
2628 PACKET_VERSION >= 20071002
2630#elif CLIENT_TYPE == 'Z' && ( \
2631 PACKET_VERSION >= 20220000 \
2632 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
2633 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
2634 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
2636#else
2637ID_CZ_BATTLEFIELD_CHAT = 0x0000 // Disabled
2638#endif
2644class CZ_BATTLEFIELD_CHAT : public Base::NetworkPacket<ZoneSession>
2645{
2646public:
2647 CZ_BATTLEFIELD_CHAT(std::shared_ptr<ZoneSession> s)
2649 {}
2651
2652 void handle(ByteBuffer &&buf);
2653 void deserialize(ByteBuffer &buf);
2654
2655/* Structure */
2656 int16_t _packet_length{ 0 };
2658};
2659
2660enum {
2661#if CLIENT_TYPE == 'M' && ( \
2662 PACKET_VERSION >= 20220000 \
2663 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
2664 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
2665 || PACKET_VERSION >= 20090929)
2667#elif CLIENT_TYPE == 'R' && ( \
2668 PACKET_VERSION >= 20210000 \
2669 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
2670 || PACKET_VERSION >= 20090929)
2672#elif CLIENT_TYPE == 'Z' && ( \
2673 PACKET_VERSION >= 20220000 \
2674 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
2675 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
2676 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
2678#else
2679ID_CZ_BATTLE_FIELD_LIST = 0x0000 // Disabled
2680#endif
2687{
2688public:
2689 CZ_BATTLE_FIELD_LIST(std::shared_ptr<ZoneSession> s)
2691 {}
2693
2694 void handle(ByteBuffer &&buf);
2695 void deserialize(ByteBuffer &buf);
2696
2697/* Structure */
2698};
2699
2700enum {
2701#if CLIENT_TYPE == 'A' && \
2702 PACKET_VERSION >= 20041108
2703ID_CZ_BLACKSMITH_RANK = 0x0217
2704#elif CLIENT_TYPE == 'M' && ( \
2705 PACKET_VERSION >= 20220000 \
2706 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
2707 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
2708 || PACKET_VERSION >= 20041108)
2709ID_CZ_BLACKSMITH_RANK = 0x0217
2710#elif CLIENT_TYPE == 'R' && ( \
2711 PACKET_VERSION >= 20210000 \
2712 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
2713 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
2714ID_CZ_BLACKSMITH_RANK = 0x0217
2715#elif CLIENT_TYPE == 'S' && \
2716 PACKET_VERSION >= 20041108
2717ID_CZ_BLACKSMITH_RANK = 0x0217
2718#elif CLIENT_TYPE == 'Z' && ( \
2719 PACKET_VERSION >= 20220000 \
2720 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
2721 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
2722 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
2723ID_CZ_BLACKSMITH_RANK = 0x0217
2724#else
2725ID_CZ_BLACKSMITH_RANK = 0x0000 // Disabled
2726#endif
2732class CZ_BLACKSMITH_RANK : public Base::NetworkPacket<ZoneSession>
2733{
2734public:
2735 CZ_BLACKSMITH_RANK(std::shared_ptr<ZoneSession> s)
2737 {}
2739
2740 void handle(ByteBuffer &&buf);
2741 void deserialize(ByteBuffer &buf);
2742
2743/* Structure */
2744};
2745
2746enum {
2747#if CLIENT_TYPE == 'M' && ( \
2748 PACKET_VERSION >= 20220000 \
2749 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
2750 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
2751 || PACKET_VERSION >= 20090520)
2753#elif CLIENT_TYPE == 'R' && ( \
2754 PACKET_VERSION >= 20210000 \
2755 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
2756 || PACKET_VERSION >= 20090520)
2758#elif CLIENT_TYPE == 'S' && \
2759 PACKET_VERSION >= 20090520
2761#elif CLIENT_TYPE == 'Z' && ( \
2762 PACKET_VERSION >= 20220000 \
2763 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
2764 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
2765 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
2767#else
2768ID_CZ_BLOCKING_PLAY_CANCEL = 0x0000 // Disabled
2769#endif
2776{
2777public:
2778 CZ_BLOCKING_PLAY_CANCEL(std::shared_ptr<ZoneSession> s)
2780 {}
2782
2783 void handle(ByteBuffer &&buf);
2784 void deserialize(ByteBuffer &buf);
2785
2786/* Structure */
2787};
2788
2789enum {
2790#if CLIENT_TYPE == 'A' && \
2791 PACKET_VERSION >= 20071120
2792ID_CZ_BOT_CHECK = 0x02e6
2793#elif CLIENT_TYPE == 'M' && ( \
2794 PACKET_VERSION >= 20220000 \
2795 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
2796 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
2797 || PACKET_VERSION >= 20071120)
2798ID_CZ_BOT_CHECK = 0x02e6
2799#elif CLIENT_TYPE == 'R' && ( \
2800 PACKET_VERSION >= 20210000 \
2801 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
2802 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
2803ID_CZ_BOT_CHECK = 0x02e6
2804#elif CLIENT_TYPE == 'S' && \
2805 PACKET_VERSION >= 20071120
2806ID_CZ_BOT_CHECK = 0x02e6
2807#elif CLIENT_TYPE == 'Z' && ( \
2808 PACKET_VERSION >= 20220000 \
2809 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
2810 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
2811 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
2812ID_CZ_BOT_CHECK = 0x02e6
2813#else
2814ID_CZ_BOT_CHECK = 0x0000 // Disabled
2815#endif
2821class CZ_BOT_CHECK : public Base::NetworkPacket<ZoneSession>
2822{
2823public:
2824 CZ_BOT_CHECK(std::shared_ptr<ZoneSession> s)
2826 {}
2827 virtual ~CZ_BOT_CHECK() {}
2828
2829 void handle(ByteBuffer &&buf);
2830 void deserialize(ByteBuffer &buf);
2831
2832/* Structure */
2833};
2834
2835enum {
2836#if CLIENT_TYPE == 'A' && \
2837 PACKET_VERSION >= 20040000
2838ID_CZ_BROADCAST = 0x0099
2839#elif CLIENT_TYPE == 'M' && ( \
2840 PACKET_VERSION >= 20220000 \
2841 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
2842 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
2843 || (PACKET_VERSION >= 20030000 && PACKET_VERSION < 20200000))
2844ID_CZ_BROADCAST = 0x0099
2845#elif CLIENT_TYPE == 'R' && ( \
2846 PACKET_VERSION >= 20210000 \
2847 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
2848 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
2849ID_CZ_BROADCAST = 0x0099
2850#elif CLIENT_TYPE == 'S' && \
2851 PACKET_VERSION >= 20030000
2852ID_CZ_BROADCAST = 0x0099
2853#elif CLIENT_TYPE == 'Z' && ( \
2854 PACKET_VERSION >= 20220000 \
2855 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
2856 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
2857 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
2858ID_CZ_BROADCAST = 0x0099
2859#else
2860ID_CZ_BROADCAST = 0x0000 // Disabled
2861#endif
2867class CZ_BROADCAST : public Base::NetworkPacket<ZoneSession>
2868{
2869public:
2870 CZ_BROADCAST(std::shared_ptr<ZoneSession> s)
2872 {}
2873 virtual ~CZ_BROADCAST() {}
2874
2875 void handle(ByteBuffer &&buf);
2876 void deserialize(ByteBuffer &buf);
2877
2878/* Structure */
2879 int16_t _packet_length{ 0 };
2881};
2882
2883enum {
2884#if CLIENT_TYPE == 'M' && ( \
2885 PACKET_VERSION >= 20220000 \
2886 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
2887 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
2888 || (PACKET_VERSION >= 20190000 && PACKET_VERSION < 20200000))
2889ID_CZ_CAMERA_INFO = 0x0a77
2890#elif CLIENT_TYPE == 'R' && ( \
2891 PACKET_VERSION >= 20210000 \
2892 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
2893 || (PACKET_VERSION >= 20190000 && PACKET_VERSION < 20200000))
2894ID_CZ_CAMERA_INFO = 0x0a77
2895#elif CLIENT_TYPE == 'Z' && ( \
2896 PACKET_VERSION >= 20220000 \
2897 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
2898 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
2899 || (PACKET_VERSION >= 20190000 && PACKET_VERSION < 20200000))
2900ID_CZ_CAMERA_INFO = 0x0a77
2901#else
2902ID_CZ_CAMERA_INFO = 0x0000 // Disabled
2903#endif
2909class CZ_CAMERA_INFO : public Base::NetworkPacket<ZoneSession>
2910{
2911public:
2912 CZ_CAMERA_INFO(std::shared_ptr<ZoneSession> s)
2914 {}
2915 virtual ~CZ_CAMERA_INFO() {}
2916
2917 void handle(ByteBuffer &&buf);
2918 void deserialize(ByteBuffer &buf);
2919
2920/* Structure */
2921};
2922
2923enum {
2924#if CLIENT_TYPE == 'M' && ( \
2925 PACKET_VERSION >= 20220000 \
2926 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
2927 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
2928 || PACKET_VERSION >= 20090929)
2930#elif CLIENT_TYPE == 'R' && ( \
2931 PACKET_VERSION >= 20210000 \
2932 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
2933 || PACKET_VERSION >= 20090929)
2935#elif CLIENT_TYPE == 'Z' && ( \
2936 PACKET_VERSION >= 20220000 \
2937 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
2938 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
2939 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
2941#else
2942ID_CZ_CANCEL_BATTLE_FIELD = 0x0000 // Disabled
2943#endif
2950{
2951public:
2952 CZ_CANCEL_BATTLE_FIELD(std::shared_ptr<ZoneSession> s)
2954 {}
2956
2957 void handle(ByteBuffer &&buf);
2958 void deserialize(ByteBuffer &buf);
2959
2960/* Structure */
2961};
2962
2963enum {
2964#if CLIENT_TYPE == 'A' && \
2965 PACKET_VERSION >= 20040000
2967#elif CLIENT_TYPE == 'M' && ( \
2968 PACKET_VERSION >= 20220000 \
2969 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
2970 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
2971 || (PACKET_VERSION >= 20030000 && PACKET_VERSION < 20200000))
2973#elif CLIENT_TYPE == 'R' && ( \
2974 PACKET_VERSION >= 20210000 \
2975 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
2976 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
2978#elif CLIENT_TYPE == 'S' && \
2979 PACKET_VERSION >= 20030000
2981#elif CLIENT_TYPE == 'Z' && ( \
2982 PACKET_VERSION >= 20220000 \
2983 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
2984 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
2985 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
2987#else
2988ID_CZ_CANCEL_EXCHANGE_ITEM = 0x0000 // Disabled
2989#endif
2996{
2997public:
2998 CZ_CANCEL_EXCHANGE_ITEM(std::shared_ptr<ZoneSession> s)
3000 {}
3002
3003 void handle(ByteBuffer &&buf);
3004 void deserialize(ByteBuffer &buf);
3005
3006/* Structure */
3007};
3008
3009enum {
3010#if CLIENT_TYPE == 'A' && \
3011 PACKET_VERSION >= 20040000
3012ID_CZ_CANCEL_LOCKON = 0x0118
3013#elif CLIENT_TYPE == 'M' && ( \
3014 PACKET_VERSION >= 20220000 \
3015 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
3016 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
3017 || (PACKET_VERSION >= 20030000 && PACKET_VERSION < 20200000))
3018ID_CZ_CANCEL_LOCKON = 0x0118
3019#elif CLIENT_TYPE == 'R' && ( \
3020 PACKET_VERSION >= 20210000 \
3021 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
3022 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
3023ID_CZ_CANCEL_LOCKON = 0x0118
3024#elif CLIENT_TYPE == 'S' && \
3025 PACKET_VERSION >= 20030000
3026ID_CZ_CANCEL_LOCKON = 0x0118
3027#elif CLIENT_TYPE == 'Z' && ( \
3028 PACKET_VERSION >= 20220000 \
3029 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
3030 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
3031 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
3032ID_CZ_CANCEL_LOCKON = 0x0118
3033#else
3034ID_CZ_CANCEL_LOCKON = 0x0000 // Disabled
3035#endif
3041class CZ_CANCEL_LOCKON : public Base::NetworkPacket<ZoneSession>
3042{
3043public:
3044 CZ_CANCEL_LOCKON(std::shared_ptr<ZoneSession> s)
3046 {}
3048
3049 void handle(ByteBuffer &&buf);
3050 void deserialize(ByteBuffer &buf);
3051
3052/* Structure */
3053};
3054
3055enum {
3056#if CLIENT_TYPE == 'M' && ( \
3057 PACKET_VERSION >= 20220000 \
3058 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
3059 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
3060 || PACKET_VERSION >= 20120221)
3062#elif CLIENT_TYPE == 'R' && ( \
3063 PACKET_VERSION >= 20210000 \
3064 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
3065 || PACKET_VERSION >= 20120221)
3067#elif CLIENT_TYPE == 'Z' && ( \
3068 PACKET_VERSION >= 20220000 \
3069 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
3070 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
3071 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
3073#else
3074ID_CZ_CANCEL_MERGE_ITEM = 0x0000 // Disabled
3075#endif
3082{
3083public:
3084 CZ_CANCEL_MERGE_ITEM(std::shared_ptr<ZoneSession> s)
3086 {}
3088
3089 void handle(ByteBuffer &&buf);
3090 void deserialize(ByteBuffer &buf);
3091
3092/* Structure */
3093};
3094
3095enum {
3096#if CLIENT_TYPE == 'A' && \
3097 PACKET_VERSION >= 20040000
3098ID_CZ_CHANGE_CHATROOM = 0x00de
3099#elif CLIENT_TYPE == 'M' && ( \
3100 PACKET_VERSION >= 20220000 \
3101 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
3102 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
3103 || (PACKET_VERSION >= 20030000 && PACKET_VERSION < 20200000))
3104ID_CZ_CHANGE_CHATROOM = 0x00de
3105#elif CLIENT_TYPE == 'R' && ( \
3106 PACKET_VERSION >= 20210000 \
3107 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
3108 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
3109ID_CZ_CHANGE_CHATROOM = 0x00de
3110#elif CLIENT_TYPE == 'S' && \
3111 PACKET_VERSION >= 20030000
3112ID_CZ_CHANGE_CHATROOM = 0x00de
3113#elif CLIENT_TYPE == 'Z' && ( \
3114 PACKET_VERSION >= 20220000 \
3115 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
3116 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
3117 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
3118ID_CZ_CHANGE_CHATROOM = 0x00de
3119#else
3120ID_CZ_CHANGE_CHATROOM = 0x0000 // Disabled
3121#endif
3127class CZ_CHANGE_CHATROOM : public Base::NetworkPacket<ZoneSession>
3128{
3129public:
3130 CZ_CHANGE_CHATROOM(std::shared_ptr<ZoneSession> s)
3132 {}
3134
3135 void handle(ByteBuffer &&buf);
3136 void deserialize(ByteBuffer &buf);
3137
3138/* Structure */
3139 int16_t _packet_length{ 0 };
3140 int16_t _limit{ 0 };
3141 int8_t _type{ 0 };
3144};
3145
3146enum {
3147#if CLIENT_TYPE == 'A' && \
3148 PACKET_VERSION >= 20041129
3150#elif CLIENT_TYPE == 'M' && \
3151 PACKET_VERSION >= 20030000
3153#elif CLIENT_TYPE == 'M' && \
3154 PACKET_VERSION >= 20120712
3156#elif CLIENT_TYPE == 'M' && ( \
3157 PACKET_VERSION >= 20220000 \
3158 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
3159 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
3160 || PACKET_VERSION >= 20120926)
3162#elif CLIENT_TYPE == 'M' && ( \
3163 PACKET_VERSION == 20160318 \
3164 || PACKET_VERSION == 20151029 \
3165 || PACKET_VERSION == 20150812 \
3166 || PACKET_VERSION >= 20130107)
3168#elif CLIENT_TYPE == 'M' && \
3169 PACKET_VERSION >= 20130116
3171#elif CLIENT_TYPE == 'M' && ( \
3172 PACKET_VERSION == 20131108 \
3173 || PACKET_VERSION == 20131107)
3175#elif CLIENT_TYPE == 'M' && ( \
3176 PACKET_VERSION == 20140613 \
3177 || PACKET_VERSION == 20140612)
3179#elif CLIENT_TYPE == 'M' && \
3180 PACKET_VERSION >= 20140814
3182#elif CLIENT_TYPE == 'M' && \
3183 PACKET_VERSION >= 20141016
3185#elif CLIENT_TYPE == 'M' && ( \
3186 PACKET_VERSION == 20150130 \
3187 || PACKET_VERSION == 20150129)
3189#elif CLIENT_TYPE == 'M' && \
3190 PACKET_VERSION >= 20150226
3192#elif CLIENT_TYPE == 'M' && \
3193 PACKET_VERSION >= 20150618
3195#elif CLIENT_TYPE == 'M' && \
3196 PACKET_VERSION >= 20150702
3198#elif CLIENT_TYPE == 'M' && ( \
3199 PACKET_VERSION == 20160609 \
3200 || PACKET_VERSION == 20151022)
3202#elif CLIENT_TYPE == 'M' && \
3203 PACKET_VERSION >= 20160526
3205#elif CLIENT_TYPE == 'M' && \
3206 PACKET_VERSION >= 20160630
3208#elif CLIENT_TYPE == 'M' && \
3209 PACKET_VERSION >= 20161103
3211#elif CLIENT_TYPE == 'M' && \
3212 PACKET_VERSION >= 20180131
3214#elif CLIENT_TYPE == 'M' && \
3215 PACKET_VERSION >= 20180309
3217#elif CLIENT_TYPE == 'M' && ( \
3218 PACKET_VERSION == 20190821 \
3219 || PACKET_VERSION == 20190807 \
3220 || PACKET_VERSION == 20190802 \
3221 || PACKET_VERSION == 20190731 \
3222 || PACKET_VERSION == 20190724 \
3223 || PACKET_VERSION == 20190717 \
3224 || PACKET_VERSION == 20190703 \
3225 || PACKET_VERSION == 20190605 \
3226 || PACKET_VERSION == 20190530 \
3227 || PACKET_VERSION == 20190523 \
3228 || PACKET_VERSION == 20190522 \
3229 || PACKET_VERSION == 20190508 \
3230 || PACKET_VERSION == 20190418 \
3231 || PACKET_VERSION == 20190417 \
3232 || PACKET_VERSION == 20190327 \
3233 || PACKET_VERSION == 20190322 \
3234 || PACKET_VERSION == 20190320 \
3235 || PACKET_VERSION == 20190313 \
3236 || PACKET_VERSION == 20190306 \
3237 || PACKET_VERSION == 20190228 \
3238 || PACKET_VERSION == 20190123 \
3239 || PACKET_VERSION == 20190116 \
3240 || PACKET_VERSION == 20181226 \
3241 || PACKET_VERSION == 20181219 \
3242 || PACKET_VERSION == 20181212 \
3243 || PACKET_VERSION == 20181205 \
3244 || PACKET_VERSION == 20181128 \
3245 || PACKET_VERSION == 20181114 \
3246 || PACKET_VERSION == 20181107 \
3247 || PACKET_VERSION == 20181024 \
3248 || PACKET_VERSION == 20180919 \
3249 || PACKET_VERSION == 20180831 \
3250 || PACKET_VERSION == 20180822 \
3251 || PACKET_VERSION >= 20180808 \
3252 || PACKET_VERSION >= 20180718 \
3253 || PACKET_VERSION >= 20180704 \
3254 || PACKET_VERSION >= 20180621 \
3255 || PACKET_VERSION >= 20180620 \
3256 || PACKET_VERSION >= 20180530 \
3257 || PACKET_VERSION >= 20180523 \
3258 || PACKET_VERSION >= 20180516 \
3259 || PACKET_VERSION >= 20180509 \
3260 || PACKET_VERSION >= 20180502 \
3261 || PACKET_VERSION >= 20180425 \
3262 || PACKET_VERSION >= 20180404 \
3263 || PACKET_VERSION >= 20180328 \
3264 || PACKET_VERSION >= 20180321)
3266#elif CLIENT_TYPE == 'R' && \
3267 PACKET_VERSION >= 20080000
3269#elif CLIENT_TYPE == 'R' && \
3270 PACKET_VERSION >= 20120712
3272#elif CLIENT_TYPE == 'R' && ( \
3273 PACKET_VERSION == 20121011 \
3274 || PACKET_VERSION == 20120926)
3276#elif CLIENT_TYPE == 'R' && \
3277 PACKET_VERSION >= 20130116
3279#elif CLIENT_TYPE == 'R' && ( \
3280 PACKET_VERSION >= 20210000 \
3281 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
3282 || PACKET_VERSION >= 20141016)
3284#elif CLIENT_TYPE == 'R' && \
3285 PACKET_VERSION >= 20150226
3287#elif CLIENT_TYPE == 'R' && \
3288 PACKET_VERSION >= 20150618
3290#elif CLIENT_TYPE == 'R' && ( \
3291 PACKET_VERSION == 20151029 \
3292 || PACKET_VERSION == 20150812)
3294#elif CLIENT_TYPE == 'R' && \
3295 PACKET_VERSION >= 20151022
3297#elif CLIENT_TYPE == 'R' && \
3298 PACKET_VERSION >= 20160630
3300#elif CLIENT_TYPE == 'R' && \
3301 PACKET_VERSION >= 20161103
3303#elif CLIENT_TYPE == 'R' && ( \
3304 PACKET_VERSION == 20190821 \
3305 || PACKET_VERSION == 20190807 \
3306 || PACKET_VERSION == 20190802 \
3307 || PACKET_VERSION == 20190731 \
3308 || PACKET_VERSION == 20190724 \
3309 || PACKET_VERSION == 20190717 \
3310 || PACKET_VERSION == 20190703 \
3311 || PACKET_VERSION == 20190626 \
3312 || PACKET_VERSION == 20190605 \
3313 || PACKET_VERSION == 20190530 \
3314 || PACKET_VERSION == 20190522 \
3315 || PACKET_VERSION == 20190508 \
3316 || PACKET_VERSION == 20190418 \
3317 || PACKET_VERSION == 20190417 \
3318 || PACKET_VERSION == 20190327 \
3319 || PACKET_VERSION == 20190322 \
3320 || PACKET_VERSION == 20190320 \
3321 || PACKET_VERSION == 20190306 \
3322 || PACKET_VERSION == 20190228 \
3323 || PACKET_VERSION == 20190123 \
3324 || PACKET_VERSION == 20190116 \
3325 || PACKET_VERSION == 20181226 \
3326 || PACKET_VERSION == 20181219 \
3327 || PACKET_VERSION == 20181212 \
3328 || PACKET_VERSION == 20181205 \
3329 || PACKET_VERSION == 20181128 \
3330 || PACKET_VERSION == 20181121 \
3331 || PACKET_VERSION == 20181114 \
3332 || PACKET_VERSION == 20181107 \
3333 || PACKET_VERSION == 20180822 \
3334 || PACKET_VERSION >= 20180808 \
3335 || PACKET_VERSION >= 20180718 \
3336 || PACKET_VERSION >= 20180711 \
3337 || PACKET_VERSION >= 20180621 \
3338 || PACKET_VERSION >= 20180620 \
3339 || PACKET_VERSION >= 20180612 \
3340 || PACKET_VERSION >= 20180530 \
3341 || PACKET_VERSION >= 20180523 \
3342 || PACKET_VERSION >= 20180516 \
3343 || PACKET_VERSION >= 20180502 \
3344 || PACKET_VERSION >= 20180425 \
3345 || PACKET_VERSION >= 20180404 \
3346 || PACKET_VERSION >= 20180328)
3348#elif CLIENT_TYPE == 'S' && \
3349 PACKET_VERSION >= 20030000
3351#elif CLIENT_TYPE == 'Z' && \
3352 PACKET_VERSION >= 20170000
3354#elif CLIENT_TYPE == 'Z' && ( \
3355 PACKET_VERSION == 20190814 \
3356 || PACKET_VERSION == 20190724 \
3357 || PACKET_VERSION == 20190717 \
3358 || PACKET_VERSION == 20190710 \
3359 || PACKET_VERSION == 20190709 \
3360 || PACKET_VERSION == 20190605 \
3361 || PACKET_VERSION == 20190530 \
3362 || PACKET_VERSION == 20190515 \
3363 || PACKET_VERSION == 20190508 \
3364 || PACKET_VERSION == 20190502 \
3365 || PACKET_VERSION == 20190424 \
3366 || PACKET_VERSION == 20190410 \
3367 || PACKET_VERSION == 20190403 \
3368 || PACKET_VERSION == 20190313 \
3369 || PACKET_VERSION == 20190227 \
3370 || PACKET_VERSION == 20190213 \
3371 || PACKET_VERSION == 20190117 \
3372 || PACKET_VERSION == 20181226 \
3373 || PACKET_VERSION == 20181219 \
3374 || PACKET_VERSION == 20181212 \
3375 || PACKET_VERSION == 20181128 \
3376 || PACKET_VERSION == 20181120 \
3377 || PACKET_VERSION == 20180928 \
3378 || PACKET_VERSION == 20180912 \
3379 || PACKET_VERSION == 20180829 \
3380 || PACKET_VERSION >= 20180808 \
3381 || PACKET_VERSION >= 20180801 \
3382 || PACKET_VERSION >= 20180711 \
3383 || PACKET_VERSION >= 20180703 \
3384 || PACKET_VERSION >= 20180627 \
3385 || PACKET_VERSION >= 20180509 \
3386 || PACKET_VERSION >= 20180411 \
3387 || PACKET_VERSION >= 20180321 \
3388 || PACKET_VERSION >= 20171113 \
3389 || PACKET_VERSION >= 20171031 \
3390 || PACKET_VERSION >= 20171030 \
3391 || PACKET_VERSION >= 20171027 \
3392 || PACKET_VERSION >= 20171025 \
3393 || PACKET_VERSION >= 20171024 \
3394 || PACKET_VERSION >= 20171023 \
3395 || PACKET_VERSION >= 20171019)
3397#elif CLIENT_TYPE == 'Z' && ( \
3398 PACKET_VERSION >= 20220000 \
3399 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
3400 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
3401 || PACKET_VERSION >= 20171117 \
3402 || PACKET_VERSION >= 20171116)
3404#elif CLIENT_TYPE == 'Z' && \
3405 PACKET_VERSION >= 20171122
3407#elif CLIENT_TYPE == 'Z' && ( \
3408 PACKET_VERSION == 20180309 \
3409 || PACKET_VERSION == 20180307 \
3410 || PACKET_VERSION == 20171128)
3412#elif CLIENT_TYPE == 'Z' && ( \
3413 PACKET_VERSION == 20171213 \
3414 || PACKET_VERSION == 20171212 \
3415 || PACKET_VERSION == 20171211 \
3416 || PACKET_VERSION == 20171210 \
3417 || PACKET_VERSION == 20171209 \
3418 || PACKET_VERSION == 20171208)
3420#elif CLIENT_TYPE == 'Z' && \
3421 PACKET_VERSION >= 20171221
3423#elif CLIENT_TYPE == 'Z' && \
3424 PACKET_VERSION >= 20171229
3426#else
3427ID_CZ_CHANGE_DIRECTION = 0x0000 // Disabled
3428#endif
3434class CZ_CHANGE_DIRECTION : public Base::NetworkPacket<ZoneSession>
3435{
3436public:
3437 CZ_CHANGE_DIRECTION(std::shared_ptr<ZoneSession> s)
3439 {}
3441
3442 void handle(ByteBuffer &&buf);
3443 void deserialize(ByteBuffer &buf);
3444
3445/* Structure */
3446 int16_t _head_direction{ 0 };
3447 int8_t _body_direction{ 0 };
3448};
3449
3450enum {
3451#if CLIENT_TYPE == 'A' && \
3452 PACKET_VERSION >= 20080701
3454#elif CLIENT_TYPE == 'M' && ( \
3455 PACKET_VERSION >= 20220000 \
3456 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
3457 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
3458 || (PACKET_VERSION >= 20190000 && PACKET_VERSION < 20200000) \
3459 || PACKET_VERSION >= 20180315 \
3460 || PACKET_VERSION >= 20180314 \
3461 || PACKET_VERSION >= 20180124 \
3462 || PACKET_VERSION >= 20180117 \
3463 || PACKET_VERSION >= 20180103 \
3464 || PACKET_VERSION >= 20171227 \
3465 || PACKET_VERSION >= 20171206 \
3466 || PACKET_VERSION >= 20171129 \
3467 || PACKET_VERSION >= 20171101 \
3468 || PACKET_VERSION >= 20171025 \
3469 || PACKET_VERSION >= 20171002 \
3470 || PACKET_VERSION >= 20170927 \
3471 || PACKET_VERSION >= 20170830 \
3472 || PACKET_VERSION >= 20170823 \
3473 || PACKET_VERSION >= 20170816 \
3474 || PACKET_VERSION >= 20170809 \
3475 || PACKET_VERSION >= 20170801 \
3476 || PACKET_VERSION >= 20170719 \
3477 || PACKET_VERSION >= 20170712 \
3478 || PACKET_VERSION >= 20170705 \
3479 || PACKET_VERSION >= 20170628 \
3480 || PACKET_VERSION >= 20170621 \
3481 || PACKET_VERSION >= 20170614 \
3482 || PACKET_VERSION >= 20170607 \
3483 || PACKET_VERSION >= 20170531 \
3484 || PACKET_VERSION >= 20170329 \
3485 || PACKET_VERSION >= 20170322 \
3486 || PACKET_VERSION >= 20170315 \
3487 || PACKET_VERSION >= 20170308 \
3488 || PACKET_VERSION >= 20170104 \
3489 || PACKET_VERSION >= 20161214 \
3490 || PACKET_VERSION >= 20161207 \
3491 || PACKET_VERSION >= 20161130 \
3492 || PACKET_VERSION >= 20161109 \
3493 || PACKET_VERSION >= 20161102 \
3494 || PACKET_VERSION >= 20161026 \
3495 || PACKET_VERSION >= 20161019 \
3496 || PACKET_VERSION >= 20160928 \
3497 || PACKET_VERSION >= 20160921 \
3498 || PACKET_VERSION >= 20160913 \
3499 || PACKET_VERSION >= 20160907 \
3500 || PACKET_VERSION >= 20160831 \
3501 || PACKET_VERSION >= 20160824 \
3502 || PACKET_VERSION >= 20160817 \
3503 || PACKET_VERSION >= 20160810 \
3504 || PACKET_VERSION >= 20160629 \
3505 || PACKET_VERSION >= 20160622 \
3506 || PACKET_VERSION >= 20160504 \
3507 || PACKET_VERSION >= 20160427 \
3508 || PACKET_VERSION >= 20160323 \
3509 || PACKET_VERSION >= 20160316 \
3510 || PACKET_VERSION >= 20160309 \
3511 || PACKET_VERSION >= 20160211 \
3512 || PACKET_VERSION >= 20160203 \
3513 || PACKET_VERSION >= 20160127 \
3514 || PACKET_VERSION >= 20160120 \
3515 || PACKET_VERSION >= 20160106 \
3516 || PACKET_VERSION >= 20151223 \
3517 || PACKET_VERSION >= 20151216 \
3518 || PACKET_VERSION >= 20151209 \
3519 || PACKET_VERSION >= 20151202 \
3520 || PACKET_VERSION >= 20151104 \
3521 || PACKET_VERSION >= 20151028 \
3522 || PACKET_VERSION >= 20151021 \
3523 || PACKET_VERSION >= 20151007 \
3524 || PACKET_VERSION >= 20151001 \
3525 || PACKET_VERSION >= 20150923 \
3526 || PACKET_VERSION >= 20150916 \
3527 || PACKET_VERSION >= 20150909 \
3528 || PACKET_VERSION >= 20150819 \
3529 || PACKET_VERSION >= 20150805 \
3530 || PACKET_VERSION >= 20150729 \
3531 || PACKET_VERSION >= 20150722 \
3532 || PACKET_VERSION >= 20150610 \
3533 || PACKET_VERSION >= 20150603 \
3534 || PACKET_VERSION >= 20150527 \
3535 || PACKET_VERSION >= 20150520 \
3536 || PACKET_VERSION >= 20150429 \
3537 || PACKET_VERSION >= 20150422 \
3538 || PACKET_VERSION >= 20150415 \
3539 || PACKET_VERSION >= 20150225 \
3540 || PACKET_VERSION >= 20150217 \
3541 || PACKET_VERSION >= 20150211 \
3542 || PACKET_VERSION >= 20150204 \
3543 || PACKET_VERSION >= 20150107 \
3544 || PACKET_VERSION >= 20141231 \
3545 || PACKET_VERSION >= 20141224 \
3546 || PACKET_VERSION >= 20141105 \
3547 || PACKET_VERSION >= 20141029 \
3548 || PACKET_VERSION >= 20141015 \
3549 || PACKET_VERSION >= 20141008 \
3550 || PACKET_VERSION >= 20141001 \
3551 || PACKET_VERSION >= 20140903 \
3552 || PACKET_VERSION >= 20140827 \
3553 || PACKET_VERSION >= 20140813 \
3554 || PACKET_VERSION >= 20140806 \
3555 || PACKET_VERSION >= 20140611 \
3556 || PACKET_VERSION >= 20140514 \
3557 || PACKET_VERSION >= 20140508 \
3558 || PACKET_VERSION >= 20140423 \
3559 || PACKET_VERSION >= 20140416 \
3560 || PACKET_VERSION >= 20140312 \
3561 || PACKET_VERSION >= 20140226 \
3562 || PACKET_VERSION >= 20140212 \
3563 || PACKET_VERSION >= 20140205 \
3564 || PACKET_VERSION >= 20140129 \
3565 || PACKET_VERSION >= 20140122 \
3566 || PACKET_VERSION >= 20140115 \
3567 || PACKET_VERSION >= 20140108 \
3568 || PACKET_VERSION >= 20131230 \
3569 || PACKET_VERSION >= 20131223 \
3570 || PACKET_VERSION >= 20131127 \
3571 || PACKET_VERSION >= 20131120 \
3572 || PACKET_VERSION >= 20131023 \
3573 || PACKET_VERSION >= 20131016 \
3574 || PACKET_VERSION >= 20131008 \
3575 || PACKET_VERSION >= 20131002 \
3576 || PACKET_VERSION >= 20130911 \
3577 || PACKET_VERSION >= 20130904 \
3578 || PACKET_VERSION >= 20130828 \
3579 || PACKET_VERSION >= 20130821 \
3580 || PACKET_VERSION >= 20130814 \
3581 || PACKET_VERSION >= 20130807 \
3582 || PACKET_VERSION >= 20130717 \
3583 || PACKET_VERSION >= 20130710 \
3584 || PACKET_VERSION >= 20130612 \
3585 || PACKET_VERSION >= 20130605 \
3586 || PACKET_VERSION >= 20130502 \
3587 || PACKET_VERSION >= 20130424 \
3588 || PACKET_VERSION >= 20130227 \
3589 || PACKET_VERSION >= 20130220 \
3590 || PACKET_VERSION >= 20130121 \
3591 || PACKET_VERSION >= 20130115 \
3592 || PACKET_VERSION >= 20130109 \
3593 || PACKET_VERSION >= 20130103 \
3594 || PACKET_VERSION >= 20121227 \
3595 || PACKET_VERSION >= 20121212 \
3596 || PACKET_VERSION >= 20121205 \
3597 || PACKET_VERSION >= 20121114 \
3598 || PACKET_VERSION >= 20121107 \
3599 || PACKET_VERSION >= 20120925 \
3600 || PACKET_VERSION >= 20120919 \
3601 || PACKET_VERSION >= 20120822 \
3602 || PACKET_VERSION >= 20120814 \
3603 || PACKET_VERSION >= 20120724 \
3604 || PACKET_VERSION >= 20120716 \
3605 || PACKET_VERSION >= 20120626 \
3606 || PACKET_VERSION >= 20120612 \
3607 || PACKET_VERSION >= 20120604 \
3608 || PACKET_VERSION >= 20120529 \
3609 || PACKET_VERSION >= 20120522 \
3610 || PACKET_VERSION >= 20120508 \
3611 || PACKET_VERSION >= 20120503 \
3612 || PACKET_VERSION >= 20120424 \
3613 || PACKET_VERSION >= 20120417 \
3614 || PACKET_VERSION >= 20120214 \
3615 || PACKET_VERSION >= 20120207 \
3616 || PACKET_VERSION >= 20120131 \
3617 || PACKET_VERSION >= 20120120 \
3618 || PACKET_VERSION >= 20120117 \
3619 || PACKET_VERSION >= 20120110 \
3620 || PACKET_VERSION >= 20120103 \
3621 || PACKET_VERSION >= 20111220 \
3622 || PACKET_VERSION >= 20111213 \
3623 || PACKET_VERSION >= 20111207 \
3624 || PACKET_VERSION >= 20111122 \
3625 || PACKET_VERSION >= 20111114 \
3626 || PACKET_VERSION >= 20111025 \
3627 || PACKET_VERSION >= 20111017 \
3628 || PACKET_VERSION >= 20111010 \
3629 || PACKET_VERSION >= 20111004 \
3630 || PACKET_VERSION >= 20110928 \
3631 || PACKET_VERSION >= 20110831 \
3632 || PACKET_VERSION >= 20110823 \
3633 || PACKET_VERSION >= 20110816 \
3634 || PACKET_VERSION >= 20110809 \
3635 || PACKET_VERSION >= 20110726 \
3636 || PACKET_VERSION >= 20110718 \
3637 || PACKET_VERSION >= 20110711 \
3638 || PACKET_VERSION >= 20110705 \
3639 || PACKET_VERSION >= 20110627 \
3640 || PACKET_VERSION >= 20110620 \
3641 || PACKET_VERSION >= 20110614 \
3642 || PACKET_VERSION >= 20110607 \
3643 || PACKET_VERSION >= 20110531 \
3644 || PACKET_VERSION >= 20110523 \
3645 || PACKET_VERSION >= 20110511 \
3646 || PACKET_VERSION >= 20110503 \
3647 || PACKET_VERSION >= 20110405 \
3648 || PACKET_VERSION >= 20110329 \
3649 || PACKET_VERSION >= 20110322 \
3650 || PACKET_VERSION >= 20110315 \
3651 || PACKET_VERSION >= 20110308 \
3652 || PACKET_VERSION >= 20110228 \
3653 || PACKET_VERSION >= 20110131 \
3654 || PACKET_VERSION >= 20110125 \
3655 || PACKET_VERSION >= 20110118 \
3656 || PACKET_VERSION >= 20110111 \
3657 || PACKET_VERSION >= 20110104 \
3658 || PACKET_VERSION >= 20101228 \
3659 || PACKET_VERSION >= 20101221 \
3660 || PACKET_VERSION >= 20101214 \
3661 || PACKET_VERSION >= 20101130 \
3662 || PACKET_VERSION >= 20101123 \
3663 || PACKET_VERSION >= 20100105 \
3664 || PACKET_VERSION >= 20090406 \
3665 || PACKET_VERSION >= 20090401 \
3666 || PACKET_VERSION >= 20090325 \
3667 || PACKET_VERSION >= 20090225 \
3668 || PACKET_VERSION >= 20090218 \
3669 || PACKET_VERSION >= 20090211 \
3670 || PACKET_VERSION >= 20090204 \
3671 || PACKET_VERSION >= 20090120 \
3672 || PACKET_VERSION >= 20090114 \
3673 || PACKET_VERSION >= 20090107 \
3674 || PACKET_VERSION >= 20081217 \
3675 || PACKET_VERSION >= 20081203 \
3676 || PACKET_VERSION >= 20081126 \
3677 || PACKET_VERSION >= 20081119 \
3678 || PACKET_VERSION >= 20081112 \
3679 || PACKET_VERSION >= 20081105 \
3680 || PACKET_VERSION >= 20081029 \
3681 || PACKET_VERSION >= 20081022 \
3682 || PACKET_VERSION >= 20081015 \
3683 || PACKET_VERSION >= 20081008 \
3684 || PACKET_VERSION >= 20080910 \
3685 || PACKET_VERSION >= 20080903 \
3686 || PACKET_VERSION >= 20080827 \
3687 || PACKET_VERSION >= 20080813 \
3688 || PACKET_VERSION >= 20080806 \
3689 || PACKET_VERSION >= 20080730 \
3690 || PACKET_VERSION >= 20080722 \
3691 || PACKET_VERSION >= 20080708 \
3692 || PACKET_VERSION >= 20080701 \
3693 || PACKET_VERSION >= 20080624 \
3694 || PACKET_VERSION >= 20080617 \
3695 || PACKET_VERSION >= 20080528)
3697#elif CLIENT_TYPE == 'R' && ( \
3698 PACKET_VERSION >= 20210000 \
3699 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
3700 || (PACKET_VERSION >= 20190000 && PACKET_VERSION < 20200000) \
3701 || PACKET_VERSION >= 20180321 \
3702 || PACKET_VERSION >= 20180124 \
3703 || PACKET_VERSION >= 20180117 \
3704 || PACKET_VERSION >= 20180103 \
3705 || PACKET_VERSION >= 20171227 \
3706 || PACKET_VERSION >= 20171206 \
3707 || PACKET_VERSION >= 20171129 \
3708 || PACKET_VERSION >= 20171101 \
3709 || PACKET_VERSION >= 20171025 \
3710 || PACKET_VERSION >= 20171002 \
3711 || PACKET_VERSION >= 20170927 \
3712 || PACKET_VERSION >= 20170830 \
3713 || PACKET_VERSION >= 20170823 \
3714 || PACKET_VERSION >= 20170816 \
3715 || PACKET_VERSION >= 20170809 \
3716 || PACKET_VERSION >= 20170801 \
3717 || PACKET_VERSION >= 20170719 \
3718 || PACKET_VERSION >= 20170712 \
3719 || PACKET_VERSION >= 20170705 \
3720 || PACKET_VERSION >= 20170628 \
3721 || PACKET_VERSION >= 20170621 \
3722 || PACKET_VERSION >= 20170614 \
3723 || PACKET_VERSION >= 20170607 \
3724 || PACKET_VERSION >= 20170531 \
3725 || PACKET_VERSION >= 20170329 \
3726 || PACKET_VERSION >= 20170322 \
3727 || PACKET_VERSION >= 20170315 \
3728 || PACKET_VERSION >= 20170308 \
3729 || PACKET_VERSION >= 20170104 \
3730 || PACKET_VERSION >= 20161214 \
3731 || PACKET_VERSION >= 20161207 \
3732 || PACKET_VERSION >= 20161130 \
3733 || PACKET_VERSION >= 20161109 \
3734 || PACKET_VERSION >= 20161102 \
3735 || PACKET_VERSION >= 20161026 \
3736 || PACKET_VERSION >= 20161019 \
3737 || PACKET_VERSION >= 20160928 \
3738 || PACKET_VERSION >= 20160921 \
3739 || PACKET_VERSION >= 20160913 \
3740 || PACKET_VERSION >= 20160907 \
3741 || PACKET_VERSION >= 20160831 \
3742 || PACKET_VERSION >= 20160824 \
3743 || PACKET_VERSION >= 20160817 \
3744 || PACKET_VERSION >= 20160810 \
3745 || PACKET_VERSION >= 20160629 \
3746 || PACKET_VERSION >= 20160622 \
3747 || PACKET_VERSION >= 20160504 \
3748 || PACKET_VERSION >= 20160427 \
3749 || PACKET_VERSION >= 20160323 \
3750 || PACKET_VERSION >= 20160316 \
3751 || PACKET_VERSION >= 20160309 \
3752 || PACKET_VERSION >= 20160211 \
3753 || PACKET_VERSION >= 20160203 \
3754 || PACKET_VERSION >= 20160127 \
3755 || PACKET_VERSION >= 20160120 \
3756 || PACKET_VERSION >= 20160106 \
3757 || PACKET_VERSION >= 20151223 \
3758 || PACKET_VERSION >= 20151216 \
3759 || PACKET_VERSION >= 20151209 \
3760 || PACKET_VERSION >= 20151202 \
3761 || PACKET_VERSION >= 20151104 \
3762 || PACKET_VERSION >= 20151028 \
3763 || PACKET_VERSION >= 20151021 \
3764 || PACKET_VERSION >= 20151007 \
3765 || PACKET_VERSION >= 20151001 \
3766 || PACKET_VERSION >= 20150923 \
3767 || PACKET_VERSION >= 20150916 \
3768 || PACKET_VERSION >= 20150909 \
3769 || PACKET_VERSION >= 20150819 \
3770 || PACKET_VERSION >= 20150805 \
3771 || PACKET_VERSION >= 20150729 \
3772 || PACKET_VERSION >= 20150722 \
3773 || PACKET_VERSION >= 20150610 \
3774 || PACKET_VERSION >= 20150603 \
3775 || PACKET_VERSION >= 20150527 \
3776 || PACKET_VERSION >= 20150520 \
3777 || PACKET_VERSION >= 20150429 \
3778 || PACKET_VERSION >= 20150422 \
3779 || PACKET_VERSION >= 20150415 \
3780 || PACKET_VERSION >= 20150225 \
3781 || PACKET_VERSION >= 20150217 \
3782 || PACKET_VERSION >= 20150211 \
3783 || PACKET_VERSION >= 20150204 \
3784 || PACKET_VERSION >= 20150107 \
3785 || PACKET_VERSION >= 20141231 \
3786 || PACKET_VERSION >= 20141223 \
3787 || PACKET_VERSION >= 20141105 \
3788 || PACKET_VERSION >= 20141029 \
3789 || PACKET_VERSION >= 20141015 \
3790 || PACKET_VERSION >= 20141008 \
3791 || PACKET_VERSION >= 20141001 \
3792 || PACKET_VERSION >= 20140903 \
3793 || PACKET_VERSION >= 20140827 \
3794 || PACKET_VERSION >= 20140813 \
3795 || PACKET_VERSION >= 20140806 \
3796 || PACKET_VERSION >= 20140514 \
3797 || PACKET_VERSION >= 20140508 \
3798 || PACKET_VERSION >= 20140423 \
3799 || PACKET_VERSION >= 20140416 \
3800 || PACKET_VERSION >= 20140312 \
3801 || PACKET_VERSION >= 20140226 \
3802 || PACKET_VERSION >= 20140212 \
3803 || PACKET_VERSION >= 20140205 \
3804 || PACKET_VERSION >= 20140129 \
3805 || PACKET_VERSION >= 20140122 \
3806 || PACKET_VERSION >= 20140115 \
3807 || PACKET_VERSION >= 20140108 \
3808 || PACKET_VERSION >= 20131230 \
3809 || PACKET_VERSION >= 20131223 \
3810 || PACKET_VERSION >= 20131127 \
3811 || PACKET_VERSION >= 20131120 \
3812 || PACKET_VERSION >= 20131023 \
3813 || PACKET_VERSION >= 20131016 \
3814 || PACKET_VERSION >= 20131008 \
3815 || PACKET_VERSION >= 20131002 \
3816 || PACKET_VERSION >= 20130911 \
3817 || PACKET_VERSION >= 20130904 \
3818 || PACKET_VERSION >= 20130828 \
3819 || PACKET_VERSION >= 20130821 \
3820 || PACKET_VERSION >= 20130814 \
3821 || PACKET_VERSION >= 20130807 \
3822 || PACKET_VERSION >= 20130717 \
3823 || PACKET_VERSION >= 20130710 \
3824 || PACKET_VERSION >= 20130612 \
3825 || PACKET_VERSION >= 20130605 \
3826 || PACKET_VERSION >= 20130502 \
3827 || PACKET_VERSION >= 20130424 \
3828 || PACKET_VERSION >= 20130227 \
3829 || PACKET_VERSION >= 20130220 \
3830 || PACKET_VERSION >= 20130121 \
3831 || PACKET_VERSION >= 20130115 \
3832 || PACKET_VERSION >= 20130109 \
3833 || PACKET_VERSION >= 20130103 \
3834 || PACKET_VERSION >= 20121227 \
3835 || PACKET_VERSION >= 20121212 \
3836 || PACKET_VERSION >= 20121205 \
3837 || PACKET_VERSION >= 20121114 \
3838 || PACKET_VERSION >= 20121107 \
3839 || PACKET_VERSION >= 20120925 \
3840 || PACKET_VERSION >= 20120919 \
3841 || PACKET_VERSION >= 20120822 \
3842 || PACKET_VERSION >= 20120814 \
3843 || PACKET_VERSION >= 20120724 \
3844 || PACKET_VERSION >= 20120716 \
3845 || PACKET_VERSION >= 20120626 \
3846 || PACKET_VERSION >= 20120612 \
3847 || PACKET_VERSION >= 20120601 \
3848 || PACKET_VERSION >= 20120529 \
3849 || PACKET_VERSION >= 20120523 \
3850 || PACKET_VERSION >= 20120508 \
3851 || PACKET_VERSION >= 20120502 \
3852 || PACKET_VERSION >= 20120424 \
3853 || PACKET_VERSION >= 20120417 \
3854 || PACKET_VERSION >= 20120214 \
3855 || PACKET_VERSION >= 20120207 \
3856 || PACKET_VERSION >= 20120131 \
3857 || PACKET_VERSION >= 20120120 \
3858 || PACKET_VERSION >= 20120117 \
3859 || PACKET_VERSION >= 20120110 \
3860 || PACKET_VERSION >= 20120103 \
3861 || PACKET_VERSION >= 20111220 \
3862 || PACKET_VERSION >= 20111213 \
3863 || PACKET_VERSION >= 20111207 \
3864 || PACKET_VERSION >= 20111122 \
3865 || PACKET_VERSION >= 20111114 \
3866 || PACKET_VERSION >= 20111025 \
3867 || PACKET_VERSION >= 20111017 \
3868 || PACKET_VERSION >= 20111010 \
3869 || PACKET_VERSION >= 20111004 \
3870 || PACKET_VERSION >= 20110928 \
3871 || PACKET_VERSION >= 20110831 \
3872 || PACKET_VERSION >= 20110823 \
3873 || PACKET_VERSION >= 20110104 \
3874 || PACKET_VERSION >= 20101123 \
3875 || PACKET_VERSION >= 20100105 \
3876 || (PACKET_VERSION >= 20090000 && PACKET_VERSION < 20100105) \
3877 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20090000))
3879#elif CLIENT_TYPE == 'S' && \
3880 PACKET_VERSION >= 20080618
3882#elif CLIENT_TYPE == 'Z' && ( \
3883 PACKET_VERSION >= 20220000 \
3884 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
3885 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
3886 || (PACKET_VERSION >= 20190000 && PACKET_VERSION < 20200000) \
3887 || PACKET_VERSION >= 20180523 \
3888 || PACKET_VERSION >= 20180511 \
3889 || PACKET_VERSION >= 20180315 \
3890 || PACKET_VERSION >= 20180314 \
3891 || PACKET_VERSION >= 20180228 \
3892 || PACKET_VERSION >= 20180221 \
3893 || PACKET_VERSION >= 20180213 \
3894 || PACKET_VERSION >= 20180131 \
3895 || PACKET_VERSION >= 20180117 \
3896 || PACKET_VERSION >= 20180103 \
3897 || PACKET_VERSION >= 20171204 \
3898 || PACKET_VERSION >= 20171130 \
3899 || PACKET_VERSION >= 20171127 \
3900 || PACKET_VERSION >= 20171115 \
3901 || PACKET_VERSION >= 20171018)
3903#else
3904ID_CZ_CHANGE_DIRECTION2 = 0x0000 // Disabled
3905#endif
3912{
3913public:
3914 CZ_CHANGE_DIRECTION2(std::shared_ptr<ZoneSession> s)
3916 {}
3918
3919 void handle(ByteBuffer &&buf);
3920 void deserialize(ByteBuffer &buf);
3921
3922/* Structure */
3923 int16_t _head_direction{ 0 };
3924 int8_t _body_direction{ 0 };
3925};
3926
3927enum {
3928#if CLIENT_TYPE == 'A' && \
3929 PACKET_VERSION >= 20040000
3931#elif CLIENT_TYPE == 'M' && ( \
3932 PACKET_VERSION >= 20220000 \
3933 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
3934 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
3935 || (PACKET_VERSION >= 20030000 && PACKET_VERSION < 20200000))
3937#elif CLIENT_TYPE == 'R' && ( \
3938 PACKET_VERSION >= 20210000 \
3939 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
3940 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
3942#elif CLIENT_TYPE == 'S' && \
3943 PACKET_VERSION >= 20030000
3945#elif CLIENT_TYPE == 'Z' && ( \
3946 PACKET_VERSION >= 20220000 \
3947 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
3948 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
3949 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
3951#else
3952ID_CZ_CHANGE_EFFECTSTATE = 0x0000 // Disabled
3953#endif
3960{
3961public:
3962 CZ_CHANGE_EFFECTSTATE(std::shared_ptr<ZoneSession> s)
3964 {}
3966
3967 void handle(ByteBuffer &&buf);
3968 void deserialize(ByteBuffer &buf);
3969
3970/* Structure */
3972};
3973
3974enum {
3975#if CLIENT_TYPE == 'A' && \
3976 PACKET_VERSION >= 20040000
3978#elif CLIENT_TYPE == 'M' && ( \
3979 PACKET_VERSION >= 20220000 \
3980 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
3981 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
3982 || (PACKET_VERSION >= 20030000 && PACKET_VERSION < 20200000))
3984#elif CLIENT_TYPE == 'R' && ( \
3985 PACKET_VERSION >= 20210000 \
3986 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
3987 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
3989#elif CLIENT_TYPE == 'S' && \
3990 PACKET_VERSION >= 20030000
3992#elif CLIENT_TYPE == 'Z' && ( \
3993 PACKET_VERSION >= 20220000 \
3994 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
3995 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
3996 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
3998#else
3999ID_CZ_CHANGE_GROUPEXPOPTION = 0x0000 // Disabled
4000#endif
4007{
4008public:
4009 CZ_CHANGE_GROUPEXPOPTION(std::shared_ptr<ZoneSession> s)
4011 {}
4013
4014 void handle(ByteBuffer &&buf);
4015 void deserialize(ByteBuffer &buf);
4016
4017/* Structure */
4019};
4020
4021enum {
4022#if CLIENT_TYPE == 'M' && ( \
4023 PACKET_VERSION >= 20220000 \
4024 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
4025 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
4026 || PACKET_VERSION >= 20090603)
4028#elif CLIENT_TYPE == 'R' && ( \
4029 PACKET_VERSION >= 20210000 \
4030 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
4031 || PACKET_VERSION >= 20090603)
4033#elif CLIENT_TYPE == 'S' && \
4034 PACKET_VERSION >= 20090603
4036#elif CLIENT_TYPE == 'Z' && ( \
4037 PACKET_VERSION >= 20220000 \
4038 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
4039 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
4040 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
4042#else
4043ID_CZ_CHANGE_GROUP_MASTER = 0x0000 // Disabled
4044#endif
4051{
4052public:
4053 CZ_CHANGE_GROUP_MASTER(std::shared_ptr<ZoneSession> s)
4055 {}
4057
4058 void handle(ByteBuffer &&buf);
4059 void deserialize(ByteBuffer &buf);
4060
4061/* Structure */
4062 int _account_id{ 0 };
4063};
4064
4065enum {
4066#if CLIENT_TYPE == 'A' && \
4067 PACKET_VERSION >= 20040000
4068ID_CZ_CHANGE_MAPTYPE = 0x0198
4069#elif CLIENT_TYPE == 'M' && ( \
4070 PACKET_VERSION >= 20220000 \
4071 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
4072 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
4073 || (PACKET_VERSION >= 20030000 && PACKET_VERSION < 20200000))
4074ID_CZ_CHANGE_MAPTYPE = 0x0198
4075#elif CLIENT_TYPE == 'R' && ( \
4076 PACKET_VERSION >= 20210000 \
4077 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
4078 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
4079ID_CZ_CHANGE_MAPTYPE = 0x0198
4080#elif CLIENT_TYPE == 'S' && \
4081 PACKET_VERSION >= 20030000
4082ID_CZ_CHANGE_MAPTYPE = 0x0198
4083#elif CLIENT_TYPE == 'Z' && ( \
4084 PACKET_VERSION >= 20220000 \
4085 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
4086 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
4087 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
4088ID_CZ_CHANGE_MAPTYPE = 0x0198
4089#else
4090ID_CZ_CHANGE_MAPTYPE = 0x0000 // Disabled
4091#endif
4097class CZ_CHANGE_MAPTYPE : public Base::NetworkPacket<ZoneSession>
4098{
4099public:
4100 CZ_CHANGE_MAPTYPE(std::shared_ptr<ZoneSession> s)
4102 {}
4104
4105 void handle(ByteBuffer &&buf);
4106 void deserialize(ByteBuffer &buf);
4107
4108/* Structure */
4109 int16_t _x;
4110 int16_t _y;
4111 int16_t _walkable;
4112};
4113
4114enum {
4115#if CLIENT_TYPE == 'M' && ( \
4116 PACKET_VERSION >= 20220000 \
4117 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
4118 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
4119 || PACKET_VERSION >= 20140423)
4121#elif CLIENT_TYPE == 'R' && ( \
4122 PACKET_VERSION >= 20210000 \
4123 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
4124 || PACKET_VERSION >= 20140423)
4126#elif CLIENT_TYPE == 'Z' && ( \
4127 PACKET_VERSION >= 20220000 \
4128 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
4129 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
4130 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
4132#else
4133ID_CZ_CHECK_RECEIVE_CHARACTER_NAME = 0x0000 // Disabled
4134#endif
4141{
4142public:
4143 CZ_CHECK_RECEIVE_CHARACTER_NAME(std::shared_ptr<ZoneSession> s)
4145 {}
4147
4148 void handle(ByteBuffer &&buf);
4149 void deserialize(ByteBuffer &buf);
4150
4151/* Structure */
4153};
4154
4155enum {
4156#if CLIENT_TYPE == 'A' && \
4157 PACKET_VERSION >= 20040000
4158ID_CZ_CHOOSE_MENU = 0x00b8
4159#elif CLIENT_TYPE == 'M' && ( \
4160 PACKET_VERSION >= 20220000 \
4161 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
4162 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
4163 || (PACKET_VERSION >= 20030000 && PACKET_VERSION < 20200000))
4164ID_CZ_CHOOSE_MENU = 0x00b8
4165#elif CLIENT_TYPE == 'R' && ( \
4166 PACKET_VERSION >= 20210000 \
4167 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
4168 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
4169ID_CZ_CHOOSE_MENU = 0x00b8
4170#elif CLIENT_TYPE == 'S' && \
4171 PACKET_VERSION >= 20030000
4172ID_CZ_CHOOSE_MENU = 0x00b8
4173#elif CLIENT_TYPE == 'Z' && ( \
4174 PACKET_VERSION >= 20220000 \
4175 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
4176 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
4177 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
4178ID_CZ_CHOOSE_MENU = 0x00b8
4179#else
4180ID_CZ_CHOOSE_MENU = 0x0000 // Disabled
4181#endif
4187class CZ_CHOOSE_MENU : public Base::NetworkPacket<ZoneSession>
4188{
4189public:
4190 CZ_CHOOSE_MENU(std::shared_ptr<ZoneSession> s)
4192 {}
4193 virtual ~CZ_CHOOSE_MENU() {}
4194
4195 void handle(ByteBuffer &&buf);
4196 void deserialize(ByteBuffer &buf);
4197
4198/* Structure */
4199 int _npc_guid{ 0 };
4200 int8_t _choice{ 0 };
4201};
4202
4203enum {
4204#if CLIENT_TYPE == 'M' && ( \
4205 PACKET_VERSION >= 20220000 \
4206 || PACKET_VERSION == 20210331 \
4207 || PACKET_VERSION == 20210317)
4209#elif CLIENT_TYPE == 'R' && \
4210 PACKET_VERSION >= 20211103
4212#elif CLIENT_TYPE == 'Z' && ( \
4213 PACKET_VERSION >= 20220000 \
4214 || PACKET_VERSION == 20210331 \
4215 || PACKET_VERSION == 20210317)
4217#else
4218ID_CZ_CHOOSE_MENU_ZERO = 0x0000 // Disabled
4219#endif
4225class CZ_CHOOSE_MENU_ZERO : public Base::NetworkPacket<ZoneSession>
4226{
4227public:
4228 CZ_CHOOSE_MENU_ZERO(std::shared_ptr<ZoneSession> s)
4230 {}
4232
4233 void handle(ByteBuffer &&buf);
4234 void deserialize(ByteBuffer &buf);
4235
4236/* Structure */
4237};
4238
4239enum {
4240#if CLIENT_TYPE == 'A' && \
4241 PACKET_VERSION >= 20040000
4242ID_CZ_CHOPOKGI = 0x01ed
4243#elif CLIENT_TYPE == 'M' && ( \
4244 PACKET_VERSION >= 20220000 \
4245 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
4246 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
4247 || PACKET_VERSION >= 20031124)
4248ID_CZ_CHOPOKGI = 0x01ed
4249#elif CLIENT_TYPE == 'R' && ( \
4250 PACKET_VERSION >= 20210000 \
4251 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
4252 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
4253ID_CZ_CHOPOKGI = 0x01ed
4254#elif CLIENT_TYPE == 'S' && \
4255 PACKET_VERSION >= 20031124
4256ID_CZ_CHOPOKGI = 0x01ed
4257#elif CLIENT_TYPE == 'Z' && ( \
4258 PACKET_VERSION >= 20220000 \
4259 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
4260 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
4261 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
4262ID_CZ_CHOPOKGI = 0x01ed
4263#else
4264ID_CZ_CHOPOKGI = 0x0000 // Disabled
4265#endif
4277class CZ_CHOPOKGI : public Base::NetworkPacket<ZoneSession>
4278{
4279public:
4280 CZ_CHOPOKGI(std::shared_ptr<ZoneSession> s)
4282 {}
4283 virtual ~CZ_CHOPOKGI() {}
4284
4285 void handle(ByteBuffer &&buf);
4286 void deserialize(ByteBuffer &buf);
4287
4288/* Structure */
4289};
4290
4291enum {
4292#if CLIENT_TYPE == 'M' && ( \
4293 PACKET_VERSION >= 20220000 \
4294 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
4295 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
4296 || PACKET_VERSION >= 20120716)
4297ID_CZ_CLAN_CHAT = 0x098d
4298#elif CLIENT_TYPE == 'R' && ( \
4299 PACKET_VERSION >= 20210000 \
4300 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
4301 || PACKET_VERSION >= 20120716)
4302ID_CZ_CLAN_CHAT = 0x098d
4303#elif CLIENT_TYPE == 'Z' && ( \
4304 PACKET_VERSION >= 20220000 \
4305 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
4306 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
4307 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
4308ID_CZ_CLAN_CHAT = 0x098d
4309#else
4310ID_CZ_CLAN_CHAT = 0x0000 // Disabled
4311#endif
4317class CZ_CLAN_CHAT : public Base::NetworkPacket<ZoneSession>
4318{
4319public:
4320 CZ_CLAN_CHAT(std::shared_ptr<ZoneSession> s)
4322 {}
4323 virtual ~CZ_CLAN_CHAT() {}
4324
4325 void handle(ByteBuffer &&buf);
4326 void deserialize(ByteBuffer &buf);
4327
4328/* Structure */
4329 int16_t _packet_length{ 0 };
4331};
4332
4333enum {
4334#if CLIENT_TYPE == 'M' && ( \
4335 PACKET_VERSION >= 20220000 \
4336 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
4337 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
4338 || PACKET_VERSION >= 20090406)
4339ID_CZ_CLIENT_VERSION = 0x044a
4340#elif CLIENT_TYPE == 'R' && ( \
4341 PACKET_VERSION >= 20210000 \
4342 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
4343 || PACKET_VERSION >= 20090408)
4344ID_CZ_CLIENT_VERSION = 0x044a
4345#elif CLIENT_TYPE == 'S' && \
4346 PACKET_VERSION >= 20090408
4347ID_CZ_CLIENT_VERSION = 0x044a
4348#elif CLIENT_TYPE == 'Z' && ( \
4349 PACKET_VERSION >= 20220000 \
4350 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
4351 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
4352 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
4353ID_CZ_CLIENT_VERSION = 0x044a
4354#else
4355ID_CZ_CLIENT_VERSION = 0x0000 // Disabled
4356#endif
4362class CZ_CLIENT_VERSION : public Base::NetworkPacket<ZoneSession>
4363{
4364public:
4365 CZ_CLIENT_VERSION(std::shared_ptr<ZoneSession> s)
4367 {}
4369
4370 void handle(ByteBuffer &&buf);
4371 void deserialize(ByteBuffer &buf);
4372
4373/* Structure */
4374 int _version{ 0 };
4375};
4376
4377enum {
4378#if CLIENT_TYPE == 'M' && ( \
4379 PACKET_VERSION >= 20220000 \
4380 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
4381 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
4382 || PACKET_VERSION >= 20130424)
4384#elif CLIENT_TYPE == 'R' && ( \
4385 PACKET_VERSION >= 20210000 \
4386 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
4387 || PACKET_VERSION >= 20130424)
4389#elif CLIENT_TYPE == 'Z' && ( \
4390 PACKET_VERSION >= 20220000 \
4391 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
4392 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
4393 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
4395#else
4396ID_CZ_CLOSE_BARGAIN_SALE_TOOL = 0x0000 // Disabled
4397#endif
4404{
4405public:
4406 CZ_CLOSE_BARGAIN_SALE_TOOL(std::shared_ptr<ZoneSession> s)
4408 {}
4410
4411 void handle(ByteBuffer &&buf);
4412 void deserialize(ByteBuffer &buf);
4413
4414/* Structure */
4415};
4416
4417enum {
4418#if CLIENT_TYPE == 'A' && \
4419 PACKET_VERSION >= 20040000
4420ID_CZ_CLOSE_DIALOG = 0x0146
4421#elif CLIENT_TYPE == 'M' && ( \
4422 PACKET_VERSION >= 20220000 \
4423 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
4424 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
4425 || (PACKET_VERSION >= 20030000 && PACKET_VERSION < 20200000))
4426ID_CZ_CLOSE_DIALOG = 0x0146
4427#elif CLIENT_TYPE == 'R' && ( \
4428 PACKET_VERSION >= 20210000 \
4429 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
4430 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
4431ID_CZ_CLOSE_DIALOG = 0x0146
4432#elif CLIENT_TYPE == 'S' && \
4433 PACKET_VERSION >= 20030000
4434ID_CZ_CLOSE_DIALOG = 0x0146
4435#elif CLIENT_TYPE == 'Z' && ( \
4436 PACKET_VERSION >= 20220000 \
4437 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
4438 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
4439 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
4440ID_CZ_CLOSE_DIALOG = 0x0146
4441#else
4442ID_CZ_CLOSE_DIALOG = 0x0000 // Disabled
4443#endif
4449class CZ_CLOSE_DIALOG : public Base::NetworkPacket<ZoneSession>
4450{
4451public:
4452 CZ_CLOSE_DIALOG(std::shared_ptr<ZoneSession> s)
4454 {}
4455 virtual ~CZ_CLOSE_DIALOG() {}
4456
4457 void handle(ByteBuffer &&buf);
4458 void deserialize(ByteBuffer &buf);
4459
4460/* Structure */
4461 int _npc_guid{ 0 };
4462};
4463
4464enum {
4465#if CLIENT_TYPE == 'M' && ( \
4466 PACKET_VERSION >= 20220000 \
4467 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
4468 || PACKET_VERSION >= 20200916)
4469ID_CZ_CLOSE_REFORM_UI = 0x0b90
4470#elif CLIENT_TYPE == 'R' && \
4471 PACKET_VERSION >= 20211103
4472ID_CZ_CLOSE_REFORM_UI = 0x0b90
4473#elif CLIENT_TYPE == 'Z' && ( \
4474 PACKET_VERSION >= 20220000 \
4475 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
4476 || PACKET_VERSION >= 20201118)
4477ID_CZ_CLOSE_REFORM_UI = 0x0b90
4478#else
4479ID_CZ_CLOSE_REFORM_UI = 0x0000 // Disabled
4480#endif
4486class CZ_CLOSE_REFORM_UI : public Base::NetworkPacket<ZoneSession>
4487{
4488public:
4489 CZ_CLOSE_REFORM_UI(std::shared_ptr<ZoneSession> s)
4491 {}
4493
4494 void handle(ByteBuffer &&buf);
4495 void deserialize(ByteBuffer &buf);
4496
4497/* Structure */
4498};
4499
4500enum {
4501#if CLIENT_TYPE == 'M' && ( \
4502 PACKET_VERSION >= 20220000 \
4503 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
4504 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
4505 || PACKET_VERSION >= 20131211)
4506ID_CZ_CLOSE_RODEXBOX = 0x09e9
4507#elif CLIENT_TYPE == 'R' && ( \
4508 PACKET_VERSION >= 20210000 \
4509 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
4510 || PACKET_VERSION >= 20131211)
4511ID_CZ_CLOSE_RODEXBOX = 0x09e9
4512#elif CLIENT_TYPE == 'Z' && ( \
4513 PACKET_VERSION >= 20220000 \
4514 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
4515 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
4516 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
4517ID_CZ_CLOSE_RODEXBOX = 0x09e9
4518#else
4519ID_CZ_CLOSE_RODEXBOX = 0x0000 // Disabled
4520#endif
4526class CZ_CLOSE_RODEXBOX : public Base::NetworkPacket<ZoneSession>
4527{
4528public:
4529 CZ_CLOSE_RODEXBOX(std::shared_ptr<ZoneSession> s)
4531 {}
4533
4534 void handle(ByteBuffer &&buf);
4535 void deserialize(ByteBuffer &buf);
4536
4537/* Structure */
4538};
4539
4540enum {
4541#if CLIENT_TYPE == 'M' && ( \
4542 PACKET_VERSION >= 20220000 \
4543 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
4544 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
4545 || PACKET_VERSION >= 20100608)
4547#elif CLIENT_TYPE == 'R' && ( \
4548 PACKET_VERSION >= 20210000 \
4549 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
4550 || PACKET_VERSION >= 20100608)
4552#elif CLIENT_TYPE == 'Z' && ( \
4553 PACKET_VERSION >= 20220000 \
4554 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
4555 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
4556 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
4558#else
4559ID_CZ_CLOSE_SEARCH_STORE_INFO = 0x0000 // Disabled
4560#endif
4567{
4568public:
4569 CZ_CLOSE_SEARCH_STORE_INFO(std::shared_ptr<ZoneSession> s)
4571 {}
4573
4574 void handle(ByteBuffer &&buf);
4575 void deserialize(ByteBuffer &buf);
4576
4577/* Structure */
4578};
4579
4580enum {
4581#if CLIENT_TYPE == 'M' && ( \
4582 PACKET_VERSION >= 20220000 \
4583 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
4584 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
4585 || PACKET_VERSION >= 20090514)
4587#elif CLIENT_TYPE == 'R' && ( \
4588 PACKET_VERSION >= 20210000 \
4589 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
4590 || PACKET_VERSION >= 20090514)
4592#elif CLIENT_TYPE == 'S' && \
4593 PACKET_VERSION >= 20090514
4595#elif CLIENT_TYPE == 'Z' && ( \
4596 PACKET_VERSION >= 20220000 \
4597 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
4598 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
4599 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
4601#else
4602ID_CZ_CLOSE_SIMPLECASH_SHOP = 0x0000 // Disabled
4603#endif
4610{
4611public:
4612 CZ_CLOSE_SIMPLECASH_SHOP(std::shared_ptr<ZoneSession> s)
4614 {}
4616
4617 void handle(ByteBuffer &&buf);
4618 void deserialize(ByteBuffer &buf);
4619
4620/* Structure */
4621};
4622
4623enum {
4624#if CLIENT_TYPE == 'M' && ( \
4625 PACKET_VERSION >= 20220000 \
4626 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
4627 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
4628 || (PACKET_VERSION >= 20030000 && PACKET_VERSION < 20200000))
4629ID_CZ_CLOSE_STORE = 0x00f7
4630#elif CLIENT_TYPE == 'S' && \
4631 PACKET_VERSION >= 20030000
4632ID_CZ_CLOSE_STORE = 0x00f7
4633#else
4634ID_CZ_CLOSE_STORE = 0x0000 // Disabled
4635#endif
4641class CZ_CLOSE_STORE : public Base::NetworkPacket<ZoneSession>
4642{
4643public:
4644 CZ_CLOSE_STORE(std::shared_ptr<ZoneSession> s)
4646 {}
4647 virtual ~CZ_CLOSE_STORE() {}
4648
4649 void handle(ByteBuffer &&buf);
4650 void deserialize(ByteBuffer &buf);
4651
4652/* Structure */
4653};
4654
4655enum {
4656#if CLIENT_TYPE == 'M' && ( \
4657 PACKET_VERSION >= 20220000 \
4658 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
4659 || PACKET_VERSION >= 20201118)
4661#elif CLIENT_TYPE == 'R' && \
4662 PACKET_VERSION >= 20211103
4664#elif CLIENT_TYPE == 'Z' && ( \
4665 PACKET_VERSION >= 20220000 \
4666 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
4667 || PACKET_VERSION >= 20201118)
4669#else
4670ID_CZ_CLOSE_UI_ENCHANT = 0x0000 // Disabled
4671#endif
4677class CZ_CLOSE_UI_ENCHANT : public Base::NetworkPacket<ZoneSession>
4678{
4679public:
4680 CZ_CLOSE_UI_ENCHANT(std::shared_ptr<ZoneSession> s)
4682 {}
4684
4685 void handle(ByteBuffer &&buf);
4686 void deserialize(ByteBuffer &buf);
4687
4688/* Structure */
4689};
4690
4691enum {
4692#if CLIENT_TYPE == 'A' && \
4693 PACKET_VERSION >= 20080521
4694ID_CZ_CLOSE_WINDOW = 0x035e
4695#elif CLIENT_TYPE == 'M' && ( \
4696 PACKET_VERSION >= 20220000 \
4697 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
4698 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
4699 || PACKET_VERSION >= 20080521)
4700ID_CZ_CLOSE_WINDOW = 0x035e
4701#elif CLIENT_TYPE == 'R' && ( \
4702 PACKET_VERSION >= 20210000 \
4703 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
4704 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
4705ID_CZ_CLOSE_WINDOW = 0x035e
4706#elif CLIENT_TYPE == 'S' && \
4707 PACKET_VERSION >= 20080527
4708ID_CZ_CLOSE_WINDOW = 0x035e
4709#elif CLIENT_TYPE == 'Z' && ( \
4710 PACKET_VERSION >= 20220000 \
4711 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
4712 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
4713 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
4714ID_CZ_CLOSE_WINDOW = 0x035e
4715#else
4716ID_CZ_CLOSE_WINDOW = 0x0000 // Disabled
4717#endif
4723class CZ_CLOSE_WINDOW : public Base::NetworkPacket<ZoneSession>
4724{
4725public:
4726 CZ_CLOSE_WINDOW(std::shared_ptr<ZoneSession> s)
4728 {}
4729 virtual ~CZ_CLOSE_WINDOW() {}
4730
4731 void handle(ByteBuffer &&buf);
4732 void deserialize(ByteBuffer &buf);
4733
4734/* Structure */
4735};
4736
4737enum {
4738#if CLIENT_TYPE == 'A' && \
4739 PACKET_VERSION >= 20050425
4740ID_CZ_COMMAND_MER = 0x022d
4741#elif CLIENT_TYPE == 'M' && \
4742 PACKET_VERSION >= 20120712
4743ID_CZ_COMMAND_MER = 0x094b
4744#elif CLIENT_TYPE == 'M' && ( \
4745 PACKET_VERSION == 20190821 \
4746 || PACKET_VERSION == 20190807 \
4747 || PACKET_VERSION == 20190802 \
4748 || PACKET_VERSION == 20190731 \
4749 || PACKET_VERSION == 20190724 \
4750 || PACKET_VERSION == 20190717 \
4751 || PACKET_VERSION == 20190703 \
4752 || PACKET_VERSION == 20190605 \
4753 || PACKET_VERSION == 20190530 \
4754 || PACKET_VERSION == 20190523 \
4755 || PACKET_VERSION == 20190522 \
4756 || PACKET_VERSION == 20190508 \
4757 || PACKET_VERSION == 20190418 \
4758 || PACKET_VERSION == 20190417 \
4759 || PACKET_VERSION == 20190327 \
4760 || PACKET_VERSION == 20190322 \
4761 || PACKET_VERSION == 20190320 \
4762 || PACKET_VERSION == 20190313 \
4763 || PACKET_VERSION == 20190306 \
4764 || PACKET_VERSION == 20190228 \
4765 || PACKET_VERSION == 20190123 \
4766 || PACKET_VERSION == 20190116 \
4767 || (PACKET_VERSION >= 20190000 && PACKET_VERSION < 20190116) \
4768 || PACKET_VERSION == 20181226 \
4769 || PACKET_VERSION == 20181219 \
4770 || PACKET_VERSION == 20181212 \
4771 || PACKET_VERSION == 20181205 \
4772 || PACKET_VERSION == 20181128 \
4773 || PACKET_VERSION == 20181114 \
4774 || PACKET_VERSION == 20181107 \
4775 || PACKET_VERSION == 20181024 \
4776 || PACKET_VERSION == 20180919 \
4777 || PACKET_VERSION == 20180831 \
4778 || PACKET_VERSION == 20180822 \
4779 || PACKET_VERSION >= 20180808 \
4780 || PACKET_VERSION >= 20180718 \
4781 || PACKET_VERSION >= 20180704 \
4782 || PACKET_VERSION >= 20180621 \
4783 || PACKET_VERSION >= 20180620 \
4784 || PACKET_VERSION >= 20180530 \
4785 || PACKET_VERSION >= 20180523 \
4786 || PACKET_VERSION >= 20180516 \
4787 || PACKET_VERSION >= 20180509 \
4788 || PACKET_VERSION >= 20180502 \
4789 || PACKET_VERSION >= 20180425 \
4790 || PACKET_VERSION >= 20180404 \
4791 || PACKET_VERSION >= 20180328 \
4792 || PACKET_VERSION >= 20180321 \
4793 || PACKET_VERSION >= 20180315 \
4794 || PACKET_VERSION >= 20180124 \
4795 || PACKET_VERSION >= 20180117 \
4796 || PACKET_VERSION >= 20180103 \
4797 || PACKET_VERSION >= 20171108 \
4798 || PACKET_VERSION >= 20171101 \
4799 || PACKET_VERSION >= 20171025 \
4800 || PACKET_VERSION >= 20171011 \
4801 || PACKET_VERSION >= 20171002 \
4802 || PACKET_VERSION >= 20170823 \
4803 || PACKET_VERSION >= 20170816 \
4804 || PACKET_VERSION >= 20170809 \
4805 || PACKET_VERSION >= 20170801 \
4806 || PACKET_VERSION >= 20170726 \
4807 || PACKET_VERSION >= 20170719 \
4808 || PACKET_VERSION >= 20170712 \
4809 || PACKET_VERSION >= 20170705 \
4810 || PACKET_VERSION >= 20170628 \
4811 || PACKET_VERSION >= 20170329 \
4812 || PACKET_VERSION >= 20170322 \
4813 || PACKET_VERSION >= 20170315 \
4814 || PACKET_VERSION >= 20170308 \
4815 || PACKET_VERSION >= 20170228 \
4816 || PACKET_VERSION >= 20170125 \
4817 || PACKET_VERSION >= 20170118 \
4818 || PACKET_VERSION >= 20170104 \
4819 || PACKET_VERSION >= 20161221 \
4820 || PACKET_VERSION >= 20161214 \
4821 || PACKET_VERSION >= 20161026 \
4822 || PACKET_VERSION >= 20161019 \
4823 || PACKET_VERSION >= 20160928 \
4824 || PACKET_VERSION >= 20160921 \
4825 || PACKET_VERSION >= 20160913 \
4826 || PACKET_VERSION >= 20160907 \
4827 || PACKET_VERSION >= 20160831 \
4828 || PACKET_VERSION >= 20160824 \
4829 || PACKET_VERSION >= 20160720 \
4830 || PACKET_VERSION >= 20160713 \
4831 || PACKET_VERSION >= 20160706 \
4832 || PACKET_VERSION >= 20160629 \
4833 || PACKET_VERSION >= 20160615 \
4834 || PACKET_VERSION >= 20160608 \
4835 || PACKET_VERSION >= 20160504 \
4836 || PACKET_VERSION >= 20160427 \
4837 || PACKET_VERSION >= 20160420 \
4838 || PACKET_VERSION >= 20160323 \
4839 || PACKET_VERSION >= 20160316 \
4840 || PACKET_VERSION >= 20160309 \
4841 || PACKET_VERSION >= 20160302 \
4842 || PACKET_VERSION >= 20160224 \
4843 || PACKET_VERSION >= 20160217 \
4844 || PACKET_VERSION >= 20160211 \
4845 || PACKET_VERSION >= 20160203 \
4846 || PACKET_VERSION >= 20160120 \
4847 || PACKET_VERSION >= 20160113 \
4848 || PACKET_VERSION >= 20160106 \
4849 || PACKET_VERSION >= 20151223 \
4850 || PACKET_VERSION >= 20151216 \
4851 || PACKET_VERSION >= 20151209 \
4852 || PACKET_VERSION >= 20151202 \
4853 || PACKET_VERSION >= 20151125 \
4854 || PACKET_VERSION >= 20151118 \
4855 || PACKET_VERSION >= 20151104 \
4856 || PACKET_VERSION >= 20151028 \
4857 || PACKET_VERSION >= 20151007 \
4858 || PACKET_VERSION >= 20151001 \
4859 || PACKET_VERSION >= 20150923 \
4860 || PACKET_VERSION >= 20150916 \
4861 || PACKET_VERSION >= 20150826 \
4862 || PACKET_VERSION >= 20150819 \
4863 || PACKET_VERSION >= 20150805 \
4864 || PACKET_VERSION >= 20150715 \
4865 || PACKET_VERSION >= 20150708 \
4866 || PACKET_VERSION >= 20150701 \
4867 || PACKET_VERSION >= 20150624 \
4868 || PACKET_VERSION >= 20150603 \
4869 || PACKET_VERSION >= 20150527 \
4870 || PACKET_VERSION >= 20150429 \
4871 || PACKET_VERSION >= 20150422 \
4872 || PACKET_VERSION >= 20150225 \
4873 || PACKET_VERSION >= 20150217 \
4874 || PACKET_VERSION >= 20150211 \
4875 || PACKET_VERSION >= 20150204 \
4876 || PACKET_VERSION >= 20150107 \
4877 || PACKET_VERSION >= 20141231 \
4878 || PACKET_VERSION >= 20141112 \
4879 || PACKET_VERSION >= 20141105 \
4880 || PACKET_VERSION >= 20141029 \
4881 || PACKET_VERSION >= 20141022 \
4882 || PACKET_VERSION >= 20141015 \
4883 || PACKET_VERSION >= 20141008 \
4884 || PACKET_VERSION >= 20140924 \
4885 || PACKET_VERSION >= 20140917 \
4886 || PACKET_VERSION >= 20140903 \
4887 || PACKET_VERSION >= 20140827 \
4888 || PACKET_VERSION >= 20140813 \
4889 || PACKET_VERSION >= 20140806 \
4890 || PACKET_VERSION >= 20140730 \
4891 || PACKET_VERSION >= 20140709 \
4892 || PACKET_VERSION >= 20140702 \
4893 || PACKET_VERSION >= 20140611 \
4894 || PACKET_VERSION >= 20140514 \
4895 || PACKET_VERSION >= 20140508 \
4896 || PACKET_VERSION >= 20140430 \
4897 || PACKET_VERSION >= 20140423 \
4898 || PACKET_VERSION >= 20140416 \
4899 || PACKET_VERSION >= 20140212 \
4900 || PACKET_VERSION >= 20140205 \
4901 || PACKET_VERSION >= 20140115 \
4902 || PACKET_VERSION >= 20140108 \
4903 || PACKET_VERSION >= 20131230 \
4904 || PACKET_VERSION >= 20131223 \
4905 || PACKET_VERSION >= 20131218 \
4906 || PACKET_VERSION >= 20131106 \
4907 || PACKET_VERSION >= 20131030 \
4908 || PACKET_VERSION >= 20131023 \
4909 || PACKET_VERSION >= 20131016 \
4910 || PACKET_VERSION >= 20131008 \
4911 || PACKET_VERSION >= 20131002 \
4912 || PACKET_VERSION >= 20130814 \
4913 || PACKET_VERSION >= 20130807 \
4914 || PACKET_VERSION >= 20130731 \
4915 || PACKET_VERSION >= 20130717 \
4916 || PACKET_VERSION >= 20130703 \
4917 || PACKET_VERSION >= 20130612 \
4918 || PACKET_VERSION >= 20130605 \
4919 || PACKET_VERSION >= 20130515 \
4920 || PACKET_VERSION >= 20130508 \
4921 || PACKET_VERSION >= 20130502 \
4922 || PACKET_VERSION >= 20130424 \
4923 || PACKET_VERSION >= 20130313 \
4924 || PACKET_VERSION >= 20130306 \
4925 || PACKET_VERSION >= 20130227 \
4926 || PACKET_VERSION >= 20130220 \
4927 || PACKET_VERSION >= 20130109 \
4928 || PACKET_VERSION >= 20130103 \
4929 || PACKET_VERSION >= 20121107 \
4930 || PACKET_VERSION >= 20121031 \
4931 || PACKET_VERSION >= 20120925 \
4932 || PACKET_VERSION >= 20120919 \
4933 || PACKET_VERSION >= 20120911 \
4934 || PACKET_VERSION >= 20120905 \
4935 || PACKET_VERSION >= 20120830 \
4936 || PACKET_VERSION >= 20120724 \
4937 || PACKET_VERSION >= 20120716 \
4938 || PACKET_VERSION >= 20120626 \
4939 || PACKET_VERSION >= 20120612 \
4940 || PACKET_VERSION >= 20120508 \
4941 || PACKET_VERSION >= 20120503 \
4942 || PACKET_VERSION >= 20120424 \
4943 || PACKET_VERSION >= 20120417 \
4944 || PACKET_VERSION >= 20120410 \
4945 || PACKET_VERSION >= 20120404 \
4946 || PACKET_VERSION >= 20120228 \
4947 || PACKET_VERSION >= 20120221 \
4948 || PACKET_VERSION >= 20120214 \
4949 || PACKET_VERSION >= 20120207 \
4950 || PACKET_VERSION >= 20120131 \
4951 || PACKET_VERSION >= 20120110 \
4952 || PACKET_VERSION >= 20120103 \
4953 || PACKET_VERSION >= 20111227 \
4954 || PACKET_VERSION >= 20111220 \
4955 || PACKET_VERSION >= 20111213 \
4956 || PACKET_VERSION >= 20111207 \
4957 || PACKET_VERSION >= 20111122 \
4958 || PACKET_VERSION >= 20111114 \
4959 || PACKET_VERSION >= 20111108 \
4960 || PACKET_VERSION >= 20111025 \
4961 || PACKET_VERSION >= 20111017 \
4962 || PACKET_VERSION >= 20111004 \
4963 || PACKET_VERSION >= 20110920 \
4964 || PACKET_VERSION >= 20110906 \
4965 || PACKET_VERSION >= 20110823 \
4966 || PACKET_VERSION >= 20110816 \
4967 || PACKET_VERSION >= 20110809 \
4968 || PACKET_VERSION >= 20110802 \
4969 || PACKET_VERSION >= 20110726 \
4970 || PACKET_VERSION >= 20110705 \
4971 || PACKET_VERSION >= 20110627 \
4972 || PACKET_VERSION >= 20110620 \
4973 || PACKET_VERSION >= 20110614 \
4974 || PACKET_VERSION >= 20110531 \
4975 || PACKET_VERSION >= 20110523 \
4976 || PACKET_VERSION >= 20110503 \
4977 || PACKET_VERSION >= 20110426 \
4978 || PACKET_VERSION >= 20110412 \
4979 || PACKET_VERSION >= 20110405 \
4980 || PACKET_VERSION >= 20110329 \
4981 || PACKET_VERSION >= 20110315 \
4982 || PACKET_VERSION >= 20110308 \
4983 || PACKET_VERSION >= 20110215 \
4984 || PACKET_VERSION >= 20110208 \
4985 || PACKET_VERSION >= 20110131 \
4986 || PACKET_VERSION >= 20110125 \
4987 || PACKET_VERSION >= 20110118 \
4988 || PACKET_VERSION >= 20110111 \
4989 || PACKET_VERSION >= 20110104 \
4990 || PACKET_VERSION >= 20101214 \
4991 || PACKET_VERSION >= 20101207 \
4992 || PACKET_VERSION >= 20101130 \
4993 || PACKET_VERSION >= 20101123 \
4994 || PACKET_VERSION >= 20100105 \
4995 || PACKET_VERSION >= 20090406 \
4996 || PACKET_VERSION >= 20090401 \
4997 || PACKET_VERSION >= 20090325 \
4998 || PACKET_VERSION >= 20090318 \
4999 || PACKET_VERSION >= 20090311 \
5000 || PACKET_VERSION >= 20090225 \
5001 || PACKET_VERSION >= 20090218 \
5002 || PACKET_VERSION >= 20090211 \
5003 || PACKET_VERSION >= 20090204 \
5004 || PACKET_VERSION >= 20090114 \
5005 || PACKET_VERSION >= 20090107 \
5006 || PACKET_VERSION >= 20081217 \
5007 || PACKET_VERSION >= 20081203 \
5008 || PACKET_VERSION >= 20081126 \
5009 || PACKET_VERSION >= 20081112 \
5010 || PACKET_VERSION >= 20081029 \
5011 || PACKET_VERSION >= 20081022 \
5012 || PACKET_VERSION >= 20081015 \
5013 || PACKET_VERSION >= 20081008 \
5014 || PACKET_VERSION >= 20080730 \
5015 || PACKET_VERSION >= 20080722 \
5016 || PACKET_VERSION >= 20080715 \
5017 || PACKET_VERSION >= 20080708 \
5018 || PACKET_VERSION >= 20080701 \
5019 || PACKET_VERSION >= 20080520 \
5020 || PACKET_VERSION >= 20080513 \
5021 || PACKET_VERSION >= 20080507 \
5022 || PACKET_VERSION >= 20080429 \
5023 || PACKET_VERSION >= 20080422 \
5024 || PACKET_VERSION >= 20080408 \
5025 || PACKET_VERSION >= 20080401 \
5026 || PACKET_VERSION >= 20080325 \
5027 || PACKET_VERSION >= 20080318 \
5028 || PACKET_VERSION >= 20080311 \
5029 || PACKET_VERSION >= 20080226 \
5030 || PACKET_VERSION >= 20080219 \
5031 || PACKET_VERSION >= 20080124 \
5032 || PACKET_VERSION >= 20080102 \
5033 || (PACKET_VERSION >= 20070000 && PACKET_VERSION < 20080102) \
5034 || (PACKET_VERSION >= 20060000 && PACKET_VERSION < 20070000) \
5035 || PACKET_VERSION >= 20050425)
5036ID_CZ_COMMAND_MER = 0x022d
5037#elif CLIENT_TYPE == 'M' && \
5038 PACKET_VERSION >= 20120926
5039ID_CZ_COMMAND_MER = 0x085d
5040#elif CLIENT_TYPE == 'M' && ( \
5041 PACKET_VERSION == 20160318 \
5042 || PACKET_VERSION == 20151029 \
5043 || PACKET_VERSION == 20150812 \
5044 || PACKET_VERSION >= 20130107)
5045ID_CZ_COMMAND_MER = 0x0361
5046#elif CLIENT_TYPE == 'M' && ( \
5047 PACKET_VERSION == 20131108 \
5048 || PACKET_VERSION == 20131107 \
5049 || PACKET_VERSION == 20130116)
5050ID_CZ_COMMAND_MER = 0x0894
5051#elif CLIENT_TYPE == 'M' && ( \
5052 PACKET_VERSION >= 20220000 \
5053 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
5054 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
5055 || PACKET_VERSION >= 20140613 \
5056 || PACKET_VERSION >= 20140612)
5057ID_CZ_COMMAND_MER = 0x0965
5058#elif CLIENT_TYPE == 'M' && \
5059 PACKET_VERSION >= 20140814
5060ID_CZ_COMMAND_MER = 0x0868
5061#elif CLIENT_TYPE == 'M' && \
5062 PACKET_VERSION >= 20141016
5063ID_CZ_COMMAND_MER = 0x0364
5064#elif CLIENT_TYPE == 'M' && ( \
5065 PACKET_VERSION == 20150130 \
5066 || PACKET_VERSION == 20150129)
5067ID_CZ_COMMAND_MER = 0x0876
5068#elif CLIENT_TYPE == 'M' && \
5069 PACKET_VERSION >= 20150226
5070ID_CZ_COMMAND_MER = 0x094f
5071#elif CLIENT_TYPE == 'M' && \
5072 PACKET_VERSION >= 20150618
5073ID_CZ_COMMAND_MER = 0x0886
5074#elif CLIENT_TYPE == 'M' && \
5075 PACKET_VERSION >= 20150702
5076ID_CZ_COMMAND_MER = 0x0954
5077#elif CLIENT_TYPE == 'M' && \
5078 PACKET_VERSION >= 20151022
5079ID_CZ_COMMAND_MER = 0x091d
5080#elif CLIENT_TYPE == 'M' && \
5081 PACKET_VERSION >= 20160526
5082ID_CZ_COMMAND_MER = 0x0867
5083#elif CLIENT_TYPE == 'M' && \
5084 PACKET_VERSION >= 20160609
5085ID_CZ_COMMAND_MER = 0x089b
5086#elif CLIENT_TYPE == 'M' && \
5087 PACKET_VERSION >= 20160630
5088ID_CZ_COMMAND_MER = 0x0885
5089#elif CLIENT_TYPE == 'M' && \
5090 PACKET_VERSION >= 20161103
5091ID_CZ_COMMAND_MER = 0x088f
5092#elif CLIENT_TYPE == 'M' && \
5093 PACKET_VERSION >= 20180131
5094ID_CZ_COMMAND_MER = 0x0961
5095#elif CLIENT_TYPE == 'M' && \
5096 PACKET_VERSION >= 20180309
5097ID_CZ_COMMAND_MER = 0x0944
5098#elif CLIENT_TYPE == 'R' && \
5099 PACKET_VERSION >= 20120712
5100ID_CZ_COMMAND_MER = 0x094b
5101#elif CLIENT_TYPE == 'R' && ( \
5102 PACKET_VERSION == 20190821 \
5103 || PACKET_VERSION == 20190807 \
5104 || PACKET_VERSION == 20190802 \
5105 || PACKET_VERSION == 20190731 \
5106 || PACKET_VERSION == 20190724 \
5107 || PACKET_VERSION == 20190717 \
5108 || PACKET_VERSION == 20190703 \
5109 || PACKET_VERSION == 20190626 \
5110 || PACKET_VERSION == 20190605 \
5111 || PACKET_VERSION == 20190530 \
5112 || PACKET_VERSION == 20190522 \
5113 || PACKET_VERSION == 20190508 \
5114 || PACKET_VERSION == 20190418 \
5115 || PACKET_VERSION == 20190417 \
5116 || PACKET_VERSION == 20190327 \
5117 || PACKET_VERSION == 20190322 \
5118 || PACKET_VERSION == 20190320 \
5119 || PACKET_VERSION == 20190306 \
5120 || PACKET_VERSION == 20190228 \
5121 || PACKET_VERSION == 20190123 \
5122 || PACKET_VERSION == 20190116 \
5123 || (PACKET_VERSION >= 20190000 && PACKET_VERSION < 20190116) \
5124 || PACKET_VERSION == 20181226 \
5125 || PACKET_VERSION == 20181219 \
5126 || PACKET_VERSION == 20181212 \
5127 || PACKET_VERSION == 20181205 \
5128 || PACKET_VERSION == 20181128 \
5129 || PACKET_VERSION == 20181121 \
5130 || PACKET_VERSION == 20181114 \
5131 || PACKET_VERSION == 20181107 \
5132 || PACKET_VERSION == 20180822 \
5133 || PACKET_VERSION >= 20180808 \
5134 || PACKET_VERSION >= 20180718 \
5135 || PACKET_VERSION >= 20180711 \
5136 || PACKET_VERSION >= 20180621 \
5137 || PACKET_VERSION >= 20180620 \
5138 || PACKET_VERSION >= 20180612 \
5139 || PACKET_VERSION >= 20180530 \
5140 || PACKET_VERSION >= 20180523 \
5141 || PACKET_VERSION >= 20180516 \
5142 || PACKET_VERSION >= 20180502 \
5143 || PACKET_VERSION >= 20180425 \
5144 || PACKET_VERSION >= 20180404 \
5145 || PACKET_VERSION >= 20180328 \
5146 || PACKET_VERSION >= 20180321 \
5147 || PACKET_VERSION >= 20180124 \
5148 || PACKET_VERSION >= 20180117 \
5149 || PACKET_VERSION >= 20180103 \
5150 || PACKET_VERSION >= 20171108 \
5151 || PACKET_VERSION >= 20171101 \
5152 || PACKET_VERSION >= 20171025 \
5153 || PACKET_VERSION >= 20171011 \
5154 || PACKET_VERSION >= 20171002 \
5155 || PACKET_VERSION >= 20170823 \
5156 || PACKET_VERSION >= 20170816 \
5157 || PACKET_VERSION >= 20170809 \
5158 || PACKET_VERSION >= 20170801 \
5159 || PACKET_VERSION >= 20170726 \
5160 || PACKET_VERSION >= 20170719 \
5161 || PACKET_VERSION >= 20170712 \
5162 || PACKET_VERSION >= 20170705 \
5163 || PACKET_VERSION >= 20170628 \
5164 || PACKET_VERSION >= 20170329 \
5165 || PACKET_VERSION >= 20170322 \
5166 || PACKET_VERSION >= 20170315 \
5167 || PACKET_VERSION >= 20170308 \
5168 || PACKET_VERSION >= 20170228 \
5169 || PACKET_VERSION >= 20170125 \
5170 || PACKET_VERSION >= 20170118 \
5171 || PACKET_VERSION >= 20170104 \
5172 || PACKET_VERSION >= 20161221 \
5173 || PACKET_VERSION >= 20161214 \
5174 || PACKET_VERSION >= 20161026 \
5175 || PACKET_VERSION >= 20161019 \
5176 || PACKET_VERSION >= 20160928 \
5177 || PACKET_VERSION >= 20160921 \
5178 || PACKET_VERSION >= 20160913 \
5179 || PACKET_VERSION >= 20160907 \
5180 || PACKET_VERSION >= 20160831 \
5181 || PACKET_VERSION >= 20160824 \
5182 || PACKET_VERSION >= 20160720 \
5183 || PACKET_VERSION >= 20160713 \
5184 || PACKET_VERSION >= 20160706 \
5185 || PACKET_VERSION >= 20160629 \
5186 || PACKET_VERSION >= 20160615 \
5187 || PACKET_VERSION >= 20160608 \
5188 || PACKET_VERSION >= 20160504 \
5189 || PACKET_VERSION >= 20160427 \
5190 || PACKET_VERSION >= 20160420 \
5191 || PACKET_VERSION >= 20160323 \
5192 || PACKET_VERSION >= 20160316 \
5193 || PACKET_VERSION >= 20160309 \
5194 || PACKET_VERSION >= 20160302 \
5195 || PACKET_VERSION >= 20160224 \
5196 || PACKET_VERSION >= 20160217 \
5197 || PACKET_VERSION >= 20160211 \
5198 || PACKET_VERSION >= 20160203 \
5199 || PACKET_VERSION >= 20160120 \
5200 || PACKET_VERSION >= 20160113 \
5201 || PACKET_VERSION >= 20160106 \
5202 || PACKET_VERSION >= 20151223 \
5203 || PACKET_VERSION >= 20151216 \
5204 || PACKET_VERSION >= 20151209 \
5205 || PACKET_VERSION >= 20151202 \
5206 || PACKET_VERSION >= 20151125 \
5207 || PACKET_VERSION >= 20151118 \
5208 || PACKET_VERSION >= 20151104 \
5209 || PACKET_VERSION >= 20151028 \
5210 || PACKET_VERSION >= 20151007 \
5211 || PACKET_VERSION >= 20151001 \
5212 || PACKET_VERSION >= 20150923 \
5213 || PACKET_VERSION >= 20150916 \
5214 || PACKET_VERSION >= 20150826 \
5215 || PACKET_VERSION >= 20150819 \
5216 || PACKET_VERSION >= 20150805 \
5217 || PACKET_VERSION >= 20150715 \
5218 || PACKET_VERSION >= 20150708 \
5219 || PACKET_VERSION >= 20150701 \
5220 || PACKET_VERSION >= 20150624 \
5221 || PACKET_VERSION >= 20150603 \
5222 || PACKET_VERSION >= 20150527 \
5223 || PACKET_VERSION >= 20150429 \
5224 || PACKET_VERSION >= 20150422 \
5225 || PACKET_VERSION >= 20150225 \
5226 || PACKET_VERSION >= 20150217 \
5227 || PACKET_VERSION >= 20150211 \
5228 || PACKET_VERSION >= 20150204 \
5229 || PACKET_VERSION >= 20150107 \
5230 || PACKET_VERSION >= 20141231 \
5231 || PACKET_VERSION >= 20141112 \
5232 || PACKET_VERSION >= 20141105 \
5233 || PACKET_VERSION >= 20141029 \
5234 || PACKET_VERSION >= 20141022 \
5235 || PACKET_VERSION >= 20141015 \
5236 || PACKET_VERSION >= 20141008 \
5237 || PACKET_VERSION >= 20140924 \
5238 || PACKET_VERSION >= 20140917 \
5239 || PACKET_VERSION >= 20140903 \
5240 || PACKET_VERSION >= 20140827 \
5241 || PACKET_VERSION >= 20140813 \
5242 || PACKET_VERSION >= 20140806 \
5243 || PACKET_VERSION >= 20140730 \
5244 || PACKET_VERSION >= 20140709 \
5245 || PACKET_VERSION >= 20140702 \
5246 || PACKET_VERSION >= 20140514 \
5247 || PACKET_VERSION >= 20140508 \
5248 || PACKET_VERSION >= 20140430 \
5249 || PACKET_VERSION >= 20140423 \
5250 || PACKET_VERSION >= 20140416 \
5251 || PACKET_VERSION >= 20140212 \
5252 || PACKET_VERSION >= 20140205 \
5253 || PACKET_VERSION >= 20140115 \
5254 || PACKET_VERSION >= 20140108 \
5255 || PACKET_VERSION >= 20131230 \
5256 || PACKET_VERSION >= 20131223 \
5257 || PACKET_VERSION >= 20131218 \
5258 || PACKET_VERSION >= 20131106 \
5259 || PACKET_VERSION >= 20131030 \
5260 || PACKET_VERSION >= 20131023 \
5261 || PACKET_VERSION >= 20131016 \
5262 || PACKET_VERSION >= 20131008 \
5263 || PACKET_VERSION >= 20131002 \
5264 || PACKET_VERSION >= 20130814 \
5265 || PACKET_VERSION >= 20130807 \
5266 || PACKET_VERSION >= 20130731 \
5267 || PACKET_VERSION >= 20130717 \
5268 || PACKET_VERSION >= 20130703 \
5269 || PACKET_VERSION >= 20130612 \
5270 || PACKET_VERSION >= 20130605 \
5271 || PACKET_VERSION >= 20130515 \
5272 || PACKET_VERSION >= 20130508 \
5273 || PACKET_VERSION >= 20130502 \
5274 || PACKET_VERSION >= 20130424 \
5275 || PACKET_VERSION >= 20130313 \
5276 || PACKET_VERSION >= 20130306 \
5277 || PACKET_VERSION >= 20130227 \
5278 || PACKET_VERSION >= 20130220 \
5279 || PACKET_VERSION >= 20130109 \
5280 || PACKET_VERSION >= 20130103 \
5281 || PACKET_VERSION >= 20121107 \
5282 || PACKET_VERSION >= 20121031 \
5283 || PACKET_VERSION >= 20120925 \
5284 || PACKET_VERSION >= 20120919 \
5285 || PACKET_VERSION >= 20120911 \
5286 || PACKET_VERSION >= 20120905 \
5287 || PACKET_VERSION >= 20120830 \
5288 || PACKET_VERSION >= 20120724 \
5289 || PACKET_VERSION >= 20120716 \
5290 || PACKET_VERSION >= 20120626 \
5291 || PACKET_VERSION >= 20120612 \
5292 || PACKET_VERSION >= 20120508 \
5293 || PACKET_VERSION >= 20120502 \
5294 || PACKET_VERSION >= 20120424 \
5295 || PACKET_VERSION >= 20120417 \
5296 || PACKET_VERSION >= 20120410 \
5297 || PACKET_VERSION >= 20120404 \
5298 || PACKET_VERSION >= 20120228 \
5299 || PACKET_VERSION >= 20120221 \
5300 || PACKET_VERSION >= 20120214 \
5301 || PACKET_VERSION >= 20120207 \
5302 || PACKET_VERSION >= 20120131 \
5303 || PACKET_VERSION >= 20120110 \
5304 || PACKET_VERSION >= 20120103 \
5305 || PACKET_VERSION >= 20111227 \
5306 || PACKET_VERSION >= 20111220 \
5307 || PACKET_VERSION >= 20111213 \
5308 || PACKET_VERSION >= 20111207 \
5309 || PACKET_VERSION >= 20111122 \
5310 || PACKET_VERSION >= 20111114 \
5311 || PACKET_VERSION >= 20111108 \
5312 || PACKET_VERSION >= 20111025 \
5313 || PACKET_VERSION >= 20111017 \
5314 || PACKET_VERSION >= 20111004 \
5315 || PACKET_VERSION >= 20110920 \
5316 || PACKET_VERSION >= 20110906 \
5317 || PACKET_VERSION >= 20110823 \
5318 || PACKET_VERSION >= 20110816 \
5319 || PACKET_VERSION >= 20110104 \
5320 || (PACKET_VERSION >= 20100000 && PACKET_VERSION < 20110104) \
5321 || (PACKET_VERSION >= 20090000 && PACKET_VERSION < 20100000) \
5322 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20090000))
5323ID_CZ_COMMAND_MER = 0x022d
5324#elif CLIENT_TYPE == 'R' && \
5325 PACKET_VERSION >= 20120926
5326ID_CZ_COMMAND_MER = 0x085d
5327#elif CLIENT_TYPE == 'R' && ( \
5328 PACKET_VERSION >= 20210000 \
5329 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
5330 || PACKET_VERSION >= 20121011)
5331ID_CZ_COMMAND_MER = 0x095c
5332#elif CLIENT_TYPE == 'R' && \
5333 PACKET_VERSION >= 20130116
5334ID_CZ_COMMAND_MER = 0x0894
5335#elif CLIENT_TYPE == 'R' && \
5336 PACKET_VERSION >= 20141016
5337ID_CZ_COMMAND_MER = 0x0364
5338#elif CLIENT_TYPE == 'R' && \
5339 PACKET_VERSION >= 20150226
5340ID_CZ_COMMAND_MER = 0x094f
5341#elif CLIENT_TYPE == 'R' && \
5342 PACKET_VERSION >= 20150618
5343ID_CZ_COMMAND_MER = 0x0886
5344#elif CLIENT_TYPE == 'R' && ( \
5345 PACKET_VERSION == 20151029 \
5346 || PACKET_VERSION == 20150812)
5347ID_CZ_COMMAND_MER = 0x0361
5348#elif CLIENT_TYPE == 'R' && \
5349 PACKET_VERSION >= 20151022
5350ID_CZ_COMMAND_MER = 0x091d
5351#elif CLIENT_TYPE == 'R' && \
5352 PACKET_VERSION >= 20160630
5353ID_CZ_COMMAND_MER = 0x0885
5354#elif CLIENT_TYPE == 'R' && \
5355 PACKET_VERSION >= 20161103
5356ID_CZ_COMMAND_MER = 0x088f
5357#elif CLIENT_TYPE == 'S' && \
5358 PACKET_VERSION >= 20050425
5359ID_CZ_COMMAND_MER = 0x022d
5360#elif CLIENT_TYPE == 'Z' && ( \
5361 PACKET_VERSION == 20190814 \
5362 || PACKET_VERSION == 20190724 \
5363 || PACKET_VERSION == 20190717 \
5364 || PACKET_VERSION == 20190710 \
5365 || PACKET_VERSION == 20190709 \
5366 || PACKET_VERSION == 20190605 \
5367 || PACKET_VERSION == 20190530 \
5368 || PACKET_VERSION == 20190515 \
5369 || PACKET_VERSION == 20190508 \
5370 || PACKET_VERSION == 20190502 \
5371 || PACKET_VERSION == 20190424 \
5372 || PACKET_VERSION == 20190410 \
5373 || PACKET_VERSION == 20190403 \
5374 || PACKET_VERSION == 20190313 \
5375 || PACKET_VERSION == 20190227 \
5376 || PACKET_VERSION == 20190213 \
5377 || PACKET_VERSION == 20190117 \
5378 || PACKET_VERSION == 20181226 \
5379 || PACKET_VERSION == 20181219 \
5380 || PACKET_VERSION == 20181212 \
5381 || PACKET_VERSION == 20181128 \
5382 || PACKET_VERSION == 20181120 \
5383 || PACKET_VERSION == 20180928 \
5384 || PACKET_VERSION == 20180912 \
5385 || PACKET_VERSION == 20180829 \
5386 || PACKET_VERSION >= 20180808 \
5387 || PACKET_VERSION >= 20180801 \
5388 || PACKET_VERSION >= 20180711 \
5389 || PACKET_VERSION >= 20180703 \
5390 || PACKET_VERSION >= 20180627 \
5391 || PACKET_VERSION >= 20180509 \
5392 || PACKET_VERSION >= 20180411 \
5393 || PACKET_VERSION >= 20180321 \
5394 || PACKET_VERSION >= 20171113 \
5395 || PACKET_VERSION >= 20171031 \
5396 || PACKET_VERSION >= 20171030 \
5397 || PACKET_VERSION >= 20171027 \
5398 || PACKET_VERSION >= 20171025 \
5399 || PACKET_VERSION >= 20171024 \
5400 || PACKET_VERSION >= 20171023 \
5401 || PACKET_VERSION >= 20171019)
5402ID_CZ_COMMAND_MER = 0x022d
5403#elif CLIENT_TYPE == 'Z' && ( \
5404 PACKET_VERSION == 20171117 \
5405 || PACKET_VERSION == 20171116)
5406ID_CZ_COMMAND_MER = 0x091c
5407#elif CLIENT_TYPE == 'Z' && \
5408 PACKET_VERSION >= 20171122
5409ID_CZ_COMMAND_MER = 0x0811
5410#elif CLIENT_TYPE == 'Z' && ( \
5411 PACKET_VERSION == 20180309 \
5412 || PACKET_VERSION == 20180307 \
5413 || PACKET_VERSION == 20171128)
5414ID_CZ_COMMAND_MER = 0x0361
5415#elif CLIENT_TYPE == 'Z' && ( \
5416 PACKET_VERSION == 20171213 \
5417 || PACKET_VERSION == 20171212 \
5418 || PACKET_VERSION == 20171211 \
5419 || PACKET_VERSION == 20171210 \
5420 || PACKET_VERSION == 20171209 \
5421 || PACKET_VERSION == 20171208)
5422ID_CZ_COMMAND_MER = 0x0897
5423#elif CLIENT_TYPE == 'Z' && \
5424 PACKET_VERSION >= 20171221
5425ID_CZ_COMMAND_MER = 0x0921
5426#elif CLIENT_TYPE == 'Z' && ( \
5427 PACKET_VERSION >= 20220000 \
5428 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
5429 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
5430 || PACKET_VERSION >= 20171229)
5431ID_CZ_COMMAND_MER = 0x095e
5432#else
5433ID_CZ_COMMAND_MER = 0x0000 // Disabled
5434#endif
5440class CZ_COMMAND_MER : public Base::NetworkPacket<ZoneSession>
5441{
5442public:
5443 CZ_COMMAND_MER(std::shared_ptr<ZoneSession> s)
5445 {}
5446 virtual ~CZ_COMMAND_MER() {}
5447
5448 void handle(ByteBuffer &&buf);
5449 void deserialize(ByteBuffer &buf);
5450
5451/* Structure */
5452 int16_t _type{ 0 };
5453 int8_t _command{ 0 };
5454};
5455
5456enum {
5457#if CLIENT_TYPE == 'A' && \
5458 PACKET_VERSION >= 20040000
5459ID_CZ_COMMAND_PET = 0x01a1
5460#elif CLIENT_TYPE == 'M' && ( \
5461 PACKET_VERSION >= 20220000 \
5462 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
5463 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
5464 || (PACKET_VERSION >= 20030000 && PACKET_VERSION < 20200000))
5465ID_CZ_COMMAND_PET = 0x01a1
5466#elif CLIENT_TYPE == 'R' && ( \
5467 PACKET_VERSION >= 20210000 \
5468 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
5469 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
5470ID_CZ_COMMAND_PET = 0x01a1
5471#elif CLIENT_TYPE == 'S' && \
5472 PACKET_VERSION >= 20030000
5473ID_CZ_COMMAND_PET = 0x01a1
5474#elif CLIENT_TYPE == 'Z' && ( \
5475 PACKET_VERSION >= 20220000 \
5476 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
5477 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
5478 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
5479ID_CZ_COMMAND_PET = 0x01a1
5480#else
5481ID_CZ_COMMAND_PET = 0x0000 // Disabled
5482#endif
5488class CZ_COMMAND_PET : public Base::NetworkPacket<ZoneSession>
5489{
5490public:
5491 CZ_COMMAND_PET(std::shared_ptr<ZoneSession> s)
5493 {}
5494 virtual ~CZ_COMMAND_PET() {}
5495
5496 void handle(ByteBuffer &&buf);
5497 void deserialize(ByteBuffer &buf);
5498
5499/* Structure */
5500 int8_t _command{ 0 };
5501};
5502
5503enum {
5504#if CLIENT_TYPE == 'M' && ( \
5505 PACKET_VERSION >= 20220000 \
5506 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
5507 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000))
5509#elif CLIENT_TYPE == 'R' && ( \
5510 PACKET_VERSION >= 20210000 \
5511 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000))
5513#elif CLIENT_TYPE == 'Z' && ( \
5514 PACKET_VERSION >= 20220000 \
5515 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
5516 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000))
5518#else
5520#endif
5527{
5528public:
5529 CZ_COMPLETE_APPLY_MACRO_DETECTOR_CAPTCHA(std::shared_ptr<ZoneSession> s)
5531 {}
5533
5534 void handle(ByteBuffer &&buf);
5535 void deserialize(ByteBuffer &buf);
5536
5537/* Structure */
5538};
5539
5540enum {
5541#if CLIENT_TYPE == 'A' && \
5542 PACKET_VERSION >= 20040000
5544#elif CLIENT_TYPE == 'M' && ( \
5545 PACKET_VERSION >= 20220000 \
5546 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
5547 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
5548 || (PACKET_VERSION >= 20030000 && PACKET_VERSION < 20200000))
5550#elif CLIENT_TYPE == 'R' && ( \
5551 PACKET_VERSION >= 20210000 \
5552 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
5553 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
5555#elif CLIENT_TYPE == 'S' && \
5556 PACKET_VERSION >= 20030000
5558#elif CLIENT_TYPE == 'Z' && ( \
5559 PACKET_VERSION >= 20220000 \
5560 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
5561 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
5562 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
5564#else
5565ID_CZ_CONCLUDE_EXCHANGE_ITEM = 0x0000 // Disabled
5566#endif
5573{
5574public:
5575 CZ_CONCLUDE_EXCHANGE_ITEM(std::shared_ptr<ZoneSession> s)
5577 {}
5579
5580 void handle(ByteBuffer &&buf);
5581 void deserialize(ByteBuffer &buf);
5582
5583/* Structure */
5584};
5585
5586enum {
5587#if CLIENT_TYPE == 'A' && \
5588 PACKET_VERSION >= 20070918
5589ID_CZ_CONFIG = 0x02d8
5590#elif CLIENT_TYPE == 'M' && ( \
5591 PACKET_VERSION >= 20220000 \
5592 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
5593 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
5594 || PACKET_VERSION >= 20070918)
5595ID_CZ_CONFIG = 0x02d8
5596#elif CLIENT_TYPE == 'R' && ( \
5597 PACKET_VERSION >= 20210000 \
5598 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
5599 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
5600ID_CZ_CONFIG = 0x02d8
5601#elif CLIENT_TYPE == 'S' && \
5602 PACKET_VERSION >= 20070918
5603ID_CZ_CONFIG = 0x02d8
5604#elif CLIENT_TYPE == 'Z' && ( \
5605 PACKET_VERSION >= 20220000 \
5606 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
5607 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
5608 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
5609ID_CZ_CONFIG = 0x02d8
5610#else
5611ID_CZ_CONFIG = 0x0000 // Disabled
5612#endif
5618class CZ_CONFIG : public Base::NetworkPacket<ZoneSession>
5619{
5620public:
5621 CZ_CONFIG(std::shared_ptr<ZoneSession> s)
5623 {}
5624 virtual ~CZ_CONFIG() {}
5625
5626 void handle(ByteBuffer &&buf);
5627 void deserialize(ByteBuffer &buf);
5628
5629/* Structure */
5630 int _type{ 0 };
5631 int _setting{ 0 };
5632};
5633
5634enum {
5635#if CLIENT_TYPE == 'A' && \
5636 PACKET_VERSION >= 20040000
5637ID_CZ_CONTACTNPC = 0x0090
5638#elif CLIENT_TYPE == 'M' && ( \
5639 PACKET_VERSION >= 20220000 \
5640 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
5641 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
5642 || (PACKET_VERSION >= 20030000 && PACKET_VERSION < 20200000))
5643ID_CZ_CONTACTNPC = 0x0090
5644#elif CLIENT_TYPE == 'R' && ( \
5645 PACKET_VERSION >= 20210000 \
5646 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
5647 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
5648ID_CZ_CONTACTNPC = 0x0090
5649#elif CLIENT_TYPE == 'S' && \
5650 PACKET_VERSION >= 20030000
5651ID_CZ_CONTACTNPC = 0x0090
5652#elif CLIENT_TYPE == 'Z' && ( \
5653 PACKET_VERSION >= 20220000 \
5654 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
5655 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
5656 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
5657ID_CZ_CONTACTNPC = 0x0090
5658#else
5659ID_CZ_CONTACTNPC = 0x0000 // Disabled
5660#endif
5666class CZ_CONTACTNPC : public Base::NetworkPacket<ZoneSession>
5667{
5668public:
5669 CZ_CONTACTNPC(std::shared_ptr<ZoneSession> s)
5671 {}
5672 virtual ~CZ_CONTACTNPC() {}
5673
5674 void handle(ByteBuffer &&buf);
5675 void deserialize(ByteBuffer &buf);
5676
5677/* Structure */
5678 int32_t _guid{0};
5679 int8_t _type{0};
5680};
5681
5682enum {
5683#if CLIENT_TYPE == 'M' && ( \
5684 PACKET_VERSION >= 20220000 \
5685 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
5686 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
5687 || (PACKET_VERSION >= 20190000 && PACKET_VERSION < 20200000))
5688ID_CZ_COOLDOWN_RESET = 0x0a88
5689#elif CLIENT_TYPE == 'R' && ( \
5690 PACKET_VERSION >= 20210000 \
5691 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
5692 || (PACKET_VERSION >= 20190000 && PACKET_VERSION < 20200000))
5693ID_CZ_COOLDOWN_RESET = 0x0a88
5694#elif CLIENT_TYPE == 'Z' && ( \
5695 PACKET_VERSION >= 20220000 \
5696 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
5697 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
5698 || (PACKET_VERSION >= 20190000 && PACKET_VERSION < 20200000))
5699ID_CZ_COOLDOWN_RESET = 0x0a88
5700#else
5701ID_CZ_COOLDOWN_RESET = 0x0000 // Disabled
5702#endif
5708class CZ_COOLDOWN_RESET : public Base::NetworkPacket<ZoneSession>
5709{
5710public:
5711 CZ_COOLDOWN_RESET(std::shared_ptr<ZoneSession> s)
5713 {}
5715
5716 void handle(ByteBuffer &&buf);
5717 void deserialize(ByteBuffer &buf);
5718
5719/* Structure */
5720};
5721
5722enum {
5723#if CLIENT_TYPE == 'A' && \
5724 PACKET_VERSION >= 20040000
5725ID_CZ_CREATE_CHATROOM = 0x00d5
5726#elif CLIENT_TYPE == 'M' && ( \
5727 PACKET_VERSION >= 20220000 \
5728 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
5729 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
5730 || (PACKET_VERSION >= 20030000 && PACKET_VERSION < 20200000))
5731ID_CZ_CREATE_CHATROOM = 0x00d5
5732#elif CLIENT_TYPE == 'R' && ( \
5733 PACKET_VERSION >= 20210000 \
5734 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
5735 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
5736ID_CZ_CREATE_CHATROOM = 0x00d5
5737#elif CLIENT_TYPE == 'S' && \
5738 PACKET_VERSION >= 20030000
5739ID_CZ_CREATE_CHATROOM = 0x00d5
5740#elif CLIENT_TYPE == 'Z' && ( \
5741 PACKET_VERSION >= 20220000 \
5742 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
5743 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
5744 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
5745ID_CZ_CREATE_CHATROOM = 0x00d5
5746#else
5747ID_CZ_CREATE_CHATROOM = 0x0000 // Disabled
5748#endif
5754class CZ_CREATE_CHATROOM : public Base::NetworkPacket<ZoneSession>
5755{
5756public:
5757 CZ_CREATE_CHATROOM(std::shared_ptr<ZoneSession> s)
5759 {}
5761
5762 void handle(ByteBuffer &&buf);
5763 void deserialize(ByteBuffer &buf);
5764
5765/* Structure */
5766 int16_t _packet_length{ 0 };
5767 int16_t _limit{ 0 };
5768 int8_t _public{ 0 };
5771};
5772
5773enum {
5774#if CLIENT_TYPE == 'A' && \
5775 PACKET_VERSION >= 20060918
5776ID_CZ_DEATH_QUESTION = 0x0286
5777#elif CLIENT_TYPE == 'M' && ( \
5778 PACKET_VERSION >= 20220000 \
5779 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
5780 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
5781 || PACKET_VERSION >= 20060918)
5782ID_CZ_DEATH_QUESTION = 0x0286
5783#elif CLIENT_TYPE == 'R' && ( \
5784 PACKET_VERSION >= 20210000 \
5785 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
5786 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
5787ID_CZ_DEATH_QUESTION = 0x0286
5788#elif CLIENT_TYPE == 'S' && \
5789 PACKET_VERSION >= 20060918
5790ID_CZ_DEATH_QUESTION = 0x0286
5791#elif CLIENT_TYPE == 'Z' && ( \
5792 PACKET_VERSION >= 20220000 \
5793 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
5794 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
5795 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
5796ID_CZ_DEATH_QUESTION = 0x0286
5797#else
5798ID_CZ_DEATH_QUESTION = 0x0000 // Disabled
5799#endif
5805class CZ_DEATH_QUESTION : public Base::NetworkPacket<ZoneSession>
5806{
5807public:
5808 CZ_DEATH_QUESTION(std::shared_ptr<ZoneSession> s)
5810 {}
5812
5813 void handle(ByteBuffer &&buf);
5814 void deserialize(ByteBuffer &buf);
5815
5816/* Structure */
5817};
5818
5819enum {
5820#if CLIENT_TYPE == 'A' && \
5821 PACKET_VERSION >= 20040000
5822ID_CZ_DELETE_FRIENDS = 0x0203
5823#elif CLIENT_TYPE == 'M' && ( \
5824 PACKET_VERSION >= 20220000 \
5825 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
5826 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
5827 || PACKET_VERSION >= 20040705)
5828ID_CZ_DELETE_FRIENDS = 0x0203
5829#elif CLIENT_TYPE == 'R' && ( \
5830 PACKET_VERSION >= 20210000 \
5831 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
5832 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
5833ID_CZ_DELETE_FRIENDS = 0x0203
5834#elif CLIENT_TYPE == 'S' && \
5835 PACKET_VERSION >= 20040628
5836ID_CZ_DELETE_FRIENDS = 0x0203
5837#elif CLIENT_TYPE == 'Z' && ( \
5838 PACKET_VERSION >= 20220000 \
5839 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
5840 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
5841 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
5842ID_CZ_DELETE_FRIENDS = 0x0203
5843#else
5844ID_CZ_DELETE_FRIENDS = 0x0000 // Disabled
5845#endif
5851class CZ_DELETE_FRIENDS : public Base::NetworkPacket<ZoneSession>
5852{
5853public:
5854 CZ_DELETE_FRIENDS(std::shared_ptr<ZoneSession> s)
5856 {}
5858
5859 void handle(ByteBuffer &&buf);
5860 void deserialize(ByteBuffer &buf);
5861
5862/* Structure */
5863 int _account_id{ 0 };
5864 int _char_id{ 0 };
5865};
5866
5867enum {
5868#if CLIENT_TYPE == 'A' && \
5869 PACKET_VERSION >= 20040000
5871#elif CLIENT_TYPE == 'M' && ( \
5872 PACKET_VERSION >= 20220000 \
5873 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
5874 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
5875 || (PACKET_VERSION >= 20030000 && PACKET_VERSION < 20200000))
5877#elif CLIENT_TYPE == 'R' && ( \
5878 PACKET_VERSION >= 20210000 \
5879 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
5880 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
5882#elif CLIENT_TYPE == 'S' && \
5883 PACKET_VERSION >= 20030000
5885#elif CLIENT_TYPE == 'Z' && ( \
5886 PACKET_VERSION >= 20220000 \
5887 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
5888 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
5889 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
5891#else
5892ID_CZ_DISCONNECT_ALL_CHARACTER = 0x0000 // Disabled
5893#endif
5900{
5901public:
5902 CZ_DISCONNECT_ALL_CHARACTER(std::shared_ptr<ZoneSession> s)
5904 {}
5906
5907 void handle(ByteBuffer &&buf);
5908 void deserialize(ByteBuffer &buf);
5909
5910/* Structure */
5911};
5912
5913enum {
5914#if CLIENT_TYPE == 'A' && \
5915 PACKET_VERSION >= 20040000
5917#elif CLIENT_TYPE == 'M' && ( \
5918 PACKET_VERSION >= 20220000 \
5919 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
5920 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
5921 || (PACKET_VERSION >= 20030000 && PACKET_VERSION < 20200000))
5923#elif CLIENT_TYPE == 'R' && ( \
5924 PACKET_VERSION >= 20210000 \
5925 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
5926 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
5928#elif CLIENT_TYPE == 'S' && \
5929 PACKET_VERSION >= 20030000
5931#elif CLIENT_TYPE == 'Z' && ( \
5932 PACKET_VERSION >= 20220000 \
5933 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
5934 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
5935 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
5937#else
5938ID_CZ_DISCONNECT_CHARACTER = 0x0000 // Disabled
5939#endif
5946{
5947public:
5948 CZ_DISCONNECT_CHARACTER(std::shared_ptr<ZoneSession> s)
5950 {}
5952
5953 void handle(ByteBuffer &&buf);
5954 void deserialize(ByteBuffer &buf);
5955
5956/* Structure */
5957 int _account_id{ 0 };
5958};
5959
5960enum {
5961#if CLIENT_TYPE == 'A' && \
5962 PACKET_VERSION >= 20040000
5963ID_CZ_DORIDORI = 0x01e7
5964#elif CLIENT_TYPE == 'M' && ( \
5965 PACKET_VERSION >= 20220000 \
5966 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
5967 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
5968 || PACKET_VERSION >= 20031110)
5969ID_CZ_DORIDORI = 0x01e7
5970#elif CLIENT_TYPE == 'R' && ( \
5971 PACKET_VERSION >= 20210000 \
5972 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
5973 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
5974ID_CZ_DORIDORI = 0x01e7
5975#elif CLIENT_TYPE == 'S' && \
5976 PACKET_VERSION >= 20031110
5977ID_CZ_DORIDORI = 0x01e7
5978#elif CLIENT_TYPE == 'Z' && ( \
5979 PACKET_VERSION >= 20220000 \
5980 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
5981 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
5982 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
5983ID_CZ_DORIDORI = 0x01e7
5984#else
5985ID_CZ_DORIDORI = 0x0000 // Disabled
5986#endif
5992class CZ_DORIDORI : public Base::NetworkPacket<ZoneSession>
5993{
5994public:
5995 CZ_DORIDORI(std::shared_ptr<ZoneSession> s)
5997 {}
5998 virtual ~CZ_DORIDORI() {}
5999
6000 void handle(ByteBuffer &&buf);
6001 void deserialize(ByteBuffer &buf);
6002
6003/* Structure */
6004};
6005
6006enum {
6007#if CLIENT_TYPE == 'M' && ( \
6008 PACKET_VERSION >= 20220000 \
6009 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
6010 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
6011 || PACKET_VERSION >= 20140430)
6013#elif CLIENT_TYPE == 'R' && ( \
6014 PACKET_VERSION >= 20210000 \
6015 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
6016 || PACKET_VERSION >= 20140430)
6018#elif CLIENT_TYPE == 'Z' && ( \
6019 PACKET_VERSION >= 20220000 \
6020 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
6021 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
6022 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
6024#else
6025ID_CZ_DYNAMICNPC_CREATE_REQUEST = 0x0000 // Disabled
6026#endif
6033{
6034public:
6035 CZ_DYNAMICNPC_CREATE_REQUEST(std::shared_ptr<ZoneSession> s)
6037 {}
6039
6040 void handle(ByteBuffer &&buf);
6041 void deserialize(ByteBuffer &buf);
6042
6043/* Structure */
6044};
6045
6046enum {
6047#if CLIENT_TYPE == 'A' && \
6048 PACKET_VERSION >= 20041129
6049ID_CZ_ENTER = 0x0072
6050#elif CLIENT_TYPE == 'M' && ( \
6051 PACKET_VERSION >= 20220000 \
6052 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
6053 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
6054 || PACKET_VERSION == 20150130 \
6055 || PACKET_VERSION == 20150129)
6056ID_CZ_ENTER = 0x0944
6057#elif CLIENT_TYPE == 'M' && ( \
6058 PACKET_VERSION >= 20190821 \
6059 || PACKET_VERSION >= 20190807 \
6060 || PACKET_VERSION >= 20190802 \
6061 || PACKET_VERSION >= 20190731 \
6062 || PACKET_VERSION >= 20190724 \
6063 || PACKET_VERSION >= 20190717 \
6064 || PACKET_VERSION >= 20190703 \
6065 || PACKET_VERSION >= 20190605 \
6066 || PACKET_VERSION >= 20190530 \
6067 || PACKET_VERSION >= 20190523 \
6068 || PACKET_VERSION >= 20190522 \
6069 || PACKET_VERSION >= 20190508 \
6070 || PACKET_VERSION >= 20190418 \
6071 || PACKET_VERSION >= 20190417 \
6072 || PACKET_VERSION >= 20190327 \
6073 || PACKET_VERSION >= 20190322 \
6074 || PACKET_VERSION >= 20190320 \
6075 || PACKET_VERSION >= 20190313 \
6076 || PACKET_VERSION >= 20190306 \
6077 || PACKET_VERSION >= 20190228 \
6078 || PACKET_VERSION >= 20190123 \
6079 || PACKET_VERSION >= 20190116 \
6080 || PACKET_VERSION >= 20181226 \
6081 || PACKET_VERSION >= 20181219 \
6082 || PACKET_VERSION >= 20181212 \
6083 || PACKET_VERSION >= 20181205 \
6084 || PACKET_VERSION >= 20181128 \
6085 || PACKET_VERSION >= 20181114 \
6086 || PACKET_VERSION >= 20181107 \
6087 || PACKET_VERSION >= 20181024 \
6088 || PACKET_VERSION >= 20180919 \
6089 || PACKET_VERSION >= 20180831 \
6090 || PACKET_VERSION >= 20180822 \
6091 || PACKET_VERSION >= 20180808 \
6092 || PACKET_VERSION >= 20180718 \
6093 || PACKET_VERSION >= 20180704 \
6094 || PACKET_VERSION >= 20180621 \
6095 || PACKET_VERSION >= 20180620 \
6096 || PACKET_VERSION >= 20180530 \
6097 || PACKET_VERSION >= 20180523 \
6098 || PACKET_VERSION >= 20180516 \
6099 || PACKET_VERSION >= 20180509 \
6100 || PACKET_VERSION >= 20180502 \
6101 || PACKET_VERSION >= 20180425 \
6102 || PACKET_VERSION >= 20180404 \
6103 || PACKET_VERSION >= 20180328 \
6104 || PACKET_VERSION >= 20180321 \
6105 || PACKET_VERSION == 20150618)
6106ID_CZ_ENTER = 0x0436
6107#elif CLIENT_TYPE == 'M' && \
6108 PACKET_VERSION >= 20180309
6109ID_CZ_ENTER = 0x07e4
6110#elif CLIENT_TYPE == 'M' && \
6111 PACKET_VERSION >= 20180131
6112ID_CZ_ENTER = 0x0888
6113#elif CLIENT_TYPE == 'M' && \
6114 PACKET_VERSION >= 20161103
6115ID_CZ_ENTER = 0x0946
6116#elif CLIENT_TYPE == 'M' && \
6117 PACKET_VERSION >= 20160630
6118ID_CZ_ENTER = 0x0881
6119#elif CLIENT_TYPE == 'M' && \
6120 PACKET_VERSION >= 20160609
6121ID_CZ_ENTER = 0x0437
6122#elif CLIENT_TYPE == 'M' && \
6123 PACKET_VERSION >= 20160526
6124ID_CZ_ENTER = 0x086a
6125#elif CLIENT_TYPE == 'M' && \
6126 PACKET_VERSION >= 20150226
6127ID_CZ_ENTER = 0x096a
6128#elif CLIENT_TYPE == 'M' && ( \
6129 PACKET_VERSION == 20151022 \
6130 || PACKET_VERSION == 20150702)
6131ID_CZ_ENTER = 0x023b
6132#elif CLIENT_TYPE == 'M' && ( \
6133 PACKET_VERSION == 20160318 \
6134 || PACKET_VERSION == 20151029 \
6135 || PACKET_VERSION == 20150812)
6136ID_CZ_ENTER = 0x022d
6137#elif CLIENT_TYPE == 'M' && \
6138 PACKET_VERSION >= 20141016
6139ID_CZ_ENTER = 0x086e
6140#elif CLIENT_TYPE == 'M' && \
6141 PACKET_VERSION >= 20140814
6142ID_CZ_ENTER = 0x0802
6143#elif CLIENT_TYPE == 'M' && ( \
6144 PACKET_VERSION == 20140613 \
6145 || PACKET_VERSION == 20140612)
6146ID_CZ_ENTER = 0x0958
6147#elif CLIENT_TYPE == 'M' && ( \
6148 PACKET_VERSION == 20131108 \
6149 || PACKET_VERSION == 20131107)
6150ID_CZ_ENTER = 0x08a2
6151#elif CLIENT_TYPE == 'M' && \
6152 PACKET_VERSION >= 20130116
6153ID_CZ_ENTER = 0x092d
6154#elif CLIENT_TYPE == 'M' && \
6155 PACKET_VERSION >= 20130107
6156ID_CZ_ENTER = 0x0940
6157#elif CLIENT_TYPE == 'M' && \
6158 PACKET_VERSION >= 20120926
6159ID_CZ_ENTER = 0x0819
6160#elif CLIENT_TYPE == 'M' && \
6161 PACKET_VERSION >= 20120712
6162ID_CZ_ENTER = 0x08a8
6163#elif CLIENT_TYPE == 'M' && \
6164 PACKET_VERSION >= 20030000
6165ID_CZ_ENTER = 0x0072
6166#elif CLIENT_TYPE == 'R' && \
6167 PACKET_VERSION >= 20080000
6168ID_CZ_ENTER = 0x0072
6169#elif CLIENT_TYPE == 'R' && \
6170 PACKET_VERSION >= 20120712
6171ID_CZ_ENTER = 0x08a8
6172#elif CLIENT_TYPE == 'R' && \
6173 PACKET_VERSION >= 20120926
6174ID_CZ_ENTER = 0x0819
6175#elif CLIENT_TYPE == 'R' && ( \
6176 PACKET_VERSION >= 20210000 \
6177 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
6178 || PACKET_VERSION >= 20161103 \
6179 || PACKET_VERSION >= 20121011)
6180ID_CZ_ENTER = 0x0946
6181#elif CLIENT_TYPE == 'R' && \
6182 PACKET_VERSION >= 20130116
6183ID_CZ_ENTER = 0x092d
6184#elif CLIENT_TYPE == 'R' && \
6185 PACKET_VERSION >= 20141016
6186ID_CZ_ENTER = 0x086e
6187#elif CLIENT_TYPE == 'R' && \
6188 PACKET_VERSION >= 20150226
6189ID_CZ_ENTER = 0x096a
6190#elif CLIENT_TYPE == 'R' && ( \
6191 PACKET_VERSION == 20190821 \
6192 || PACKET_VERSION == 20190807 \
6193 || PACKET_VERSION == 20190802 \
6194 || PACKET_VERSION == 20190731 \
6195 || PACKET_VERSION == 20190724 \
6196 || PACKET_VERSION == 20190717 \
6197 || PACKET_VERSION == 20190703 \
6198 || PACKET_VERSION == 20190626 \
6199 || PACKET_VERSION == 20190605 \
6200 || PACKET_VERSION == 20190530 \
6201 || PACKET_VERSION == 20190522 \
6202 || PACKET_VERSION == 20190508 \
6203 || PACKET_VERSION == 20190418 \
6204 || PACKET_VERSION == 20190417 \
6205 || PACKET_VERSION == 20190327 \
6206 || PACKET_VERSION == 20190322 \
6207 || PACKET_VERSION == 20190320 \
6208 || PACKET_VERSION == 20190306 \
6209 || PACKET_VERSION == 20190228 \
6210 || PACKET_VERSION == 20190123 \
6211 || PACKET_VERSION == 20190116 \
6212 || PACKET_VERSION == 20181226 \
6213 || PACKET_VERSION == 20181219 \
6214 || PACKET_VERSION == 20181212 \
6215 || PACKET_VERSION == 20181205 \
6216 || PACKET_VERSION == 20181128 \
6217 || PACKET_VERSION == 20181121 \
6218 || PACKET_VERSION == 20181114 \
6219 || PACKET_VERSION == 20181107 \
6220 || PACKET_VERSION == 20180822 \
6221 || PACKET_VERSION >= 20180808 \
6222 || PACKET_VERSION >= 20180718 \
6223 || PACKET_VERSION >= 20180711 \
6224 || PACKET_VERSION >= 20180621 \
6225 || PACKET_VERSION >= 20180620 \
6226 || PACKET_VERSION >= 20180612 \
6227 || PACKET_VERSION >= 20180530 \
6228 || PACKET_VERSION >= 20180523 \
6229 || PACKET_VERSION >= 20180516 \
6230 || PACKET_VERSION >= 20180502 \
6231 || PACKET_VERSION >= 20180425 \
6232 || PACKET_VERSION >= 20180404 \
6233 || PACKET_VERSION >= 20180328 \
6234 || PACKET_VERSION >= 20150618)
6235ID_CZ_ENTER = 0x0436
6236#elif CLIENT_TYPE == 'R' && ( \
6237 PACKET_VERSION == 20151029 \
6238 || PACKET_VERSION == 20150812)
6239ID_CZ_ENTER = 0x022d
6240#elif CLIENT_TYPE == 'R' && \
6241 PACKET_VERSION >= 20151022
6242ID_CZ_ENTER = 0x023b
6243#elif CLIENT_TYPE == 'R' && \
6244 PACKET_VERSION >= 20160630
6245ID_CZ_ENTER = 0x0881
6246#elif CLIENT_TYPE == 'S' && \
6247 PACKET_VERSION >= 20030000
6248ID_CZ_ENTER = 0x0072
6249#elif CLIENT_TYPE == 'Z' && \
6250 PACKET_VERSION >= 20170000
6251ID_CZ_ENTER = 0x0072
6252#elif CLIENT_TYPE == 'Z' && ( \
6253 PACKET_VERSION == 20190814 \
6254 || PACKET_VERSION == 20190724 \
6255 || PACKET_VERSION == 20190717 \
6256 || PACKET_VERSION == 20190710 \
6257 || PACKET_VERSION == 20190709 \
6258 || PACKET_VERSION == 20190605 \
6259 || PACKET_VERSION == 20190530 \
6260 || PACKET_VERSION == 20190515 \
6261 || PACKET_VERSION == 20190508 \
6262 || PACKET_VERSION == 20190502 \
6263 || PACKET_VERSION == 20190424 \
6264 || PACKET_VERSION == 20190410 \
6265 || PACKET_VERSION == 20190403 \
6266 || PACKET_VERSION == 20190313 \
6267 || PACKET_VERSION == 20190227 \
6268 || PACKET_VERSION == 20190213 \
6269 || PACKET_VERSION == 20190117 \
6270 || PACKET_VERSION == 20181226 \
6271 || PACKET_VERSION == 20181219 \
6272 || PACKET_VERSION == 20181212 \
6273 || PACKET_VERSION == 20181128 \
6274 || PACKET_VERSION == 20181120 \
6275 || PACKET_VERSION == 20180928 \
6276 || PACKET_VERSION == 20180912 \
6277 || PACKET_VERSION == 20180829 \
6278 || PACKET_VERSION >= 20180808 \
6279 || PACKET_VERSION >= 20180801 \
6280 || PACKET_VERSION >= 20180711 \
6281 || PACKET_VERSION >= 20180703 \
6282 || PACKET_VERSION >= 20180627 \
6283 || PACKET_VERSION >= 20180509 \
6284 || PACKET_VERSION >= 20180411 \
6285 || PACKET_VERSION >= 20180321 \
6286 || PACKET_VERSION >= 20171113 \
6287 || PACKET_VERSION >= 20171031 \
6288 || PACKET_VERSION >= 20171030 \
6289 || PACKET_VERSION >= 20171027 \
6290 || PACKET_VERSION >= 20171025 \
6291 || PACKET_VERSION >= 20171024 \
6292 || PACKET_VERSION >= 20171023 \
6293 || PACKET_VERSION >= 20171019)
6294ID_CZ_ENTER = 0x0436
6295#elif CLIENT_TYPE == 'Z' && ( \
6296 PACKET_VERSION == 20171117 \
6297 || PACKET_VERSION == 20171116)
6298ID_CZ_ENTER = 0x0881
6299#elif CLIENT_TYPE == 'Z' && \
6300 PACKET_VERSION >= 20171122
6301ID_CZ_ENTER = 0x091f
6302#elif CLIENT_TYPE == 'Z' && ( \
6303 PACKET_VERSION == 20180309 \
6304 || PACKET_VERSION == 20180307 \
6305 || PACKET_VERSION == 20171128)
6306ID_CZ_ENTER = 0x022d
6307#elif CLIENT_TYPE == 'Z' && ( \
6308 PACKET_VERSION >= 20220000 \
6309 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
6310 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
6311 || PACKET_VERSION >= 20171213 \
6312 || PACKET_VERSION >= 20171212 \
6313 || PACKET_VERSION >= 20171211 \
6314 || PACKET_VERSION >= 20171210 \
6315 || PACKET_VERSION >= 20171209 \
6316 || PACKET_VERSION >= 20171208)
6317ID_CZ_ENTER = 0x0920
6318#elif CLIENT_TYPE == 'Z' && \
6319 PACKET_VERSION >= 20171221
6320ID_CZ_ENTER = 0x08ad
6321#elif CLIENT_TYPE == 'Z' && \
6322 PACKET_VERSION >= 20171229
6323ID_CZ_ENTER = 0x0874
6324#else
6325ID_CZ_ENTER = 0x0000 // Disabled
6326#endif
6332class CZ_ENTER : public Base::NetworkPacket<ZoneSession>
6333{
6334public:
6335 CZ_ENTER(std::shared_ptr<ZoneSession> s)
6337 {}
6338 virtual ~CZ_ENTER() {}
6339
6340 void handle(ByteBuffer &&buf);
6341 void deserialize(ByteBuffer &buf);
6342
6343/* Structure */
6344 uint32_t _account_id{0};
6345 uint32_t _char_id{0};
6346 uint32_t _auth_code{0};
6347 uint32_t _client_time{0};
6348 uint8_t _gender{0};
6349};
6350
6351enum {
6352#if CLIENT_TYPE == 'M' && ( \
6353 PACKET_VERSION >= 20220000 \
6354 || PACKET_VERSION == 20210630 \
6355 || PACKET_VERSION == 20210203 \
6356 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210203) \
6357 || (PACKET_VERSION >= 20190000 && PACKET_VERSION < 20200000) \
6358 || PACKET_VERSION >= 20180315 \
6359 || PACKET_VERSION >= 20180314 \
6360 || PACKET_VERSION >= 20180307 \
6361 || PACKET_VERSION >= 20180221 \
6362 || PACKET_VERSION >= 20180207 \
6363 || PACKET_VERSION >= 20180124 \
6364 || PACKET_VERSION >= 20180117 \
6365 || PACKET_VERSION >= 20180103 \
6366 || PACKET_VERSION >= 20171122 \
6367 || PACKET_VERSION >= 20171115 \
6368 || PACKET_VERSION >= 20171101 \
6369 || PACKET_VERSION >= 20171025 \
6370 || PACKET_VERSION >= 20171018 \
6371 || PACKET_VERSION >= 20171011 \
6372 || PACKET_VERSION >= 20170927 \
6373 || PACKET_VERSION >= 20170920 \
6374 || PACKET_VERSION >= 20170830 \
6375 || PACKET_VERSION >= 20170823 \
6376 || PACKET_VERSION >= 20170719 \
6377 || PACKET_VERSION >= 20170712 \
6378 || PACKET_VERSION >= 20170705 \
6379 || PACKET_VERSION >= 20170628 \
6380 || PACKET_VERSION >= 20170517 \
6381 || PACKET_VERSION >= 20170502 \
6382 || PACKET_VERSION >= 20170329 \
6383 || PACKET_VERSION >= 20170322 \
6384 || PACKET_VERSION >= 20170315 \
6385 || PACKET_VERSION >= 20170308 \
6386 || PACKET_VERSION >= 20170125 \
6387 || PACKET_VERSION >= 20170118 \
6388 || PACKET_VERSION >= 20170111 \
6389 || PACKET_VERSION >= 20170104 \
6390 || PACKET_VERSION >= 20161221 \
6391 || PACKET_VERSION >= 20161214 \
6392 || PACKET_VERSION >= 20161109 \
6393 || PACKET_VERSION >= 20161102 \
6394 || PACKET_VERSION >= 20161005 \
6395 || PACKET_VERSION >= 20160928 \
6396 || PACKET_VERSION >= 20160921 \
6397 || PACKET_VERSION >= 20160913 \
6398 || PACKET_VERSION >= 20160907 \
6399 || PACKET_VERSION >= 20160831 \
6400 || PACKET_VERSION >= 20160824 \
6401 || PACKET_VERSION >= 20160803 \
6402 || PACKET_VERSION >= 20160727 \
6403 || PACKET_VERSION >= 20160713 \
6404 || PACKET_VERSION >= 20160706 \
6405 || PACKET_VERSION >= 20160615 \
6406 || PACKET_VERSION >= 20160608 \
6407 || PACKET_VERSION >= 20160525 \
6408 || PACKET_VERSION >= 20160518 \
6409 || PACKET_VERSION >= 20160504 \
6410 || PACKET_VERSION >= 20160427 \
6411 || PACKET_VERSION >= 20160323 \
6412 || PACKET_VERSION >= 20160316 \
6413 || PACKET_VERSION >= 20160302 \
6414 || PACKET_VERSION >= 20160224 \
6415 || PACKET_VERSION >= 20160217 \
6416 || PACKET_VERSION >= 20160211 \
6417 || PACKET_VERSION >= 20160203 \
6418 || PACKET_VERSION >= 20160120 \
6419 || PACKET_VERSION >= 20160106 \
6420 || PACKET_VERSION >= 20151230 \
6421 || PACKET_VERSION >= 20151223 \
6422 || PACKET_VERSION >= 20151216 \
6423 || PACKET_VERSION >= 20151209 \
6424 || PACKET_VERSION >= 20151202 \
6425 || PACKET_VERSION >= 20151111 \
6426 || PACKET_VERSION >= 20151104 \
6427 || PACKET_VERSION >= 20151021 \
6428 || PACKET_VERSION >= 20151007 \
6429 || PACKET_VERSION >= 20151001 \
6430 || PACKET_VERSION >= 20150902 \
6431 || PACKET_VERSION >= 20150826 \
6432 || PACKET_VERSION >= 20150805 \
6433 || PACKET_VERSION >= 20150729 \
6434 || PACKET_VERSION >= 20150722 \
6435 || PACKET_VERSION >= 20150715 \
6436 || PACKET_VERSION >= 20150708 \
6437 || PACKET_VERSION >= 20150701 \
6438 || PACKET_VERSION >= 20150624 \
6439 || PACKET_VERSION >= 20150617 \
6440 || PACKET_VERSION >= 20150603 \
6441 || PACKET_VERSION >= 20150527 \
6442 || PACKET_VERSION >= 20150429 \
6443 || PACKET_VERSION >= 20150422 \
6444 || PACKET_VERSION >= 20150318 \
6445 || PACKET_VERSION >= 20150311 \
6446 || PACKET_VERSION >= 20150304 \
6447 || PACKET_VERSION >= 20150225 \
6448 || PACKET_VERSION >= 20150217 \
6449 || PACKET_VERSION >= 20150211 \
6450 || PACKET_VERSION >= 20150204 \
6451 || PACKET_VERSION >= 20150121 \
6452 || PACKET_VERSION >= 20150114 \
6453 || PACKET_VERSION >= 20150107 \
6454 || PACKET_VERSION >= 20141231 \
6455 || PACKET_VERSION >= 20141217 \
6456 || PACKET_VERSION >= 20141210 \
6457 || PACKET_VERSION >= 20141105 \
6458 || PACKET_VERSION >= 20141029 \
6459 || PACKET_VERSION >= 20141015 \
6460 || PACKET_VERSION >= 20141008 \
6461 || PACKET_VERSION >= 20140903 \
6462 || PACKET_VERSION >= 20140827 \
6463 || PACKET_VERSION >= 20140813 \
6464 || PACKET_VERSION >= 20140806 \
6465 || PACKET_VERSION >= 20140730 \
6466 || PACKET_VERSION >= 20140723 \
6467 || PACKET_VERSION >= 20140611 \
6468 || PACKET_VERSION >= 20140605 \
6469 || PACKET_VERSION >= 20140508 \
6470 || PACKET_VERSION >= 20140430 \
6471 || PACKET_VERSION >= 20140423 \
6472 || PACKET_VERSION >= 20140416 \
6473 || PACKET_VERSION >= 20140312 \
6474 || PACKET_VERSION >= 20140305 \
6475 || PACKET_VERSION >= 20140212 \
6476 || PACKET_VERSION >= 20140205 \
6477 || PACKET_VERSION >= 20140115 \
6478 || PACKET_VERSION >= 20140108 \
6479 || PACKET_VERSION >= 20131230 \
6480 || PACKET_VERSION >= 20131223 \
6481 || PACKET_VERSION >= 20131113 \
6482 || PACKET_VERSION >= 20131106 \
6483 || PACKET_VERSION >= 20131030 \
6484 || PACKET_VERSION >= 20131008 \
6485 || PACKET_VERSION >= 20131002 \
6486 || PACKET_VERSION >= 20130917 \
6487 || PACKET_VERSION >= 20130911 \
6488 || PACKET_VERSION >= 20130904 \
6489 || PACKET_VERSION >= 20130814 \
6490 || PACKET_VERSION >= 20130807 \
6491 || PACKET_VERSION >= 20130717 \
6492 || PACKET_VERSION >= 20130703 \
6493 || PACKET_VERSION >= 20130618 \
6494 || PACKET_VERSION >= 20130605 \
6495 || PACKET_VERSION >= 20130515 \
6496 || PACKET_VERSION >= 20130508 \
6497 || PACKET_VERSION >= 20130502 \
6498 || PACKET_VERSION >= 20130424 \
6499 || PACKET_VERSION >= 20130320 \
6500 || PACKET_VERSION >= 20130313 \
6501 || PACKET_VERSION >= 20130227 \
6502 || PACKET_VERSION >= 20130220 \
6503 || PACKET_VERSION >= 20130215 \
6504 || PACKET_VERSION >= 20130109 \
6505 || PACKET_VERSION >= 20130103 \
6506 || PACKET_VERSION >= 20121031 \
6507 || PACKET_VERSION >= 20121024 \
6508 || PACKET_VERSION >= 20120925 \
6509 || PACKET_VERSION >= 20120919 \
6510 || PACKET_VERSION >= 20120905 \
6511 || PACKET_VERSION >= 20120830 \
6512 || PACKET_VERSION >= 20120814 \
6513 || PACKET_VERSION >= 20120808 \
6514 || PACKET_VERSION >= 20120724 \
6515 || PACKET_VERSION >= 20120716 \
6516 || PACKET_VERSION >= 20120710 \
6517 || PACKET_VERSION >= 20120626 \
6518 || PACKET_VERSION >= 20120612 \
6519 || PACKET_VERSION >= 20120604 \
6520 || PACKET_VERSION >= 20120529 \
6521 || PACKET_VERSION >= 20120508 \
6522 || PACKET_VERSION >= 20120503 \
6523 || PACKET_VERSION >= 20120424 \
6524 || PACKET_VERSION >= 20120417 \
6525 || PACKET_VERSION >= 20120328 \
6526 || PACKET_VERSION >= 20120320 \
6527 || PACKET_VERSION >= 20120214 \
6528 || PACKET_VERSION >= 20120207 \
6529 || PACKET_VERSION >= 20120131 \
6530 || PACKET_VERSION >= 20120120 \
6531 || PACKET_VERSION >= 20120117 \
6532 || PACKET_VERSION >= 20120103 \
6533 || PACKET_VERSION >= 20111227 \
6534 || PACKET_VERSION >= 20111213 \
6535 || PACKET_VERSION >= 20111122 \
6536 || PACKET_VERSION >= 20111108 \
6537 || PACKET_VERSION >= 20111101 \
6538 || PACKET_VERSION >= 20111025 \
6539 || PACKET_VERSION >= 20111017 \
6540 || PACKET_VERSION >= 20111010 \
6541 || PACKET_VERSION >= 20111004 \
6542 || PACKET_VERSION >= 20110928 \
6543 || PACKET_VERSION >= 20110920 \
6544 || PACKET_VERSION >= 20110906 \
6545 || PACKET_VERSION >= 20110831 \
6546 || PACKET_VERSION >= 20110823 \
6547 || PACKET_VERSION >= 20110816 \
6548 || PACKET_VERSION >= 20110809 \
6549 || PACKET_VERSION >= 20110802 \
6550 || PACKET_VERSION >= 20110726 \
6551 || PACKET_VERSION >= 20110718 \
6552 || PACKET_VERSION >= 20110711 \
6553 || PACKET_VERSION >= 20110705 \
6554 || PACKET_VERSION >= 20110620 \
6555 || PACKET_VERSION >= 20110614 \
6556 || PACKET_VERSION >= 20110607 \
6557 || PACKET_VERSION >= 20110531 \
6558 || PACKET_VERSION >= 20110523 \
6559 || PACKET_VERSION >= 20110511 \
6560 || PACKET_VERSION >= 20110503 \
6561 || PACKET_VERSION >= 20110426 \
6562 || PACKET_VERSION >= 20110419 \
6563 || PACKET_VERSION >= 20110412 \
6564 || PACKET_VERSION >= 20110329 \
6565 || PACKET_VERSION >= 20110315 \
6566 || PACKET_VERSION >= 20110308 \
6567 || PACKET_VERSION >= 20110222 \
6568 || PACKET_VERSION >= 20110215 \
6569 || PACKET_VERSION >= 20110118 \
6570 || PACKET_VERSION >= 20110111 \
6571 || PACKET_VERSION >= 20110104 \
6572 || PACKET_VERSION >= 20101228 \
6573 || PACKET_VERSION >= 20101221 \
6574 || PACKET_VERSION >= 20101214 \
6575 || PACKET_VERSION >= 20101123 \
6576 || PACKET_VERSION >= 20100105 \
6577 || PACKET_VERSION >= 20090406 \
6578 || PACKET_VERSION >= 20090325 \
6579 || PACKET_VERSION >= 20090318 \
6580 || PACKET_VERSION >= 20090311 \
6581 || PACKET_VERSION >= 20090225 \
6582 || PACKET_VERSION >= 20090120 \
6583 || PACKET_VERSION >= 20090114 \
6584 || PACKET_VERSION >= 20090107 \
6585 || PACKET_VERSION >= 20081217 \
6586 || PACKET_VERSION >= 20081203 \
6587 || PACKET_VERSION >= 20081126 \
6588 || PACKET_VERSION >= 20081112 \
6589 || PACKET_VERSION >= 20081105 \
6590 || PACKET_VERSION >= 20081029 \
6591 || PACKET_VERSION >= 20081022 \
6592 || PACKET_VERSION >= 20081015 \
6593 || PACKET_VERSION >= 20080924 \
6594 || PACKET_VERSION >= 20080917 \
6595 || PACKET_VERSION >= 20080910)
6596ID_CZ_ENTER2 = 0x0436
6597#elif CLIENT_TYPE == 'R' && ( \
6598 PACKET_VERSION == 20211103 \
6599 || PACKET_VERSION == 20210107 \
6600 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210107) \
6601 || (PACKET_VERSION >= 20190000 && PACKET_VERSION < 20200000) \
6602 || PACKET_VERSION >= 20180321 \
6603 || PACKET_VERSION >= 20180307 \
6604 || PACKET_VERSION >= 20180221 \
6605 || PACKET_VERSION >= 20180207 \
6606 || PACKET_VERSION >= 20180124 \
6607 || PACKET_VERSION >= 20180117 \
6608 || PACKET_VERSION >= 20180103 \
6609 || PACKET_VERSION >= 20171122 \
6610 || PACKET_VERSION >= 20171115 \
6611 || PACKET_VERSION >= 20171101 \
6612 || PACKET_VERSION >= 20171025 \
6613 || PACKET_VERSION >= 20171018 \
6614 || PACKET_VERSION >= 20171011 \
6615 || PACKET_VERSION >= 20170927 \
6616 || PACKET_VERSION >= 20170920 \
6617 || PACKET_VERSION >= 20170830 \
6618 || PACKET_VERSION >= 20170823 \
6619 || PACKET_VERSION >= 20170719 \
6620 || PACKET_VERSION >= 20170712 \
6621 || PACKET_VERSION >= 20170705 \
6622 || PACKET_VERSION >= 20170628 \
6623 || PACKET_VERSION >= 20170517 \
6624 || PACKET_VERSION >= 20170502 \
6625 || PACKET_VERSION >= 20170329 \
6626 || PACKET_VERSION >= 20170322 \
6627 || PACKET_VERSION >= 20170315 \
6628 || PACKET_VERSION >= 20170308 \
6629 || PACKET_VERSION >= 20170125 \
6630 || PACKET_VERSION >= 20170118 \
6631 || PACKET_VERSION >= 20170111 \
6632 || PACKET_VERSION >= 20170104 \
6633 || PACKET_VERSION >= 20161221 \
6634 || PACKET_VERSION >= 20161214 \
6635 || PACKET_VERSION >= 20161109 \
6636 || PACKET_VERSION >= 20161102 \
6637 || PACKET_VERSION >= 20161005 \
6638 || PACKET_VERSION >= 20160928 \
6639 || PACKET_VERSION >= 20160921 \
6640 || PACKET_VERSION >= 20160913 \
6641 || PACKET_VERSION >= 20160907 \
6642 || PACKET_VERSION >= 20160831 \
6643 || PACKET_VERSION >= 20160824 \
6644 || PACKET_VERSION >= 20160803 \
6645 || PACKET_VERSION >= 20160727 \
6646 || PACKET_VERSION >= 20160713 \
6647 || PACKET_VERSION >= 20160706 \
6648 || PACKET_VERSION >= 20160615 \
6649 || PACKET_VERSION >= 20160608 \
6650 || PACKET_VERSION >= 20160525 \
6651 || PACKET_VERSION >= 20160518 \
6652 || PACKET_VERSION >= 20160504 \
6653 || PACKET_VERSION >= 20160427 \
6654 || PACKET_VERSION >= 20160323 \
6655 || PACKET_VERSION >= 20160316 \
6656 || PACKET_VERSION >= 20160302 \
6657 || PACKET_VERSION >= 20160224 \
6658 || PACKET_VERSION >= 20160217 \
6659 || PACKET_VERSION >= 20160211 \
6660 || PACKET_VERSION >= 20160203 \
6661 || PACKET_VERSION >= 20160120 \
6662 || PACKET_VERSION >= 20160106 \
6663 || PACKET_VERSION >= 20151230 \
6664 || PACKET_VERSION >= 20151223 \
6665 || PACKET_VERSION >= 20151216 \
6666 || PACKET_VERSION >= 20151209 \
6667 || PACKET_VERSION >= 20151202 \
6668 || PACKET_VERSION >= 20151111 \
6669 || PACKET_VERSION >= 20151104 \
6670 || PACKET_VERSION >= 20151021 \
6671 || PACKET_VERSION >= 20151007 \
6672 || PACKET_VERSION >= 20151001 \
6673 || PACKET_VERSION >= 20150902 \
6674 || PACKET_VERSION >= 20150826 \
6675 || PACKET_VERSION >= 20150805 \
6676 || PACKET_VERSION >= 20150729 \
6677 || PACKET_VERSION >= 20150722 \
6678 || PACKET_VERSION >= 20150715 \
6679 || PACKET_VERSION >= 20150708 \
6680 || PACKET_VERSION >= 20150701 \
6681 || PACKET_VERSION >= 20150624 \
6682 || PACKET_VERSION >= 20150617 \
6683 || PACKET_VERSION >= 20150603 \
6684 || PACKET_VERSION >= 20150527 \
6685 || PACKET_VERSION >= 20150429 \
6686 || PACKET_VERSION >= 20150422 \
6687 || PACKET_VERSION >= 20150318 \
6688 || PACKET_VERSION >= 20150311 \
6689 || PACKET_VERSION >= 20150304 \
6690 || PACKET_VERSION >= 20150225 \
6691 || PACKET_VERSION >= 20150217 \
6692 || PACKET_VERSION >= 20150211 \
6693 || PACKET_VERSION >= 20150204 \
6694 || PACKET_VERSION >= 20150121 \
6695 || PACKET_VERSION >= 20150114 \
6696 || PACKET_VERSION >= 20150107 \
6697 || PACKET_VERSION >= 20141231 \
6698 || PACKET_VERSION >= 20141217 \
6699 || PACKET_VERSION >= 20141210 \
6700 || PACKET_VERSION >= 20141105 \
6701 || PACKET_VERSION >= 20141029 \
6702 || PACKET_VERSION >= 20141015 \
6703 || PACKET_VERSION >= 20141008 \
6704 || PACKET_VERSION >= 20140903 \
6705 || PACKET_VERSION >= 20140827 \
6706 || PACKET_VERSION >= 20140813 \
6707 || PACKET_VERSION >= 20140806 \
6708 || PACKET_VERSION >= 20140730 \
6709 || PACKET_VERSION >= 20140723 \
6710 || PACKET_VERSION >= 20140611 \
6711 || PACKET_VERSION >= 20140605 \
6712 || PACKET_VERSION >= 20140508 \
6713 || PACKET_VERSION >= 20140430 \
6714 || PACKET_VERSION >= 20140423 \
6715 || PACKET_VERSION >= 20140416 \
6716 || PACKET_VERSION >= 20140312 \
6717 || PACKET_VERSION >= 20140305 \
6718 || PACKET_VERSION >= 20140212 \
6719 || PACKET_VERSION >= 20140205 \
6720 || PACKET_VERSION >= 20140115 \
6721 || PACKET_VERSION >= 20140108 \
6722 || PACKET_VERSION >= 20131230 \
6723 || PACKET_VERSION >= 20131223 \
6724 || PACKET_VERSION >= 20131113 \
6725 || PACKET_VERSION >= 20131106 \
6726 || PACKET_VERSION >= 20131030 \
6727 || PACKET_VERSION >= 20131008 \
6728 || PACKET_VERSION >= 20131002 \
6729 || PACKET_VERSION >= 20130917 \
6730 || PACKET_VERSION >= 20130911 \
6731 || PACKET_VERSION >= 20130904 \
6732 || PACKET_VERSION >= 20130814 \
6733 || PACKET_VERSION >= 20130807 \
6734 || PACKET_VERSION >= 20130717 \
6735 || PACKET_VERSION >= 20130703 \
6736 || PACKET_VERSION >= 20130618 \
6737 || PACKET_VERSION >= 20130605 \
6738 || PACKET_VERSION >= 20130515 \
6739 || PACKET_VERSION >= 20130508 \
6740 || PACKET_VERSION >= 20130502 \
6741 || PACKET_VERSION >= 20130424 \
6742 || PACKET_VERSION >= 20130320 \
6743 || PACKET_VERSION >= 20130313 \
6744 || PACKET_VERSION >= 20130227 \
6745 || PACKET_VERSION >= 20130220 \
6746 || PACKET_VERSION >= 20130215 \
6747 || PACKET_VERSION >= 20130109 \
6748 || PACKET_VERSION >= 20130103 \
6749 || PACKET_VERSION >= 20121031 \
6750 || PACKET_VERSION >= 20121024 \
6751 || PACKET_VERSION >= 20120925 \
6752 || PACKET_VERSION >= 20120919 \
6753 || PACKET_VERSION >= 20120905 \
6754 || PACKET_VERSION >= 20120830 \
6755 || PACKET_VERSION >= 20120814 \
6756 || PACKET_VERSION >= 20120808 \
6757 || PACKET_VERSION >= 20120724 \
6758 || PACKET_VERSION >= 20120716 \
6759 || PACKET_VERSION >= 20120710 \
6760 || PACKET_VERSION >= 20120626 \
6761 || PACKET_VERSION >= 20120612 \
6762 || PACKET_VERSION >= 20120601 \
6763 || PACKET_VERSION >= 20120529 \
6764 || PACKET_VERSION >= 20120508 \
6765 || PACKET_VERSION >= 20120502 \
6766 || PACKET_VERSION >= 20120424 \
6767 || PACKET_VERSION >= 20120417 \
6768 || PACKET_VERSION >= 20120328 \
6769 || PACKET_VERSION >= 20120320 \
6770 || PACKET_VERSION >= 20120214 \
6771 || PACKET_VERSION >= 20120207 \
6772 || PACKET_VERSION >= 20120131 \
6773 || PACKET_VERSION >= 20120120 \
6774 || PACKET_VERSION >= 20120117 \
6775 || PACKET_VERSION >= 20120103 \
6776 || PACKET_VERSION >= 20111227 \
6777 || PACKET_VERSION >= 20111213 \
6778 || PACKET_VERSION >= 20111122 \
6779 || PACKET_VERSION >= 20111108 \
6780 || PACKET_VERSION >= 20111101 \
6781 || PACKET_VERSION >= 20111025 \
6782 || PACKET_VERSION >= 20111017 \
6783 || PACKET_VERSION >= 20111010 \
6784 || PACKET_VERSION >= 20111004 \
6785 || PACKET_VERSION >= 20110928 \
6786 || PACKET_VERSION >= 20110920 \
6787 || PACKET_VERSION >= 20110906 \
6788 || PACKET_VERSION >= 20110831 \
6789 || PACKET_VERSION >= 20110823 \
6790 || PACKET_VERSION >= 20110816 \
6791 || PACKET_VERSION >= 20110104 \
6792 || (PACKET_VERSION >= 20100000 && PACKET_VERSION < 20110104) \
6793 || (PACKET_VERSION >= 20090000 && PACKET_VERSION < 20100000) \
6794 || PACKET_VERSION >= 20080910)
6795ID_CZ_ENTER2 = 0x0436
6796#elif CLIENT_TYPE == 'S' && \
6797 PACKET_VERSION >= 20080910
6798ID_CZ_ENTER2 = 0x0436
6799#elif CLIENT_TYPE == 'Z' && ( \
6800 PACKET_VERSION >= 20220000 \
6801 || PACKET_VERSION == 20210630 \
6802 || PACKET_VERSION == 20210623 \
6803 || PACKET_VERSION == 20210106 \
6804 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210106) \
6805 || (PACKET_VERSION >= 20190000 && PACKET_VERSION < 20200000) \
6806 || PACKET_VERSION >= 20180523 \
6807 || PACKET_VERSION >= 20180511 \
6808 || PACKET_VERSION >= 20180315 \
6809 || PACKET_VERSION >= 20180314 \
6810 || PACKET_VERSION >= 20180228 \
6811 || PACKET_VERSION >= 20180213 \
6812 || PACKET_VERSION >= 20180131 \
6813 || PACKET_VERSION >= 20180103 \
6814 || PACKET_VERSION >= 20171214 \
6815 || PACKET_VERSION >= 20171206 \
6816 || PACKET_VERSION >= 20171130 \
6817 || PACKET_VERSION >= 20171127 \
6818 || PACKET_VERSION >= 20171115 \
6819 || PACKET_VERSION >= 20171018)
6820ID_CZ_ENTER2 = 0x0436
6821#else
6822ID_CZ_ENTER2 = 0x0000 // Disabled
6823#endif
6829class CZ_ENTER2 : public Base::NetworkPacket<ZoneSession>
6830{
6831public:
6832 CZ_ENTER2(std::shared_ptr<ZoneSession> s)
6834 {}
6835 virtual ~CZ_ENTER2() {}
6836
6837 void handle(ByteBuffer &&buf);
6838 void deserialize(ByteBuffer &buf);
6839
6840/* Structure */
6841 uint32_t _account_id{ 0 };
6842 uint32_t _char_id{ 0 };
6843 uint32_t _auth_code{ 0 };
6844 uint32_t _client_time{ 0 };
6845 uint8_t _gender{ 0 };
6846};
6847
6848enum {
6849#if CLIENT_TYPE == 'A' && \
6850 PACKET_VERSION >= 20070918
6852#elif CLIENT_TYPE == 'M' && ( \
6853 PACKET_VERSION >= 20220000 \
6854 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
6855 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
6856 || PACKET_VERSION >= 20070918)
6858#elif CLIENT_TYPE == 'R' && ( \
6859 PACKET_VERSION >= 20210000 \
6860 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
6861 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
6863#elif CLIENT_TYPE == 'S' && \
6864 PACKET_VERSION >= 20070918
6866#elif CLIENT_TYPE == 'Z' && ( \
6867 PACKET_VERSION >= 20220000 \
6868 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
6869 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
6870 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
6872#else
6873ID_CZ_EQUIPWIN_MICROSCOPE = 0x0000 // Disabled
6874#endif
6881{
6882public:
6883 CZ_EQUIPWIN_MICROSCOPE(std::shared_ptr<ZoneSession> s)
6885 {}
6887
6888 void handle(ByteBuffer &&buf);
6889 void deserialize(ByteBuffer &buf);
6890
6891/* Structure */
6892 int _account_id{ 0 };
6893};
6894
6895enum {
6896#if CLIENT_TYPE == 'M' && \
6897 PACKET_VERSION >= 20090520
6898ID_CZ_ES_CANCEL = 0x07d4
6899#elif CLIENT_TYPE == 'R' && \
6900 PACKET_VERSION >= 20090520
6901ID_CZ_ES_CANCEL = 0x07d4
6902#elif CLIENT_TYPE == 'S' && \
6903 PACKET_VERSION >= 20090520
6904ID_CZ_ES_CANCEL = 0x07d4
6905#else
6906ID_CZ_ES_CANCEL = 0x0000 // Disabled
6907#endif
6913class CZ_ES_CANCEL : public Base::NetworkPacket<ZoneSession>
6914{
6915public:
6916 CZ_ES_CANCEL(std::shared_ptr<ZoneSession> s)
6918 {}
6919 virtual ~CZ_ES_CANCEL() {}
6920
6921 void handle(ByteBuffer &&buf);
6922 void deserialize(ByteBuffer &buf);
6923
6924/* Structure */
6925};
6926
6927enum {
6928#if CLIENT_TYPE == 'M' && \
6929 PACKET_VERSION >= 20090520
6930ID_CZ_ES_CHOOSE = 0x07d3
6931#elif CLIENT_TYPE == 'R' && \
6932 PACKET_VERSION >= 20090520
6933ID_CZ_ES_CHOOSE = 0x07d3
6934#elif CLIENT_TYPE == 'S' && \
6935 PACKET_VERSION >= 20090520
6936ID_CZ_ES_CHOOSE = 0x07d3
6937#else
6938ID_CZ_ES_CHOOSE = 0x0000 // Disabled
6939#endif
6945class CZ_ES_CHOOSE : public Base::NetworkPacket<ZoneSession>
6946{
6947public:
6948 CZ_ES_CHOOSE(std::shared_ptr<ZoneSession> s)
6950 {}
6951 virtual ~CZ_ES_CHOOSE() {}
6952
6953 void handle(ByteBuffer &&buf);
6954 void deserialize(ByteBuffer &buf);
6955
6956/* Structure */
6957};
6958
6959enum {
6960#if CLIENT_TYPE == 'M' && \
6961 PACKET_VERSION >= 20090520
6962ID_CZ_ES_GET_LIST = 0x07d1
6963#elif CLIENT_TYPE == 'R' && \
6964 PACKET_VERSION >= 20090520
6965ID_CZ_ES_GET_LIST = 0x07d1
6966#elif CLIENT_TYPE == 'S' && \
6967 PACKET_VERSION >= 20090520
6968ID_CZ_ES_GET_LIST = 0x07d1
6969#else
6970ID_CZ_ES_GET_LIST = 0x0000 // Disabled
6971#endif
6977class CZ_ES_GET_LIST : public Base::NetworkPacket<ZoneSession>
6978{
6979public:
6980 CZ_ES_GET_LIST(std::shared_ptr<ZoneSession> s)
6982 {}
6983 virtual ~CZ_ES_GET_LIST() {}
6984
6985 void handle(ByteBuffer &&buf);
6986 void deserialize(ByteBuffer &buf);
6987
6988/* Structure */
6989};
6990
6991enum {
6992#if CLIENT_TYPE == 'A' && \
6993 PACKET_VERSION >= 20040000
6995#elif CLIENT_TYPE == 'M' && ( \
6996 PACKET_VERSION >= 20220000 \
6997 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
6998 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
6999 || (PACKET_VERSION >= 20030000 && PACKET_VERSION < 20200000))
7001#elif CLIENT_TYPE == 'R' && ( \
7002 PACKET_VERSION >= 20210000 \
7003 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
7004 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
7006#elif CLIENT_TYPE == 'S' && \
7007 PACKET_VERSION >= 20030000
7009#elif CLIENT_TYPE == 'Z' && ( \
7010 PACKET_VERSION >= 20220000 \
7011 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
7012 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
7013 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
7015#else
7016ID_CZ_EXEC_EXCHANGE_ITEM = 0x0000 // Disabled
7017#endif
7024{
7025public:
7026 CZ_EXEC_EXCHANGE_ITEM(std::shared_ptr<ZoneSession> s)
7028 {}
7030
7031 void handle(ByteBuffer &&buf);
7032 void deserialize(ByteBuffer &buf);
7033
7034/* Structure */
7035};
7036
7037enum {
7038#if CLIENT_TYPE == 'A' && \
7039 PACKET_VERSION >= 20040000
7040ID_CZ_EXIT_ROOM = 0x00e3
7041#elif CLIENT_TYPE == 'M' && ( \
7042 PACKET_VERSION >= 20220000 \
7043 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
7044 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
7045 || (PACKET_VERSION >= 20030000 && PACKET_VERSION < 20200000))
7046ID_CZ_EXIT_ROOM = 0x00e3
7047#elif CLIENT_TYPE == 'R' && ( \
7048 PACKET_VERSION >= 20210000 \
7049 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
7050 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
7051ID_CZ_EXIT_ROOM = 0x00e3
7052#elif CLIENT_TYPE == 'S' && \
7053 PACKET_VERSION >= 20030000
7054ID_CZ_EXIT_ROOM = 0x00e3
7055#elif CLIENT_TYPE == 'Z' && ( \
7056 PACKET_VERSION >= 20220000 \
7057 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
7058 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
7059 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
7060ID_CZ_EXIT_ROOM = 0x00e3
7061#else
7062ID_CZ_EXIT_ROOM = 0x0000 // Disabled
7063#endif
7069class CZ_EXIT_ROOM : public Base::NetworkPacket<ZoneSession>
7070{
7071public:
7072 CZ_EXIT_ROOM(std::shared_ptr<ZoneSession> s)
7074 {}
7075 virtual ~CZ_EXIT_ROOM() {}
7076
7077 void handle(ByteBuffer &&buf);
7078 void deserialize(ByteBuffer &buf);
7079
7080/* Structure */
7081};
7082
7083enum {
7084#if CLIENT_TYPE == 'A' && \
7085 PACKET_VERSION >= 20070122
7087#elif CLIENT_TYPE == 'M' && \
7088 PACKET_VERSION >= 20070122
7090#elif CLIENT_TYPE == 'S' && \
7091 PACKET_VERSION >= 20070122
7093#else
7094ID_CZ_GAMEGUARD_LINGO_READY = 0x0000 // Disabled
7095#endif
7102{
7103public:
7104 CZ_GAMEGUARD_LINGO_READY(std::shared_ptr<ZoneSession> s)
7106 {}
7108
7109 void handle(ByteBuffer &&buf);
7110 void deserialize(ByteBuffer &buf);
7111
7112/* Structure */
7113};
7114
7115enum {
7116#if CLIENT_TYPE == 'A' && \
7117 PACKET_VERSION >= 20060918
7118ID_CZ_GANGSI_RANK = 0x0281
7119#elif CLIENT_TYPE == 'M' && ( \
7120 PACKET_VERSION >= 20220000 \
7121 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
7122 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
7123 || PACKET_VERSION >= 20120712)
7124ID_CZ_GANGSI_RANK = 0x0953
7125#elif CLIENT_TYPE == 'M' && ( \
7126 PACKET_VERSION == 20190821 \
7127 || PACKET_VERSION == 20190807 \
7128 || PACKET_VERSION == 20190802 \
7129 || PACKET_VERSION == 20190731 \
7130 || PACKET_VERSION == 20190724 \
7131 || PACKET_VERSION == 20190717 \
7132 || PACKET_VERSION == 20190703 \
7133 || PACKET_VERSION == 20190605 \
7134 || PACKET_VERSION == 20190530 \
7135 || PACKET_VERSION == 20190523 \
7136 || PACKET_VERSION == 20190522 \
7137 || PACKET_VERSION == 20190508 \
7138 || PACKET_VERSION == 20190418 \
7139 || PACKET_VERSION == 20190417 \
7140 || PACKET_VERSION == 20190327 \
7141 || PACKET_VERSION == 20190322 \
7142 || PACKET_VERSION == 20190320 \
7143 || PACKET_VERSION == 20190313 \
7144 || PACKET_VERSION == 20190306 \
7145 || PACKET_VERSION == 20190228 \
7146 || PACKET_VERSION == 20190123 \
7147 || PACKET_VERSION == 20190116 \
7148 || (PACKET_VERSION >= 20190000 && PACKET_VERSION < 20190116) \
7149 || PACKET_VERSION == 20181226 \
7150 || PACKET_VERSION == 20181219 \
7151 || PACKET_VERSION == 20181212 \
7152 || PACKET_VERSION == 20181205 \
7153 || PACKET_VERSION == 20181128 \
7154 || PACKET_VERSION == 20181114 \
7155 || PACKET_VERSION == 20181107 \
7156 || PACKET_VERSION == 20181024 \
7157 || PACKET_VERSION == 20180919 \
7158 || PACKET_VERSION == 20180831 \
7159 || PACKET_VERSION == 20180822 \
7160 || PACKET_VERSION >= 20180808 \
7161 || PACKET_VERSION >= 20180718 \
7162 || PACKET_VERSION >= 20180704 \
7163 || PACKET_VERSION >= 20180621 \
7164 || PACKET_VERSION >= 20180620 \
7165 || PACKET_VERSION >= 20180530 \
7166 || PACKET_VERSION >= 20180523 \
7167 || PACKET_VERSION >= 20180516 \
7168 || PACKET_VERSION >= 20180509 \
7169 || PACKET_VERSION >= 20180502 \
7170 || PACKET_VERSION >= 20180425 \
7171 || PACKET_VERSION >= 20180404 \
7172 || PACKET_VERSION >= 20180328 \
7173 || PACKET_VERSION >= 20180321 \
7174 || PACKET_VERSION >= 20180315 \
7175 || PACKET_VERSION >= 20180314 \
7176 || PACKET_VERSION >= 20180309 \
7177 || PACKET_VERSION >= 20180307 \
7178 || PACKET_VERSION >= 20180213 \
7179 || PACKET_VERSION >= 20180207 \
7180 || PACKET_VERSION >= 20180124 \
7181 || PACKET_VERSION >= 20180117 \
7182 || PACKET_VERSION >= 20180103 \
7183 || PACKET_VERSION >= 20171227 \
7184 || PACKET_VERSION >= 20171220 \
7185 || PACKET_VERSION >= 20171213 \
7186 || PACKET_VERSION >= 20171129 \
7187 || PACKET_VERSION >= 20171122 \
7188 || PACKET_VERSION >= 20171101 \
7189 || PACKET_VERSION >= 20171025 \
7190 || PACKET_VERSION >= 20171018 \
7191 || PACKET_VERSION >= 20171011 \
7192 || PACKET_VERSION >= 20170920 \
7193 || PACKET_VERSION >= 20170913 \
7194 || PACKET_VERSION >= 20170906 \
7195 || PACKET_VERSION >= 20170830 \
7196 || PACKET_VERSION >= 20170823 \
7197 || PACKET_VERSION >= 20170816 \
7198 || PACKET_VERSION >= 20170809 \
7199 || PACKET_VERSION >= 20170801 \
7200 || PACKET_VERSION >= 20170719 \
7201 || PACKET_VERSION >= 20170712 \
7202 || PACKET_VERSION >= 20170705 \
7203 || PACKET_VERSION >= 20170628 \
7204 || PACKET_VERSION >= 20170517 \
7205 || PACKET_VERSION >= 20170502 \
7206 || PACKET_VERSION >= 20170426 \
7207 || PACKET_VERSION >= 20170412 \
7208 || PACKET_VERSION >= 20170405 \
7209 || PACKET_VERSION >= 20170329 \
7210 || PACKET_VERSION >= 20170322 \
7211 || PACKET_VERSION >= 20170315 \
7212 || PACKET_VERSION >= 20170308 \
7213 || PACKET_VERSION >= 20170111 \
7214 || PACKET_VERSION >= 20170104 \
7215 || PACKET_VERSION >= 20161221 \
7216 || PACKET_VERSION >= 20161214 \
7217 || PACKET_VERSION >= 20161207 \
7218 || PACKET_VERSION >= 20161123 \
7219 || PACKET_VERSION >= 20161026 \
7220 || PACKET_VERSION >= 20161019 \
7221 || PACKET_VERSION >= 20160928 \
7222 || PACKET_VERSION >= 20160921 \
7223 || PACKET_VERSION >= 20160913 \
7224 || PACKET_VERSION >= 20160907 \
7225 || PACKET_VERSION >= 20160831 \
7226 || PACKET_VERSION >= 20160824 \
7227 || PACKET_VERSION >= 20160622 \
7228 || PACKET_VERSION >= 20160615 \
7229 || PACKET_VERSION >= 20160525 \
7230 || PACKET_VERSION >= 20160511 \
7231 || PACKET_VERSION >= 20160504 \
7232 || PACKET_VERSION >= 20160427 \
7233 || PACKET_VERSION >= 20160323 \
7234 || PACKET_VERSION >= 20160316 \
7235 || PACKET_VERSION >= 20160309 \
7236 || PACKET_VERSION >= 20160217 \
7237 || PACKET_VERSION >= 20160211 \
7238 || PACKET_VERSION >= 20160203 \
7239 || PACKET_VERSION >= 20160120 \
7240 || PACKET_VERSION >= 20160106 \
7241 || PACKET_VERSION >= 20151209 \
7242 || PACKET_VERSION >= 20151202 \
7243 || PACKET_VERSION >= 20151104 \
7244 || PACKET_VERSION >= 20151021 \
7245 || PACKET_VERSION >= 20151014 \
7246 || PACKET_VERSION >= 20151001 \
7247 || PACKET_VERSION >= 20150826 \
7248 || PACKET_VERSION >= 20150819 \
7249 || PACKET_VERSION >= 20150805 \
7250 || PACKET_VERSION >= 20150729 \
7251 || PACKET_VERSION >= 20150722 \
7252 || PACKET_VERSION >= 20150701 \
7253 || PACKET_VERSION >= 20150624 \
7254 || PACKET_VERSION >= 20150603 \
7255 || PACKET_VERSION >= 20150527 \
7256 || PACKET_VERSION >= 20150429 \
7257 || PACKET_VERSION >= 20150422 \
7258 || PACKET_VERSION >= 20150325 \
7259 || PACKET_VERSION >= 20150318 \
7260 || PACKET_VERSION >= 20150225 \
7261 || PACKET_VERSION >= 20150217 \
7262 || PACKET_VERSION >= 20150211 \
7263 || PACKET_VERSION >= 20150204 \
7264 || PACKET_VERSION >= 20150128 \
7265 || PACKET_VERSION >= 20150121 \
7266 || PACKET_VERSION >= 20150107 \
7267 || PACKET_VERSION >= 20141231 \
7268 || PACKET_VERSION >= 20141210 \
7269 || PACKET_VERSION >= 20141203 \
7270 || PACKET_VERSION >= 20141105 \
7271 || PACKET_VERSION >= 20141008 \
7272 || PACKET_VERSION >= 20140917 \
7273 || PACKET_VERSION >= 20140827 \
7274 || PACKET_VERSION >= 20140813 \
7275 || PACKET_VERSION >= 20140806 \
7276 || PACKET_VERSION >= 20140611 \
7277 || PACKET_VERSION >= 20140605 \
7278 || PACKET_VERSION >= 20140528 \
7279 || PACKET_VERSION >= 20140521 \
7280 || PACKET_VERSION >= 20140508 \
7281 || PACKET_VERSION >= 20140423 \
7282 || PACKET_VERSION >= 20140416 \
7283 || PACKET_VERSION >= 20140312 \
7284 || PACKET_VERSION >= 20140305 \
7285 || PACKET_VERSION >= 20140212 \
7286 || PACKET_VERSION >= 20140205 \
7287 || PACKET_VERSION >= 20140129 \
7288 || PACKET_VERSION >= 20140115 \
7289 || PACKET_VERSION >= 20140108 \
7290 || PACKET_VERSION >= 20131230 \
7291 || PACKET_VERSION >= 20131218 \
7292 || PACKET_VERSION >= 20131113 \
7293 || PACKET_VERSION >= 20131106 \
7294 || PACKET_VERSION >= 20131030 \
7295 || PACKET_VERSION >= 20131023 \
7296 || PACKET_VERSION >= 20131016 \
7297 || PACKET_VERSION >= 20131008 \
7298 || PACKET_VERSION >= 20131002 \
7299 || PACKET_VERSION >= 20130911 \
7300 || PACKET_VERSION >= 20130904 \
7301 || PACKET_VERSION >= 20130821 \
7302 || PACKET_VERSION >= 20130814 \
7303 || PACKET_VERSION >= 20130807 \
7304 || PACKET_VERSION >= 20130717 \
7305 || PACKET_VERSION >= 20130703 \
7306 || PACKET_VERSION >= 20130626 \
7307 || PACKET_VERSION >= 20130605 \
7308 || PACKET_VERSION >= 20130502 \
7309 || PACKET_VERSION >= 20130417 \
7310 || PACKET_VERSION >= 20130410 \
7311 || PACKET_VERSION >= 20130403 \
7312 || PACKET_VERSION >= 20130320 \
7313 || PACKET_VERSION >= 20130313 \
7314 || PACKET_VERSION >= 20130227 \
7315 || PACKET_VERSION >= 20130220 \
7316 || PACKET_VERSION >= 20130115 \
7317 || PACKET_VERSION >= 20130109 \
7318 || PACKET_VERSION >= 20130103 \
7319 || PACKET_VERSION >= 20121107 \
7320 || PACKET_VERSION >= 20121031 \
7321 || PACKET_VERSION >= 20120925 \
7322 || PACKET_VERSION >= 20120919 \
7323 || PACKET_VERSION >= 20120822 \
7324 || PACKET_VERSION >= 20120814 \
7325 || PACKET_VERSION >= 20120808 \
7326 || PACKET_VERSION >= 20120724 \
7327 || PACKET_VERSION >= 20120716 \
7328 || PACKET_VERSION >= 20120626 \
7329 || PACKET_VERSION >= 20120612 \
7330 || PACKET_VERSION >= 20120604 \
7331 || PACKET_VERSION >= 20120529 \
7332 || PACKET_VERSION >= 20120508 \
7333 || PACKET_VERSION >= 20120503 \
7334 || PACKET_VERSION >= 20120424 \
7335 || PACKET_VERSION >= 20120417 \
7336 || PACKET_VERSION >= 20120404 \
7337 || PACKET_VERSION >= 20120328 \
7338 || PACKET_VERSION >= 20120320 \
7339 || PACKET_VERSION >= 20120214 \
7340 || PACKET_VERSION >= 20120207 \
7341 || PACKET_VERSION >= 20120117 \
7342 || PACKET_VERSION >= 20120110 \
7343 || PACKET_VERSION >= 20120103 \
7344 || PACKET_VERSION >= 20111227 \
7345 || PACKET_VERSION >= 20111220 \
7346 || PACKET_VERSION >= 20111213 \
7347 || PACKET_VERSION >= 20111207 \
7348 || PACKET_VERSION >= 20111122 \
7349 || PACKET_VERSION >= 20111114 \
7350 || PACKET_VERSION >= 20111108 \
7351 || PACKET_VERSION >= 20111101 \
7352 || PACKET_VERSION >= 20111025 \
7353 || PACKET_VERSION >= 20111004 \
7354 || PACKET_VERSION >= 20110928 \
7355 || PACKET_VERSION >= 20110920 \
7356 || PACKET_VERSION >= 20110906 \
7357 || PACKET_VERSION >= 20110823 \
7358 || PACKET_VERSION >= 20110816 \
7359 || PACKET_VERSION >= 20110809 \
7360 || PACKET_VERSION >= 20110726 \
7361 || PACKET_VERSION >= 20110718 \
7362 || PACKET_VERSION >= 20110711 \
7363 || PACKET_VERSION >= 20110705 \
7364 || PACKET_VERSION >= 20110627 \
7365 || PACKET_VERSION >= 20110620 \
7366 || PACKET_VERSION >= 20110607 \
7367 || PACKET_VERSION >= 20110531 \
7368 || PACKET_VERSION >= 20110523 \
7369 || PACKET_VERSION >= 20110511 \
7370 || PACKET_VERSION >= 20110503 \
7371 || PACKET_VERSION >= 20110426 \
7372 || PACKET_VERSION >= 20110419 \
7373 || PACKET_VERSION >= 20110412 \
7374 || PACKET_VERSION >= 20110405 \
7375 || PACKET_VERSION >= 20110329 \
7376 || PACKET_VERSION >= 20110315 \
7377 || PACKET_VERSION >= 20110308 \
7378 || PACKET_VERSION >= 20110228 \
7379 || PACKET_VERSION >= 20110222 \
7380 || PACKET_VERSION >= 20110125 \
7381 || PACKET_VERSION >= 20110118 \
7382 || PACKET_VERSION >= 20110104 \
7383 || PACKET_VERSION >= 20101228 \
7384 || PACKET_VERSION >= 20101221 \
7385 || PACKET_VERSION >= 20101123 \
7386 || PACKET_VERSION >= 20100105 \
7387 || (PACKET_VERSION >= 20090000 && PACKET_VERSION < 20100105) \
7388 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20090000) \
7389 || (PACKET_VERSION >= 20070000 && PACKET_VERSION < 20080000) \
7390 || PACKET_VERSION >= 20060918 \
7391 || PACKET_VERSION >= 20060904)
7392ID_CZ_GANGSI_RANK = 0x0281
7393#elif CLIENT_TYPE == 'M' && \
7394 PACKET_VERSION >= 20120926
7395ID_CZ_GANGSI_RANK = 0x07e4
7396#elif CLIENT_TYPE == 'M' && \
7397 PACKET_VERSION >= 20130107
7398ID_CZ_GANGSI_RANK = 0x022d
7399#elif CLIENT_TYPE == 'M' && \
7400 PACKET_VERSION >= 20130116
7401ID_CZ_GANGSI_RANK = 0x07ec
7402#elif CLIENT_TYPE == 'M' && ( \
7403 PACKET_VERSION == 20131108 \
7404 || PACKET_VERSION == 20131107)
7405ID_CZ_GANGSI_RANK = 0x0948
7406#elif CLIENT_TYPE == 'M' && ( \
7407 PACKET_VERSION == 20140613 \
7408 || PACKET_VERSION == 20140612)
7409ID_CZ_GANGSI_RANK = 0x086c
7410#elif CLIENT_TYPE == 'M' && \
7411 PACKET_VERSION >= 20140814
7412ID_CZ_GANGSI_RANK = 0x08ab
7413#elif CLIENT_TYPE == 'M' && \
7414 PACKET_VERSION >= 20141016
7415ID_CZ_GANGSI_RANK = 0x0922
7416#elif CLIENT_TYPE == 'M' && ( \
7417 PACKET_VERSION == 20150130 \
7418 || PACKET_VERSION == 20150129)
7419ID_CZ_GANGSI_RANK = 0x0938
7420#elif CLIENT_TYPE == 'M' && \
7421 PACKET_VERSION >= 20150226
7422ID_CZ_GANGSI_RANK = 0x0885
7423#elif CLIENT_TYPE == 'M' && \
7424 PACKET_VERSION >= 20150618
7425ID_CZ_GANGSI_RANK = 0x0894
7426#elif CLIENT_TYPE == 'M' && \
7427 PACKET_VERSION >= 20150702
7428ID_CZ_GANGSI_RANK = 0x0893
7429#elif CLIENT_TYPE == 'M' && ( \
7430 PACKET_VERSION == 20160318 \
7431 || PACKET_VERSION == 20151029 \
7432 || PACKET_VERSION == 20151022 \
7433 || PACKET_VERSION == 20150812)
7434ID_CZ_GANGSI_RANK = 0x0436
7435#elif CLIENT_TYPE == 'M' && \
7436 PACKET_VERSION >= 20160526
7437ID_CZ_GANGSI_RANK = 0x085a
7438#elif CLIENT_TYPE == 'M' && \
7439 PACKET_VERSION >= 20160609
7440ID_CZ_GANGSI_RANK = 0x093b
7441#elif CLIENT_TYPE == 'M' && \
7442 PACKET_VERSION >= 20160630
7443ID_CZ_GANGSI_RANK = 0x035f
7444#elif CLIENT_TYPE == 'M' && \
7445 PACKET_VERSION >= 20161103
7446ID_CZ_GANGSI_RANK = 0x0367
7447#elif CLIENT_TYPE == 'M' && \
7448 PACKET_VERSION >= 20180131
7449ID_CZ_GANGSI_RANK = 0x0868
7450#elif CLIENT_TYPE == 'R' && ( \
7451 PACKET_VERSION >= 20210000 \
7452 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
7453 || PACKET_VERSION >= 20120712)
7454ID_CZ_GANGSI_RANK = 0x0953
7455#elif CLIENT_TYPE == 'R' && ( \
7456 PACKET_VERSION == 20190821 \
7457 || PACKET_VERSION == 20190807 \
7458 || PACKET_VERSION == 20190802 \
7459 || PACKET_VERSION == 20190731 \
7460 || PACKET_VERSION == 20190724 \
7461 || PACKET_VERSION == 20190717 \
7462 || PACKET_VERSION == 20190703 \
7463 || PACKET_VERSION == 20190626 \
7464 || PACKET_VERSION == 20190605 \
7465 || PACKET_VERSION == 20190530 \
7466 || PACKET_VERSION == 20190522 \
7467 || PACKET_VERSION == 20190508 \
7468 || PACKET_VERSION == 20190418 \
7469 || PACKET_VERSION == 20190417 \
7470 || PACKET_VERSION == 20190327 \
7471 || PACKET_VERSION == 20190322 \
7472 || PACKET_VERSION == 20190320 \
7473 || PACKET_VERSION == 20190306 \
7474 || PACKET_VERSION == 20190228 \
7475 || PACKET_VERSION == 20190123 \
7476 || PACKET_VERSION == 20190116 \
7477 || (PACKET_VERSION >= 20190000 && PACKET_VERSION < 20190116) \
7478 || PACKET_VERSION == 20181226 \
7479 || PACKET_VERSION == 20181219 \
7480 || PACKET_VERSION == 20181212 \
7481 || PACKET_VERSION == 20181205 \
7482 || PACKET_VERSION == 20181128 \
7483 || PACKET_VERSION == 20181121 \
7484 || PACKET_VERSION == 20181114 \
7485 || PACKET_VERSION == 20181107 \
7486 || PACKET_VERSION == 20180822 \
7487 || PACKET_VERSION >= 20180808 \
7488 || PACKET_VERSION >= 20180718 \
7489 || PACKET_VERSION >= 20180711 \
7490 || PACKET_VERSION >= 20180621 \
7491 || PACKET_VERSION >= 20180620 \
7492 || PACKET_VERSION >= 20180612 \
7493 || PACKET_VERSION >= 20180530 \
7494 || PACKET_VERSION >= 20180523 \
7495 || PACKET_VERSION >= 20180516 \
7496 || PACKET_VERSION >= 20180502 \
7497 || PACKET_VERSION >= 20180425 \
7498 || PACKET_VERSION >= 20180404 \
7499 || PACKET_VERSION >= 20180328 \
7500 || PACKET_VERSION >= 20180307 \
7501 || PACKET_VERSION >= 20180213 \
7502 || PACKET_VERSION >= 20180207 \
7503 || PACKET_VERSION >= 20180124 \
7504 || PACKET_VERSION >= 20180117 \
7505 || PACKET_VERSION >= 20180103 \
7506 || PACKET_VERSION >= 20171227 \
7507 || PACKET_VERSION >= 20171220 \
7508 || PACKET_VERSION >= 20171213 \
7509 || PACKET_VERSION >= 20171129 \
7510 || PACKET_VERSION >= 20171122 \
7511 || PACKET_VERSION >= 20171101 \
7512 || PACKET_VERSION >= 20171025 \
7513 || PACKET_VERSION >= 20171018 \
7514 || PACKET_VERSION >= 20171011 \
7515 || PACKET_VERSION >= 20170920 \
7516 || PACKET_VERSION >= 20170913 \
7517 || PACKET_VERSION >= 20170906 \
7518 || PACKET_VERSION >= 20170830 \
7519 || PACKET_VERSION >= 20170823 \
7520 || PACKET_VERSION >= 20170816 \
7521 || PACKET_VERSION >= 20170809 \
7522 || PACKET_VERSION >= 20170801 \
7523 || PACKET_VERSION >= 20170719 \
7524 || PACKET_VERSION >= 20170712 \
7525 || PACKET_VERSION >= 20170705 \
7526 || PACKET_VERSION >= 20170628 \
7527 || PACKET_VERSION >= 20170517 \
7528 || PACKET_VERSION >= 20170502 \
7529 || PACKET_VERSION >= 20170426 \
7530 || PACKET_VERSION >= 20170412 \
7531 || PACKET_VERSION >= 20170405 \
7532 || PACKET_VERSION >= 20170329 \
7533 || PACKET_VERSION >= 20170322 \
7534 || PACKET_VERSION >= 20170315 \
7535 || PACKET_VERSION >= 20170308 \
7536 || PACKET_VERSION >= 20170111 \
7537 || PACKET_VERSION >= 20170104 \
7538 || PACKET_VERSION >= 20161221 \
7539 || PACKET_VERSION >= 20161214 \
7540 || PACKET_VERSION >= 20161207 \
7541 || PACKET_VERSION >= 20161123 \
7542 || PACKET_VERSION >= 20161026 \
7543 || PACKET_VERSION >= 20161019 \
7544 || PACKET_VERSION >= 20160928 \
7545 || PACKET_VERSION >= 20160921 \
7546 || PACKET_VERSION >= 20160913 \
7547 || PACKET_VERSION >= 20160907 \
7548 || PACKET_VERSION >= 20160831 \
7549 || PACKET_VERSION >= 20160824 \
7550 || PACKET_VERSION >= 20160622 \
7551 || PACKET_VERSION >= 20160615 \
7552 || PACKET_VERSION >= 20160525 \
7553 || PACKET_VERSION >= 20160511 \
7554 || PACKET_VERSION >= 20160504 \
7555 || PACKET_VERSION >= 20160427 \
7556 || PACKET_VERSION >= 20160323 \
7557 || PACKET_VERSION >= 20160316 \
7558 || PACKET_VERSION >= 20160309 \
7559 || PACKET_VERSION >= 20160217 \
7560 || PACKET_VERSION >= 20160211 \
7561 || PACKET_VERSION >= 20160203 \
7562 || PACKET_VERSION >= 20160120 \
7563 || PACKET_VERSION >= 20160106 \
7564 || PACKET_VERSION >= 20151209 \
7565 || PACKET_VERSION >= 20151202 \
7566 || PACKET_VERSION >= 20151104 \
7567 || PACKET_VERSION >= 20151021 \
7568 || PACKET_VERSION >= 20151014 \
7569 || PACKET_VERSION >= 20151001 \
7570 || PACKET_VERSION >= 20150826 \
7571 || PACKET_VERSION >= 20150819 \
7572 || PACKET_VERSION >= 20150805 \
7573 || PACKET_VERSION >= 20150729 \
7574 || PACKET_VERSION >= 20150722 \
7575 || PACKET_VERSION >= 20150701 \
7576 || PACKET_VERSION >= 20150624 \
7577 || PACKET_VERSION >= 20150603 \
7578 || PACKET_VERSION >= 20150527 \
7579 || PACKET_VERSION >= 20150429 \
7580 || PACKET_VERSION >= 20150422 \
7581 || PACKET_VERSION >= 20150325 \
7582 || PACKET_VERSION >= 20150318 \
7583 || PACKET_VERSION >= 20150225 \
7584 || PACKET_VERSION >= 20150217 \
7585 || PACKET_VERSION >= 20150211 \
7586 || PACKET_VERSION >= 20150204 \
7587 || PACKET_VERSION >= 20150128 \
7588 || PACKET_VERSION >= 20150121 \
7589 || PACKET_VERSION >= 20150107 \
7590 || PACKET_VERSION >= 20141231 \
7591 || PACKET_VERSION >= 20141210 \
7592 || PACKET_VERSION >= 20141203 \
7593 || PACKET_VERSION >= 20141105 \
7594 || PACKET_VERSION >= 20141008 \
7595 || PACKET_VERSION >= 20140917 \
7596 || PACKET_VERSION >= 20140827 \
7597 || PACKET_VERSION >= 20140813 \
7598 || PACKET_VERSION >= 20140806 \
7599 || PACKET_VERSION >= 20140611 \
7600 || PACKET_VERSION >= 20140605 \
7601 || PACKET_VERSION >= 20140528 \
7602 || PACKET_VERSION >= 20140521 \
7603 || PACKET_VERSION >= 20140508 \
7604 || PACKET_VERSION >= 20140423 \
7605 || PACKET_VERSION >= 20140416 \
7606 || PACKET_VERSION >= 20140312 \
7607 || PACKET_VERSION >= 20140305 \
7608 || PACKET_VERSION >= 20140212 \
7609 || PACKET_VERSION >= 20140205 \
7610 || PACKET_VERSION >= 20140129 \
7611 || PACKET_VERSION >= 20140115 \
7612 || PACKET_VERSION >= 20140108 \
7613 || PACKET_VERSION >= 20131230 \
7614 || PACKET_VERSION >= 20131223 \
7615 || PACKET_VERSION >= 20131218 \
7616 || PACKET_VERSION >= 20131113 \
7617 || PACKET_VERSION >= 20131106 \
7618 || PACKET_VERSION >= 20131030 \
7619 || PACKET_VERSION >= 20131023 \
7620 || PACKET_VERSION >= 20131016 \
7621 || PACKET_VERSION >= 20131008 \
7622 || PACKET_VERSION >= 20131002 \
7623 || PACKET_VERSION >= 20130911 \
7624 || PACKET_VERSION >= 20130904 \
7625 || PACKET_VERSION >= 20130821 \
7626 || PACKET_VERSION >= 20130814 \
7627 || PACKET_VERSION >= 20130807 \
7628 || PACKET_VERSION >= 20130717 \
7629 || PACKET_VERSION >= 20130703 \
7630 || PACKET_VERSION >= 20130626 \
7631 || PACKET_VERSION >= 20130605 \
7632 || PACKET_VERSION >= 20130502 \
7633 || PACKET_VERSION >= 20130417 \
7634 || PACKET_VERSION >= 20130410 \
7635 || PACKET_VERSION >= 20130403 \
7636 || PACKET_VERSION >= 20130320 \
7637 || PACKET_VERSION >= 20130313 \
7638 || PACKET_VERSION >= 20130227 \
7639 || PACKET_VERSION >= 20130220 \
7640 || PACKET_VERSION >= 20130115 \
7641 || PACKET_VERSION >= 20130109 \
7642 || PACKET_VERSION >= 20130103 \
7643 || PACKET_VERSION >= 20121107 \
7644 || PACKET_VERSION >= 20121031 \
7645 || PACKET_VERSION >= 20120925 \
7646 || PACKET_VERSION >= 20120919 \
7647 || PACKET_VERSION >= 20120822 \
7648 || PACKET_VERSION >= 20120814 \
7649 || PACKET_VERSION >= 20120808 \
7650 || PACKET_VERSION >= 20120724 \
7651 || PACKET_VERSION >= 20120716 \
7652 || PACKET_VERSION >= 20120626 \
7653 || PACKET_VERSION >= 20120612 \
7654 || PACKET_VERSION >= 20120601 \
7655 || PACKET_VERSION >= 20120529 \
7656 || PACKET_VERSION >= 20120508 \
7657 || PACKET_VERSION >= 20120502 \
7658 || PACKET_VERSION >= 20120424 \
7659 || PACKET_VERSION >= 20120417 \
7660 || PACKET_VERSION >= 20120404 \
7661 || PACKET_VERSION >= 20120328 \
7662 || PACKET_VERSION >= 20120320 \
7663 || PACKET_VERSION >= 20120214 \
7664 || PACKET_VERSION >= 20120207 \
7665 || PACKET_VERSION >= 20120117 \
7666 || PACKET_VERSION >= 20120110 \
7667 || PACKET_VERSION >= 20120103 \
7668 || PACKET_VERSION >= 20111227 \
7669 || PACKET_VERSION >= 20111220 \
7670 || PACKET_VERSION >= 20111213 \
7671 || PACKET_VERSION >= 20111207 \
7672 || PACKET_VERSION >= 20111122 \
7673 || PACKET_VERSION >= 20111114 \
7674 || PACKET_VERSION >= 20111108 \
7675 || PACKET_VERSION >= 20111101 \
7676 || PACKET_VERSION >= 20111025 \
7677 || PACKET_VERSION >= 20111004 \
7678 || PACKET_VERSION >= 20110928 \
7679 || PACKET_VERSION >= 20110920 \
7680 || PACKET_VERSION >= 20110906 \
7681 || PACKET_VERSION >= 20110823 \
7682 || PACKET_VERSION >= 20110816 \
7683 || PACKET_VERSION >= 20110104 \
7684 || (PACKET_VERSION >= 20100000 && PACKET_VERSION < 20110104) \
7685 || (PACKET_VERSION >= 20090000 && PACKET_VERSION < 20100000) \
7686 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20090000))
7687ID_CZ_GANGSI_RANK = 0x0281
7688#elif CLIENT_TYPE == 'R' && \
7689 PACKET_VERSION >= 20120926
7690ID_CZ_GANGSI_RANK = 0x07e4
7691#elif CLIENT_TYPE == 'R' && \
7692 PACKET_VERSION >= 20121011
7693ID_CZ_GANGSI_RANK = 0x0888
7694#elif CLIENT_TYPE == 'R' && \
7695 PACKET_VERSION >= 20130116
7696ID_CZ_GANGSI_RANK = 0x07ec
7697#elif CLIENT_TYPE == 'R' && \
7698 PACKET_VERSION >= 20141016
7699ID_CZ_GANGSI_RANK = 0x0922
7700#elif CLIENT_TYPE == 'R' && \
7701 PACKET_VERSION >= 20150226
7702ID_CZ_GANGSI_RANK = 0x0885
7703#elif CLIENT_TYPE == 'R' && \
7704 PACKET_VERSION >= 20150618
7705ID_CZ_GANGSI_RANK = 0x0894
7706#elif CLIENT_TYPE == 'R' && ( \
7707 PACKET_VERSION == 20151029 \
7708 || PACKET_VERSION == 20151022 \
7709 || PACKET_VERSION == 20150812)
7710ID_CZ_GANGSI_RANK = 0x0436
7711#elif CLIENT_TYPE == 'R' && \
7712 PACKET_VERSION >= 20160630
7713ID_CZ_GANGSI_RANK = 0x035f
7714#elif CLIENT_TYPE == 'R' && \
7715 PACKET_VERSION >= 20161103
7716ID_CZ_GANGSI_RANK = 0x0367
7717#elif CLIENT_TYPE == 'S' && \
7718 PACKET_VERSION >= 20060918
7719ID_CZ_GANGSI_RANK = 0x0281
7720#elif CLIENT_TYPE == 'Z' && ( \
7721 PACKET_VERSION == 20190814 \
7722 || PACKET_VERSION == 20190724 \
7723 || PACKET_VERSION == 20190717 \
7724 || PACKET_VERSION == 20190710 \
7725 || PACKET_VERSION == 20190709 \
7726 || PACKET_VERSION == 20190605 \
7727 || PACKET_VERSION == 20190530 \
7728 || PACKET_VERSION == 20190515 \
7729 || PACKET_VERSION == 20190508 \
7730 || PACKET_VERSION == 20190502 \
7731 || PACKET_VERSION == 20190424 \
7732 || PACKET_VERSION == 20190410 \
7733 || PACKET_VERSION == 20190403 \
7734 || PACKET_VERSION == 20190313 \
7735 || PACKET_VERSION == 20190227 \
7736 || PACKET_VERSION == 20190213 \
7737 || PACKET_VERSION == 20190117 \
7738 || PACKET_VERSION == 20181226 \
7739 || PACKET_VERSION == 20181219 \
7740 || PACKET_VERSION == 20181212 \
7741 || PACKET_VERSION == 20181128 \
7742 || PACKET_VERSION == 20181120 \
7743 || PACKET_VERSION == 20180928 \
7744 || PACKET_VERSION == 20180912 \
7745 || PACKET_VERSION == 20180829 \
7746 || PACKET_VERSION >= 20180808 \
7747 || PACKET_VERSION >= 20180801 \
7748 || PACKET_VERSION >= 20180711 \
7749 || PACKET_VERSION >= 20180703 \
7750 || PACKET_VERSION >= 20180627 \
7751 || PACKET_VERSION >= 20180509 \
7752 || PACKET_VERSION >= 20180411 \
7753 || PACKET_VERSION >= 20180321 \
7754 || PACKET_VERSION >= 20171113 \
7755 || PACKET_VERSION >= 20171031 \
7756 || PACKET_VERSION >= 20171030 \
7757 || PACKET_VERSION >= 20171027 \
7758 || PACKET_VERSION >= 20171025 \
7759 || PACKET_VERSION >= 20171024 \
7760 || PACKET_VERSION >= 20171023 \
7761 || PACKET_VERSION >= 20171019)
7762ID_CZ_GANGSI_RANK = 0x0281
7763#elif CLIENT_TYPE == 'Z' && ( \
7764 PACKET_VERSION == 20171213 \
7765 || PACKET_VERSION == 20171212 \
7766 || PACKET_VERSION == 20171211 \
7767 || PACKET_VERSION == 20171210 \
7768 || PACKET_VERSION == 20171209 \
7769 || PACKET_VERSION == 20171208 \
7770 || PACKET_VERSION == 20171117 \
7771 || PACKET_VERSION == 20171116)
7772ID_CZ_GANGSI_RANK = 0x0860
7773#elif CLIENT_TYPE == 'Z' && ( \
7774 PACKET_VERSION >= 20220000 \
7775 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
7776 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
7777 || PACKET_VERSION >= 20171122)
7778ID_CZ_GANGSI_RANK = 0x0950
7779#elif CLIENT_TYPE == 'Z' && ( \
7780 PACKET_VERSION == 20180309 \
7781 || PACKET_VERSION == 20180307 \
7782 || PACKET_VERSION == 20171128)
7783ID_CZ_GANGSI_RANK = 0x0436
7784#elif CLIENT_TYPE == 'Z' && \
7785 PACKET_VERSION >= 20171221
7786ID_CZ_GANGSI_RANK = 0x087e
7787#elif CLIENT_TYPE == 'Z' && \
7788 PACKET_VERSION >= 20171229
7789ID_CZ_GANGSI_RANK = 0x0925
7790#else
7791ID_CZ_GANGSI_RANK = 0x0000 // Disabled
7792#endif
7798class CZ_GANGSI_RANK : public Base::NetworkPacket<ZoneSession>
7799{
7800public:
7801 CZ_GANGSI_RANK(std::shared_ptr<ZoneSession> s)
7803 {}
7804 virtual ~CZ_GANGSI_RANK() {}
7805
7806 void handle(ByteBuffer &&buf);
7807 void deserialize(ByteBuffer &buf);
7808
7809/* Structure */
7810};
7811
7812enum {
7813#if CLIENT_TYPE == 'M' && ( \
7814 PACKET_VERSION >= 20220000 \
7815 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
7816 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000))
7818#elif CLIENT_TYPE == 'R' && ( \
7819 PACKET_VERSION >= 20210000 \
7820 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000))
7822#elif CLIENT_TYPE == 'Z' && ( \
7823 PACKET_VERSION >= 20220000 \
7824 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
7825 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000))
7827#else
7828ID_CZ_GET_ACCOUNT_LIMTIED_SALE_LIST = 0x0000 // Disabled
7829#endif
7836{
7837public:
7838 CZ_GET_ACCOUNT_LIMTIED_SALE_LIST(std::shared_ptr<ZoneSession> s)
7840 {}
7842
7843 void handle(ByteBuffer &&buf);
7844 void deserialize(ByteBuffer &buf);
7845
7846/* Structure */
7847};
7848
7849enum {
7850#if CLIENT_TYPE == 'M' && ( \
7851 PACKET_VERSION >= 20220000 \
7852 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
7853 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
7854 || PACKET_VERSION >= 20091027)
7855ID_CZ_GM_FULLSTRIP = 0x07f5
7856#elif CLIENT_TYPE == 'R' && ( \
7857 PACKET_VERSION >= 20210000 \
7858 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
7859 || PACKET_VERSION >= 20091027)
7860ID_CZ_GM_FULLSTRIP = 0x07f5
7861#elif CLIENT_TYPE == 'Z' && ( \
7862 PACKET_VERSION >= 20220000 \
7863 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
7864 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
7865 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
7866ID_CZ_GM_FULLSTRIP = 0x07f5
7867#else
7868ID_CZ_GM_FULLSTRIP = 0x0000 // Disabled
7869#endif
7875class CZ_GM_FULLSTRIP : public Base::NetworkPacket<ZoneSession>
7876{
7877public:
7878 CZ_GM_FULLSTRIP(std::shared_ptr<ZoneSession> s)
7880 {}
7881 virtual ~CZ_GM_FULLSTRIP() {}
7882
7883 void handle(ByteBuffer &&buf);
7884 void deserialize(ByteBuffer &buf);
7885
7886/* Structure */
7887};
7888
7889enum {
7890#if CLIENT_TYPE == 'M' && ( \
7891 PACKET_VERSION >= 20220000 \
7892 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
7893 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
7894 || PACKET_VERSION >= 20101102)
7895ID_CZ_GPK_AUTH = 0x0854
7896#elif CLIENT_TYPE == 'R' && ( \
7897 PACKET_VERSION >= 20210000 \
7898 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
7899 || PACKET_VERSION >= 20101102)
7900ID_CZ_GPK_AUTH = 0x0854
7901#elif CLIENT_TYPE == 'Z' && ( \
7902 PACKET_VERSION >= 20220000 \
7903 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
7904 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
7905 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
7906ID_CZ_GPK_AUTH = 0x0854
7907#else
7908ID_CZ_GPK_AUTH = 0x0000 // Disabled
7909#endif
7915class CZ_GPK_AUTH : public Base::NetworkPacket<ZoneSession>
7916{
7917public:
7918 CZ_GPK_AUTH(std::shared_ptr<ZoneSession> s)
7920 {}
7921 virtual ~CZ_GPK_AUTH() {}
7922
7923 void handle(ByteBuffer &&buf);
7924 void deserialize(ByteBuffer &buf);
7925
7926/* Structure */
7927};
7928
7929enum {
7930#if CLIENT_TYPE == 'M' && ( \
7931 PACKET_VERSION >= 20220000 \
7932 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
7933 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
7934 || PACKET_VERSION >= 20101102)
7936#elif CLIENT_TYPE == 'R' && ( \
7937 PACKET_VERSION >= 20210000 \
7938 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
7939 || PACKET_VERSION >= 20101102)
7941#elif CLIENT_TYPE == 'Z' && ( \
7942 PACKET_VERSION >= 20220000 \
7943 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
7944 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
7945 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
7947#else
7948ID_CZ_GPK_DYNCODE_RELOAD = 0x0000 // Disabled
7949#endif
7956{
7957public:
7958 CZ_GPK_DYNCODE_RELOAD(std::shared_ptr<ZoneSession> s)
7960 {}
7962
7963 void handle(ByteBuffer &&buf);
7964 void deserialize(ByteBuffer &buf);
7965
7966/* Structure */
7967};
7968
7969enum {
7970#if CLIENT_TYPE == 'M' && ( \
7971 PACKET_VERSION >= 20220000 \
7972 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
7973 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000))
7975#elif CLIENT_TYPE == 'R' && ( \
7976 PACKET_VERSION >= 20210000 \
7977 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000))
7979#elif CLIENT_TYPE == 'Z' && ( \
7980 PACKET_VERSION >= 20220000 \
7981 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
7982 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000))
7984#else
7985ID_CZ_GRADE_ENCHANT_CLOSE_UI = 0x0000 // Disabled
7986#endif
7993{
7994public:
7995 CZ_GRADE_ENCHANT_CLOSE_UI(std::shared_ptr<ZoneSession> s)
7997 {}
7999
8000 void handle(ByteBuffer &&buf);
8001 void deserialize(ByteBuffer &buf);
8002
8003/* Structure */
8004};
8005
8006enum {
8007#if CLIENT_TYPE == 'M' && ( \
8008 PACKET_VERSION >= 20220000 \
8009 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
8010 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000))
8012#elif CLIENT_TYPE == 'R' && ( \
8013 PACKET_VERSION >= 20210000 \
8014 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000))
8016#elif CLIENT_TYPE == 'Z' && ( \
8017 PACKET_VERSION >= 20220000 \
8018 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
8019 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000))
8021#else
8022ID_CZ_GRADE_ENCHANT_REQUEST = 0x0000 // Disabled
8023#endif
8030{
8031public:
8032 CZ_GRADE_ENCHANT_REQUEST(std::shared_ptr<ZoneSession> s)
8034 {}
8036
8037 void handle(ByteBuffer &&buf);
8038 void deserialize(ByteBuffer &buf);
8039
8040/* Structure */
8041};
8042
8043enum {
8044#if CLIENT_TYPE == 'M' && ( \
8045 PACKET_VERSION >= 20220000 \
8046 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
8047 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000))
8049#elif CLIENT_TYPE == 'R' && ( \
8050 PACKET_VERSION >= 20210000 \
8051 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000))
8053#elif CLIENT_TYPE == 'Z' && ( \
8054 PACKET_VERSION >= 20220000 \
8055 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
8056 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000))
8058#else
8059ID_CZ_GRADE_ENCHANT_SELECT_EQUIPMENT = 0x0000 // Disabled
8060#endif
8067{
8068public:
8069 CZ_GRADE_ENCHANT_SELECT_EQUIPMENT(std::shared_ptr<ZoneSession> s)
8071 {}
8073
8074 void handle(ByteBuffer &&buf);
8075 void deserialize(ByteBuffer &buf);
8076
8077/* Structure */
8078};
8079
8080enum {
8081#if CLIENT_TYPE == 'M' && ( \
8082 PACKET_VERSION >= 20220000 \
8083 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
8084 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
8085 || PACKET_VERSION >= 20090603)
8087#elif CLIENT_TYPE == 'R' && ( \
8088 PACKET_VERSION >= 20210000 \
8089 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
8090 || PACKET_VERSION >= 20090603)
8092#elif CLIENT_TYPE == 'S' && \
8093 PACKET_VERSION >= 20090603
8095#elif CLIENT_TYPE == 'Z' && ( \
8096 PACKET_VERSION >= 20220000 \
8097 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
8098 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
8099 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
8101#else
8102ID_CZ_GROUPINFO_CHANGE_V2 = 0x0000 // Disabled
8103#endif
8110{
8111public:
8112 CZ_GROUPINFO_CHANGE_V2(std::shared_ptr<ZoneSession> s)
8114 {}
8116
8117 void handle(ByteBuffer &&buf);
8118 void deserialize(ByteBuffer &buf);
8119
8120/* Structure */
8124};
8125
8126enum {
8127#if CLIENT_TYPE == 'A' && \
8128 PACKET_VERSION >= 20040000
8129ID_CZ_GUILD_CHAT = 0x017e
8130#elif CLIENT_TYPE == 'M' && ( \
8131 PACKET_VERSION >= 20220000 \
8132 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
8133 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
8134 || (PACKET_VERSION >= 20030000 && PACKET_VERSION < 20200000))
8135ID_CZ_GUILD_CHAT = 0x017e
8136#elif CLIENT_TYPE == 'R' && ( \
8137 PACKET_VERSION >= 20210000 \
8138 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
8139 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
8140ID_CZ_GUILD_CHAT = 0x017e
8141#elif CLIENT_TYPE == 'S' && \
8142 PACKET_VERSION >= 20030000
8143ID_CZ_GUILD_CHAT = 0x017e
8144#elif CLIENT_TYPE == 'Z' && ( \
8145 PACKET_VERSION >= 20220000 \
8146 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
8147 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
8148 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
8149ID_CZ_GUILD_CHAT = 0x017e
8150#else
8151ID_CZ_GUILD_CHAT = 0x0000 // Disabled
8152#endif
8158class CZ_GUILD_CHAT : public Base::NetworkPacket<ZoneSession>
8159{
8160public:
8161 CZ_GUILD_CHAT(std::shared_ptr<ZoneSession> s)
8163 {}
8164 virtual ~CZ_GUILD_CHAT() {}
8165
8166 void handle(ByteBuffer &&buf);
8167 void deserialize(ByteBuffer &buf);
8168
8169/* Structure */
8170 int16_t _packet_length{ 0 };
8172};
8173
8174enum {
8175#if CLIENT_TYPE == 'A' && \
8176 PACKET_VERSION >= 20040000
8177ID_CZ_GUILD_NOTICE = 0x016e
8178#elif CLIENT_TYPE == 'M' && ( \
8179 PACKET_VERSION >= 20220000 \
8180 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
8181 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
8182 || (PACKET_VERSION >= 20030000 && PACKET_VERSION < 20200000))
8183ID_CZ_GUILD_NOTICE = 0x016e
8184#elif CLIENT_TYPE == 'R' && ( \
8185 PACKET_VERSION >= 20210000 \
8186 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
8187 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
8188ID_CZ_GUILD_NOTICE = 0x016e
8189#elif CLIENT_TYPE == 'S' && \
8190 PACKET_VERSION >= 20030000
8191ID_CZ_GUILD_NOTICE = 0x016e
8192#elif CLIENT_TYPE == 'Z' && ( \
8193 PACKET_VERSION >= 20220000 \
8194 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
8195 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
8196 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
8197ID_CZ_GUILD_NOTICE = 0x016e
8198#else
8199ID_CZ_GUILD_NOTICE = 0x0000 // Disabled
8200#endif
8206class CZ_GUILD_NOTICE : public Base::NetworkPacket<ZoneSession>
8207{
8208public:
8209 CZ_GUILD_NOTICE(std::shared_ptr<ZoneSession> s)
8211 {}
8212 virtual ~CZ_GUILD_NOTICE() {}
8213
8214 void handle(ByteBuffer &&buf);
8215 void deserialize(ByteBuffer &buf);
8216
8217/* Structure */
8221};
8222
8223enum {
8224#if CLIENT_TYPE == 'A' && \
8225 PACKET_VERSION >= 20040000
8226ID_CZ_GUILD_ZENY = 0x01b7
8227#elif CLIENT_TYPE == 'M' && ( \
8228 PACKET_VERSION >= 20220000 \
8229 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
8230 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
8231 || (PACKET_VERSION >= 20030000 && PACKET_VERSION < 20200000))
8232ID_CZ_GUILD_ZENY = 0x01b7
8233#elif CLIENT_TYPE == 'R' && ( \
8234 PACKET_VERSION >= 20210000 \
8235 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
8236 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
8237ID_CZ_GUILD_ZENY = 0x01b7
8238#elif CLIENT_TYPE == 'S' && \
8239 PACKET_VERSION >= 20030000
8240ID_CZ_GUILD_ZENY = 0x01b7
8241#elif CLIENT_TYPE == 'Z' && ( \
8242 PACKET_VERSION >= 20220000 \
8243 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
8244 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
8245 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
8246ID_CZ_GUILD_ZENY = 0x01b7
8247#else
8248ID_CZ_GUILD_ZENY = 0x0000 // Disabled
8249#endif
8255class CZ_GUILD_ZENY : public Base::NetworkPacket<ZoneSession>
8256{
8257public:
8258 CZ_GUILD_ZENY(std::shared_ptr<ZoneSession> s)
8260 {}
8261 virtual ~CZ_GUILD_ZENY() {}
8262
8263 void handle(ByteBuffer &&buf);
8264 void deserialize(ByteBuffer &buf);
8265
8266/* Structure */
8267};
8268
8269enum {
8270#if CLIENT_TYPE == 'A' && \
8271 PACKET_VERSION >= 20070611
8273#elif CLIENT_TYPE == 'M' && \
8274 PACKET_VERSION >= 20070611
8276#elif CLIENT_TYPE == 'S' && \
8277 PACKET_VERSION >= 20070611
8279#else
8280ID_CZ_HACKSHIELD_CRC_MSG = 0x0000 // Disabled
8281#endif
8288{
8289public:
8290 CZ_HACKSHIELD_CRC_MSG(std::shared_ptr<ZoneSession> s)
8292 {}
8294
8295 void handle(ByteBuffer &&buf);
8296 void deserialize(ByteBuffer &buf);
8297
8298/* Structure */
8299};
8300
8301enum {
8302#if CLIENT_TYPE == 'A' && \
8303 PACKET_VERSION >= 20070611
8304ID_CZ_HACKSH_CPX_MSG = 0x02a7
8305#elif CLIENT_TYPE == 'M' && ( \
8306 PACKET_VERSION >= 20220000 \
8307 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
8308 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
8309 || PACKET_VERSION >= 20070611)
8310ID_CZ_HACKSH_CPX_MSG = 0x02a7
8311#elif CLIENT_TYPE == 'R' && ( \
8312 PACKET_VERSION >= 20210000 \
8313 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
8314 || PACKET_VERSION >= 20090408)
8315ID_CZ_HACKSH_CPX_MSG = 0x02a7
8316#elif CLIENT_TYPE == 'S' && \
8317 PACKET_VERSION >= 20070611
8318ID_CZ_HACKSH_CPX_MSG = 0x02a7
8319#elif CLIENT_TYPE == 'Z' && ( \
8320 PACKET_VERSION >= 20220000 \
8321 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
8322 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
8323 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
8324ID_CZ_HACKSH_CPX_MSG = 0x02a7
8325#else
8326ID_CZ_HACKSH_CPX_MSG = 0x0000 // Disabled
8327#endif
8333class CZ_HACKSH_CPX_MSG : public Base::NetworkPacket<ZoneSession>
8334{
8335public:
8336 CZ_HACKSH_CPX_MSG(std::shared_ptr<ZoneSession> s)
8338 {}
8340
8341 void handle(ByteBuffer &&buf);
8342 void deserialize(ByteBuffer &buf);
8343
8344/* Structure */
8345};
8346
8347enum {
8348#if CLIENT_TYPE == 'A' && \
8349 PACKET_VERSION >= 20060607
8350ID_CZ_HUNTINGLIST = 0x0279
8351#elif CLIENT_TYPE == 'M' && ( \
8352 PACKET_VERSION >= 20220000 \
8353 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
8354 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
8355 || PACKET_VERSION >= 20060607)
8356ID_CZ_HUNTINGLIST = 0x0279
8357#elif CLIENT_TYPE == 'R' && ( \
8358 PACKET_VERSION >= 20210000 \
8359 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
8360 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
8361ID_CZ_HUNTINGLIST = 0x0279
8362#elif CLIENT_TYPE == 'S' && \
8363 PACKET_VERSION >= 20060607
8364ID_CZ_HUNTINGLIST = 0x0279
8365#elif CLIENT_TYPE == 'Z' && ( \
8366 PACKET_VERSION >= 20220000 \
8367 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
8368 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
8369 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
8370ID_CZ_HUNTINGLIST = 0x0279
8371#else
8372ID_CZ_HUNTINGLIST = 0x0000 // Disabled
8373#endif
8379class CZ_HUNTINGLIST : public Base::NetworkPacket<ZoneSession>
8380{
8381public:
8382 CZ_HUNTINGLIST(std::shared_ptr<ZoneSession> s)
8384 {}
8385 virtual ~CZ_HUNTINGLIST() {}
8386
8387 void handle(ByteBuffer &&buf);
8388 void deserialize(ByteBuffer &buf);
8389
8390/* Structure */
8391};
8392
8393enum {
8394#if CLIENT_TYPE == 'A' && \
8395 PACKET_VERSION >= 20040000
8396ID_CZ_INPUT_EDITDLG = 0x0143
8397#elif CLIENT_TYPE == 'M' && ( \
8398 PACKET_VERSION >= 20220000 \
8399 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
8400 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
8401 || (PACKET_VERSION >= 20030000 && PACKET_VERSION < 20200000))
8402ID_CZ_INPUT_EDITDLG = 0x0143
8403#elif CLIENT_TYPE == 'R' && ( \
8404 PACKET_VERSION >= 20210000 \
8405 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
8406 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
8407ID_CZ_INPUT_EDITDLG = 0x0143
8408#elif CLIENT_TYPE == 'S' && \
8409 PACKET_VERSION >= 20030000
8410ID_CZ_INPUT_EDITDLG = 0x0143
8411#elif CLIENT_TYPE == 'Z' && ( \
8412 PACKET_VERSION >= 20220000 \
8413 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
8414 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
8415 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
8416ID_CZ_INPUT_EDITDLG = 0x0143
8417#else
8418ID_CZ_INPUT_EDITDLG = 0x0000 // Disabled
8419#endif
8425class CZ_INPUT_EDITDLG : public Base::NetworkPacket<ZoneSession>
8426{
8427public:
8428 CZ_INPUT_EDITDLG(std::shared_ptr<ZoneSession> s)
8430 {}
8432
8433 void handle(ByteBuffer &&buf);
8434 void deserialize(ByteBuffer &buf);
8435
8436/* Structure */
8437 int _npc_guid{ 0 };
8438 int _value{ 0 };
8439};
8440
8441enum {
8442#if CLIENT_TYPE == 'A' && \
8443 PACKET_VERSION >= 20041213
8445#elif CLIENT_TYPE == 'M' && ( \
8446 PACKET_VERSION >= 20220000 \
8447 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
8448 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
8449 || (PACKET_VERSION >= 20030000 && PACKET_VERSION < 20200000))
8451#elif CLIENT_TYPE == 'R' && ( \
8452 PACKET_VERSION >= 20210000 \
8453 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
8454 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
8456#elif CLIENT_TYPE == 'S' && \
8457 PACKET_VERSION >= 20030000
8459#elif CLIENT_TYPE == 'Z' && ( \
8460 PACKET_VERSION >= 20220000 \
8461 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
8462 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
8463 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
8465#else
8466ID_CZ_INPUT_EDITDLGSTR = 0x0000 // Disabled
8467#endif
8473class CZ_INPUT_EDITDLGSTR : public Base::NetworkPacket<ZoneSession>
8474{
8475public:
8476 CZ_INPUT_EDITDLGSTR(std::shared_ptr<ZoneSession> s)
8478 {}
8480
8481 void handle(ByteBuffer &&buf);
8482 void deserialize(ByteBuffer &buf);
8483
8484/* Structure */
8485 int16_t _packet_length{ 0 };
8486 int _npc_guid{ 0 };
8488};
8489
8490enum {
8491#if CLIENT_TYPE == 'M' && ( \
8492 PACKET_VERSION >= 20220000 \
8493 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
8494 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
8495 || PACKET_VERSION >= 20181031)
8497#elif CLIENT_TYPE == 'R' && ( \
8498 PACKET_VERSION >= 20210000 \
8499 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
8500 || PACKET_VERSION >= 20181031)
8502#elif CLIENT_TYPE == 'Z' && ( \
8503 PACKET_VERSION >= 20220000 \
8504 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
8505 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
8506 || (PACKET_VERSION >= 20190000 && PACKET_VERSION < 20200000))
8508#else
8509ID_CZ_INVENTORY_EXPAND = 0x0000 // Disabled
8510#endif
8516class CZ_INVENTORY_EXPAND : public Base::NetworkPacket<ZoneSession>
8517{
8518public:
8519 CZ_INVENTORY_EXPAND(std::shared_ptr<ZoneSession> s)
8521 {}
8523
8524 void handle(ByteBuffer &&buf);
8525 void deserialize(ByteBuffer &buf);
8526
8527/* Structure */
8528};
8529
8530enum {
8531#if CLIENT_TYPE == 'M' && ( \
8532 PACKET_VERSION >= 20220000 \
8533 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
8534 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
8535 || PACKET_VERSION >= 20181031)
8537#elif CLIENT_TYPE == 'R' && ( \
8538 PACKET_VERSION >= 20210000 \
8539 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
8540 || PACKET_VERSION >= 20181031)
8542#elif CLIENT_TYPE == 'Z' && ( \
8543 PACKET_VERSION >= 20220000 \
8544 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
8545 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
8546 || (PACKET_VERSION >= 20190000 && PACKET_VERSION < 20200000))
8548#else
8549ID_CZ_INVENTORY_EXPAND_CONFIRMED = 0x0000 // Disabled
8550#endif
8557{
8558public:
8559 CZ_INVENTORY_EXPAND_CONFIRMED(std::shared_ptr<ZoneSession> s)
8561 {}
8563
8564 void handle(ByteBuffer &&buf);
8565 void deserialize(ByteBuffer &buf);
8566
8567/* Structure */
8568};
8569
8570enum {
8571#if CLIENT_TYPE == 'M' && ( \
8572 PACKET_VERSION >= 20220000 \
8573 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
8574 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
8575 || PACKET_VERSION >= 20181031)
8577#elif CLIENT_TYPE == 'R' && ( \
8578 PACKET_VERSION >= 20210000 \
8579 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
8580 || PACKET_VERSION >= 20181031)
8582#elif CLIENT_TYPE == 'Z' && ( \
8583 PACKET_VERSION >= 20220000 \
8584 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
8585 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
8586 || (PACKET_VERSION >= 20190000 && PACKET_VERSION < 20200000))
8588#else
8589ID_CZ_INVENTORY_EXPAND_REJECTED = 0x0000 // Disabled
8590#endif
8597{
8598public:
8599 CZ_INVENTORY_EXPAND_REJECTED(std::shared_ptr<ZoneSession> s)
8601 {}
8603
8604 void handle(ByteBuffer &&buf);
8605 void deserialize(ByteBuffer &buf);
8606
8607/* Structure */
8608};
8609
8610enum {
8611#if CLIENT_TYPE == 'M' && ( \
8612 PACKET_VERSION >= 20220000 \
8613 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
8614 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
8615 || PACKET_VERSION >= 20111122)
8616ID_CZ_INVENTORY_TAB = 0x0907
8617#elif CLIENT_TYPE == 'R' && ( \
8618 PACKET_VERSION >= 20210000 \
8619 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
8620 || PACKET_VERSION >= 20111122)
8621ID_CZ_INVENTORY_TAB = 0x0907
8622#elif CLIENT_TYPE == 'Z' && ( \
8623 PACKET_VERSION >= 20220000 \
8624 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
8625 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
8626 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
8627ID_CZ_INVENTORY_TAB = 0x0907
8628#else
8629ID_CZ_INVENTORY_TAB = 0x0000 // Disabled
8630#endif
8636class CZ_INVENTORY_TAB : public Base::NetworkPacket<ZoneSession>
8637{
8638public:
8639 CZ_INVENTORY_TAB(std::shared_ptr<ZoneSession> s)
8641 {}
8643
8644 void handle(ByteBuffer &&buf);
8645 void deserialize(ByteBuffer &buf);
8646
8647/* Structure */
8648};
8649
8650enum {
8651#if CLIENT_TYPE == 'A' && \
8652 PACKET_VERSION >= 20080624
8653ID_CZ_IRMAIL_LIST = 0x02f6
8654#elif CLIENT_TYPE == 'M' && ( \
8655 PACKET_VERSION >= 20220000 \
8656 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
8657 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
8658 || PACKET_VERSION >= 20081217)
8659ID_CZ_IRMAIL_LIST = 0x02f6
8660#elif CLIENT_TYPE == 'R' && ( \
8661 PACKET_VERSION >= 20210000 \
8662 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
8663 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
8664ID_CZ_IRMAIL_LIST = 0x02f6
8665#elif CLIENT_TYPE == 'S' && \
8666 PACKET_VERSION >= 20080618
8667ID_CZ_IRMAIL_LIST = 0x02f6
8668#elif CLIENT_TYPE == 'Z' && ( \
8669 PACKET_VERSION >= 20220000 \
8670 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
8671 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
8672 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
8673ID_CZ_IRMAIL_LIST = 0x02f6
8674#else
8675ID_CZ_IRMAIL_LIST = 0x0000 // Disabled
8676#endif
8682class CZ_IRMAIL_LIST : public Base::NetworkPacket<ZoneSession>
8683{
8684public:
8685 CZ_IRMAIL_LIST(std::shared_ptr<ZoneSession> s)
8687 {}
8688 virtual ~CZ_IRMAIL_LIST() {}
8689
8690 void handle(ByteBuffer &&buf);
8691 void deserialize(ByteBuffer &buf);
8692
8693/* Structure */
8694};
8695
8696enum {
8697#if CLIENT_TYPE == 'A' && \
8698 PACKET_VERSION >= 20080701
8699ID_CZ_IRMAIL_SEND = 0x02f3
8700#elif CLIENT_TYPE == 'M' && ( \
8701 PACKET_VERSION >= 20220000 \
8702 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
8703 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
8704 || PACKET_VERSION >= 20081217)
8705ID_CZ_IRMAIL_SEND = 0x02f3
8706#elif CLIENT_TYPE == 'R' && ( \
8707 PACKET_VERSION >= 20210000 \
8708 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
8709 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
8710ID_CZ_IRMAIL_SEND = 0x02f3
8711#elif CLIENT_TYPE == 'S' && \
8712 PACKET_VERSION >= 20080325
8713ID_CZ_IRMAIL_SEND = 0x02f3
8714#elif CLIENT_TYPE == 'Z' && ( \
8715 PACKET_VERSION >= 20220000 \
8716 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
8717 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
8718 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
8719ID_CZ_IRMAIL_SEND = 0x02f3
8720#else
8721ID_CZ_IRMAIL_SEND = 0x0000 // Disabled
8722#endif
8728class CZ_IRMAIL_SEND : public Base::NetworkPacket<ZoneSession>
8729{
8730public:
8731 CZ_IRMAIL_SEND(std::shared_ptr<ZoneSession> s)
8733 {}
8734 virtual ~CZ_IRMAIL_SEND() {}
8735
8736 void handle(ByteBuffer &&buf);
8737 void deserialize(ByteBuffer &buf);
8738
8739/* Structure */
8740};
8741
8742enum {
8743#if CLIENT_TYPE == 'M' && ( \
8744 PACKET_VERSION == 20190821 \
8745 || PACKET_VERSION == 20190807 \
8746 || PACKET_VERSION == 20190802 \
8747 || PACKET_VERSION == 20190731 \
8748 || PACKET_VERSION == 20190724 \
8749 || PACKET_VERSION == 20190717 \
8750 || PACKET_VERSION == 20190703 \
8751 || PACKET_VERSION == 20190605 \
8752 || PACKET_VERSION == 20190530 \
8753 || PACKET_VERSION == 20190523 \
8754 || PACKET_VERSION == 20190522 \
8755 || PACKET_VERSION == 20190508 \
8756 || PACKET_VERSION == 20190418 \
8757 || PACKET_VERSION == 20190417 \
8758 || PACKET_VERSION == 20190327 \
8759 || PACKET_VERSION == 20190322 \
8760 || PACKET_VERSION == 20190320 \
8761 || PACKET_VERSION == 20190313 \
8762 || PACKET_VERSION == 20190306 \
8763 || PACKET_VERSION == 20190228 \
8764 || PACKET_VERSION == 20190123 \
8765 || PACKET_VERSION == 20190116 \
8766 || (PACKET_VERSION >= 20190000 && PACKET_VERSION < 20190116) \
8767 || PACKET_VERSION == 20181226 \
8768 || PACKET_VERSION == 20181219 \
8769 || PACKET_VERSION == 20181212 \
8770 || PACKET_VERSION == 20181205 \
8771 || PACKET_VERSION == 20181128 \
8772 || PACKET_VERSION == 20181114 \
8773 || PACKET_VERSION == 20181107 \
8774 || PACKET_VERSION == 20181024 \
8775 || PACKET_VERSION == 20180919 \
8776 || PACKET_VERSION == 20180831 \
8777 || PACKET_VERSION == 20180822 \
8778 || PACKET_VERSION >= 20180808 \
8779 || PACKET_VERSION >= 20180718 \
8780 || PACKET_VERSION >= 20180704 \
8781 || PACKET_VERSION >= 20180621 \
8782 || PACKET_VERSION >= 20180620 \
8783 || PACKET_VERSION >= 20180530 \
8784 || PACKET_VERSION >= 20180523 \
8785 || PACKET_VERSION >= 20180516 \
8786 || PACKET_VERSION >= 20180509 \
8787 || PACKET_VERSION >= 20180502 \
8788 || PACKET_VERSION >= 20180425 \
8789 || PACKET_VERSION >= 20180404 \
8790 || PACKET_VERSION >= 20180328 \
8791 || PACKET_VERSION >= 20180321 \
8792 || PACKET_VERSION >= 20180315 \
8793 || PACKET_VERSION >= 20180314 \
8794 || PACKET_VERSION >= 20180307 \
8795 || PACKET_VERSION >= 20180213 \
8796 || PACKET_VERSION >= 20180207 \
8797 || PACKET_VERSION >= 20180124 \
8798 || PACKET_VERSION >= 20180117 \
8799 || PACKET_VERSION >= 20180103 \
8800 || PACKET_VERSION >= 20171220 \
8801 || PACKET_VERSION >= 20171213 \
8802 || PACKET_VERSION >= 20171115 \
8803 || PACKET_VERSION >= 20171108 \
8804 || PACKET_VERSION >= 20171101 \
8805 || PACKET_VERSION >= 20171025 \
8806 || PACKET_VERSION >= 20171018 \
8807 || PACKET_VERSION >= 20171011 \
8808 || PACKET_VERSION >= 20170920 \
8809 || PACKET_VERSION >= 20170913 \
8810 || PACKET_VERSION >= 20170830 \
8811 || PACKET_VERSION >= 20170823 \
8812 || PACKET_VERSION >= 20170809 \
8813 || PACKET_VERSION >= 20170801 \
8814 || PACKET_VERSION >= 20170726 \
8815 || PACKET_VERSION >= 20170712 \
8816 || PACKET_VERSION >= 20170705 \
8817 || PACKET_VERSION >= 20170628 \
8818 || PACKET_VERSION >= 20170621 \
8819 || PACKET_VERSION >= 20170614 \
8820 || PACKET_VERSION >= 20170607 \
8821 || PACKET_VERSION >= 20170531 \
8822 || PACKET_VERSION >= 20170517 \
8823 || PACKET_VERSION >= 20170502 \
8824 || PACKET_VERSION >= 20170329 \
8825 || PACKET_VERSION >= 20170322 \
8826 || PACKET_VERSION >= 20170315 \
8827 || PACKET_VERSION >= 20170308 \
8828 || PACKET_VERSION >= 20170111 \
8829 || PACKET_VERSION >= 20170104 \
8830 || PACKET_VERSION >= 20161207 \
8831 || PACKET_VERSION >= 20161130 \
8832 || PACKET_VERSION >= 20161026 \
8833 || PACKET_VERSION >= 20161019 \
8834 || PACKET_VERSION >= 20160928 \
8835 || PACKET_VERSION >= 20160921 \
8836 || PACKET_VERSION >= 20160913 \
8837 || PACKET_VERSION >= 20160907 \
8838 || PACKET_VERSION >= 20160831 \
8839 || PACKET_VERSION >= 20160817 \
8840 || PACKET_VERSION >= 20160727 \
8841 || PACKET_VERSION >= 20160720 \
8842 || PACKET_VERSION >= 20160629 \
8843 || PACKET_VERSION >= 20160622 \
8844 || PACKET_VERSION >= 20160525 \
8845 || PACKET_VERSION >= 20160511 \
8846 || PACKET_VERSION >= 20160504 \
8847 || PACKET_VERSION >= 20160427 \
8848 || PACKET_VERSION >= 20160414 \
8849 || PACKET_VERSION >= 20160406 \
8850 || PACKET_VERSION >= 20160323 \
8851 || PACKET_VERSION >= 20160316 \
8852 || PACKET_VERSION >= 20160217 \
8853 || PACKET_VERSION >= 20160211 \
8854 || PACKET_VERSION >= 20160203 \
8855 || PACKET_VERSION >= 20160120 \
8856 || PACKET_VERSION >= 20160106 \
8857 || PACKET_VERSION >= 20151216 \
8858 || PACKET_VERSION >= 20151209 \
8859 || PACKET_VERSION >= 20151202 \
8860 || PACKET_VERSION >= 20151104 \
8861 || PACKET_VERSION >= 20151021 \
8862 || PACKET_VERSION >= 20151014 \
8863 || PACKET_VERSION >= 20151001 \
8864 || PACKET_VERSION >= 20150923 \
8865 || PACKET_VERSION >= 20150819 \
8866 || PACKET_VERSION >= 20150805 \
8867 || PACKET_VERSION >= 20150708 \
8868 || PACKET_VERSION >= 20150701 \
8869 || PACKET_VERSION >= 20150624 \
8870 || PACKET_VERSION >= 20150617 \
8871 || PACKET_VERSION >= 20150610 \
8872 || PACKET_VERSION >= 20150603 \
8873 || PACKET_VERSION >= 20150527 \
8874 || PACKET_VERSION >= 20150429 \
8875 || PACKET_VERSION >= 20150422 \
8876 || PACKET_VERSION >= 20150325 \
8877 || PACKET_VERSION >= 20150318 \
8878 || PACKET_VERSION >= 20150225 \
8879 || PACKET_VERSION >= 20150204 \
8880 || PACKET_VERSION >= 20150128 \
8881 || PACKET_VERSION >= 20150121 \
8882 || PACKET_VERSION >= 20150107 \
8883 || PACKET_VERSION >= 20141231 \
8884 || PACKET_VERSION >= 20141217 \
8885 || PACKET_VERSION >= 20141210 \
8886 || PACKET_VERSION >= 20141105 \
8887 || PACKET_VERSION >= 20141029 \
8888 || PACKET_VERSION >= 20141022 \
8889 || PACKET_VERSION >= 20141008 \
8890 || PACKET_VERSION >= 20141001 \
8891 || PACKET_VERSION >= 20140924 \
8892 || PACKET_VERSION >= 20140917 \
8893 || PACKET_VERSION >= 20140820 \
8894 || PACKET_VERSION >= 20140813 \
8895 || PACKET_VERSION >= 20140806 \
8896 || PACKET_VERSION >= 20140723 \
8897 || PACKET_VERSION >= 20140716 \
8898 || PACKET_VERSION >= 20140709 \
8899 || PACKET_VERSION >= 20140702 \
8900 || PACKET_VERSION >= 20140618 \
8901 || PACKET_VERSION >= 20140611 \
8902 || PACKET_VERSION >= 20140605 \
8903 || PACKET_VERSION >= 20140528 \
8904 || PACKET_VERSION >= 20140521 \
8905 || PACKET_VERSION >= 20140514 \
8906 || PACKET_VERSION >= 20140508 \
8907 || PACKET_VERSION >= 20140430 \
8908 || PACKET_VERSION >= 20140416 \
8909 || PACKET_VERSION >= 20140326 \
8910 || PACKET_VERSION >= 20140319 \
8911 || PACKET_VERSION >= 20140312 \
8912 || PACKET_VERSION >= 20140305 \
8913 || PACKET_VERSION >= 20140212 \
8914 || PACKET_VERSION >= 20140205 \
8915 || PACKET_VERSION >= 20140115 \
8916 || PACKET_VERSION >= 20140108 \
8917 || PACKET_VERSION >= 20131230 \
8918 || PACKET_VERSION >= 20131218 \
8919 || PACKET_VERSION >= 20131211 \
8920 || PACKET_VERSION >= 20131204 \
8921 || PACKET_VERSION >= 20131127 \
8922 || PACKET_VERSION >= 20131106 \
8923 || PACKET_VERSION >= 20131030 \
8924 || PACKET_VERSION >= 20131016 \
8925 || PACKET_VERSION >= 20131008 \
8926 || PACKET_VERSION >= 20131002 \
8927 || PACKET_VERSION >= 20130911 \
8928 || PACKET_VERSION >= 20130904 \
8929 || PACKET_VERSION >= 20130814 \
8930 || PACKET_VERSION >= 20130807 \
8931 || PACKET_VERSION >= 20130717 \
8932 || PACKET_VERSION >= 20130703 \
8933 || PACKET_VERSION >= 20130618 \
8934 || PACKET_VERSION >= 20130605 \
8935 || PACKET_VERSION >= 20130508 \
8936 || PACKET_VERSION >= 20130502 \
8937 || PACKET_VERSION >= 20130417 \
8938 || PACKET_VERSION >= 20130410 \
8939 || PACKET_VERSION >= 20130403 \
8940 || PACKET_VERSION >= 20130320 \
8941 || PACKET_VERSION >= 20130313 \
8942 || PACKET_VERSION >= 20130227 \
8943 || PACKET_VERSION >= 20130220 \
8944 || PACKET_VERSION >= 20130215 \
8945 || PACKET_VERSION >= 20130206 \
8946 || PACKET_VERSION >= 20130109 \
8947 || PACKET_VERSION >= 20130103 \
8948 || PACKET_VERSION >= 20121107 \
8949 || PACKET_VERSION >= 20121031 \
8950 || PACKET_VERSION >= 20121010 \
8951 || PACKET_VERSION >= 20120925 \
8952 || PACKET_VERSION >= 20120919 \
8953 || PACKET_VERSION >= 20120814 \
8954 || PACKET_VERSION >= 20120808 \
8955 || PACKET_VERSION >= 20120724 \
8956 || PACKET_VERSION >= 20120710 \
8957 || PACKET_VERSION >= 20120626 \
8958 || PACKET_VERSION >= 20120612 \
8959 || PACKET_VERSION >= 20120604 \
8960 || PACKET_VERSION >= 20120529 \
8961 || PACKET_VERSION >= 20120508 \
8962 || PACKET_VERSION >= 20120503 \
8963 || PACKET_VERSION >= 20120424 \
8964 || PACKET_VERSION >= 20120417 \
8965 || PACKET_VERSION >= 20120410 \
8966 || PACKET_VERSION >= 20120404 \
8967 || PACKET_VERSION >= 20120328 \
8968 || PACKET_VERSION >= 20120320 \
8969 || PACKET_VERSION >= 20120214 \
8970 || PACKET_VERSION >= 20120207 \
8971 || PACKET_VERSION >= 20120117 \
8972 || PACKET_VERSION >= 20120110 \
8973 || PACKET_VERSION >= 20120103 \
8974 || PACKET_VERSION >= 20111227 \
8975 || PACKET_VERSION >= 20111220 \
8976 || PACKET_VERSION >= 20111004 \
8977 || PACKET_VERSION >= 20110928 \
8978 || PACKET_VERSION >= 20110920 \
8979 || PACKET_VERSION >= 20110906 \
8980 || PACKET_VERSION >= 20110831 \
8981 || PACKET_VERSION >= 20110823 \
8982 || PACKET_VERSION >= 20110816 \
8983 || PACKET_VERSION >= 20110809 \
8984 || PACKET_VERSION >= 20110802 \
8985 || PACKET_VERSION >= 20110726 \
8986 || PACKET_VERSION >= 20110718 \
8987 || PACKET_VERSION >= 20110711 \
8988 || PACKET_VERSION >= 20110705 \
8989 || PACKET_VERSION >= 20110627 \
8990 || PACKET_VERSION >= 20110620 \
8991 || PACKET_VERSION >= 20110614 \
8992 || PACKET_VERSION >= 20110607 \
8993 || PACKET_VERSION >= 20110531 \
8994 || PACKET_VERSION >= 20110523 \
8995 || PACKET_VERSION >= 20110517 \
8996 || PACKET_VERSION >= 20110511 \
8997 || PACKET_VERSION >= 20110419 \
8998 || PACKET_VERSION >= 20110412 \
8999 || PACKET_VERSION >= 20110405 \
9000 || PACKET_VERSION >= 20110329 \
9001 || PACKET_VERSION >= 20110322 \
9002 || PACKET_VERSION >= 20110315 \
9003 || PACKET_VERSION >= 20110308 \
9004 || PACKET_VERSION >= 20110118 \
9005 || PACKET_VERSION >= 20110104 \
9006 || PACKET_VERSION >= 20101228 \
9007 || PACKET_VERSION >= 20101221 \
9008 || PACKET_VERSION >= 20101214 \
9009 || PACKET_VERSION >= 20101207 \
9010 || PACKET_VERSION >= 20101123 \
9011 || PACKET_VERSION >= 20100105 \
9012 || PACKET_VERSION >= 20090818)
9013ID_CZ_ITEMLISTWIN_RES = 0x07e4
9014#elif CLIENT_TYPE == 'M' && \
9015 PACKET_VERSION >= 20120712
9016ID_CZ_ITEMLISTWIN_RES = 0x08a6
9017#elif CLIENT_TYPE == 'M' && \
9018 PACKET_VERSION >= 20120926
9019ID_CZ_ITEMLISTWIN_RES = 0x089d
9020#elif CLIENT_TYPE == 'M' && ( \
9021 PACKET_VERSION == 20160318 \
9022 || PACKET_VERSION == 20151029 \
9023 || PACKET_VERSION == 20151022 \
9024 || PACKET_VERSION == 20150812 \
9025 || PACKET_VERSION >= 20141016 \
9026 || PACKET_VERSION >= 20130107)
9027ID_CZ_ITEMLISTWIN_RES = 0x0281
9028#elif CLIENT_TYPE == 'M' && ( \
9029 PACKET_VERSION == 20180131 \
9030 || PACKET_VERSION >= 20130116)
9031ID_CZ_ITEMLISTWIN_RES = 0x0946
9032#elif CLIENT_TYPE == 'M' && ( \
9033 PACKET_VERSION == 20131108 \
9034 || PACKET_VERSION == 20131107)
9035ID_CZ_ITEMLISTWIN_RES = 0x0369
9036#elif CLIENT_TYPE == 'M' && ( \
9037 PACKET_VERSION == 20140613 \
9038 || PACKET_VERSION == 20140612)
9039ID_CZ_ITEMLISTWIN_RES = 0x094a
9040#elif CLIENT_TYPE == 'M' && \
9041 PACKET_VERSION >= 20140814
9042ID_CZ_ITEMLISTWIN_RES = 0x0819
9043#elif CLIENT_TYPE == 'M' && ( \
9044 PACKET_VERSION == 20150130 \
9045 || PACKET_VERSION == 20150129)
9046ID_CZ_ITEMLISTWIN_RES = 0x0888
9047#elif CLIENT_TYPE == 'M' && \
9048 PACKET_VERSION >= 20150226
9049ID_CZ_ITEMLISTWIN_RES = 0x0896
9050#elif CLIENT_TYPE == 'M' && \
9051 PACKET_VERSION >= 20150618
9052ID_CZ_ITEMLISTWIN_RES = 0x0365
9053#elif CLIENT_TYPE == 'M' && \
9054 PACKET_VERSION >= 20150702
9055ID_CZ_ITEMLISTWIN_RES = 0x087e
9056#elif CLIENT_TYPE == 'M' && \
9057 PACKET_VERSION >= 20160526
9058ID_CZ_ITEMLISTWIN_RES = 0x0937
9059#elif CLIENT_TYPE == 'M' && \
9060 PACKET_VERSION >= 20160609
9061ID_CZ_ITEMLISTWIN_RES = 0x022d
9062#elif CLIENT_TYPE == 'M' && \
9063 PACKET_VERSION >= 20160630
9064ID_CZ_ITEMLISTWIN_RES = 0x0368
9065#elif CLIENT_TYPE == 'M' && ( \
9066 PACKET_VERSION >= 20220000 \
9067 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
9068 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
9069 || PACKET_VERSION >= 20161103)
9070ID_CZ_ITEMLISTWIN_RES = 0x0964
9071#elif CLIENT_TYPE == 'M' && \
9072 PACKET_VERSION >= 20180309
9073ID_CZ_ITEMLISTWIN_RES = 0x0870
9074#elif CLIENT_TYPE == 'R' && ( \
9075 PACKET_VERSION == 20190821 \
9076 || PACKET_VERSION == 20190807 \
9077 || PACKET_VERSION == 20190802 \
9078 || PACKET_VERSION == 20190731 \
9079 || PACKET_VERSION == 20190724 \
9080 || PACKET_VERSION == 20190717 \
9081 || PACKET_VERSION == 20190703 \
9082 || PACKET_VERSION == 20190626 \
9083 || PACKET_VERSION == 20190605 \
9084 || PACKET_VERSION == 20190530 \
9085 || PACKET_VERSION == 20190522 \
9086 || PACKET_VERSION == 20190508 \
9087 || PACKET_VERSION == 20190418 \
9088 || PACKET_VERSION == 20190417 \
9089 || PACKET_VERSION == 20190327 \
9090 || PACKET_VERSION == 20190322 \
9091 || PACKET_VERSION == 20190320 \
9092 || PACKET_VERSION == 20190306 \
9093 || PACKET_VERSION == 20190228 \
9094 || PACKET_VERSION == 20190123 \
9095 || PACKET_VERSION == 20190116 \
9096 || (PACKET_VERSION >= 20190000 && PACKET_VERSION < 20190116) \
9097 || PACKET_VERSION == 20181226 \
9098 || PACKET_VERSION == 20181219 \
9099 || PACKET_VERSION == 20181212 \
9100 || PACKET_VERSION == 20181205 \
9101 || PACKET_VERSION == 20181128 \
9102 || PACKET_VERSION == 20181121 \
9103 || PACKET_VERSION == 20181114 \
9104 || PACKET_VERSION == 20181107 \
9105 || PACKET_VERSION == 20180822 \
9106 || PACKET_VERSION >= 20180808 \
9107 || PACKET_VERSION >= 20180718 \
9108 || PACKET_VERSION >= 20180711 \
9109 || PACKET_VERSION >= 20180621 \
9110 || PACKET_VERSION >= 20180620 \
9111 || PACKET_VERSION >= 20180612 \
9112 || PACKET_VERSION >= 20180530 \
9113 || PACKET_VERSION >= 20180523 \
9114 || PACKET_VERSION >= 20180516 \
9115 || PACKET_VERSION >= 20180502 \
9116 || PACKET_VERSION >= 20180425 \
9117 || PACKET_VERSION >= 20180404 \
9118 || PACKET_VERSION >= 20180328 \
9119 || PACKET_VERSION >= 20180321 \
9120 || PACKET_VERSION >= 20180307 \
9121 || PACKET_VERSION >= 20180213 \
9122 || PACKET_VERSION >= 20180207 \
9123 || PACKET_VERSION >= 20180124 \
9124 || PACKET_VERSION >= 20180117 \
9125 || PACKET_VERSION >= 20180103 \
9126 || PACKET_VERSION >= 20171220 \
9127 || PACKET_VERSION >= 20171213 \
9128 || PACKET_VERSION >= 20171115 \
9129 || PACKET_VERSION >= 20171108 \
9130 || PACKET_VERSION >= 20171101 \
9131 || PACKET_VERSION >= 20171025 \
9132 || PACKET_VERSION >= 20171018 \
9133 || PACKET_VERSION >= 20171011 \
9134 || PACKET_VERSION >= 20170920 \
9135 || PACKET_VERSION >= 20170913 \
9136 || PACKET_VERSION >= 20170830 \
9137 || PACKET_VERSION >= 20170823 \
9138 || PACKET_VERSION >= 20170809 \
9139 || PACKET_VERSION >= 20170801 \
9140 || PACKET_VERSION >= 20170726 \
9141 || PACKET_VERSION >= 20170712 \
9142 || PACKET_VERSION >= 20170705 \
9143 || PACKET_VERSION >= 20170628 \
9144 || PACKET_VERSION >= 20170621 \
9145 || PACKET_VERSION >= 20170614 \
9146 || PACKET_VERSION >= 20170607 \
9147 || PACKET_VERSION >= 20170531 \
9148 || PACKET_VERSION >= 20170517 \
9149 || PACKET_VERSION >= 20170502 \
9150 || PACKET_VERSION >= 20170329 \
9151 || PACKET_VERSION >= 20170322 \
9152 || PACKET_VERSION >= 20170315 \
9153 || PACKET_VERSION >= 20170308 \
9154 || PACKET_VERSION >= 20170111 \
9155 || PACKET_VERSION >= 20170104 \
9156 || PACKET_VERSION >= 20161207 \
9157 || PACKET_VERSION >= 20161130 \
9158 || PACKET_VERSION >= 20161026 \
9159 || PACKET_VERSION >= 20161019 \
9160 || PACKET_VERSION >= 20160928 \
9161 || PACKET_VERSION >= 20160921 \
9162 || PACKET_VERSION >= 20160913 \
9163 || PACKET_VERSION >= 20160907 \
9164 || PACKET_VERSION >= 20160831 \
9165 || PACKET_VERSION >= 20160817 \
9166 || PACKET_VERSION >= 20160727 \
9167 || PACKET_VERSION >= 20160720 \
9168 || PACKET_VERSION >= 20160629 \
9169 || PACKET_VERSION >= 20160622 \
9170 || PACKET_VERSION >= 20160525 \
9171 || PACKET_VERSION >= 20160511 \
9172 || PACKET_VERSION >= 20160504 \
9173 || PACKET_VERSION >= 20160427 \
9174 || PACKET_VERSION >= 20160414 \
9175 || PACKET_VERSION >= 20160406 \
9176 || PACKET_VERSION >= 20160323 \
9177 || PACKET_VERSION >= 20160316 \
9178 || PACKET_VERSION >= 20160217 \
9179 || PACKET_VERSION >= 20160211 \
9180 || PACKET_VERSION >= 20160203 \
9181 || PACKET_VERSION >= 20160120 \
9182 || PACKET_VERSION >= 20160106 \
9183 || PACKET_VERSION >= 20151216 \
9184 || PACKET_VERSION >= 20151209 \
9185 || PACKET_VERSION >= 20151202 \
9186 || PACKET_VERSION >= 20151104 \
9187 || PACKET_VERSION >= 20151021 \
9188 || PACKET_VERSION >= 20151014 \
9189 || PACKET_VERSION >= 20151001 \
9190 || PACKET_VERSION >= 20150923 \
9191 || PACKET_VERSION >= 20150819 \
9192 || PACKET_VERSION >= 20150805 \
9193 || PACKET_VERSION >= 20150708 \
9194 || PACKET_VERSION >= 20150701 \
9195 || PACKET_VERSION >= 20150624 \
9196 || PACKET_VERSION >= 20150617 \
9197 || PACKET_VERSION >= 20150610 \
9198 || PACKET_VERSION >= 20150603 \
9199 || PACKET_VERSION >= 20150527 \
9200 || PACKET_VERSION >= 20150429 \
9201 || PACKET_VERSION >= 20150422 \
9202 || PACKET_VERSION >= 20150325 \
9203 || PACKET_VERSION >= 20150318 \
9204 || PACKET_VERSION >= 20150225 \
9205 || PACKET_VERSION >= 20150204 \
9206 || PACKET_VERSION >= 20150128 \
9207 || PACKET_VERSION >= 20150121 \
9208 || PACKET_VERSION >= 20150107 \
9209 || PACKET_VERSION >= 20141231 \
9210 || PACKET_VERSION >= 20141217 \
9211 || PACKET_VERSION >= 20141210 \
9212 || PACKET_VERSION >= 20141105 \
9213 || PACKET_VERSION >= 20141029 \
9214 || PACKET_VERSION >= 20141022 \
9215 || PACKET_VERSION >= 20141008 \
9216 || PACKET_VERSION >= 20141001 \
9217 || PACKET_VERSION >= 20140924 \
9218 || PACKET_VERSION >= 20140917 \
9219 || PACKET_VERSION >= 20140820 \
9220 || PACKET_VERSION >= 20140813 \
9221 || PACKET_VERSION >= 20140806 \
9222 || PACKET_VERSION >= 20140723 \
9223 || PACKET_VERSION >= 20140716 \
9224 || PACKET_VERSION >= 20140709 \
9225 || PACKET_VERSION >= 20140702 \
9226 || PACKET_VERSION >= 20140618 \
9227 || PACKET_VERSION >= 20140611 \
9228 || PACKET_VERSION >= 20140605 \
9229 || PACKET_VERSION >= 20140528 \
9230 || PACKET_VERSION >= 20140521 \
9231 || PACKET_VERSION >= 20140514 \
9232 || PACKET_VERSION >= 20140508 \
9233 || PACKET_VERSION >= 20140430 \
9234 || PACKET_VERSION >= 20140416 \
9235 || PACKET_VERSION >= 20140326 \
9236 || PACKET_VERSION >= 20140319 \
9237 || PACKET_VERSION >= 20140312 \
9238 || PACKET_VERSION >= 20140305 \
9239 || PACKET_VERSION >= 20140212 \
9240 || PACKET_VERSION >= 20140205 \
9241 || PACKET_VERSION >= 20140115 \
9242 || PACKET_VERSION >= 20140108 \
9243 || PACKET_VERSION >= 20131230 \
9244 || PACKET_VERSION >= 20131223 \
9245 || PACKET_VERSION >= 20131218 \
9246 || PACKET_VERSION >= 20131211 \
9247 || PACKET_VERSION >= 20131204 \
9248 || PACKET_VERSION >= 20131127 \
9249 || PACKET_VERSION >= 20131106 \
9250 || PACKET_VERSION >= 20131030 \
9251 || PACKET_VERSION >= 20131016 \
9252 || PACKET_VERSION >= 20131008 \
9253 || PACKET_VERSION >= 20131002 \
9254 || PACKET_VERSION >= 20130911 \
9255 || PACKET_VERSION >= 20130904 \
9256 || PACKET_VERSION >= 20130814 \
9257 || PACKET_VERSION >= 20130807 \
9258 || PACKET_VERSION >= 20130717 \
9259 || PACKET_VERSION >= 20130703 \
9260 || PACKET_VERSION >= 20130618 \
9261 || PACKET_VERSION >= 20130605 \
9262 || PACKET_VERSION >= 20130508 \
9263 || PACKET_VERSION >= 20130502 \
9264 || PACKET_VERSION >= 20130417 \
9265 || PACKET_VERSION >= 20130410 \
9266 || PACKET_VERSION >= 20130403 \
9267 || PACKET_VERSION >= 20130320 \
9268 || PACKET_VERSION >= 20130313 \
9269 || PACKET_VERSION >= 20130227 \
9270 || PACKET_VERSION >= 20130220 \
9271 || PACKET_VERSION >= 20130215 \
9272 || PACKET_VERSION >= 20130206 \
9273 || PACKET_VERSION >= 20130109 \
9274 || PACKET_VERSION >= 20130103 \
9275 || PACKET_VERSION >= 20121107 \
9276 || PACKET_VERSION >= 20121031 \
9277 || PACKET_VERSION >= 20121010 \
9278 || PACKET_VERSION >= 20120925 \
9279 || PACKET_VERSION >= 20120919 \
9280 || PACKET_VERSION >= 20120814 \
9281 || PACKET_VERSION >= 20120808 \
9282 || PACKET_VERSION >= 20120724 \
9283 || PACKET_VERSION >= 20120710 \
9284 || PACKET_VERSION >= 20120626 \
9285 || PACKET_VERSION >= 20120612 \
9286 || PACKET_VERSION >= 20120601 \
9287 || PACKET_VERSION >= 20120529 \
9288 || PACKET_VERSION >= 20120508 \
9289 || PACKET_VERSION >= 20120502 \
9290 || PACKET_VERSION >= 20120424 \
9291 || PACKET_VERSION >= 20120417 \
9292 || PACKET_VERSION >= 20120410 \
9293 || PACKET_VERSION >= 20120404 \
9294 || PACKET_VERSION >= 20120328 \
9295 || PACKET_VERSION >= 20120320 \
9296 || PACKET_VERSION >= 20120214 \
9297 || PACKET_VERSION >= 20120207 \
9298 || PACKET_VERSION >= 20120117 \
9299 || PACKET_VERSION >= 20120110 \
9300 || PACKET_VERSION >= 20120103 \
9301 || PACKET_VERSION >= 20111227 \
9302 || PACKET_VERSION >= 20111220 \
9303 || PACKET_VERSION >= 20111004 \
9304 || PACKET_VERSION >= 20110928 \
9305 || PACKET_VERSION >= 20110920 \
9306 || PACKET_VERSION >= 20110906 \
9307 || PACKET_VERSION >= 20110831 \
9308 || PACKET_VERSION >= 20110823 \
9309 || PACKET_VERSION >= 20110816 \
9310 || PACKET_VERSION >= 20110104 \
9311 || (PACKET_VERSION >= 20100000 && PACKET_VERSION < 20110104) \
9312 || PACKET_VERSION >= 20090818)
9313ID_CZ_ITEMLISTWIN_RES = 0x07e4
9314#elif CLIENT_TYPE == 'R' && ( \
9315 PACKET_VERSION >= 20210000 \
9316 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
9317 || PACKET_VERSION >= 20120712)
9318ID_CZ_ITEMLISTWIN_RES = 0x08a6
9319#elif CLIENT_TYPE == 'R' && \
9320 PACKET_VERSION >= 20120926
9321ID_CZ_ITEMLISTWIN_RES = 0x089d
9322#elif CLIENT_TYPE == 'R' && \
9323 PACKET_VERSION >= 20121011
9324ID_CZ_ITEMLISTWIN_RES = 0x0202
9325#elif CLIENT_TYPE == 'R' && \
9326 PACKET_VERSION >= 20130116
9327ID_CZ_ITEMLISTWIN_RES = 0x0946
9328#elif CLIENT_TYPE == 'R' && ( \
9329 PACKET_VERSION == 20151029 \
9330 || PACKET_VERSION == 20151022 \
9331 || PACKET_VERSION == 20150812 \
9332 || PACKET_VERSION >= 20141016)
9333ID_CZ_ITEMLISTWIN_RES = 0x0281
9334#elif CLIENT_TYPE == 'R' && \
9335 PACKET_VERSION >= 20150226
9336ID_CZ_ITEMLISTWIN_RES = 0x0896
9337#elif CLIENT_TYPE == 'R' && \
9338 PACKET_VERSION >= 20150618
9339ID_CZ_ITEMLISTWIN_RES = 0x0365
9340#elif CLIENT_TYPE == 'R' && \
9341 PACKET_VERSION >= 20160630
9342ID_CZ_ITEMLISTWIN_RES = 0x0368
9343#elif CLIENT_TYPE == 'R' && \
9344 PACKET_VERSION >= 20161103
9345ID_CZ_ITEMLISTWIN_RES = 0x0964
9346#elif CLIENT_TYPE == 'Z' && ( \
9347 PACKET_VERSION == 20190814 \
9348 || PACKET_VERSION == 20190724 \
9349 || PACKET_VERSION == 20190717 \
9350 || PACKET_VERSION == 20190710 \
9351 || PACKET_VERSION == 20190709 \
9352 || PACKET_VERSION == 20190605 \
9353 || PACKET_VERSION == 20190530 \
9354 || PACKET_VERSION == 20190515 \
9355 || PACKET_VERSION == 20190508 \
9356 || PACKET_VERSION == 20190502 \
9357 || PACKET_VERSION == 20190424 \
9358 || PACKET_VERSION == 20190410 \
9359 || PACKET_VERSION == 20190403 \
9360 || PACKET_VERSION == 20190313 \
9361 || PACKET_VERSION == 20190227 \
9362 || PACKET_VERSION == 20190213 \
9363 || PACKET_VERSION == 20190117 \
9364 || PACKET_VERSION == 20181226 \
9365 || PACKET_VERSION == 20181219 \
9366 || PACKET_VERSION == 20181212 \
9367 || PACKET_VERSION == 20181128 \
9368 || PACKET_VERSION == 20181120 \
9369 || PACKET_VERSION == 20180928 \
9370 || PACKET_VERSION == 20180912 \
9371 || PACKET_VERSION == 20180829 \
9372 || PACKET_VERSION >= 20180808 \
9373 || PACKET_VERSION >= 20180801 \
9374 || PACKET_VERSION >= 20180711 \
9375 || PACKET_VERSION >= 20180703 \
9376 || PACKET_VERSION >= 20180627 \
9377 || PACKET_VERSION >= 20180509 \
9378 || PACKET_VERSION >= 20180411 \
9379 || PACKET_VERSION >= 20180321 \
9380 || PACKET_VERSION >= 20171113 \
9381 || PACKET_VERSION >= 20171031 \
9382 || PACKET_VERSION >= 20171030 \
9383 || PACKET_VERSION >= 20171027 \
9384 || PACKET_VERSION >= 20171025 \
9385 || PACKET_VERSION >= 20171024 \
9386 || PACKET_VERSION >= 20171023 \
9387 || PACKET_VERSION >= 20171019)
9388ID_CZ_ITEMLISTWIN_RES = 0x07e4
9389#elif CLIENT_TYPE == 'Z' && ( \
9390 PACKET_VERSION == 20180309 \
9391 || PACKET_VERSION == 20180307 \
9392 || PACKET_VERSION == 20171128 \
9393 || PACKET_VERSION == 20171117 \
9394 || PACKET_VERSION == 20171116)
9395ID_CZ_ITEMLISTWIN_RES = 0x0281
9396#elif CLIENT_TYPE == 'Z' && \
9397 PACKET_VERSION >= 20171122
9398ID_CZ_ITEMLISTWIN_RES = 0x0363
9399#elif CLIENT_TYPE == 'Z' && ( \
9400 PACKET_VERSION == 20171213 \
9401 || PACKET_VERSION == 20171212 \
9402 || PACKET_VERSION == 20171211 \
9403 || PACKET_VERSION == 20171210 \
9404 || PACKET_VERSION == 20171209 \
9405 || PACKET_VERSION == 20171208)
9406ID_CZ_ITEMLISTWIN_RES = 0x093a
9407#elif CLIENT_TYPE == 'Z' && \
9408 PACKET_VERSION >= 20171221
9409ID_CZ_ITEMLISTWIN_RES = 0x08a3
9410#elif CLIENT_TYPE == 'Z' && ( \
9411 PACKET_VERSION >= 20220000 \
9412 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
9413 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
9414 || PACKET_VERSION >= 20171229)
9415ID_CZ_ITEMLISTWIN_RES = 0x0968
9416#else
9417ID_CZ_ITEMLISTWIN_RES = 0x0000 // Disabled
9418#endif
9424class CZ_ITEMLISTWIN_RES : public Base::NetworkPacket<ZoneSession>
9425{
9426public:
9427 CZ_ITEMLISTWIN_RES(std::shared_ptr<ZoneSession> s)
9429 {}
9431
9432 void handle(ByteBuffer &&buf);
9433 void deserialize(ByteBuffer &buf);
9434
9435/* Structure */
9436};
9437
9438enum {
9439#if CLIENT_TYPE == 'A' && \
9440 PACKET_VERSION >= 20040000
9441ID_CZ_ITEM_CREATE = 0x013f
9442#elif CLIENT_TYPE == 'M' && ( \
9443 PACKET_VERSION >= 20220000 \
9444 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
9445 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
9446 || (PACKET_VERSION >= 20030000 && PACKET_VERSION < 20200000))
9447ID_CZ_ITEM_CREATE = 0x013f
9448#elif CLIENT_TYPE == 'R' && ( \
9449 PACKET_VERSION >= 20210000 \
9450 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
9451 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
9452ID_CZ_ITEM_CREATE = 0x013f
9453#elif CLIENT_TYPE == 'S' && \
9454 PACKET_VERSION >= 20030000
9455ID_CZ_ITEM_CREATE = 0x013f
9456#elif CLIENT_TYPE == 'Z' && ( \
9457 PACKET_VERSION >= 20220000 \
9458 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
9459 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
9460 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
9461ID_CZ_ITEM_CREATE = 0x013f
9462#else
9463ID_CZ_ITEM_CREATE = 0x0000 // Disabled
9464#endif
9470class CZ_ITEM_CREATE : public Base::NetworkPacket<ZoneSession>
9471{
9472public:
9473 CZ_ITEM_CREATE(std::shared_ptr<ZoneSession> s)
9475 {}
9476 virtual ~CZ_ITEM_CREATE() {}
9477
9478 void handle(ByteBuffer &&buf);
9479 void deserialize(ByteBuffer &buf);
9480
9481/* Structure */
9483};
9484
9485enum {
9486#if CLIENT_TYPE == 'M' && ( \
9487 PACKET_VERSION >= 20220000 \
9488 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
9489 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
9490 || PACKET_VERSION >= 20130814)
9491ID_CZ_ITEM_CREATE_EX = 0x09ce
9492#elif CLIENT_TYPE == 'R' && ( \
9493 PACKET_VERSION >= 20210000 \
9494 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
9495 || PACKET_VERSION >= 20130814)
9496ID_CZ_ITEM_CREATE_EX = 0x09ce
9497#elif CLIENT_TYPE == 'Z' && ( \
9498 PACKET_VERSION >= 20220000 \
9499 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
9500 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
9501 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
9502ID_CZ_ITEM_CREATE_EX = 0x09ce
9503#else
9504ID_CZ_ITEM_CREATE_EX = 0x0000 // Disabled
9505#endif
9511class CZ_ITEM_CREATE_EX : public Base::NetworkPacket<ZoneSession>
9512{
9513public:
9514 CZ_ITEM_CREATE_EX(std::shared_ptr<ZoneSession> s)
9516 {}
9518
9519 void handle(ByteBuffer &&buf);
9520 void deserialize(ByteBuffer &buf);
9521
9522/* Structure */
9524};
9525
9526enum {
9527#if CLIENT_TYPE == 'A' && \
9528 PACKET_VERSION >= 20041129
9529ID_CZ_ITEM_PICKUP = 0x009f
9530#elif CLIENT_TYPE == 'M' && ( \
9531 PACKET_VERSION == 20150130 \
9532 || PACKET_VERSION == 20150129)
9533ID_CZ_ITEM_PICKUP = 0x08ab
9534#elif CLIENT_TYPE == 'M' && ( \
9535 PACKET_VERSION == 20140613 \
9536 || PACKET_VERSION == 20140612)
9537ID_CZ_ITEM_PICKUP = 0x0878
9538#elif CLIENT_TYPE == 'M' && ( \
9539 PACKET_VERSION >= 20220000 \
9540 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
9541 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
9542 || PACKET_VERSION >= 20130116)
9543ID_CZ_ITEM_PICKUP = 0x094c
9544#elif CLIENT_TYPE == 'M' && ( \
9545 PACKET_VERSION == 20160318 \
9546 || PACKET_VERSION == 20151029 \
9547 || PACKET_VERSION == 20151022 \
9548 || PACKET_VERSION == 20150812 \
9549 || PACKET_VERSION >= 20141016 \
9550 || PACKET_VERSION >= 20130107)
9551ID_CZ_ITEM_PICKUP = 0x07e4
9552#elif CLIENT_TYPE == 'M' && \
9553 PACKET_VERSION >= 20120926
9554ID_CZ_ITEM_PICKUP = 0x0923
9555#elif CLIENT_TYPE == 'M' && ( \
9556 PACKET_VERSION == 20160609 \
9557 || PACKET_VERSION == 20160526 \
9558 || PACKET_VERSION >= 20120712)
9559ID_CZ_ITEM_PICKUP = 0x0899
9560#elif CLIENT_TYPE == 'M' && \
9561 PACKET_VERSION >= 20030000
9562ID_CZ_ITEM_PICKUP = 0x009f
9563#elif CLIENT_TYPE == 'M' && ( \
9564 PACKET_VERSION == 20131108 \
9565 || PACKET_VERSION == 20131107)
9566ID_CZ_ITEM_PICKUP = 0x093b
9567#elif CLIENT_TYPE == 'M' && \
9568 PACKET_VERSION >= 20140814
9569ID_CZ_ITEM_PICKUP = 0x08a3
9570#elif CLIENT_TYPE == 'M' && \
9571 PACKET_VERSION >= 20150226
9572ID_CZ_ITEM_PICKUP = 0x0817
9573#elif CLIENT_TYPE == 'M' && \
9574 PACKET_VERSION >= 20150618
9575ID_CZ_ITEM_PICKUP = 0x0360
9576#elif CLIENT_TYPE == 'M' && \
9577 PACKET_VERSION >= 20150702
9578ID_CZ_ITEM_PICKUP = 0x0946
9579#elif CLIENT_TYPE == 'M' && \
9580 PACKET_VERSION >= 20160630
9581ID_CZ_ITEM_PICKUP = 0x0969
9582#elif CLIENT_TYPE == 'M' && \
9583 PACKET_VERSION >= 20161103
9584ID_CZ_ITEM_PICKUP = 0x0802
9585#elif CLIENT_TYPE == 'M' && \
9586 PACKET_VERSION >= 20180131
9587ID_CZ_ITEM_PICKUP = 0x094d
9588#elif CLIENT_TYPE == 'M' && \
9589 PACKET_VERSION >= 20180309
9590ID_CZ_ITEM_PICKUP = 0x0954
9591#elif CLIENT_TYPE == 'M' && ( \
9592 PACKET_VERSION == 20190821 \
9593 || PACKET_VERSION == 20190807 \
9594 || PACKET_VERSION == 20190802 \
9595 || PACKET_VERSION == 20190731 \
9596 || PACKET_VERSION == 20190724 \
9597 || PACKET_VERSION == 20190717 \
9598 || PACKET_VERSION == 20190703 \
9599 || PACKET_VERSION == 20190605 \
9600 || PACKET_VERSION == 20190530 \
9601 || PACKET_VERSION == 20190523 \
9602 || PACKET_VERSION == 20190522 \
9603 || PACKET_VERSION == 20190508 \
9604 || PACKET_VERSION == 20190418 \
9605 || PACKET_VERSION == 20190417 \
9606 || PACKET_VERSION == 20190327 \
9607 || PACKET_VERSION == 20190322 \
9608 || PACKET_VERSION == 20190320 \
9609 || PACKET_VERSION == 20190313 \
9610 || PACKET_VERSION == 20190306 \
9611 || PACKET_VERSION == 20190228 \
9612 || PACKET_VERSION == 20190123 \
9613 || PACKET_VERSION == 20190116 \
9614 || PACKET_VERSION == 20181226 \
9615 || PACKET_VERSION == 20181219 \
9616 || PACKET_VERSION == 20181212 \
9617 || PACKET_VERSION == 20181205 \
9618 || PACKET_VERSION == 20181128 \
9619 || PACKET_VERSION == 20181114 \
9620 || PACKET_VERSION == 20181107 \
9621 || PACKET_VERSION == 20181024 \
9622 || PACKET_VERSION == 20180919 \
9623 || PACKET_VERSION == 20180831 \
9624 || PACKET_VERSION == 20180822 \
9625 || PACKET_VERSION >= 20180808 \
9626 || PACKET_VERSION >= 20180718 \
9627 || PACKET_VERSION >= 20180704 \
9628 || PACKET_VERSION >= 20180621 \
9629 || PACKET_VERSION >= 20180620 \
9630 || PACKET_VERSION >= 20180530 \
9631 || PACKET_VERSION >= 20180523 \
9632 || PACKET_VERSION >= 20180516 \
9633 || PACKET_VERSION >= 20180509 \
9634 || PACKET_VERSION >= 20180502 \
9635 || PACKET_VERSION >= 20180425 \
9636 || PACKET_VERSION >= 20180404 \
9637 || PACKET_VERSION >= 20180328 \
9638 || PACKET_VERSION >= 20180321)
9639ID_CZ_ITEM_PICKUP = 0x0362
9640#elif CLIENT_TYPE == 'R' && \
9641 PACKET_VERSION >= 20080000
9642ID_CZ_ITEM_PICKUP = 0x009f
9643#elif CLIENT_TYPE == 'R' && \
9644 PACKET_VERSION >= 20120712
9645ID_CZ_ITEM_PICKUP = 0x0899
9646#elif CLIENT_TYPE == 'R' && ( \
9647 PACKET_VERSION >= 20210000 \
9648 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
9649 || PACKET_VERSION >= 20120926)
9650ID_CZ_ITEM_PICKUP = 0x0923
9651#elif CLIENT_TYPE == 'R' && \
9652 PACKET_VERSION >= 20121011
9653ID_CZ_ITEM_PICKUP = 0x0869
9654#elif CLIENT_TYPE == 'R' && \
9655 PACKET_VERSION >= 20130116
9656ID_CZ_ITEM_PICKUP = 0x094c
9657#elif CLIENT_TYPE == 'R' && ( \
9658 PACKET_VERSION == 20151029 \
9659 || PACKET_VERSION == 20151022 \
9660 || PACKET_VERSION == 20150812 \
9661 || PACKET_VERSION >= 20141016)
9662ID_CZ_ITEM_PICKUP = 0x07e4
9663#elif CLIENT_TYPE == 'R' && \
9664 PACKET_VERSION >= 20150226
9665ID_CZ_ITEM_PICKUP = 0x0817
9666#elif CLIENT_TYPE == 'R' && \
9667 PACKET_VERSION >= 20150618
9668ID_CZ_ITEM_PICKUP = 0x0360
9669#elif CLIENT_TYPE == 'R' && \
9670 PACKET_VERSION >= 20160630
9671ID_CZ_ITEM_PICKUP = 0x0969
9672#elif CLIENT_TYPE == 'R' && \
9673 PACKET_VERSION >= 20161103
9674ID_CZ_ITEM_PICKUP = 0x0802
9675#elif CLIENT_TYPE == 'R' && ( \
9676 PACKET_VERSION == 20190821 \
9677 || PACKET_VERSION == 20190807 \
9678 || PACKET_VERSION == 20190802 \
9679 || PACKET_VERSION == 20190731 \
9680 || PACKET_VERSION == 20190724 \
9681 || PACKET_VERSION == 20190717 \
9682 || PACKET_VERSION == 20190703 \
9683 || PACKET_VERSION == 20190626 \
9684 || PACKET_VERSION == 20190605 \
9685 || PACKET_VERSION == 20190530 \
9686 || PACKET_VERSION == 20190522 \
9687 || PACKET_VERSION == 20190508 \
9688 || PACKET_VERSION == 20190418 \
9689 || PACKET_VERSION == 20190417 \
9690 || PACKET_VERSION == 20190327 \
9691 || PACKET_VERSION == 20190322 \
9692 || PACKET_VERSION == 20190320 \
9693 || PACKET_VERSION == 20190306 \
9694 || PACKET_VERSION == 20190228 \
9695 || PACKET_VERSION == 20190123 \
9696 || PACKET_VERSION == 20190116 \
9697 || PACKET_VERSION == 20181226 \
9698 || PACKET_VERSION == 20181219 \
9699 || PACKET_VERSION == 20181212 \
9700 || PACKET_VERSION == 20181205 \
9701 || PACKET_VERSION == 20181128 \
9702 || PACKET_VERSION == 20181121 \
9703 || PACKET_VERSION == 20181114 \
9704 || PACKET_VERSION == 20181107 \
9705 || PACKET_VERSION == 20180822 \
9706 || PACKET_VERSION >= 20180808 \
9707 || PACKET_VERSION >= 20180718 \
9708 || PACKET_VERSION >= 20180711 \
9709 || PACKET_VERSION >= 20180621 \
9710 || PACKET_VERSION >= 20180620 \
9711 || PACKET_VERSION >= 20180612 \
9712 || PACKET_VERSION >= 20180530 \
9713 || PACKET_VERSION >= 20180523 \
9714 || PACKET_VERSION >= 20180516 \
9715 || PACKET_VERSION >= 20180502 \
9716 || PACKET_VERSION >= 20180425 \
9717 || PACKET_VERSION >= 20180404 \
9718 || PACKET_VERSION >= 20180328)
9719ID_CZ_ITEM_PICKUP = 0x0362
9720#elif CLIENT_TYPE == 'S' && \
9721 PACKET_VERSION >= 20030000
9722ID_CZ_ITEM_PICKUP = 0x009f
9723#elif CLIENT_TYPE == 'Z' && \
9724 PACKET_VERSION >= 20170000
9725ID_CZ_ITEM_PICKUP = 0x009f
9726#elif CLIENT_TYPE == 'Z' && ( \
9727 PACKET_VERSION == 20190814 \
9728 || PACKET_VERSION == 20190724 \
9729 || PACKET_VERSION == 20190717 \
9730 || PACKET_VERSION == 20190710 \
9731 || PACKET_VERSION == 20190709 \
9732 || PACKET_VERSION == 20190605 \
9733 || PACKET_VERSION == 20190530 \
9734 || PACKET_VERSION == 20190515 \
9735 || PACKET_VERSION == 20190508 \
9736 || PACKET_VERSION == 20190502 \
9737 || PACKET_VERSION == 20190424 \
9738 || PACKET_VERSION == 20190410 \
9739 || PACKET_VERSION == 20190403 \
9740 || PACKET_VERSION == 20190313 \
9741 || PACKET_VERSION == 20190227 \
9742 || PACKET_VERSION == 20190213 \
9743 || PACKET_VERSION == 20190117 \
9744 || PACKET_VERSION == 20181226 \
9745 || PACKET_VERSION == 20181219 \
9746 || PACKET_VERSION == 20181212 \
9747 || PACKET_VERSION == 20181128 \
9748 || PACKET_VERSION == 20181120 \
9749 || PACKET_VERSION == 20180928 \
9750 || PACKET_VERSION == 20180912 \
9751 || PACKET_VERSION == 20180829 \
9752 || PACKET_VERSION >= 20180808 \
9753 || PACKET_VERSION >= 20180801 \
9754 || PACKET_VERSION >= 20180711 \
9755 || PACKET_VERSION >= 20180703 \
9756 || PACKET_VERSION >= 20180627 \
9757 || PACKET_VERSION >= 20180509 \
9758 || PACKET_VERSION >= 20180411 \
9759 || PACKET_VERSION >= 20180321 \
9760 || PACKET_VERSION >= 20171113 \
9761 || PACKET_VERSION >= 20171031 \
9762 || PACKET_VERSION >= 20171030 \
9763 || PACKET_VERSION >= 20171027 \
9764 || PACKET_VERSION >= 20171025 \
9765 || PACKET_VERSION >= 20171024 \
9766 || PACKET_VERSION >= 20171023 \
9767 || PACKET_VERSION >= 20171019)
9768ID_CZ_ITEM_PICKUP = 0x0362
9769#elif CLIENT_TYPE == 'Z' && ( \
9770 PACKET_VERSION == 20180309 \
9771 || PACKET_VERSION == 20180307 \
9772 || PACKET_VERSION == 20171128 \
9773 || PACKET_VERSION == 20171117 \
9774 || PACKET_VERSION == 20171116)
9775ID_CZ_ITEM_PICKUP = 0x07e4
9776#elif CLIENT_TYPE == 'Z' && ( \
9777 PACKET_VERSION >= 20220000 \
9778 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
9779 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
9780 || PACKET_VERSION >= 20171122)
9781ID_CZ_ITEM_PICKUP = 0x0918
9782#elif CLIENT_TYPE == 'Z' && ( \
9783 PACKET_VERSION == 20171213 \
9784 || PACKET_VERSION == 20171212 \
9785 || PACKET_VERSION == 20171211 \
9786 || PACKET_VERSION == 20171210 \
9787 || PACKET_VERSION == 20171209 \
9788 || PACKET_VERSION == 20171208)
9789ID_CZ_ITEM_PICKUP = 0x0835
9790#elif CLIENT_TYPE == 'Z' && \
9791 PACKET_VERSION >= 20171221
9792ID_CZ_ITEM_PICKUP = 0x086c
9793#elif CLIENT_TYPE == 'Z' && \
9794 PACKET_VERSION >= 20171229
9795ID_CZ_ITEM_PICKUP = 0x0878
9796#else
9797ID_CZ_ITEM_PICKUP = 0x0000 // Disabled
9798#endif
9804class CZ_ITEM_PICKUP : public Base::NetworkPacket<ZoneSession>
9805{
9806public:
9807 CZ_ITEM_PICKUP(std::shared_ptr<ZoneSession> s)
9809 {}
9810 virtual ~CZ_ITEM_PICKUP() {}
9811
9812 void handle(ByteBuffer &&buf);
9813 void deserialize(ByteBuffer &buf);
9814
9815/* Structure */
9816 int _guid{ 0 };
9817};
9818
9819enum {
9820#if CLIENT_TYPE == 'A' && \
9821 PACKET_VERSION >= 20080701
9822ID_CZ_ITEM_PICKUP2 = 0x0362
9823#elif CLIENT_TYPE == 'M' && ( \
9824 PACKET_VERSION >= 20220000 \
9825 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
9826 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
9827 || (PACKET_VERSION >= 20190000 && PACKET_VERSION < 20200000) \
9828 || PACKET_VERSION >= 20180315 \
9829 || PACKET_VERSION >= 20180213 \
9830 || PACKET_VERSION >= 20180207 \
9831 || PACKET_VERSION >= 20180124 \
9832 || PACKET_VERSION >= 20180117 \
9833 || PACKET_VERSION >= 20180103 \
9834 || PACKET_VERSION >= 20171220 \
9835 || PACKET_VERSION >= 20171213 \
9836 || PACKET_VERSION >= 20171101 \
9837 || PACKET_VERSION >= 20171025 \
9838 || PACKET_VERSION >= 20171018 \
9839 || PACKET_VERSION >= 20171011 \
9840 || PACKET_VERSION >= 20171002 \
9841 || PACKET_VERSION >= 20170927 \
9842 || PACKET_VERSION >= 20170830 \
9843 || PACKET_VERSION >= 20170823 \
9844 || PACKET_VERSION >= 20170816 \
9845 || PACKET_VERSION >= 20170809 \
9846 || PACKET_VERSION >= 20170801 \
9847 || PACKET_VERSION >= 20170719 \
9848 || PACKET_VERSION >= 20170712 \
9849 || PACKET_VERSION >= 20170705 \
9850 || PACKET_VERSION >= 20170628 \
9851 || PACKET_VERSION >= 20170517 \
9852 || PACKET_VERSION >= 20170502 \
9853 || PACKET_VERSION >= 20170412 \
9854 || PACKET_VERSION >= 20170405 \
9855 || PACKET_VERSION >= 20170329 \
9856 || PACKET_VERSION >= 20170322 \
9857 || PACKET_VERSION >= 20170315 \
9858 || PACKET_VERSION >= 20170308 \
9859 || PACKET_VERSION >= 20170228 \
9860 || PACKET_VERSION >= 20170111 \
9861 || PACKET_VERSION >= 20170104 \
9862 || PACKET_VERSION >= 20161228 \
9863 || PACKET_VERSION >= 20161221 \
9864 || PACKET_VERSION >= 20161207 \
9865 || PACKET_VERSION >= 20161130 \
9866 || PACKET_VERSION >= 20161123 \
9867 || PACKET_VERSION >= 20161116 \
9868 || PACKET_VERSION >= 20161109 \
9869 || PACKET_VERSION >= 20161026 \
9870 || PACKET_VERSION >= 20161012 \
9871 || PACKET_VERSION >= 20160928 \
9872 || PACKET_VERSION >= 20160921 \
9873 || PACKET_VERSION >= 20160913 \
9874 || PACKET_VERSION >= 20160907 \
9875 || PACKET_VERSION >= 20160831 \
9876 || PACKET_VERSION >= 20160824 \
9877 || PACKET_VERSION >= 20160803 \
9878 || PACKET_VERSION >= 20160727 \
9879 || PACKET_VERSION >= 20160720 \
9880 || PACKET_VERSION >= 20160713 \
9881 || PACKET_VERSION >= 20160706 \
9882 || PACKET_VERSION >= 20160525 \
9883 || PACKET_VERSION >= 20160511 \
9884 || PACKET_VERSION >= 20160504 \
9885 || PACKET_VERSION >= 20160427 \
9886 || PACKET_VERSION >= 20160420 \
9887 || PACKET_VERSION >= 20160414 \
9888 || PACKET_VERSION >= 20160323 \
9889 || PACKET_VERSION >= 20160316 \
9890 || PACKET_VERSION >= 20160224 \
9891 || PACKET_VERSION >= 20160217 \
9892 || PACKET_VERSION >= 20160211 \
9893 || PACKET_VERSION >= 20160203 \
9894 || PACKET_VERSION >= 20160120 \
9895 || PACKET_VERSION >= 20160106 \
9896 || PACKET_VERSION >= 20151230 \
9897 || PACKET_VERSION >= 20151223 \
9898 || PACKET_VERSION >= 20151216 \
9899 || PACKET_VERSION >= 20151209 \
9900 || PACKET_VERSION >= 20151202 \
9901 || PACKET_VERSION >= 20151118 \
9902 || PACKET_VERSION >= 20151111 \
9903 || PACKET_VERSION >= 20151104 \
9904 || PACKET_VERSION >= 20151021 \
9905 || PACKET_VERSION >= 20151014 \
9906 || PACKET_VERSION >= 20151001 \
9907 || PACKET_VERSION >= 20150902 \
9908 || PACKET_VERSION >= 20150826 \
9909 || PACKET_VERSION >= 20150819 \
9910 || PACKET_VERSION >= 20150805 \
9911 || PACKET_VERSION >= 20150722 \
9912 || PACKET_VERSION >= 20150715 \
9913 || PACKET_VERSION >= 20150701 \
9914 || PACKET_VERSION >= 20150617 \
9915 || PACKET_VERSION >= 20150603 \
9916 || PACKET_VERSION >= 20150527 \
9917 || PACKET_VERSION >= 20150429 \
9918 || PACKET_VERSION >= 20150422 \
9919 || PACKET_VERSION >= 20150408 \
9920 || PACKET_VERSION >= 20150401 \
9921 || PACKET_VERSION >= 20150311 \
9922 || PACKET_VERSION >= 20150304 \
9923 || PACKET_VERSION >= 20150225 \
9924 || PACKET_VERSION >= 20150217 \
9925 || PACKET_VERSION >= 20150211 \
9926 || PACKET_VERSION >= 20150204 \
9927 || PACKET_VERSION >= 20150121 \
9928 || PACKET_VERSION >= 20150107 \
9929 || PACKET_VERSION >= 20141231 \
9930 || PACKET_VERSION >= 20141210 \
9931 || PACKET_VERSION >= 20141203 \
9932 || PACKET_VERSION >= 20141119 \
9933 || PACKET_VERSION >= 20141112 \
9934 || PACKET_VERSION >= 20141105 \
9935 || PACKET_VERSION >= 20141029 \
9936 || PACKET_VERSION >= 20141022 \
9937 || PACKET_VERSION >= 20141008 \
9938 || PACKET_VERSION >= 20140917 \
9939 || PACKET_VERSION >= 20140827 \
9940 || PACKET_VERSION >= 20140813 \
9941 || PACKET_VERSION >= 20140806 \
9942 || PACKET_VERSION >= 20140723 \
9943 || PACKET_VERSION >= 20140716 \
9944 || PACKET_VERSION >= 20140611 \
9945 || PACKET_VERSION >= 20140605 \
9946 || PACKET_VERSION >= 20140528 \
9947 || PACKET_VERSION >= 20140521 \
9948 || PACKET_VERSION >= 20140508 \
9949 || PACKET_VERSION >= 20140423 \
9950 || PACKET_VERSION >= 20140416 \
9951 || PACKET_VERSION >= 20140402 \
9952 || PACKET_VERSION >= 20140326 \
9953 || PACKET_VERSION >= 20140312 \
9954 || PACKET_VERSION >= 20140305 \
9955 || PACKET_VERSION >= 20140226 \
9956 || PACKET_VERSION >= 20140212 \
9957 || PACKET_VERSION >= 20140205 \
9958 || PACKET_VERSION >= 20140115 \
9959 || PACKET_VERSION >= 20140108 \
9960 || PACKET_VERSION >= 20131230 \
9961 || PACKET_VERSION >= 20131218 \
9962 || PACKET_VERSION >= 20131211 \
9963 || PACKET_VERSION >= 20131106 \
9964 || PACKET_VERSION >= 20131030 \
9965 || PACKET_VERSION >= 20131016 \
9966 || PACKET_VERSION >= 20131008 \
9967 || PACKET_VERSION >= 20131002 \
9968 || PACKET_VERSION >= 20130911 \
9969 || PACKET_VERSION >= 20130904 \
9970 || PACKET_VERSION >= 20130814 \
9971 || PACKET_VERSION >= 20130807 \
9972 || PACKET_VERSION >= 20130717 \
9973 || PACKET_VERSION >= 20130703 \
9974 || PACKET_VERSION >= 20130618 \
9975 || PACKET_VERSION >= 20130605 \
9976 || PACKET_VERSION >= 20130529 \
9977 || PACKET_VERSION >= 20130522 \
9978 || PACKET_VERSION >= 20130515 \
9979 || PACKET_VERSION >= 20130502 \
9980 || PACKET_VERSION >= 20130417 \
9981 || PACKET_VERSION >= 20130410 \
9982 || PACKET_VERSION >= 20130403 \
9983 || PACKET_VERSION >= 20130320 \
9984 || PACKET_VERSION >= 20130313 \
9985 || PACKET_VERSION >= 20130227 \
9986 || PACKET_VERSION >= 20130220 \
9987 || PACKET_VERSION >= 20130215 \
9988 || PACKET_VERSION >= 20130206 \
9989 || PACKET_VERSION >= 20130130 \
9990 || PACKET_VERSION >= 20130109 \
9991 || PACKET_VERSION >= 20130103 \
9992 || PACKET_VERSION >= 20121227 \
9993 || PACKET_VERSION >= 20121218 \
9994 || PACKET_VERSION >= 20121212 \
9995 || PACKET_VERSION >= 20121205 \
9996 || PACKET_VERSION >= 20121128 \
9997 || PACKET_VERSION >= 20121107 \
9998 || PACKET_VERSION >= 20121031 \
9999 || PACKET_VERSION >= 20120925 \
10000 || PACKET_VERSION >= 20120919 \
10001 || PACKET_VERSION >= 20120814 \
10002 || PACKET_VERSION >= 20120808 \
10003 || PACKET_VERSION >= 20120724 \
10004 || PACKET_VERSION >= 20120716 \
10005 || PACKET_VERSION >= 20120710 \
10006 || PACKET_VERSION >= 20120626 \
10007 || PACKET_VERSION >= 20120612 \
10008 || PACKET_VERSION >= 20120604 \
10009 || PACKET_VERSION >= 20120529 \
10010 || PACKET_VERSION >= 20120508 \
10011 || PACKET_VERSION >= 20120503 \
10012 || PACKET_VERSION >= 20120424 \
10013 || PACKET_VERSION >= 20120417 \
10014 || PACKET_VERSION >= 20120410 \
10015 || PACKET_VERSION >= 20120404 \
10016 || PACKET_VERSION >= 20120328 \
10017 || PACKET_VERSION >= 20120320 \
10018 || PACKET_VERSION >= 20120214 \
10019 || PACKET_VERSION >= 20120207 \
10020 || PACKET_VERSION >= 20120131 \
10021 || PACKET_VERSION >= 20120120 \
10022 || PACKET_VERSION >= 20120117 \
10023 || PACKET_VERSION >= 20120103 \
10024 || PACKET_VERSION >= 20111213 \
10025 || PACKET_VERSION >= 20111207 \
10026 || PACKET_VERSION >= 20111122 \
10027 || PACKET_VERSION >= 20111017 \
10028 || PACKET_VERSION >= 20111010 \
10029 || PACKET_VERSION >= 20111004 \
10030 || PACKET_VERSION >= 20110928 \
10031 || PACKET_VERSION >= 20110920 \
10032 || PACKET_VERSION >= 20110906 \
10033 || PACKET_VERSION >= 20110831 \
10034 || PACKET_VERSION >= 20110823 \
10035 || PACKET_VERSION >= 20110816 \
10036 || PACKET_VERSION >= 20110809 \
10037 || PACKET_VERSION >= 20110802 \
10038 || PACKET_VERSION >= 20110726 \
10039 || PACKET_VERSION >= 20110620 \
10040 || PACKET_VERSION >= 20110607 \
10041 || PACKET_VERSION >= 20110531 \
10042 || PACKET_VERSION >= 20110523 \
10043 || PACKET_VERSION >= 20110517 \
10044 || PACKET_VERSION >= 20110511 \
10045 || PACKET_VERSION >= 20110426 \
10046 || PACKET_VERSION >= 20110419 \
10047 || PACKET_VERSION >= 20110412 \
10048 || PACKET_VERSION >= 20110405 \
10049 || PACKET_VERSION >= 20110329 \
10050 || PACKET_VERSION >= 20110322 \
10051 || PACKET_VERSION >= 20110315 \
10052 || PACKET_VERSION >= 20110308 \
10053 || PACKET_VERSION >= 20110208 \
10054 || PACKET_VERSION >= 20110131 \
10055 || PACKET_VERSION >= 20110125 \
10056 || PACKET_VERSION >= 20110118 \
10057 || PACKET_VERSION >= 20110104 \
10058 || PACKET_VERSION >= 20101221 \
10059 || PACKET_VERSION >= 20101214 \
10060 || PACKET_VERSION >= 20101207 \
10061 || PACKET_VERSION >= 20101130 \
10062 || PACKET_VERSION >= 20100105 \
10063 || PACKET_VERSION >= 20090318 \
10064 || PACKET_VERSION >= 20090225 \
10065 || PACKET_VERSION >= 20090218 \
10066 || PACKET_VERSION >= 20090211 \
10067 || PACKET_VERSION >= 20090204 \
10068 || PACKET_VERSION >= 20090120 \
10069 || PACKET_VERSION >= 20090114 \
10070 || PACKET_VERSION >= 20090107 \
10071 || PACKET_VERSION >= 20081112 \
10072 || PACKET_VERSION >= 20081105 \
10073 || PACKET_VERSION >= 20081029 \
10074 || PACKET_VERSION >= 20081022 \
10075 || PACKET_VERSION >= 20081008 \
10076 || PACKET_VERSION >= 20081001 \
10077 || PACKET_VERSION >= 20080903 \
10078 || PACKET_VERSION >= 20080827 \
10079 || PACKET_VERSION >= 20080820 \
10080 || PACKET_VERSION >= 20080813 \
10081 || PACKET_VERSION >= 20080806 \
10082 || PACKET_VERSION >= 20080730 \
10083 || PACKET_VERSION >= 20080722 \
10084 || PACKET_VERSION >= 20080715 \
10085 || PACKET_VERSION >= 20080708 \
10086 || PACKET_VERSION >= 20080701 \
10087 || PACKET_VERSION >= 20080624 \
10088 || PACKET_VERSION >= 20080528)
10089ID_CZ_ITEM_PICKUP2 = 0x0362
10090#elif CLIENT_TYPE == 'R' && ( \
10091 PACKET_VERSION >= 20210000 \
10092 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
10093 || (PACKET_VERSION >= 20190000 && PACKET_VERSION < 20200000) \
10094 || PACKET_VERSION >= 20180321 \
10095 || PACKET_VERSION >= 20180213 \
10096 || PACKET_VERSION >= 20180207 \
10097 || PACKET_VERSION >= 20180124 \
10098 || PACKET_VERSION >= 20180117 \
10099 || PACKET_VERSION >= 20180103 \
10100 || PACKET_VERSION >= 20171220 \
10101 || PACKET_VERSION >= 20171213 \
10102 || PACKET_VERSION >= 20171101 \
10103 || PACKET_VERSION >= 20171025 \
10104 || PACKET_VERSION >= 20171018 \
10105 || PACKET_VERSION >= 20171011 \
10106 || PACKET_VERSION >= 20171002 \
10107 || PACKET_VERSION >= 20170927 \
10108 || PACKET_VERSION >= 20170830 \
10109 || PACKET_VERSION >= 20170823 \
10110 || PACKET_VERSION >= 20170816 \
10111 || PACKET_VERSION >= 20170809 \
10112 || PACKET_VERSION >= 20170801 \
10113 || PACKET_VERSION >= 20170719 \
10114 || PACKET_VERSION >= 20170712 \
10115 || PACKET_VERSION >= 20170705 \
10116 || PACKET_VERSION >= 20170628 \
10117 || PACKET_VERSION >= 20170517 \
10118 || PACKET_VERSION >= 20170502 \
10119 || PACKET_VERSION >= 20170412 \
10120 || PACKET_VERSION >= 20170405 \
10121 || PACKET_VERSION >= 20170329 \
10122 || PACKET_VERSION >= 20170322 \
10123 || PACKET_VERSION >= 20170315 \
10124 || PACKET_VERSION >= 20170308 \
10125 || PACKET_VERSION >= 20170228 \
10126 || PACKET_VERSION >= 20170111 \
10127 || PACKET_VERSION >= 20170104 \
10128 || PACKET_VERSION >= 20161228 \
10129 || PACKET_VERSION >= 20161221 \
10130 || PACKET_VERSION >= 20161207 \
10131 || PACKET_VERSION >= 20161130 \
10132 || PACKET_VERSION >= 20161123 \
10133 || PACKET_VERSION >= 20161116 \
10134 || PACKET_VERSION >= 20161109 \
10135 || PACKET_VERSION >= 20161026 \
10136 || PACKET_VERSION >= 20161012 \
10137 || PACKET_VERSION >= 20160928 \
10138 || PACKET_VERSION >= 20160921 \
10139 || PACKET_VERSION >= 20160913 \
10140 || PACKET_VERSION >= 20160907 \
10141 || PACKET_VERSION >= 20160831 \
10142 || PACKET_VERSION >= 20160824 \
10143 || PACKET_VERSION >= 20160803 \
10144 || PACKET_VERSION >= 20160727 \
10145 || PACKET_VERSION >= 20160720 \
10146 || PACKET_VERSION >= 20160713 \
10147 || PACKET_VERSION >= 20160706 \
10148 || PACKET_VERSION >= 20160525 \
10149 || PACKET_VERSION >= 20160511 \
10150 || PACKET_VERSION >= 20160504 \
10151 || PACKET_VERSION >= 20160427 \
10152 || PACKET_VERSION >= 20160420 \
10153 || PACKET_VERSION >= 20160414 \
10154 || PACKET_VERSION >= 20160323 \
10155 || PACKET_VERSION >= 20160316 \
10156 || PACKET_VERSION >= 20160224 \
10157 || PACKET_VERSION >= 20160217 \
10158 || PACKET_VERSION >= 20160211 \
10159 || PACKET_VERSION >= 20160203 \
10160 || PACKET_VERSION >= 20160120 \
10161 || PACKET_VERSION >= 20160106 \
10162 || PACKET_VERSION >= 20151230 \
10163 || PACKET_VERSION >= 20151223 \
10164 || PACKET_VERSION >= 20151216 \
10165 || PACKET_VERSION >= 20151209 \
10166 || PACKET_VERSION >= 20151202 \
10167 || PACKET_VERSION >= 20151118 \
10168 || PACKET_VERSION >= 20151111 \
10169 || PACKET_VERSION >= 20151104 \
10170 || PACKET_VERSION >= 20151021 \
10171 || PACKET_VERSION >= 20151014 \
10172 || PACKET_VERSION >= 20151001 \
10173 || PACKET_VERSION >= 20150902 \
10174 || PACKET_VERSION >= 20150826 \
10175 || PACKET_VERSION >= 20150819 \
10176 || PACKET_VERSION >= 20150805 \
10177 || PACKET_VERSION >= 20150722 \
10178 || PACKET_VERSION >= 20150715 \
10179 || PACKET_VERSION >= 20150701 \
10180 || PACKET_VERSION >= 20150617 \
10181 || PACKET_VERSION >= 20150603 \
10182 || PACKET_VERSION >= 20150527 \
10183 || PACKET_VERSION >= 20150429 \
10184 || PACKET_VERSION >= 20150422 \
10185 || PACKET_VERSION >= 20150408 \
10186 || PACKET_VERSION >= 20150401 \
10187 || PACKET_VERSION >= 20150311 \
10188 || PACKET_VERSION >= 20150304 \
10189 || PACKET_VERSION >= 20150225 \
10190 || PACKET_VERSION >= 20150217 \
10191 || PACKET_VERSION >= 20150211 \
10192 || PACKET_VERSION >= 20150204 \
10193 || PACKET_VERSION >= 20150121 \
10194 || PACKET_VERSION >= 20150107 \
10195 || PACKET_VERSION >= 20141231 \
10196 || PACKET_VERSION >= 20141210 \
10197 || PACKET_VERSION >= 20141203 \
10198 || PACKET_VERSION >= 20141119 \
10199 || PACKET_VERSION >= 20141112 \
10200 || PACKET_VERSION >= 20141105 \
10201 || PACKET_VERSION >= 20141029 \
10202 || PACKET_VERSION >= 20141022 \
10203 || PACKET_VERSION >= 20141008 \
10204 || PACKET_VERSION >= 20140917 \
10205 || PACKET_VERSION >= 20140827 \
10206 || PACKET_VERSION >= 20140813 \
10207 || PACKET_VERSION >= 20140806 \
10208 || PACKET_VERSION >= 20140723 \
10209 || PACKET_VERSION >= 20140716 \
10210 || PACKET_VERSION >= 20140611 \
10211 || PACKET_VERSION >= 20140605 \
10212 || PACKET_VERSION >= 20140528 \
10213 || PACKET_VERSION >= 20140521 \
10214 || PACKET_VERSION >= 20140508 \
10215 || PACKET_VERSION >= 20140423 \
10216 || PACKET_VERSION >= 20140416 \
10217 || PACKET_VERSION >= 20140402 \
10218 || PACKET_VERSION >= 20140326 \
10219 || PACKET_VERSION >= 20140312 \
10220 || PACKET_VERSION >= 20140305 \
10221 || PACKET_VERSION >= 20140226 \
10222 || PACKET_VERSION >= 20140212 \
10223 || PACKET_VERSION >= 20140205 \
10224 || PACKET_VERSION >= 20140115 \
10225 || PACKET_VERSION >= 20140108 \
10226 || PACKET_VERSION >= 20131230 \
10227 || PACKET_VERSION >= 20131218 \
10228 || PACKET_VERSION >= 20131211 \
10229 || PACKET_VERSION >= 20131106 \
10230 || PACKET_VERSION >= 20131030 \
10231 || PACKET_VERSION >= 20131016 \
10232 || PACKET_VERSION >= 20131008 \
10233 || PACKET_VERSION >= 20131002 \
10234 || PACKET_VERSION >= 20130911 \
10235 || PACKET_VERSION >= 20130904 \
10236 || PACKET_VERSION >= 20130814 \
10237 || PACKET_VERSION >= 20130807 \
10238 || PACKET_VERSION >= 20130717 \
10239 || PACKET_VERSION >= 20130703 \
10240 || PACKET_VERSION >= 20130618 \
10241 || PACKET_VERSION >= 20130605 \
10242 || PACKET_VERSION >= 20130529 \
10243 || PACKET_VERSION >= 20130522 \
10244 || PACKET_VERSION >= 20130515 \
10245 || PACKET_VERSION >= 20130502 \
10246 || PACKET_VERSION >= 20130417 \
10247 || PACKET_VERSION >= 20130410 \
10248 || PACKET_VERSION >= 20130403 \
10249 || PACKET_VERSION >= 20130320 \
10250 || PACKET_VERSION >= 20130313 \
10251 || PACKET_VERSION >= 20130227 \
10252 || PACKET_VERSION >= 20130220 \
10253 || PACKET_VERSION >= 20130215 \
10254 || PACKET_VERSION >= 20130206 \
10255 || PACKET_VERSION >= 20130130 \
10256 || PACKET_VERSION >= 20130109 \
10257 || PACKET_VERSION >= 20130103 \
10258 || PACKET_VERSION >= 20121227 \
10259 || PACKET_VERSION >= 20121218 \
10260 || PACKET_VERSION >= 20121212 \
10261 || PACKET_VERSION >= 20121205 \
10262 || PACKET_VERSION >= 20121128 \
10263 || PACKET_VERSION >= 20121107 \
10264 || PACKET_VERSION >= 20121031 \
10265 || PACKET_VERSION >= 20120925 \
10266 || PACKET_VERSION >= 20120919 \
10267 || PACKET_VERSION >= 20120814 \
10268 || PACKET_VERSION >= 20120808 \
10269 || PACKET_VERSION >= 20120724 \
10270 || PACKET_VERSION >= 20120716 \
10271 || PACKET_VERSION >= 20120710 \
10272 || PACKET_VERSION >= 20120626 \
10273 || PACKET_VERSION >= 20120612 \
10274 || PACKET_VERSION >= 20120601 \
10275 || PACKET_VERSION >= 20120529 \
10276 || PACKET_VERSION >= 20120508 \
10277 || PACKET_VERSION >= 20120502 \
10278 || PACKET_VERSION >= 20120424 \
10279 || PACKET_VERSION >= 20120417 \
10280 || PACKET_VERSION >= 20120410 \
10281 || PACKET_VERSION >= 20120404 \
10282 || PACKET_VERSION >= 20120328 \
10283 || PACKET_VERSION >= 20120320 \
10284 || PACKET_VERSION >= 20120214 \
10285 || PACKET_VERSION >= 20120207 \
10286 || PACKET_VERSION >= 20120131 \
10287 || PACKET_VERSION >= 20120120 \
10288 || PACKET_VERSION >= 20120117 \
10289 || PACKET_VERSION >= 20120103 \
10290 || PACKET_VERSION >= 20111213 \
10291 || PACKET_VERSION >= 20111207 \
10292 || PACKET_VERSION >= 20111122 \
10293 || PACKET_VERSION >= 20111017 \
10294 || PACKET_VERSION >= 20111010 \
10295 || PACKET_VERSION >= 20111004 \
10296 || PACKET_VERSION >= 20110928 \
10297 || PACKET_VERSION >= 20110920 \
10298 || PACKET_VERSION >= 20110906 \
10299 || PACKET_VERSION >= 20110831 \
10300 || PACKET_VERSION >= 20110823 \
10301 || PACKET_VERSION >= 20110104 \
10302 || PACKET_VERSION >= 20101123 \
10303 || PACKET_VERSION >= 20100105 \
10304 || (PACKET_VERSION >= 20090000 && PACKET_VERSION < 20100105) \
10305 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20090000))
10306ID_CZ_ITEM_PICKUP2 = 0x0362
10307#elif CLIENT_TYPE == 'S' && \
10308 PACKET_VERSION >= 20080527
10309ID_CZ_ITEM_PICKUP2 = 0x0362
10310#elif CLIENT_TYPE == 'Z' && ( \
10311 PACKET_VERSION >= 20220000 \
10312 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
10313 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
10314 || (PACKET_VERSION >= 20190000 && PACKET_VERSION < 20200000) \
10315 || PACKET_VERSION >= 20180523 \
10316 || PACKET_VERSION >= 20180511 \
10317 || PACKET_VERSION >= 20180315 \
10318 || PACKET_VERSION >= 20180314 \
10319 || PACKET_VERSION >= 20180221 \
10320 || PACKET_VERSION >= 20180213 \
10321 || PACKET_VERSION >= 20180131 \
10322 || PACKET_VERSION >= 20180103 \
10323 || PACKET_VERSION >= 20171130 \
10324 || PACKET_VERSION >= 20171127 \
10325 || PACKET_VERSION >= 20171123 \
10326 || PACKET_VERSION >= 20171018)
10327ID_CZ_ITEM_PICKUP2 = 0x0362
10328#else
10329ID_CZ_ITEM_PICKUP2 = 0x0000 // Disabled
10330#endif
10336class CZ_ITEM_PICKUP2 : public Base::NetworkPacket<ZoneSession>
10337{
10338public:
10339 CZ_ITEM_PICKUP2(std::shared_ptr<ZoneSession> s)
10341 {}
10342 virtual ~CZ_ITEM_PICKUP2() {}
10343
10344 void handle(ByteBuffer &&buf);
10345 void deserialize(ByteBuffer &buf);
10346
10347/* Structure */
10348 int _guid{ 0 };
10349};
10350
10351enum {
10352#if CLIENT_TYPE == 'A' && \
10353 PACKET_VERSION >= 20071120
10355#elif CLIENT_TYPE == 'M' && ( \
10356 PACKET_VERSION >= 20220000 \
10357 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
10358 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
10359 || PACKET_VERSION >= 20071120)
10361#elif CLIENT_TYPE == 'R' && ( \
10362 PACKET_VERSION >= 20210000 \
10363 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
10364 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
10366#elif CLIENT_TYPE == 'S' && \
10367 PACKET_VERSION >= 20071120
10369#elif CLIENT_TYPE == 'Z' && ( \
10370 PACKET_VERSION >= 20220000 \
10371 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
10372 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
10373 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
10375#else
10376ID_CZ_ITEM_PICKUP_NEW_JAPEN = 0x0000 // Disabled
10377#endif
10384{
10385public:
10386 CZ_ITEM_PICKUP_NEW_JAPEN(std::shared_ptr<ZoneSession> s)
10388 {}
10390
10391 void handle(ByteBuffer &&buf);
10392 void deserialize(ByteBuffer &buf);
10393
10394/* Structure */
10395};
10396
10397enum {
10398#if CLIENT_TYPE == 'M' && ( \
10399 PACKET_VERSION >= 20220000 \
10400 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
10401 || PACKET_VERSION >= 20200916)
10402ID_CZ_ITEM_REFORM = 0x0b91
10403#elif CLIENT_TYPE == 'R' && \
10404 PACKET_VERSION >= 20211103
10405ID_CZ_ITEM_REFORM = 0x0b91
10406#elif CLIENT_TYPE == 'Z' && ( \
10407 PACKET_VERSION >= 20220000 \
10408 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
10409 || PACKET_VERSION >= 20201118)
10410ID_CZ_ITEM_REFORM = 0x0b91
10411#else
10412ID_CZ_ITEM_REFORM = 0x0000 // Disabled
10413#endif
10419class CZ_ITEM_REFORM : public Base::NetworkPacket<ZoneSession>
10420{
10421public:
10422 CZ_ITEM_REFORM(std::shared_ptr<ZoneSession> s)
10424 {}
10425 virtual ~CZ_ITEM_REFORM() {}
10426
10427 void handle(ByteBuffer &&buf);
10428 void deserialize(ByteBuffer &buf);
10429
10430/* Structure */
10431};
10432
10433enum {
10434#if CLIENT_TYPE == 'A' && \
10435 PACKET_VERSION >= 20041129
10436ID_CZ_ITEM_THROW = 0x00a2
10437#elif CLIENT_TYPE == 'M' && \
10438 PACKET_VERSION >= 20030000
10439ID_CZ_ITEM_THROW = 0x00a2
10440#elif CLIENT_TYPE == 'M' && \
10441 PACKET_VERSION >= 20120712
10442ID_CZ_ITEM_THROW = 0x08a3
10443#elif CLIENT_TYPE == 'M' && \
10444 PACKET_VERSION >= 20120926
10445ID_CZ_ITEM_THROW = 0x087a
10446#elif CLIENT_TYPE == 'M' && ( \
10447 PACKET_VERSION == 20160318 \
10448 || PACKET_VERSION == 20151029 \
10449 || PACKET_VERSION == 20151022 \
10450 || PACKET_VERSION == 20150812 \
10451 || PACKET_VERSION >= 20141016 \
10452 || PACKET_VERSION >= 20130107)
10453ID_CZ_ITEM_THROW = 0x0362
10454#elif CLIENT_TYPE == 'M' && \
10455 PACKET_VERSION >= 20130116
10456ID_CZ_ITEM_THROW = 0x094e
10457#elif CLIENT_TYPE == 'M' && ( \
10458 PACKET_VERSION == 20131108 \
10459 || PACKET_VERSION == 20131107)
10460ID_CZ_ITEM_THROW = 0x0875
10461#elif CLIENT_TYPE == 'M' && ( \
10462 PACKET_VERSION == 20140613 \
10463 || PACKET_VERSION == 20140612)
10464ID_CZ_ITEM_THROW = 0x0963
10465#elif CLIENT_TYPE == 'M' && \
10466 PACKET_VERSION >= 20140814
10467ID_CZ_ITEM_THROW = 0x0899
10468#elif CLIENT_TYPE == 'M' && ( \
10469 PACKET_VERSION >= 20220000 \
10470 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
10471 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
10472 || PACKET_VERSION >= 20150130 \
10473 || PACKET_VERSION >= 20150129)
10474ID_CZ_ITEM_THROW = 0x0968
10475#elif CLIENT_TYPE == 'M' && \
10476 PACKET_VERSION >= 20150226
10477ID_CZ_ITEM_THROW = 0x0948
10478#elif CLIENT_TYPE == 'M' && \
10479 PACKET_VERSION >= 20150618
10480ID_CZ_ITEM_THROW = 0x0940
10481#elif CLIENT_TYPE == 'M' && \
10482 PACKET_VERSION >= 20150702
10483ID_CZ_ITEM_THROW = 0x08a0
10484#elif CLIENT_TYPE == 'M' && \
10485 PACKET_VERSION >= 20160526
10486ID_CZ_ITEM_THROW = 0x085e
10487#elif CLIENT_TYPE == 'M' && \
10488 PACKET_VERSION >= 20160609
10489ID_CZ_ITEM_THROW = 0x094d
10490#elif CLIENT_TYPE == 'M' && \
10491 PACKET_VERSION >= 20160630
10492ID_CZ_ITEM_THROW = 0x0861
10493#elif CLIENT_TYPE == 'M' && \
10494 PACKET_VERSION >= 20161103
10495ID_CZ_ITEM_THROW = 0x0890
10496#elif CLIENT_TYPE == 'M' && \
10497 PACKET_VERSION >= 20180131
10498ID_CZ_ITEM_THROW = 0x0802
10499#elif CLIENT_TYPE == 'M' && \
10500 PACKET_VERSION >= 20180309
10501ID_CZ_ITEM_THROW = 0x0437
10502#elif CLIENT_TYPE == 'M' && ( \
10503 PACKET_VERSION == 20190821 \
10504 || PACKET_VERSION == 20190807 \
10505 || PACKET_VERSION == 20190802 \
10506 || PACKET_VERSION == 20190731 \
10507 || PACKET_VERSION == 20190724 \
10508 || PACKET_VERSION == 20190717 \
10509 || PACKET_VERSION == 20190703 \
10510 || PACKET_VERSION == 20190605 \
10511 || PACKET_VERSION == 20190530 \
10512 || PACKET_VERSION == 20190523 \
10513 || PACKET_VERSION == 20190522 \
10514 || PACKET_VERSION == 20190508 \
10515 || PACKET_VERSION == 20190418 \
10516 || PACKET_VERSION == 20190417 \
10517 || PACKET_VERSION == 20190327 \
10518 || PACKET_VERSION == 20190322 \
10519 || PACKET_VERSION == 20190320 \
10520 || PACKET_VERSION == 20190313 \
10521 || PACKET_VERSION == 20190306 \
10522 || PACKET_VERSION == 20190228 \
10523 || PACKET_VERSION == 20190123 \
10524 || PACKET_VERSION == 20190116 \
10525 || PACKET_VERSION == 20181226 \
10526 || PACKET_VERSION == 20181219 \
10527 || PACKET_VERSION == 20181212 \
10528 || PACKET_VERSION == 20181205 \
10529 || PACKET_VERSION == 20181128 \
10530 || PACKET_VERSION == 20181114 \
10531 || PACKET_VERSION == 20181107 \
10532 || PACKET_VERSION == 20181024 \
10533 || PACKET_VERSION == 20180919 \
10534 || PACKET_VERSION == 20180831 \
10535 || PACKET_VERSION == 20180822 \
10536 || PACKET_VERSION >= 20180808 \
10537 || PACKET_VERSION >= 20180718 \
10538 || PACKET_VERSION >= 20180704 \
10539 || PACKET_VERSION >= 20180621 \
10540 || PACKET_VERSION >= 20180620 \
10541 || PACKET_VERSION >= 20180530 \
10542 || PACKET_VERSION >= 20180523 \
10543 || PACKET_VERSION >= 20180516 \
10544 || PACKET_VERSION >= 20180509 \
10545 || PACKET_VERSION >= 20180502 \
10546 || PACKET_VERSION >= 20180425 \
10547 || PACKET_VERSION >= 20180404 \
10548 || PACKET_VERSION >= 20180328 \
10549 || PACKET_VERSION >= 20180321)
10550ID_CZ_ITEM_THROW = 0x0363
10551#elif CLIENT_TYPE == 'R' && \
10552 PACKET_VERSION >= 20080000
10553ID_CZ_ITEM_THROW = 0x00a2
10554#elif CLIENT_TYPE == 'R' && \
10555 PACKET_VERSION >= 20120712
10556ID_CZ_ITEM_THROW = 0x08a3
10557#elif CLIENT_TYPE == 'R' && \
10558 PACKET_VERSION >= 20120926
10559ID_CZ_ITEM_THROW = 0x087a
10560#elif CLIENT_TYPE == 'R' && ( \
10561 PACKET_VERSION >= 20210000 \
10562 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
10563 || PACKET_VERSION >= 20121011)
10564ID_CZ_ITEM_THROW = 0x094c
10565#elif CLIENT_TYPE == 'R' && \
10566 PACKET_VERSION >= 20130116
10567ID_CZ_ITEM_THROW = 0x094e
10568#elif CLIENT_TYPE == 'R' && ( \
10569 PACKET_VERSION == 20151029 \
10570 || PACKET_VERSION == 20151022 \
10571 || PACKET_VERSION == 20150812 \
10572 || PACKET_VERSION >= 20141016)
10573ID_CZ_ITEM_THROW = 0x0362
10574#elif CLIENT_TYPE == 'R' && \
10575 PACKET_VERSION >= 20150226
10576ID_CZ_ITEM_THROW = 0x0948
10577#elif CLIENT_TYPE == 'R' && \
10578 PACKET_VERSION >= 20150618
10579ID_CZ_ITEM_THROW = 0x0940
10580#elif CLIENT_TYPE == 'R' && \
10581 PACKET_VERSION >= 20160630
10582ID_CZ_ITEM_THROW = 0x0861
10583#elif CLIENT_TYPE == 'R' && \
10584 PACKET_VERSION >= 20161103
10585ID_CZ_ITEM_THROW = 0x0890
10586#elif CLIENT_TYPE == 'R' && ( \
10587 PACKET_VERSION == 20190821 \
10588 || PACKET_VERSION == 20190807 \
10589 || PACKET_VERSION == 20190802 \
10590 || PACKET_VERSION == 20190731 \
10591 || PACKET_VERSION == 20190724 \
10592 || PACKET_VERSION == 20190717 \
10593 || PACKET_VERSION == 20190703 \
10594 || PACKET_VERSION == 20190626 \
10595 || PACKET_VERSION == 20190605 \
10596 || PACKET_VERSION == 20190530 \
10597 || PACKET_VERSION == 20190522 \
10598 || PACKET_VERSION == 20190508 \
10599 || PACKET_VERSION == 20190418 \
10600 || PACKET_VERSION == 20190417 \
10601 || PACKET_VERSION == 20190327 \
10602 || PACKET_VERSION == 20190322 \
10603 || PACKET_VERSION == 20190320 \
10604 || PACKET_VERSION == 20190306 \
10605 || PACKET_VERSION == 20190228 \
10606 || PACKET_VERSION == 20190123 \
10607 || PACKET_VERSION == 20190116 \
10608 || PACKET_VERSION == 20181226 \
10609 || PACKET_VERSION == 20181219 \
10610 || PACKET_VERSION == 20181212 \
10611 || PACKET_VERSION == 20181205 \
10612 || PACKET_VERSION == 20181128 \
10613 || PACKET_VERSION == 20181121 \
10614 || PACKET_VERSION == 20181114 \
10615 || PACKET_VERSION == 20181107 \
10616 || PACKET_VERSION == 20180822 \
10617 || PACKET_VERSION >= 20180808 \
10618 || PACKET_VERSION >= 20180718 \
10619 || PACKET_VERSION >= 20180711 \
10620 || PACKET_VERSION >= 20180621 \
10621 || PACKET_VERSION >= 20180620 \
10622 || PACKET_VERSION >= 20180612 \
10623 || PACKET_VERSION >= 20180530 \
10624 || PACKET_VERSION >= 20180523 \
10625 || PACKET_VERSION >= 20180516 \
10626 || PACKET_VERSION >= 20180502 \
10627 || PACKET_VERSION >= 20180425 \
10628 || PACKET_VERSION >= 20180404 \
10629 || PACKET_VERSION >= 20180328)
10630ID_CZ_ITEM_THROW = 0x0363
10631#elif CLIENT_TYPE == 'S' && \
10632 PACKET_VERSION >= 20030000
10633ID_CZ_ITEM_THROW = 0x00a2
10634#elif CLIENT_TYPE == 'Z' && \
10635 PACKET_VERSION >= 20170000
10636ID_CZ_ITEM_THROW = 0x00a2
10637#elif CLIENT_TYPE == 'Z' && ( \
10638 PACKET_VERSION == 20190814 \
10639 || PACKET_VERSION == 20190724 \
10640 || PACKET_VERSION == 20190717 \
10641 || PACKET_VERSION == 20190710 \
10642 || PACKET_VERSION == 20190709 \
10643 || PACKET_VERSION == 20190605 \
10644 || PACKET_VERSION == 20190530 \
10645 || PACKET_VERSION == 20190515 \
10646 || PACKET_VERSION == 20190508 \
10647 || PACKET_VERSION == 20190502 \
10648 || PACKET_VERSION == 20190424 \
10649 || PACKET_VERSION == 20190410 \
10650 || PACKET_VERSION == 20190403 \
10651 || PACKET_VERSION == 20190313 \
10652 || PACKET_VERSION == 20190227 \
10653 || PACKET_VERSION == 20190213 \
10654 || PACKET_VERSION == 20190117 \
10655 || PACKET_VERSION == 20181226 \
10656 || PACKET_VERSION == 20181219 \
10657 || PACKET_VERSION == 20181212 \
10658 || PACKET_VERSION == 20181128 \
10659 || PACKET_VERSION == 20181120 \
10660 || PACKET_VERSION == 20180928 \
10661 || PACKET_VERSION == 20180912 \
10662 || PACKET_VERSION == 20180829 \
10663 || PACKET_VERSION >= 20180808 \
10664 || PACKET_VERSION >= 20180801 \
10665 || PACKET_VERSION >= 20180711 \
10666 || PACKET_VERSION >= 20180703 \
10667 || PACKET_VERSION >= 20180627 \
10668 || PACKET_VERSION >= 20180509 \
10669 || PACKET_VERSION >= 20180411 \
10670 || PACKET_VERSION >= 20180321 \
10671 || PACKET_VERSION >= 20171113 \
10672 || PACKET_VERSION >= 20171031 \
10673 || PACKET_VERSION >= 20171030 \
10674 || PACKET_VERSION >= 20171027 \
10675 || PACKET_VERSION >= 20171025 \
10676 || PACKET_VERSION >= 20171024 \
10677 || PACKET_VERSION >= 20171023 \
10678 || PACKET_VERSION >= 20171019)
10679ID_CZ_ITEM_THROW = 0x0363
10680#elif CLIENT_TYPE == 'Z' && ( \
10681 PACKET_VERSION == 20180309 \
10682 || PACKET_VERSION == 20180307 \
10683 || PACKET_VERSION == 20171128 \
10684 || PACKET_VERSION == 20171122 \
10685 || PACKET_VERSION == 20171117 \
10686 || PACKET_VERSION == 20171116)
10687ID_CZ_ITEM_THROW = 0x0362
10688#elif CLIENT_TYPE == 'Z' && ( \
10689 PACKET_VERSION == 20171213 \
10690 || PACKET_VERSION == 20171212 \
10691 || PACKET_VERSION == 20171211 \
10692 || PACKET_VERSION == 20171210 \
10693 || PACKET_VERSION == 20171209 \
10694 || PACKET_VERSION == 20171208)
10695ID_CZ_ITEM_THROW = 0x0366
10696#elif CLIENT_TYPE == 'Z' && ( \
10697 PACKET_VERSION >= 20220000 \
10698 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
10699 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
10700 || PACKET_VERSION >= 20171221)
10701ID_CZ_ITEM_THROW = 0x08a5
10702#elif CLIENT_TYPE == 'Z' && \
10703 PACKET_VERSION >= 20171229
10704ID_CZ_ITEM_THROW = 0x091c
10705#else
10706ID_CZ_ITEM_THROW = 0x0000 // Disabled
10707#endif
10713class CZ_ITEM_THROW : public Base::NetworkPacket<ZoneSession>
10714{
10715public:
10716 CZ_ITEM_THROW(std::shared_ptr<ZoneSession> s)
10718 {}
10719 virtual ~CZ_ITEM_THROW() {}
10720
10721 void handle(ByteBuffer &&buf);
10722 void deserialize(ByteBuffer &buf);
10723
10724/* Structure */
10725 int16_t _inventory_index{ 0 };
10726 int16_t _amount{ 0 };
10727};
10728
10729enum {
10730#if CLIENT_TYPE == 'A' && \
10731 PACKET_VERSION >= 20080701
10732ID_CZ_ITEM_THROW2 = 0x0363
10733#elif CLIENT_TYPE == 'M' && ( \
10734 PACKET_VERSION >= 20220000 \
10735 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
10736 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
10737 || (PACKET_VERSION >= 20190000 && PACKET_VERSION < 20200000) \
10738 || PACKET_VERSION >= 20180315 \
10739 || PACKET_VERSION >= 20180213 \
10740 || PACKET_VERSION >= 20180207 \
10741 || PACKET_VERSION >= 20180124 \
10742 || PACKET_VERSION >= 20180117 \
10743 || PACKET_VERSION >= 20180103 \
10744 || PACKET_VERSION >= 20171220 \
10745 || PACKET_VERSION >= 20171213 \
10746 || PACKET_VERSION >= 20171206 \
10747 || PACKET_VERSION >= 20171129 \
10748 || PACKET_VERSION >= 20171101 \
10749 || PACKET_VERSION >= 20171025 \
10750 || PACKET_VERSION >= 20171018 \
10751 || PACKET_VERSION >= 20171011 \
10752 || PACKET_VERSION >= 20171002 \
10753 || PACKET_VERSION >= 20170906 \
10754 || PACKET_VERSION >= 20170830 \
10755 || PACKET_VERSION >= 20170823 \
10756 || PACKET_VERSION >= 20170809 \
10757 || PACKET_VERSION >= 20170801 \
10758 || PACKET_VERSION >= 20170726 \
10759 || PACKET_VERSION >= 20170719 \
10760 || PACKET_VERSION >= 20170712 \
10761 || PACKET_VERSION >= 20170705 \
10762 || PACKET_VERSION >= 20170628 \
10763 || PACKET_VERSION >= 20170517 \
10764 || PACKET_VERSION >= 20170502 \
10765 || PACKET_VERSION >= 20170412 \
10766 || PACKET_VERSION >= 20170405 \
10767 || PACKET_VERSION >= 20170322 \
10768 || PACKET_VERSION >= 20170315 \
10769 || PACKET_VERSION >= 20170308 \
10770 || PACKET_VERSION >= 20170111 \
10771 || PACKET_VERSION >= 20170104 \
10772 || PACKET_VERSION >= 20161207 \
10773 || PACKET_VERSION >= 20161130 \
10774 || PACKET_VERSION >= 20161102 \
10775 || PACKET_VERSION >= 20161026 \
10776 || PACKET_VERSION >= 20161019 \
10777 || PACKET_VERSION >= 20160928 \
10778 || PACKET_VERSION >= 20160921 \
10779 || PACKET_VERSION >= 20160913 \
10780 || PACKET_VERSION >= 20160907 \
10781 || PACKET_VERSION >= 20160831 \
10782 || PACKET_VERSION >= 20160824 \
10783 || PACKET_VERSION >= 20160803 \
10784 || PACKET_VERSION >= 20160727 \
10785 || PACKET_VERSION >= 20160720 \
10786 || PACKET_VERSION >= 20160713 \
10787 || PACKET_VERSION >= 20160706 \
10788 || PACKET_VERSION >= 20160629 \
10789 || PACKET_VERSION >= 20160622 \
10790 || PACKET_VERSION >= 20160615 \
10791 || PACKET_VERSION >= 20160525 \
10792 || PACKET_VERSION >= 20160511 \
10793 || PACKET_VERSION >= 20160504 \
10794 || PACKET_VERSION >= 20160427 \
10795 || PACKET_VERSION >= 20160420 \
10796 || PACKET_VERSION >= 20160414 \
10797 || PACKET_VERSION >= 20160323 \
10798 || PACKET_VERSION >= 20160316 \
10799 || PACKET_VERSION >= 20160217 \
10800 || PACKET_VERSION >= 20160211 \
10801 || PACKET_VERSION >= 20160203 \
10802 || PACKET_VERSION >= 20160120 \
10803 || PACKET_VERSION >= 20160106 \
10804 || PACKET_VERSION >= 20151209 \
10805 || PACKET_VERSION >= 20151202 \
10806 || PACKET_VERSION >= 20151111 \
10807 || PACKET_VERSION >= 20151104 \
10808 || PACKET_VERSION >= 20151021 \
10809 || PACKET_VERSION >= 20151014 \
10810 || PACKET_VERSION >= 20151001 \
10811 || PACKET_VERSION >= 20150819 \
10812 || PACKET_VERSION >= 20150805 \
10813 || PACKET_VERSION >= 20150701 \
10814 || PACKET_VERSION >= 20150624 \
10815 || PACKET_VERSION >= 20150617 \
10816 || PACKET_VERSION >= 20150603 \
10817 || PACKET_VERSION >= 20150527 \
10818 || PACKET_VERSION >= 20150520 \
10819 || PACKET_VERSION >= 20150513 \
10820 || PACKET_VERSION >= 20150507 \
10821 || PACKET_VERSION >= 20150429 \
10822 || PACKET_VERSION >= 20150422 \
10823 || PACKET_VERSION >= 20150401 \
10824 || PACKET_VERSION >= 20150325 \
10825 || PACKET_VERSION >= 20150311 \
10826 || PACKET_VERSION >= 20150304 \
10827 || PACKET_VERSION >= 20150225 \
10828 || PACKET_VERSION >= 20150217 \
10829 || PACKET_VERSION >= 20150211 \
10830 || PACKET_VERSION >= 20150204 \
10831 || PACKET_VERSION >= 20150121 \
10832 || PACKET_VERSION >= 20150107 \
10833 || PACKET_VERSION >= 20141231 \
10834 || PACKET_VERSION >= 20141105 \
10835 || PACKET_VERSION >= 20141029 \
10836 || PACKET_VERSION >= 20141022 \
10837 || PACKET_VERSION >= 20141008 \
10838 || PACKET_VERSION >= 20140917 \
10839 || PACKET_VERSION >= 20140827 \
10840 || PACKET_VERSION >= 20140813 \
10841 || PACKET_VERSION >= 20140806 \
10842 || PACKET_VERSION >= 20140611 \
10843 || PACKET_VERSION >= 20140605 \
10844 || PACKET_VERSION >= 20140528 \
10845 || PACKET_VERSION >= 20140521 \
10846 || PACKET_VERSION >= 20140508 \
10847 || PACKET_VERSION >= 20140430 \
10848 || PACKET_VERSION >= 20140423 \
10849 || PACKET_VERSION >= 20140416 \
10850 || PACKET_VERSION >= 20140312 \
10851 || PACKET_VERSION >= 20140305 \
10852 || PACKET_VERSION >= 20140212 \
10853 || PACKET_VERSION >= 20140205 \
10854 || PACKET_VERSION >= 20140115 \
10855 || PACKET_VERSION >= 20140108 \
10856 || PACKET_VERSION >= 20131230 \
10857 || PACKET_VERSION >= 20131218 \
10858 || PACKET_VERSION >= 20131113 \
10859 || PACKET_VERSION >= 20131106 \
10860 || PACKET_VERSION >= 20131030 \
10861 || PACKET_VERSION >= 20131008 \
10862 || PACKET_VERSION >= 20131002 \
10863 || PACKET_VERSION >= 20130911 \
10864 || PACKET_VERSION >= 20130904 \
10865 || PACKET_VERSION >= 20130814 \
10866 || PACKET_VERSION >= 20130807 \
10867 || PACKET_VERSION >= 20130717 \
10868 || PACKET_VERSION >= 20130703 \
10869 || PACKET_VERSION >= 20130618 \
10870 || PACKET_VERSION >= 20130605 \
10871 || PACKET_VERSION >= 20130502 \
10872 || PACKET_VERSION >= 20130417 \
10873 || PACKET_VERSION >= 20130410 \
10874 || PACKET_VERSION >= 20130403 \
10875 || PACKET_VERSION >= 20130327 \
10876 || PACKET_VERSION >= 20130320 \
10877 || PACKET_VERSION >= 20130313 \
10878 || PACKET_VERSION >= 20130227 \
10879 || PACKET_VERSION >= 20130220 \
10880 || PACKET_VERSION >= 20130109 \
10881 || PACKET_VERSION >= 20130103 \
10882 || PACKET_VERSION >= 20121227 \
10883 || PACKET_VERSION >= 20121218 \
10884 || PACKET_VERSION >= 20121205 \
10885 || PACKET_VERSION >= 20121128 \
10886 || PACKET_VERSION >= 20121107 \
10887 || PACKET_VERSION >= 20121031 \
10888 || PACKET_VERSION >= 20120925 \
10889 || PACKET_VERSION >= 20120919 \
10890 || PACKET_VERSION >= 20120814 \
10891 || PACKET_VERSION >= 20120808 \
10892 || PACKET_VERSION >= 20120724 \
10893 || PACKET_VERSION >= 20120716 \
10894 || PACKET_VERSION >= 20120710 \
10895 || PACKET_VERSION >= 20120702 \
10896 || PACKET_VERSION >= 20120612 \
10897 || PACKET_VERSION >= 20120604 \
10898 || PACKET_VERSION >= 20120529 \
10899 || PACKET_VERSION >= 20120515 \
10900 || PACKET_VERSION >= 20120508 \
10901 || PACKET_VERSION >= 20120503 \
10902 || PACKET_VERSION >= 20120424 \
10903 || PACKET_VERSION >= 20120417 \
10904 || PACKET_VERSION >= 20120328 \
10905 || PACKET_VERSION >= 20120320 \
10906 || PACKET_VERSION >= 20120228 \
10907 || PACKET_VERSION >= 20120221 \
10908 || PACKET_VERSION >= 20120214 \
10909 || PACKET_VERSION >= 20120207 \
10910 || PACKET_VERSION >= 20120131 \
10911 || PACKET_VERSION >= 20120120 \
10912 || PACKET_VERSION >= 20120117 \
10913 || PACKET_VERSION >= 20120103 \
10914 || PACKET_VERSION >= 20111227 \
10915 || PACKET_VERSION >= 20111220 \
10916 || PACKET_VERSION >= 20111207 \
10917 || PACKET_VERSION >= 20111122 \
10918 || PACKET_VERSION >= 20111114 \
10919 || PACKET_VERSION >= 20111101 \
10920 || PACKET_VERSION >= 20111025 \
10921 || PACKET_VERSION >= 20111017 \
10922 || PACKET_VERSION >= 20111010 \
10923 || PACKET_VERSION >= 20111004 \
10924 || PACKET_VERSION >= 20110928 \
10925 || PACKET_VERSION >= 20110920 \
10926 || PACKET_VERSION >= 20110906 \
10927 || PACKET_VERSION >= 20110823 \
10928 || PACKET_VERSION >= 20110816 \
10929 || PACKET_VERSION >= 20110809 \
10930 || PACKET_VERSION >= 20110718 \
10931 || PACKET_VERSION >= 20110711 \
10932 || PACKET_VERSION >= 20110627 \
10933 || PACKET_VERSION >= 20110620 \
10934 || PACKET_VERSION >= 20110607 \
10935 || PACKET_VERSION >= 20110531 \
10936 || PACKET_VERSION >= 20110523 \
10937 || PACKET_VERSION >= 20110503 \
10938 || PACKET_VERSION >= 20110426 \
10939 || PACKET_VERSION >= 20110419 \
10940 || PACKET_VERSION >= 20110412 \
10941 || PACKET_VERSION >= 20110405 \
10942 || PACKET_VERSION >= 20110329 \
10943 || PACKET_VERSION >= 20110322 \
10944 || PACKET_VERSION >= 20110315 \
10945 || PACKET_VERSION >= 20110308 \
10946 || PACKET_VERSION >= 20110228 \
10947 || PACKET_VERSION >= 20110222 \
10948 || PACKET_VERSION >= 20110208 \
10949 || PACKET_VERSION >= 20110131 \
10950 || PACKET_VERSION >= 20110125 \
10951 || PACKET_VERSION >= 20110118 \
10952 || PACKET_VERSION >= 20110104 \
10953 || PACKET_VERSION >= 20101228 \
10954 || PACKET_VERSION >= 20101221 \
10955 || PACKET_VERSION >= 20101207 \
10956 || PACKET_VERSION >= 20101130 \
10957 || PACKET_VERSION >= 20101123 \
10958 || PACKET_VERSION >= 20100105 \
10959 || PACKET_VERSION >= 20090401 \
10960 || PACKET_VERSION >= 20090325 \
10961 || PACKET_VERSION >= 20090311 \
10962 || PACKET_VERSION >= 20090225 \
10963 || PACKET_VERSION >= 20090211 \
10964 || PACKET_VERSION >= 20090204 \
10965 || PACKET_VERSION >= 20090120 \
10966 || PACKET_VERSION >= 20090114 \
10967 || PACKET_VERSION >= 20090107 \
10968 || PACKET_VERSION >= 20081203 \
10969 || PACKET_VERSION >= 20081126 \
10970 || PACKET_VERSION >= 20081112 \
10971 || PACKET_VERSION >= 20081022 \
10972 || PACKET_VERSION >= 20081015 \
10973 || PACKET_VERSION >= 20081008 \
10974 || PACKET_VERSION >= 20081001 \
10975 || PACKET_VERSION >= 20080924 \
10976 || PACKET_VERSION >= 20080917 \
10977 || PACKET_VERSION >= 20080910 \
10978 || PACKET_VERSION >= 20080903 \
10979 || PACKET_VERSION >= 20080813 \
10980 || PACKET_VERSION >= 20080806 \
10981 || PACKET_VERSION >= 20080730 \
10982 || PACKET_VERSION >= 20080715 \
10983 || PACKET_VERSION >= 20080708 \
10984 || PACKET_VERSION >= 20080701 \
10985 || PACKET_VERSION >= 20080624 \
10986 || PACKET_VERSION >= 20080617 \
10987 || PACKET_VERSION >= 20080528)
10988ID_CZ_ITEM_THROW2 = 0x0363
10989#elif CLIENT_TYPE == 'R' && ( \
10990 PACKET_VERSION >= 20210000 \
10991 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
10992 || (PACKET_VERSION >= 20190000 && PACKET_VERSION < 20200000) \
10993 || PACKET_VERSION >= 20180321 \
10994 || PACKET_VERSION >= 20180213 \
10995 || PACKET_VERSION >= 20180207 \
10996 || PACKET_VERSION >= 20180124 \
10997 || PACKET_VERSION >= 20180117 \
10998 || PACKET_VERSION >= 20180103 \
10999 || PACKET_VERSION >= 20171220 \
11000 || PACKET_VERSION >= 20171213 \
11001 || PACKET_VERSION >= 20171206 \
11002 || PACKET_VERSION >= 20171129 \
11003 || PACKET_VERSION >= 20171101 \
11004 || PACKET_VERSION >= 20171025 \
11005 || PACKET_VERSION >= 20171018 \
11006 || PACKET_VERSION >= 20171011 \
11007 || PACKET_VERSION >= 20171002 \
11008 || PACKET_VERSION >= 20170906 \
11009 || PACKET_VERSION >= 20170830 \
11010 || PACKET_VERSION >= 20170823 \
11011 || PACKET_VERSION >= 20170809 \
11012 || PACKET_VERSION >= 20170801 \
11013 || PACKET_VERSION >= 20170726 \
11014 || PACKET_VERSION >= 20170719 \
11015 || PACKET_VERSION >= 20170712 \
11016 || PACKET_VERSION >= 20170705 \
11017 || PACKET_VERSION >= 20170628 \
11018 || PACKET_VERSION >= 20170517 \
11019 || PACKET_VERSION >= 20170502 \
11020 || PACKET_VERSION >= 20170412 \
11021 || PACKET_VERSION >= 20170405 \
11022 || PACKET_VERSION >= 20170322 \
11023 || PACKET_VERSION >= 20170315 \
11024 || PACKET_VERSION >= 20170308 \
11025 || PACKET_VERSION >= 20170111 \
11026 || PACKET_VERSION >= 20170104 \
11027 || PACKET_VERSION >= 20161207 \
11028 || PACKET_VERSION >= 20161130 \
11029 || PACKET_VERSION >= 20161102 \
11030 || PACKET_VERSION >= 20161026 \
11031 || PACKET_VERSION >= 20161019 \
11032 || PACKET_VERSION >= 20160928 \
11033 || PACKET_VERSION >= 20160921 \
11034 || PACKET_VERSION >= 20160913 \
11035 || PACKET_VERSION >= 20160907 \
11036 || PACKET_VERSION >= 20160831 \
11037 || PACKET_VERSION >= 20160824 \
11038 || PACKET_VERSION >= 20160803 \
11039 || PACKET_VERSION >= 20160727 \
11040 || PACKET_VERSION >= 20160720 \
11041 || PACKET_VERSION >= 20160713 \
11042 || PACKET_VERSION >= 20160706 \
11043 || PACKET_VERSION >= 20160629 \
11044 || PACKET_VERSION >= 20160622 \
11045 || PACKET_VERSION >= 20160615 \
11046 || PACKET_VERSION >= 20160525 \
11047 || PACKET_VERSION >= 20160511 \
11048 || PACKET_VERSION >= 20160504 \
11049 || PACKET_VERSION >= 20160427 \
11050 || PACKET_VERSION >= 20160420 \
11051 || PACKET_VERSION >= 20160414 \
11052 || PACKET_VERSION >= 20160323 \
11053 || PACKET_VERSION >= 20160316 \
11054 || PACKET_VERSION >= 20160217 \
11055 || PACKET_VERSION >= 20160211 \
11056 || PACKET_VERSION >= 20160203 \
11057 || PACKET_VERSION >= 20160120 \
11058 || PACKET_VERSION >= 20160106 \
11059 || PACKET_VERSION >= 20151209 \
11060 || PACKET_VERSION >= 20151202 \
11061 || PACKET_VERSION >= 20151111 \
11062 || PACKET_VERSION >= 20151104 \
11063 || PACKET_VERSION >= 20151021 \
11064 || PACKET_VERSION >= 20151014 \
11065 || PACKET_VERSION >= 20151001 \
11066 || PACKET_VERSION >= 20150819 \
11067 || PACKET_VERSION >= 20150805 \
11068 || PACKET_VERSION >= 20150701 \
11069 || PACKET_VERSION >= 20150624 \
11070 || PACKET_VERSION >= 20150617 \
11071 || PACKET_VERSION >= 20150603 \
11072 || PACKET_VERSION >= 20150527 \
11073 || PACKET_VERSION >= 20150520 \
11074 || PACKET_VERSION >= 20150513 \
11075 || PACKET_VERSION >= 20150507 \
11076 || PACKET_VERSION >= 20150429 \
11077 || PACKET_VERSION >= 20150422 \
11078 || PACKET_VERSION >= 20150401 \
11079 || PACKET_VERSION >= 20150325 \
11080 || PACKET_VERSION >= 20150311 \
11081 || PACKET_VERSION >= 20150304 \
11082 || PACKET_VERSION >= 20150225 \
11083 || PACKET_VERSION >= 20150217 \
11084 || PACKET_VERSION >= 20150211 \
11085 || PACKET_VERSION >= 20150204 \
11086 || PACKET_VERSION >= 20150121 \
11087 || PACKET_VERSION >= 20150107 \
11088 || PACKET_VERSION >= 20141231 \
11089 || PACKET_VERSION >= 20141105 \
11090 || PACKET_VERSION >= 20141029 \
11091 || PACKET_VERSION >= 20141022 \
11092 || PACKET_VERSION >= 20141008 \
11093 || PACKET_VERSION >= 20140917 \
11094 || PACKET_VERSION >= 20140827 \
11095 || PACKET_VERSION >= 20140813 \
11096 || PACKET_VERSION >= 20140806 \
11097 || PACKET_VERSION >= 20140611 \
11098 || PACKET_VERSION >= 20140605 \
11099 || PACKET_VERSION >= 20140528 \
11100 || PACKET_VERSION >= 20140521 \
11101 || PACKET_VERSION >= 20140508 \
11102 || PACKET_VERSION >= 20140430 \
11103 || PACKET_VERSION >= 20140423 \
11104 || PACKET_VERSION >= 20140416 \
11105 || PACKET_VERSION >= 20140312 \
11106 || PACKET_VERSION >= 20140305 \
11107 || PACKET_VERSION >= 20140212 \
11108 || PACKET_VERSION >= 20140205 \
11109 || PACKET_VERSION >= 20140115 \
11110 || PACKET_VERSION >= 20140108 \
11111 || PACKET_VERSION >= 20131230 \
11112 || PACKET_VERSION >= 20131223 \
11113 || PACKET_VERSION >= 20131218 \
11114 || PACKET_VERSION >= 20131113 \
11115 || PACKET_VERSION >= 20131106 \
11116 || PACKET_VERSION >= 20131030 \
11117 || PACKET_VERSION >= 20131008 \
11118 || PACKET_VERSION >= 20131002 \
11119 || PACKET_VERSION >= 20130911 \
11120 || PACKET_VERSION >= 20130904 \
11121 || PACKET_VERSION >= 20130814 \
11122 || PACKET_VERSION >= 20130807 \
11123 || PACKET_VERSION >= 20130717 \
11124 || PACKET_VERSION >= 20130703 \
11125 || PACKET_VERSION >= 20130618 \
11126 || PACKET_VERSION >= 20130605 \
11127 || PACKET_VERSION >= 20130502 \
11128 || PACKET_VERSION >= 20130417 \
11129 || PACKET_VERSION >= 20130410 \
11130 || PACKET_VERSION >= 20130403 \
11131 || PACKET_VERSION >= 20130327 \
11132 || PACKET_VERSION >= 20130320 \
11133 || PACKET_VERSION >= 20130313 \
11134 || PACKET_VERSION >= 20130227 \
11135 || PACKET_VERSION >= 20130220 \
11136 || PACKET_VERSION >= 20130109 \
11137 || PACKET_VERSION >= 20130103 \
11138 || PACKET_VERSION >= 20121227 \
11139 || PACKET_VERSION >= 20121218 \
11140 || PACKET_VERSION >= 20121205 \
11141 || PACKET_VERSION >= 20121128 \
11142 || PACKET_VERSION >= 20121107 \
11143 || PACKET_VERSION >= 20121031 \
11144 || PACKET_VERSION >= 20120925 \
11145 || PACKET_VERSION >= 20120919 \
11146 || PACKET_VERSION >= 20120814 \
11147 || PACKET_VERSION >= 20120808 \
11148 || PACKET_VERSION >= 20120724 \
11149 || PACKET_VERSION >= 20120716 \
11150 || PACKET_VERSION >= 20120710 \
11151 || PACKET_VERSION >= 20120702 \
11152 || PACKET_VERSION >= 20120612 \
11153 || PACKET_VERSION >= 20120601 \
11154 || PACKET_VERSION >= 20120529 \
11155 || PACKET_VERSION >= 20120515 \
11156 || PACKET_VERSION >= 20120508 \
11157 || PACKET_VERSION >= 20120502 \
11158 || PACKET_VERSION >= 20120424 \
11159 || PACKET_VERSION >= 20120417 \
11160 || PACKET_VERSION >= 20120328 \
11161 || PACKET_VERSION >= 20120320 \
11162 || PACKET_VERSION >= 20120228 \
11163 || PACKET_VERSION >= 20120221 \
11164 || PACKET_VERSION >= 20120214 \
11165 || PACKET_VERSION >= 20120207 \
11166 || PACKET_VERSION >= 20120131 \
11167 || PACKET_VERSION >= 20120120 \
11168 || PACKET_VERSION >= 20120117 \
11169 || PACKET_VERSION >= 20120103 \
11170 || PACKET_VERSION >= 20111227 \
11171 || PACKET_VERSION >= 20111220 \
11172 || PACKET_VERSION >= 20111207 \
11173 || PACKET_VERSION >= 20111122 \
11174 || PACKET_VERSION >= 20111114 \
11175 || PACKET_VERSION >= 20111101 \
11176 || PACKET_VERSION >= 20111025 \
11177 || PACKET_VERSION >= 20111017 \
11178 || PACKET_VERSION >= 20111010 \
11179 || PACKET_VERSION >= 20111004 \
11180 || PACKET_VERSION >= 20110928 \
11181 || PACKET_VERSION >= 20110920 \
11182 || PACKET_VERSION >= 20110906 \
11183 || PACKET_VERSION >= 20110823 \
11184 || PACKET_VERSION >= 20110816 \
11185 || PACKET_VERSION >= 20110104 \
11186 || PACKET_VERSION >= 20101123 \
11187 || PACKET_VERSION >= 20100105 \
11188 || (PACKET_VERSION >= 20090000 && PACKET_VERSION < 20100105) \
11189 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20090000))
11190ID_CZ_ITEM_THROW2 = 0x0363
11191#elif CLIENT_TYPE == 'S' && \
11192 PACKET_VERSION >= 20080618
11193ID_CZ_ITEM_THROW2 = 0x0363
11194#elif CLIENT_TYPE == 'Z' && ( \
11195 PACKET_VERSION >= 20220000 \
11196 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
11197 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
11198 || (PACKET_VERSION >= 20190000 && PACKET_VERSION < 20200000) \
11199 || PACKET_VERSION >= 20180523 \
11200 || PACKET_VERSION >= 20180511 \
11201 || PACKET_VERSION >= 20180315 \
11202 || PACKET_VERSION >= 20180314 \
11203 || PACKET_VERSION >= 20180228 \
11204 || PACKET_VERSION >= 20180213 \
11205 || PACKET_VERSION >= 20180131 \
11206 || PACKET_VERSION >= 20180103 \
11207 || PACKET_VERSION >= 20171130 \
11208 || PACKET_VERSION >= 20171127 \
11209 || PACKET_VERSION >= 20171123 \
11210 || PACKET_VERSION >= 20171121 \
11211 || PACKET_VERSION >= 20171115 \
11212 || PACKET_VERSION >= 20171018)
11213ID_CZ_ITEM_THROW2 = 0x0363
11214#else
11215ID_CZ_ITEM_THROW2 = 0x0000 // Disabled
11216#endif
11222class CZ_ITEM_THROW2 : public Base::NetworkPacket<ZoneSession>
11223{
11224public:
11225 CZ_ITEM_THROW2(std::shared_ptr<ZoneSession> s)
11227 {}
11228 virtual ~CZ_ITEM_THROW2() {}
11229
11230 void handle(ByteBuffer &&buf);
11231 void deserialize(ByteBuffer &buf);
11232
11233/* Structure */
11234 int16_t _inventory_index{ 0 };
11235 int16_t _amount{ 0 };
11236};
11237
11238enum {
11239#if CLIENT_TYPE == 'A' && \
11240 PACKET_VERSION >= 20040000
11241ID_CZ_JOIN_BABY = 0x01f7
11242#elif CLIENT_TYPE == 'M' && ( \
11243 PACKET_VERSION >= 20220000 \
11244 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
11245 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
11246 || PACKET_VERSION >= 20040308)
11247ID_CZ_JOIN_BABY = 0x01f7
11248#elif CLIENT_TYPE == 'R' && ( \
11249 PACKET_VERSION >= 20210000 \
11250 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
11251 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
11252ID_CZ_JOIN_BABY = 0x01f7
11253#elif CLIENT_TYPE == 'S' && \
11254 PACKET_VERSION >= 20040308
11255ID_CZ_JOIN_BABY = 0x01f7
11256#elif CLIENT_TYPE == 'Z' && ( \
11257 PACKET_VERSION >= 20220000 \
11258 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
11259 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
11260 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
11261ID_CZ_JOIN_BABY = 0x01f7
11262#else
11263ID_CZ_JOIN_BABY = 0x0000 // Disabled
11264#endif
11270class CZ_JOIN_BABY : public Base::NetworkPacket<ZoneSession>
11271{
11272public:
11273 CZ_JOIN_BABY(std::shared_ptr<ZoneSession> s)
11275 {}
11276 virtual ~CZ_JOIN_BABY() {}
11277
11278 void handle(ByteBuffer &&buf);
11279 void deserialize(ByteBuffer &buf);
11280
11281/* Structure */
11282 int _account_id{ 0 };
11284 int _response{ 0 };
11285};
11286
11287enum {
11288#if CLIENT_TYPE == 'M' && ( \
11289 PACKET_VERSION >= 20220000 \
11290 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
11291 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
11292 || PACKET_VERSION >= 20120712)
11294#elif CLIENT_TYPE == 'M' && ( \
11295 PACKET_VERSION == 20190821 \
11296 || PACKET_VERSION == 20190807 \
11297 || PACKET_VERSION == 20190802 \
11298 || PACKET_VERSION == 20190731 \
11299 || PACKET_VERSION == 20190724 \
11300 || PACKET_VERSION == 20190717 \
11301 || PACKET_VERSION == 20190703 \
11302 || PACKET_VERSION == 20190605 \
11303 || PACKET_VERSION == 20190530 \
11304 || PACKET_VERSION == 20190523 \
11305 || PACKET_VERSION == 20190522 \
11306 || PACKET_VERSION == 20190508 \
11307 || PACKET_VERSION == 20190418 \
11308 || PACKET_VERSION == 20190417 \
11309 || PACKET_VERSION == 20190327 \
11310 || PACKET_VERSION == 20190322 \
11311 || PACKET_VERSION == 20190320 \
11312 || PACKET_VERSION == 20190313 \
11313 || PACKET_VERSION == 20190306 \
11314 || PACKET_VERSION == 20190228 \
11315 || PACKET_VERSION == 20190123 \
11316 || PACKET_VERSION == 20190116 \
11317 || (PACKET_VERSION >= 20190000 && PACKET_VERSION < 20190116) \
11318 || PACKET_VERSION == 20181226 \
11319 || PACKET_VERSION == 20181219 \
11320 || PACKET_VERSION == 20181212 \
11321 || PACKET_VERSION == 20181205 \
11322 || PACKET_VERSION == 20181128 \
11323 || PACKET_VERSION == 20181114 \
11324 || PACKET_VERSION == 20181107 \
11325 || PACKET_VERSION == 20181024 \
11326 || PACKET_VERSION == 20180919 \
11327 || PACKET_VERSION == 20180831 \
11328 || PACKET_VERSION == 20180822 \
11329 || PACKET_VERSION >= 20180808 \
11330 || PACKET_VERSION >= 20180718 \
11331 || PACKET_VERSION >= 20180704 \
11332 || PACKET_VERSION >= 20180621 \
11333 || PACKET_VERSION >= 20180620 \
11334 || PACKET_VERSION >= 20180530 \
11335 || PACKET_VERSION >= 20180523 \
11336 || PACKET_VERSION >= 20180516 \
11337 || PACKET_VERSION >= 20180509 \
11338 || PACKET_VERSION >= 20180502 \
11339 || PACKET_VERSION >= 20180425 \
11340 || PACKET_VERSION >= 20180404 \
11341 || PACKET_VERSION >= 20180328 \
11342 || PACKET_VERSION >= 20180321 \
11343 || PACKET_VERSION >= 20180315 \
11344 || PACKET_VERSION >= 20180213 \
11345 || PACKET_VERSION >= 20180207 \
11346 || PACKET_VERSION >= 20180124 \
11347 || PACKET_VERSION >= 20180117 \
11348 || PACKET_VERSION >= 20180103 \
11349 || PACKET_VERSION >= 20171220 \
11350 || PACKET_VERSION >= 20171213 \
11351 || PACKET_VERSION >= 20171101 \
11352 || PACKET_VERSION >= 20171025 \
11353 || PACKET_VERSION >= 20171018 \
11354 || PACKET_VERSION >= 20171011 \
11355 || PACKET_VERSION >= 20170927 \
11356 || PACKET_VERSION >= 20170920 \
11357 || PACKET_VERSION >= 20170830 \
11358 || PACKET_VERSION >= 20170823 \
11359 || PACKET_VERSION >= 20170809 \
11360 || PACKET_VERSION >= 20170801 \
11361 || PACKET_VERSION >= 20170719 \
11362 || PACKET_VERSION >= 20170712 \
11363 || PACKET_VERSION >= 20170705 \
11364 || PACKET_VERSION >= 20170628 \
11365 || PACKET_VERSION >= 20170607 \
11366 || PACKET_VERSION >= 20170531 \
11367 || PACKET_VERSION >= 20170517 \
11368 || PACKET_VERSION >= 20170502 \
11369 || PACKET_VERSION >= 20170329 \
11370 || PACKET_VERSION >= 20170322 \
11371 || PACKET_VERSION >= 20170315 \
11372 || PACKET_VERSION >= 20170308 \
11373 || PACKET_VERSION >= 20170111 \
11374 || PACKET_VERSION >= 20170104 \
11375 || PACKET_VERSION >= 20161207 \
11376 || PACKET_VERSION >= 20161130 \
11377 || PACKET_VERSION >= 20161026 \
11378 || PACKET_VERSION >= 20161019 \
11379 || PACKET_VERSION >= 20161012 \
11380 || PACKET_VERSION >= 20160928 \
11381 || PACKET_VERSION >= 20160921 \
11382 || PACKET_VERSION >= 20160913 \
11383 || PACKET_VERSION >= 20160907 \
11384 || PACKET_VERSION >= 20160831 \
11385 || PACKET_VERSION >= 20160824 \
11386 || PACKET_VERSION >= 20160803 \
11387 || PACKET_VERSION >= 20160727 \
11388 || PACKET_VERSION >= 20160615 \
11389 || PACKET_VERSION >= 20160608 \
11390 || PACKET_VERSION >= 20160525 \
11391 || PACKET_VERSION >= 20160511 \
11392 || PACKET_VERSION >= 20160504 \
11393 || PACKET_VERSION >= 20160427 \
11394 || PACKET_VERSION >= 20160323 \
11395 || PACKET_VERSION >= 20160316 \
11396 || PACKET_VERSION >= 20160217 \
11397 || PACKET_VERSION >= 20160211 \
11398 || PACKET_VERSION >= 20160203 \
11399 || PACKET_VERSION >= 20160120 \
11400 || PACKET_VERSION >= 20160113 \
11401 || PACKET_VERSION >= 20160106 \
11402 || PACKET_VERSION >= 20151230 \
11403 || PACKET_VERSION >= 20151216 \
11404 || PACKET_VERSION >= 20151209 \
11405 || PACKET_VERSION >= 20151202 \
11406 || PACKET_VERSION >= 20151111 \
11407 || PACKET_VERSION >= 20151104 \
11408 || PACKET_VERSION >= 20151028 \
11409 || PACKET_VERSION >= 20151021 \
11410 || PACKET_VERSION >= 20151014 \
11411 || PACKET_VERSION >= 20151001 \
11412 || PACKET_VERSION >= 20150902 \
11413 || PACKET_VERSION >= 20150826 \
11414 || PACKET_VERSION >= 20150819 \
11415 || PACKET_VERSION >= 20150805 \
11416 || PACKET_VERSION >= 20150701 \
11417 || PACKET_VERSION >= 20150624 \
11418 || PACKET_VERSION >= 20150617 \
11419 || PACKET_VERSION >= 20150603 \
11420 || PACKET_VERSION >= 20150527 \
11421 || PACKET_VERSION >= 20150429 \
11422 || PACKET_VERSION >= 20150422 \
11423 || PACKET_VERSION >= 20150225 \
11424 || PACKET_VERSION >= 20150217 \
11425 || PACKET_VERSION >= 20150211 \
11426 || PACKET_VERSION >= 20150204 \
11427 || PACKET_VERSION >= 20150121 \
11428 || PACKET_VERSION >= 20150107 \
11429 || PACKET_VERSION >= 20141231 \
11430 || PACKET_VERSION >= 20141105 \
11431 || PACKET_VERSION >= 20141029 \
11432 || PACKET_VERSION >= 20141022 \
11433 || PACKET_VERSION >= 20141008 \
11434 || PACKET_VERSION >= 20140917 \
11435 || PACKET_VERSION >= 20140827 \
11436 || PACKET_VERSION >= 20140813 \
11437 || PACKET_VERSION >= 20140806 \
11438 || PACKET_VERSION >= 20140730 \
11439 || PACKET_VERSION >= 20140611 \
11440 || PACKET_VERSION >= 20140605 \
11441 || PACKET_VERSION >= 20140528 \
11442 || PACKET_VERSION >= 20140521 \
11443 || PACKET_VERSION >= 20140508 \
11444 || PACKET_VERSION >= 20140423 \
11445 || PACKET_VERSION >= 20140416 \
11446 || PACKET_VERSION >= 20140409 \
11447 || PACKET_VERSION >= 20140326 \
11448 || PACKET_VERSION >= 20140312 \
11449 || PACKET_VERSION >= 20140305 \
11450 || PACKET_VERSION >= 20140212 \
11451 || PACKET_VERSION >= 20140205 \
11452 || PACKET_VERSION >= 20140129 \
11453 || PACKET_VERSION >= 20140122 \
11454 || PACKET_VERSION >= 20140115 \
11455 || PACKET_VERSION >= 20140108 \
11456 || PACKET_VERSION >= 20131230 \
11457 || PACKET_VERSION >= 20131218 \
11458 || PACKET_VERSION >= 20131211 \
11459 || PACKET_VERSION >= 20131204 \
11460 || PACKET_VERSION >= 20131106 \
11461 || PACKET_VERSION >= 20131030 \
11462 || PACKET_VERSION >= 20131023 \
11463 || PACKET_VERSION >= 20131016 \
11464 || PACKET_VERSION >= 20131008 \
11465 || PACKET_VERSION >= 20131002 \
11466 || PACKET_VERSION >= 20130911 \
11467 || PACKET_VERSION >= 20130904 \
11468 || PACKET_VERSION >= 20130828 \
11469 || PACKET_VERSION >= 20130821 \
11470 || PACKET_VERSION >= 20130814 \
11471 || PACKET_VERSION >= 20130807 \
11472 || PACKET_VERSION >= 20130717 \
11473 || PACKET_VERSION >= 20130703 \
11474 || PACKET_VERSION >= 20130618 \
11475 || PACKET_VERSION >= 20130605 \
11476 || PACKET_VERSION >= 20130529 \
11477 || PACKET_VERSION >= 20130522 \
11478 || PACKET_VERSION >= 20130508 \
11479 || PACKET_VERSION >= 20130502 \
11480 || PACKET_VERSION >= 20130417 \
11481 || PACKET_VERSION >= 20130410 \
11482 || PACKET_VERSION >= 20130403 \
11483 || PACKET_VERSION >= 20130327 \
11484 || PACKET_VERSION >= 20130320 \
11485 || PACKET_VERSION >= 20130313 \
11486 || PACKET_VERSION >= 20130227 \
11487 || PACKET_VERSION >= 20130220 \
11488 || PACKET_VERSION >= 20130130 \
11489 || PACKET_VERSION >= 20130121 \
11490 || PACKET_VERSION >= 20130115 \
11491 || PACKET_VERSION >= 20130109 \
11492 || PACKET_VERSION >= 20130103 \
11493 || PACKET_VERSION >= 20121205 \
11494 || PACKET_VERSION >= 20121128 \
11495 || PACKET_VERSION >= 20121107 \
11496 || PACKET_VERSION >= 20121031 \
11497 || PACKET_VERSION >= 20120925 \
11498 || PACKET_VERSION >= 20120919 \
11499 || PACKET_VERSION >= 20120822 \
11500 || PACKET_VERSION >= 20120814 \
11501 || PACKET_VERSION >= 20120808 \
11502 || PACKET_VERSION >= 20120724 \
11503 || PACKET_VERSION >= 20120716 \
11504 || PACKET_VERSION >= 20120626 \
11505 || PACKET_VERSION >= 20120612 \
11506 || PACKET_VERSION >= 20120604 \
11507 || PACKET_VERSION >= 20120529 \
11508 || PACKET_VERSION >= 20120508 \
11509 || PACKET_VERSION >= 20120503 \
11510 || PACKET_VERSION >= 20120424 \
11511 || PACKET_VERSION >= 20120417 \
11512 || PACKET_VERSION >= 20120328 \
11513 || PACKET_VERSION >= 20120320 \
11514 || PACKET_VERSION >= 20120307 \
11515 || PACKET_VERSION >= 20120228 \
11516 || PACKET_VERSION >= 20120214 \
11517 || PACKET_VERSION >= 20120207 \
11518 || PACKET_VERSION >= 20120131 \
11519 || PACKET_VERSION >= 20120120 \
11520 || PACKET_VERSION >= 20120117 \
11521 || PACKET_VERSION >= 20120103 \
11522 || PACKET_VERSION >= 20111227 \
11523 || PACKET_VERSION >= 20111220 \
11524 || PACKET_VERSION >= 20111213 \
11525 || PACKET_VERSION >= 20111207 \
11526 || PACKET_VERSION >= 20111122 \
11527 || PACKET_VERSION >= 20111114 \
11528 || PACKET_VERSION >= 20111108 \
11529 || PACKET_VERSION >= 20111101 \
11530 || PACKET_VERSION >= 20111025 \
11531 || PACKET_VERSION >= 20111017 \
11532 || PACKET_VERSION >= 20111010 \
11533 || PACKET_VERSION >= 20111004 \
11534 || PACKET_VERSION >= 20110928 \
11535 || PACKET_VERSION >= 20110920 \
11536 || PACKET_VERSION >= 20110906 \
11537 || PACKET_VERSION >= 20110831 \
11538 || PACKET_VERSION >= 20110823 \
11539 || PACKET_VERSION >= 20110816 \
11540 || PACKET_VERSION >= 20110809 \
11541 || PACKET_VERSION >= 20110802 \
11542 || PACKET_VERSION >= 20110726 \
11543 || PACKET_VERSION >= 20110718 \
11544 || PACKET_VERSION >= 20110711 \
11545 || PACKET_VERSION >= 20110705 \
11546 || PACKET_VERSION >= 20110620 \
11547 || PACKET_VERSION >= 20110614 \
11548 || PACKET_VERSION >= 20110607 \
11549 || PACKET_VERSION >= 20110531 \
11550 || PACKET_VERSION >= 20110523 \
11551 || PACKET_VERSION >= 20110517 \
11552 || PACKET_VERSION >= 20110503 \
11553 || PACKET_VERSION >= 20110426 \
11554 || PACKET_VERSION >= 20110419 \
11555 || PACKET_VERSION >= 20110405 \
11556 || PACKET_VERSION >= 20110329 \
11557 || PACKET_VERSION >= 20110322 \
11558 || PACKET_VERSION >= 20110308 \
11559 || PACKET_VERSION >= 20110228 \
11560 || PACKET_VERSION >= 20110222 \
11561 || PACKET_VERSION >= 20110131 \
11562 || PACKET_VERSION >= 20110118 \
11563 || PACKET_VERSION >= 20110104 \
11564 || PACKET_VERSION >= 20101207 \
11565 || PACKET_VERSION >= 20101130 \
11566 || PACKET_VERSION >= 20101123 \
11567 || PACKET_VERSION >= 20100105 \
11568 || PACKET_VERSION >= 20091006 \
11569 || PACKET_VERSION >= 20090929)
11571#elif CLIENT_TYPE == 'M' && \
11572 PACKET_VERSION >= 20120926
11574#elif CLIENT_TYPE == 'M' && ( \
11575 PACKET_VERSION == 20160318 \
11576 || PACKET_VERSION == 20151029 \
11577 || PACKET_VERSION == 20151022 \
11578 || PACKET_VERSION == 20150812 \
11579 || PACKET_VERSION >= 20141016 \
11580 || PACKET_VERSION >= 20130107)
11582#elif CLIENT_TYPE == 'M' && \
11583 PACKET_VERSION >= 20130116
11585#elif CLIENT_TYPE == 'M' && ( \
11586 PACKET_VERSION == 20131108 \
11587 || PACKET_VERSION == 20131107)
11589#elif CLIENT_TYPE == 'M' && ( \
11590 PACKET_VERSION == 20140613 \
11591 || PACKET_VERSION == 20140612)
11593#elif CLIENT_TYPE == 'M' && \
11594 PACKET_VERSION >= 20140814
11596#elif CLIENT_TYPE == 'M' && ( \
11597 PACKET_VERSION == 20150130 \
11598 || PACKET_VERSION == 20150129)
11600#elif CLIENT_TYPE == 'M' && \
11601 PACKET_VERSION >= 20150226
11603#elif CLIENT_TYPE == 'M' && \
11604 PACKET_VERSION >= 20150618
11606#elif CLIENT_TYPE == 'M' && \
11607 PACKET_VERSION >= 20150702
11609#elif CLIENT_TYPE == 'M' && \
11610 PACKET_VERSION >= 20160526
11612#elif CLIENT_TYPE == 'M' && \
11613 PACKET_VERSION >= 20160609
11615#elif CLIENT_TYPE == 'M' && \
11616 PACKET_VERSION >= 20160630
11618#elif CLIENT_TYPE == 'M' && ( \
11619 PACKET_VERSION == 20180131 \
11620 || PACKET_VERSION >= 20161103)
11622#elif CLIENT_TYPE == 'M' && \
11623 PACKET_VERSION >= 20180309
11625#elif CLIENT_TYPE == 'R' && ( \
11626 PACKET_VERSION >= 20210000 \
11627 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
11628 || PACKET_VERSION >= 20120712)
11630#elif CLIENT_TYPE == 'R' && ( \
11631 PACKET_VERSION == 20190821 \
11632 || PACKET_VERSION == 20190807 \
11633 || PACKET_VERSION == 20190802 \
11634 || PACKET_VERSION == 20190731 \
11635 || PACKET_VERSION == 20190724 \
11636 || PACKET_VERSION == 20190717 \
11637 || PACKET_VERSION == 20190703 \
11638 || PACKET_VERSION == 20190626 \
11639 || PACKET_VERSION == 20190605 \
11640 || PACKET_VERSION == 20190530 \
11641 || PACKET_VERSION == 20190522 \
11642 || PACKET_VERSION == 20190508 \
11643 || PACKET_VERSION == 20190418 \
11644 || PACKET_VERSION == 20190417 \
11645 || PACKET_VERSION == 20190327 \
11646 || PACKET_VERSION == 20190322 \
11647 || PACKET_VERSION == 20190320 \
11648 || PACKET_VERSION == 20190306 \
11649 || PACKET_VERSION == 20190228 \
11650 || PACKET_VERSION == 20190123 \
11651 || PACKET_VERSION == 20190116 \
11652 || (PACKET_VERSION >= 20190000 && PACKET_VERSION < 20190116) \
11653 || PACKET_VERSION == 20181226 \
11654 || PACKET_VERSION == 20181219 \
11655 || PACKET_VERSION == 20181212 \
11656 || PACKET_VERSION == 20181205 \
11657 || PACKET_VERSION == 20181128 \
11658 || PACKET_VERSION == 20181121 \
11659 || PACKET_VERSION == 20181114 \
11660 || PACKET_VERSION == 20181107 \
11661 || PACKET_VERSION == 20180822 \
11662 || PACKET_VERSION >= 20180808 \
11663 || PACKET_VERSION >= 20180718 \
11664 || PACKET_VERSION >= 20180711 \
11665 || PACKET_VERSION >= 20180621 \
11666 || PACKET_VERSION >= 20180620 \
11667 || PACKET_VERSION >= 20180612 \
11668 || PACKET_VERSION >= 20180530 \
11669 || PACKET_VERSION >= 20180523 \
11670 || PACKET_VERSION >= 20180516 \
11671 || PACKET_VERSION >= 20180502 \
11672 || PACKET_VERSION >= 20180425 \
11673 || PACKET_VERSION >= 20180404 \
11674 || PACKET_VERSION >= 20180328 \
11675 || PACKET_VERSION >= 20180321 \
11676 || PACKET_VERSION >= 20180213 \
11677 || PACKET_VERSION >= 20180207 \
11678 || PACKET_VERSION >= 20180124 \
11679 || PACKET_VERSION >= 20180117 \
11680 || PACKET_VERSION >= 20180103 \
11681 || PACKET_VERSION >= 20171220 \
11682 || PACKET_VERSION >= 20171213 \
11683 || PACKET_VERSION >= 20171101 \
11684 || PACKET_VERSION >= 20171025 \
11685 || PACKET_VERSION >= 20171018 \
11686 || PACKET_VERSION >= 20171011 \
11687 || PACKET_VERSION >= 20170927 \
11688 || PACKET_VERSION >= 20170920 \
11689 || PACKET_VERSION >= 20170830 \
11690 || PACKET_VERSION >= 20170823 \
11691 || PACKET_VERSION >= 20170809 \
11692 || PACKET_VERSION >= 20170801 \
11693 || PACKET_VERSION >= 20170719 \
11694 || PACKET_VERSION >= 20170712 \
11695 || PACKET_VERSION >= 20170705 \
11696 || PACKET_VERSION >= 20170628 \
11697 || PACKET_VERSION >= 20170607 \
11698 || PACKET_VERSION >= 20170531 \
11699 || PACKET_VERSION >= 20170517 \
11700 || PACKET_VERSION >= 20170502 \
11701 || PACKET_VERSION >= 20170329 \
11702 || PACKET_VERSION >= 20170322 \
11703 || PACKET_VERSION >= 20170315 \
11704 || PACKET_VERSION >= 20170308 \
11705 || PACKET_VERSION >= 20170111 \
11706 || PACKET_VERSION >= 20170104 \
11707 || PACKET_VERSION >= 20161207 \
11708 || PACKET_VERSION >= 20161130 \
11709 || PACKET_VERSION >= 20161026 \
11710 || PACKET_VERSION >= 20161019 \
11711 || PACKET_VERSION >= 20161012 \
11712 || PACKET_VERSION >= 20160928 \
11713 || PACKET_VERSION >= 20160921 \
11714 || PACKET_VERSION >= 20160913 \
11715 || PACKET_VERSION >= 20160907 \
11716 || PACKET_VERSION >= 20160831 \
11717 || PACKET_VERSION >= 20160824 \
11718 || PACKET_VERSION >= 20160803 \
11719 || PACKET_VERSION >= 20160727 \
11720 || PACKET_VERSION >= 20160615 \
11721 || PACKET_VERSION >= 20160608 \
11722 || PACKET_VERSION >= 20160525 \
11723 || PACKET_VERSION >= 20160511 \
11724 || PACKET_VERSION >= 20160504 \
11725 || PACKET_VERSION >= 20160427 \
11726 || PACKET_VERSION >= 20160323 \
11727 || PACKET_VERSION >= 20160316 \
11728 || PACKET_VERSION >= 20160217 \
11729 || PACKET_VERSION >= 20160211 \
11730 || PACKET_VERSION >= 20160203 \
11731 || PACKET_VERSION >= 20160120 \
11732 || PACKET_VERSION >= 20160113 \
11733 || PACKET_VERSION >= 20160106 \
11734 || PACKET_VERSION >= 20151230 \
11735 || PACKET_VERSION >= 20151216 \
11736 || PACKET_VERSION >= 20151209 \
11737 || PACKET_VERSION >= 20151202 \
11738 || PACKET_VERSION >= 20151111 \
11739 || PACKET_VERSION >= 20151104 \
11740 || PACKET_VERSION >= 20151028 \
11741 || PACKET_VERSION >= 20151021 \
11742 || PACKET_VERSION >= 20151014 \
11743 || PACKET_VERSION >= 20151001 \
11744 || PACKET_VERSION >= 20150902 \
11745 || PACKET_VERSION >= 20150826 \
11746 || PACKET_VERSION >= 20150819 \
11747 || PACKET_VERSION >= 20150805 \
11748 || PACKET_VERSION >= 20150701 \
11749 || PACKET_VERSION >= 20150624 \
11750 || PACKET_VERSION >= 20150617 \
11751 || PACKET_VERSION >= 20150603 \
11752 || PACKET_VERSION >= 20150527 \
11753 || PACKET_VERSION >= 20150429 \
11754 || PACKET_VERSION >= 20150422 \
11755 || PACKET_VERSION >= 20150225 \
11756 || PACKET_VERSION >= 20150217 \
11757 || PACKET_VERSION >= 20150211 \
11758 || PACKET_VERSION >= 20150204 \
11759 || PACKET_VERSION >= 20150121 \
11760 || PACKET_VERSION >= 20150107 \
11761 || PACKET_VERSION >= 20141231 \
11762 || PACKET_VERSION >= 20141105 \
11763 || PACKET_VERSION >= 20141029 \
11764 || PACKET_VERSION >= 20141022 \
11765 || PACKET_VERSION >= 20141008 \
11766 || PACKET_VERSION >= 20140917 \
11767 || PACKET_VERSION >= 20140827 \
11768 || PACKET_VERSION >= 20140813 \
11769 || PACKET_VERSION >= 20140806 \
11770 || PACKET_VERSION >= 20140730 \
11771 || PACKET_VERSION >= 20140611 \
11772 || PACKET_VERSION >= 20140605 \
11773 || PACKET_VERSION >= 20140528 \
11774 || PACKET_VERSION >= 20140521 \
11775 || PACKET_VERSION >= 20140508 \
11776 || PACKET_VERSION >= 20140423 \
11777 || PACKET_VERSION >= 20140416 \
11778 || PACKET_VERSION >= 20140409 \
11779 || PACKET_VERSION >= 20140326 \
11780 || PACKET_VERSION >= 20140312 \
11781 || PACKET_VERSION >= 20140305 \
11782 || PACKET_VERSION >= 20140212 \
11783 || PACKET_VERSION >= 20140205 \
11784 || PACKET_VERSION >= 20140129 \
11785 || PACKET_VERSION >= 20140122 \
11786 || PACKET_VERSION >= 20140115 \
11787 || PACKET_VERSION >= 20140108 \
11788 || PACKET_VERSION >= 20131230 \
11789 || PACKET_VERSION >= 20131218 \
11790 || PACKET_VERSION >= 20131211 \
11791 || PACKET_VERSION >= 20131204 \
11792 || PACKET_VERSION >= 20131106 \
11793 || PACKET_VERSION >= 20131030 \
11794 || PACKET_VERSION >= 20131023 \
11795 || PACKET_VERSION >= 20131016 \
11796 || PACKET_VERSION >= 20131008 \
11797 || PACKET_VERSION >= 20131002 \
11798 || PACKET_VERSION >= 20130911 \
11799 || PACKET_VERSION >= 20130904 \
11800 || PACKET_VERSION >= 20130828 \
11801 || PACKET_VERSION >= 20130821 \
11802 || PACKET_VERSION >= 20130814 \
11803 || PACKET_VERSION >= 20130807 \
11804 || PACKET_VERSION >= 20130717 \
11805 || PACKET_VERSION >= 20130703 \
11806 || PACKET_VERSION >= 20130618 \
11807 || PACKET_VERSION >= 20130605 \
11808 || PACKET_VERSION >= 20130529 \
11809 || PACKET_VERSION >= 20130522 \
11810 || PACKET_VERSION >= 20130508 \
11811 || PACKET_VERSION >= 20130502 \
11812 || PACKET_VERSION >= 20130417 \
11813 || PACKET_VERSION >= 20130410 \
11814 || PACKET_VERSION >= 20130403 \
11815 || PACKET_VERSION >= 20130327 \
11816 || PACKET_VERSION >= 20130320 \
11817 || PACKET_VERSION >= 20130313 \
11818 || PACKET_VERSION >= 20130227 \
11819 || PACKET_VERSION >= 20130220 \
11820 || PACKET_VERSION >= 20130130 \
11821 || PACKET_VERSION >= 20130121 \
11822 || PACKET_VERSION >= 20130115 \
11823 || PACKET_VERSION >= 20130109 \
11824 || PACKET_VERSION >= 20130103 \
11825 || PACKET_VERSION >= 20121205 \
11826 || PACKET_VERSION >= 20121128 \
11827 || PACKET_VERSION >= 20121107 \
11828 || PACKET_VERSION >= 20121031 \
11829 || PACKET_VERSION >= 20120925 \
11830 || PACKET_VERSION >= 20120919 \
11831 || PACKET_VERSION >= 20120822 \
11832 || PACKET_VERSION >= 20120814 \
11833 || PACKET_VERSION >= 20120808 \
11834 || PACKET_VERSION >= 20120724 \
11835 || PACKET_VERSION >= 20120716 \
11836 || PACKET_VERSION >= 20120626 \
11837 || PACKET_VERSION >= 20120612 \
11838 || PACKET_VERSION >= 20120601 \
11839 || PACKET_VERSION >= 20120529 \
11840 || PACKET_VERSION >= 20120508 \
11841 || PACKET_VERSION >= 20120502 \
11842 || PACKET_VERSION >= 20120424 \
11843 || PACKET_VERSION >= 20120417 \
11844 || PACKET_VERSION >= 20120328 \
11845 || PACKET_VERSION >= 20120320 \
11846 || PACKET_VERSION >= 20120307 \
11847 || PACKET_VERSION >= 20120228 \
11848 || PACKET_VERSION >= 20120214 \
11849 || PACKET_VERSION >= 20120207 \
11850 || PACKET_VERSION >= 20120131 \
11851 || PACKET_VERSION >= 20120120 \
11852 || PACKET_VERSION >= 20120117 \
11853 || PACKET_VERSION >= 20120103 \
11854 || PACKET_VERSION >= 20111227 \
11855 || PACKET_VERSION >= 20111220 \
11856 || PACKET_VERSION >= 20111213 \
11857 || PACKET_VERSION >= 20111207 \
11858 || PACKET_VERSION >= 20111122 \
11859 || PACKET_VERSION >= 20111114 \
11860 || PACKET_VERSION >= 20111108 \
11861 || PACKET_VERSION >= 20111101 \
11862 || PACKET_VERSION >= 20111025 \
11863 || PACKET_VERSION >= 20111017 \
11864 || PACKET_VERSION >= 20111010 \
11865 || PACKET_VERSION >= 20111004 \
11866 || PACKET_VERSION >= 20110928 \
11867 || PACKET_VERSION >= 20110920 \
11868 || PACKET_VERSION >= 20110906 \
11869 || PACKET_VERSION >= 20110831 \
11870 || PACKET_VERSION >= 20110823 \
11871 || PACKET_VERSION >= 20110104 \
11872 || (PACKET_VERSION >= 20100000 && PACKET_VERSION < 20110104) \
11873 || PACKET_VERSION >= 20091006 \
11874 || PACKET_VERSION >= 20090929)
11876#elif CLIENT_TYPE == 'R' && \
11877 PACKET_VERSION >= 20120926
11879#elif CLIENT_TYPE == 'R' && \
11880 PACKET_VERSION >= 20121011
11882#elif CLIENT_TYPE == 'R' && \
11883 PACKET_VERSION >= 20130116
11885#elif CLIENT_TYPE == 'R' && ( \
11886 PACKET_VERSION == 20151029 \
11887 || PACKET_VERSION == 20151022 \
11888 || PACKET_VERSION == 20150812 \
11889 || PACKET_VERSION >= 20141016)
11891#elif CLIENT_TYPE == 'R' && \
11892 PACKET_VERSION >= 20150226
11894#elif CLIENT_TYPE == 'R' && \
11895 PACKET_VERSION >= 20150618
11897#elif CLIENT_TYPE == 'R' && \
11898 PACKET_VERSION >= 20160630
11900#elif CLIENT_TYPE == 'R' && \
11901 PACKET_VERSION >= 20161103
11903#elif CLIENT_TYPE == 'Z' && ( \
11904 PACKET_VERSION == 20190814 \
11905 || PACKET_VERSION == 20190724 \
11906 || PACKET_VERSION == 20190717 \
11907 || PACKET_VERSION == 20190710 \
11908 || PACKET_VERSION == 20190709 \
11909 || PACKET_VERSION == 20190605 \
11910 || PACKET_VERSION == 20190530 \
11911 || PACKET_VERSION == 20190515 \
11912 || PACKET_VERSION == 20190508 \
11913 || PACKET_VERSION == 20190502 \
11914 || PACKET_VERSION == 20190424 \
11915 || PACKET_VERSION == 20190410 \
11916 || PACKET_VERSION == 20190403 \
11917 || PACKET_VERSION == 20190313 \
11918 || PACKET_VERSION == 20190227 \
11919 || PACKET_VERSION == 20190213 \
11920 || PACKET_VERSION == 20190117 \
11921 || PACKET_VERSION == 20181226 \
11922 || PACKET_VERSION == 20181219 \
11923 || PACKET_VERSION == 20181212 \
11924 || PACKET_VERSION == 20181128 \
11925 || PACKET_VERSION == 20181120 \
11926 || PACKET_VERSION == 20180928 \
11927 || PACKET_VERSION == 20180912 \
11928 || PACKET_VERSION == 20180829 \
11929 || PACKET_VERSION >= 20180808 \
11930 || PACKET_VERSION >= 20180801 \
11931 || PACKET_VERSION >= 20180711 \
11932 || PACKET_VERSION >= 20180703 \
11933 || PACKET_VERSION >= 20180627 \
11934 || PACKET_VERSION >= 20180509 \
11935 || PACKET_VERSION >= 20180411 \
11936 || PACKET_VERSION >= 20180321 \
11937 || PACKET_VERSION >= 20171113 \
11938 || PACKET_VERSION >= 20171031 \
11939 || PACKET_VERSION >= 20171030 \
11940 || PACKET_VERSION >= 20171027 \
11941 || PACKET_VERSION >= 20171025 \
11942 || PACKET_VERSION >= 20171024 \
11943 || PACKET_VERSION >= 20171023 \
11944 || PACKET_VERSION >= 20171019)
11946#elif CLIENT_TYPE == 'Z' && ( \
11947 PACKET_VERSION == 20180309 \
11948 || PACKET_VERSION == 20180307 \
11949 || PACKET_VERSION == 20171128 \
11950 || PACKET_VERSION == 20171117 \
11951 || PACKET_VERSION == 20171116)
11953#elif CLIENT_TYPE == 'Z' && ( \
11954 PACKET_VERSION >= 20220000 \
11955 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
11956 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
11957 || PACKET_VERSION >= 20171122)
11959#elif CLIENT_TYPE == 'Z' && ( \
11960 PACKET_VERSION == 20171213 \
11961 || PACKET_VERSION == 20171212 \
11962 || PACKET_VERSION == 20171211 \
11963 || PACKET_VERSION == 20171210 \
11964 || PACKET_VERSION == 20171209 \
11965 || PACKET_VERSION == 20171208)
11967#elif CLIENT_TYPE == 'Z' && \
11968 PACKET_VERSION >= 20171221
11970#elif CLIENT_TYPE == 'Z' && \
11971 PACKET_VERSION >= 20171229
11973#else
11974ID_CZ_JOIN_BATTLE_FIELD = 0x0000 // Disabled
11975#endif
11982{
11983public:
11984 CZ_JOIN_BATTLE_FIELD(std::shared_ptr<ZoneSession> s)
11986 {}
11988
11989 void handle(ByteBuffer &&buf);
11990 void deserialize(ByteBuffer &buf);
11991
11992/* Structure */
11993};
11994
11995enum {
11996#if CLIENT_TYPE == 'A' && \
11997 PACKET_VERSION >= 20040000
11998ID_CZ_JOIN_COUPLE = 0x01e3
11999#elif CLIENT_TYPE == 'M' && ( \
12000 PACKET_VERSION >= 20220000 \
12001 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
12002 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
12003 || (PACKET_VERSION >= 20030000 && PACKET_VERSION < 20200000))
12004ID_CZ_JOIN_COUPLE = 0x01e3
12005#elif CLIENT_TYPE == 'R' && ( \
12006 PACKET_VERSION >= 20210000 \
12007 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
12008 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
12009ID_CZ_JOIN_COUPLE = 0x01e3
12010#elif CLIENT_TYPE == 'S' && \
12011 PACKET_VERSION >= 20030000
12012ID_CZ_JOIN_COUPLE = 0x01e3
12013#elif CLIENT_TYPE == 'Z' && ( \
12014 PACKET_VERSION >= 20220000 \
12015 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
12016 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
12017 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
12018ID_CZ_JOIN_COUPLE = 0x01e3
12019#else
12020ID_CZ_JOIN_COUPLE = 0x0000 // Disabled
12021#endif
12027class CZ_JOIN_COUPLE : public Base::NetworkPacket<ZoneSession>
12028{
12029public:
12030 CZ_JOIN_COUPLE(std::shared_ptr<ZoneSession> s)
12032 {}
12033 virtual ~CZ_JOIN_COUPLE() {}
12034
12035 void handle(ByteBuffer &&buf);
12036 void deserialize(ByteBuffer &buf);
12037
12038/* Structure */
12039};
12040
12041enum {
12042#if CLIENT_TYPE == 'A' && \
12043 PACKET_VERSION >= 20040000
12044ID_CZ_JOIN_GROUP = 0x00ff
12045#elif CLIENT_TYPE == 'M' && ( \
12046 PACKET_VERSION >= 20220000 \
12047 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
12048 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
12049 || (PACKET_VERSION >= 20030000 && PACKET_VERSION < 20200000))
12050ID_CZ_JOIN_GROUP = 0x00ff
12051#elif CLIENT_TYPE == 'R' && ( \
12052 PACKET_VERSION >= 20210000 \
12053 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
12054 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
12055ID_CZ_JOIN_GROUP = 0x00ff
12056#elif CLIENT_TYPE == 'S' && \
12057 PACKET_VERSION >= 20030000
12058ID_CZ_JOIN_GROUP = 0x00ff
12059#elif CLIENT_TYPE == 'Z' && ( \
12060 PACKET_VERSION >= 20220000 \
12061 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
12062 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
12063 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
12064ID_CZ_JOIN_GROUP = 0x00ff
12065#else
12066ID_CZ_JOIN_GROUP = 0x0000 // Disabled
12067#endif
12073class CZ_JOIN_GROUP : public Base::NetworkPacket<ZoneSession>
12074{
12075public:
12076 CZ_JOIN_GROUP(std::shared_ptr<ZoneSession> s)
12078 {}
12079 virtual ~CZ_JOIN_GROUP() {}
12080
12081 void handle(ByteBuffer &&buf);
12082 void deserialize(ByteBuffer &buf);
12083
12084/* Structure */
12085 int _party_id{ 0 };
12086 int _response{ 0 };
12087};
12088
12089enum {
12090#if CLIENT_TYPE == 'A' && \
12091 PACKET_VERSION >= 20040000
12092ID_CZ_JOIN_GUILD = 0x016b
12093#elif CLIENT_TYPE == 'M' && ( \
12094 PACKET_VERSION >= 20220000 \
12095 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
12096 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
12097 || (PACKET_VERSION >= 20030000 && PACKET_VERSION < 20200000))
12098ID_CZ_JOIN_GUILD = 0x016b
12099#elif CLIENT_TYPE == 'R' && ( \
12100 PACKET_VERSION >= 20210000 \
12101 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
12102 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
12103ID_CZ_JOIN_GUILD = 0x016b
12104#elif CLIENT_TYPE == 'S' && \
12105 PACKET_VERSION >= 20030000
12106ID_CZ_JOIN_GUILD = 0x016b
12107#elif CLIENT_TYPE == 'Z' && ( \
12108 PACKET_VERSION >= 20220000 \
12109 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
12110 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
12111 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
12112ID_CZ_JOIN_GUILD = 0x016b
12113#else
12114ID_CZ_JOIN_GUILD = 0x0000 // Disabled
12115#endif
12121class CZ_JOIN_GUILD : public Base::NetworkPacket<ZoneSession>
12122{
12123public:
12124 CZ_JOIN_GUILD(std::shared_ptr<ZoneSession> s)
12126 {}
12127 virtual ~CZ_JOIN_GUILD() {}
12128
12129 void handle(ByteBuffer &&buf);
12130 void deserialize(ByteBuffer &buf);
12131
12132/* Structure */
12133 int _guild_id{ 0 };
12134 int _response{ 0 };
12135};
12136
12137enum {
12138#if CLIENT_TYPE == 'A' && \
12139 PACKET_VERSION >= 20050530
12140ID_CZ_KILLER_RANK = 0x0237
12141#elif CLIENT_TYPE == 'M' && ( \
12142 PACKET_VERSION >= 20220000 \
12143 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
12144 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
12145 || PACKET_VERSION >= 20050530)
12146ID_CZ_KILLER_RANK = 0x0237
12147#elif CLIENT_TYPE == 'R' && ( \
12148 PACKET_VERSION >= 20210000 \
12149 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
12150 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
12151ID_CZ_KILLER_RANK = 0x0237
12152#elif CLIENT_TYPE == 'S' && \
12153 PACKET_VERSION >= 20050530
12154ID_CZ_KILLER_RANK = 0x0237
12155#elif CLIENT_TYPE == 'Z' && ( \
12156 PACKET_VERSION >= 20220000 \
12157 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
12158 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
12159 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
12160ID_CZ_KILLER_RANK = 0x0237
12161#else
12162ID_CZ_KILLER_RANK = 0x0000 // Disabled
12163#endif
12169class CZ_KILLER_RANK : public Base::NetworkPacket<ZoneSession>
12170{
12171public:
12172 CZ_KILLER_RANK(std::shared_ptr<ZoneSession> s)
12174 {}
12175 virtual ~CZ_KILLER_RANK() {}
12176
12177 void handle(ByteBuffer &&buf);
12178 void deserialize(ByteBuffer &buf);
12179
12180/* Structure */
12181};
12182
12183enum {
12184#if CLIENT_TYPE == 'A' && \
12185 PACKET_VERSION >= 20070129
12186ID_CZ_KSY_EVENT = 0x02a5
12187#elif CLIENT_TYPE == 'M' && ( \
12188 PACKET_VERSION >= 20220000 \
12189 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
12190 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
12191 || PACKET_VERSION >= 20070129)
12192ID_CZ_KSY_EVENT = 0x02a5
12193#elif CLIENT_TYPE == 'R' && ( \
12194 PACKET_VERSION >= 20210000 \
12195 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
12196 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
12197ID_CZ_KSY_EVENT = 0x02a5
12198#elif CLIENT_TYPE == 'S' && \
12199 PACKET_VERSION >= 20070129
12200ID_CZ_KSY_EVENT = 0x02a5
12201#elif CLIENT_TYPE == 'Z' && ( \
12202 PACKET_VERSION >= 20220000 \
12203 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
12204 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
12205 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
12206ID_CZ_KSY_EVENT = 0x02a5
12207#else
12208ID_CZ_KSY_EVENT = 0x0000 // Disabled
12209#endif
12215class CZ_KSY_EVENT : public Base::NetworkPacket<ZoneSession>
12216{
12217public:
12218 CZ_KSY_EVENT(std::shared_ptr<ZoneSession> s)
12220 {}
12221 virtual ~CZ_KSY_EVENT() {}
12222
12223 void handle(ByteBuffer &&buf);
12224 void deserialize(ByteBuffer &buf);
12225
12226/* Structure */
12227};
12228
12229enum {
12230#if CLIENT_TYPE == 'A' && \
12231 PACKET_VERSION >= 20041115
12232ID_CZ_LESSEFFECT = 0x021d
12233#elif CLIENT_TYPE == 'M' && ( \
12234 PACKET_VERSION >= 20220000 \
12235 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
12236 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
12237 || PACKET_VERSION >= 20041115)
12238ID_CZ_LESSEFFECT = 0x021d
12239#elif CLIENT_TYPE == 'R' && ( \
12240 PACKET_VERSION >= 20210000 \
12241 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
12242 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
12243ID_CZ_LESSEFFECT = 0x021d
12244#elif CLIENT_TYPE == 'S' && \
12245 PACKET_VERSION >= 20041115
12246ID_CZ_LESSEFFECT = 0x021d
12247#elif CLIENT_TYPE == 'Z' && ( \
12248 PACKET_VERSION >= 20220000 \
12249 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
12250 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
12251 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
12252ID_CZ_LESSEFFECT = 0x021d
12253#else
12254ID_CZ_LESSEFFECT = 0x0000 // Disabled
12255#endif
12261class CZ_LESSEFFECT : public Base::NetworkPacket<ZoneSession>
12262{
12263public:
12264 CZ_LESSEFFECT(std::shared_ptr<ZoneSession> s)
12266 {}
12267 virtual ~CZ_LESSEFFECT() {}
12268
12269 void handle(ByteBuffer &&buf);
12270 void deserialize(ByteBuffer &buf);
12271
12272/* Structure */
12273 int _setting{ 0 };
12274};
12275
12276enum {
12277#if CLIENT_TYPE == 'A' && \
12278 PACKET_VERSION >= 20041213
12279ID_CZ_LOCALBROADCAST = 0x019c
12280#elif CLIENT_TYPE == 'M' && ( \
12281 PACKET_VERSION >= 20220000 \
12282 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
12283 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
12284 || (PACKET_VERSION >= 20030000 && PACKET_VERSION < 20200000))
12285ID_CZ_LOCALBROADCAST = 0x019c
12286#elif CLIENT_TYPE == 'R' && ( \
12287 PACKET_VERSION >= 20210000 \
12288 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
12289 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
12290ID_CZ_LOCALBROADCAST = 0x019c
12291#elif CLIENT_TYPE == 'S' && \
12292 PACKET_VERSION >= 20030000
12293ID_CZ_LOCALBROADCAST = 0x019c
12294#elif CLIENT_TYPE == 'Z' && ( \
12295 PACKET_VERSION >= 20220000 \
12296 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
12297 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
12298 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
12299ID_CZ_LOCALBROADCAST = 0x019c
12300#else
12301ID_CZ_LOCALBROADCAST = 0x0000 // Disabled
12302#endif
12308class CZ_LOCALBROADCAST : public Base::NetworkPacket<ZoneSession>
12309{
12310public:
12311 CZ_LOCALBROADCAST(std::shared_ptr<ZoneSession> s)
12313 {}
12315
12316 void handle(ByteBuffer &&buf);
12317 void deserialize(ByteBuffer &buf);
12318
12319/* Structure */
12320 int16_t _packet_length{ 0 };
12322};
12323
12324enum {
12325#if CLIENT_TYPE == 'M' && ( \
12326 PACKET_VERSION >= 20220000 \
12327 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
12328 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
12329 || PACKET_VERSION >= 20101026)
12331#elif CLIENT_TYPE == 'R' && ( \
12332 PACKET_VERSION >= 20210000 \
12333 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
12334 || PACKET_VERSION >= 20101026)
12336#elif CLIENT_TYPE == 'Z' && ( \
12337 PACKET_VERSION >= 20220000 \
12338 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
12339 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
12340 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
12342#else
12343ID_CZ_MACRO_ITEM_PICKUP = 0x0000 // Disabled
12344#endif
12351{
12352public:
12353 CZ_MACRO_ITEM_PICKUP(std::shared_ptr<ZoneSession> s)
12355 {}
12357
12358 void handle(ByteBuffer &&buf);
12359 void deserialize(ByteBuffer &buf);
12360
12361/* Structure */
12362};
12363
12364enum {
12365#if CLIENT_TYPE == 'M' && ( \
12366 PACKET_VERSION >= 20220000 \
12367 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
12368 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
12369 || PACKET_VERSION >= 20101026)
12371#elif CLIENT_TYPE == 'R' && ( \
12372 PACKET_VERSION >= 20210000 \
12373 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
12374 || PACKET_VERSION >= 20101026)
12376#elif CLIENT_TYPE == 'Z' && ( \
12377 PACKET_VERSION >= 20220000 \
12378 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
12379 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
12380 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
12382#else
12383ID_CZ_MACRO_REQUEST_ACT = 0x0000 // Disabled
12384#endif
12391{
12392public:
12393 CZ_MACRO_REQUEST_ACT(std::shared_ptr<ZoneSession> s)
12395 {}
12397
12398 void handle(ByteBuffer &&buf);
12399 void deserialize(ByteBuffer &buf);
12400
12401/* Structure */
12402};
12403
12404enum {
12405#if CLIENT_TYPE == 'M' && ( \
12406 PACKET_VERSION >= 20220000 \
12407 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
12408 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
12409 || PACKET_VERSION >= 20101026)
12411#elif CLIENT_TYPE == 'R' && ( \
12412 PACKET_VERSION >= 20210000 \
12413 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
12414 || PACKET_VERSION >= 20101026)
12416#elif CLIENT_TYPE == 'Z' && ( \
12417 PACKET_VERSION >= 20220000 \
12418 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
12419 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
12420 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
12422#else
12423ID_CZ_MACRO_REQUEST_MOVE = 0x0000 // Disabled
12424#endif
12431{
12432public:
12433 CZ_MACRO_REQUEST_MOVE(std::shared_ptr<ZoneSession> s)
12435 {}
12437
12438 void handle(ByteBuffer &&buf);
12439 void deserialize(ByteBuffer &buf);
12440
12441/* Structure */
12442};
12443
12444enum {
12445#if CLIENT_TYPE == 'M' && ( \
12446 PACKET_VERSION >= 20220000 \
12447 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
12448 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
12449 || PACKET_VERSION >= 20110222)
12450ID_CZ_MACRO_START = 0x08c1
12451#elif CLIENT_TYPE == 'R' && ( \
12452 PACKET_VERSION >= 20210000 \
12453 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
12454 || PACKET_VERSION >= 20110222)
12455ID_CZ_MACRO_START = 0x08c1
12456#elif CLIENT_TYPE == 'Z' && ( \
12457 PACKET_VERSION >= 20220000 \
12458 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
12459 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
12460 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
12461ID_CZ_MACRO_START = 0x08c1
12462#else
12463ID_CZ_MACRO_START = 0x0000 // Disabled
12464#endif
12470class CZ_MACRO_START : public Base::NetworkPacket<ZoneSession>
12471{
12472public:
12473 CZ_MACRO_START(std::shared_ptr<ZoneSession> s)
12475 {}
12476 virtual ~CZ_MACRO_START() {}
12477
12478 void handle(ByteBuffer &&buf);
12479 void deserialize(ByteBuffer &buf);
12480
12481/* Structure */
12482};
12483
12484enum {
12485#if CLIENT_TYPE == 'M' && ( \
12486 PACKET_VERSION >= 20220000 \
12487 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
12488 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
12489 || PACKET_VERSION >= 20110222)
12490ID_CZ_MACRO_STOP = 0x08c2
12491#elif CLIENT_TYPE == 'R' && ( \
12492 PACKET_VERSION >= 20210000 \
12493 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
12494 || PACKET_VERSION >= 20110222)
12495ID_CZ_MACRO_STOP = 0x08c2
12496#elif CLIENT_TYPE == 'Z' && ( \
12497 PACKET_VERSION >= 20220000 \
12498 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
12499 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
12500 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
12501ID_CZ_MACRO_STOP = 0x08c2
12502#else
12503ID_CZ_MACRO_STOP = 0x0000 // Disabled
12504#endif
12510class CZ_MACRO_STOP : public Base::NetworkPacket<ZoneSession>
12511{
12512public:
12513 CZ_MACRO_STOP(std::shared_ptr<ZoneSession> s)
12515 {}
12516 virtual ~CZ_MACRO_STOP() {}
12517
12518 void handle(ByteBuffer &&buf);
12519 void deserialize(ByteBuffer &buf);
12520
12521/* Structure */
12522};
12523
12524enum {
12525#if CLIENT_TYPE == 'M' && ( \
12526 PACKET_VERSION >= 20220000 \
12527 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
12528 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
12529 || PACKET_VERSION >= 20101026)
12530ID_CZ_MACRO_USE_SKILL = 0x084c
12531#elif CLIENT_TYPE == 'R' && ( \
12532 PACKET_VERSION >= 20210000 \
12533 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
12534 || PACKET_VERSION >= 20101026)
12535ID_CZ_MACRO_USE_SKILL = 0x084c
12536#elif CLIENT_TYPE == 'Z' && ( \
12537 PACKET_VERSION >= 20220000 \
12538 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
12539 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
12540 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
12541ID_CZ_MACRO_USE_SKILL = 0x084c
12542#else
12543ID_CZ_MACRO_USE_SKILL = 0x0000 // Disabled
12544#endif
12550class CZ_MACRO_USE_SKILL : public Base::NetworkPacket<ZoneSession>
12551{
12552public:
12553 CZ_MACRO_USE_SKILL(std::shared_ptr<ZoneSession> s)
12555 {}
12557
12558 void handle(ByteBuffer &&buf);
12559 void deserialize(ByteBuffer &buf);
12560
12561/* Structure */
12562};
12563
12564enum {
12565#if CLIENT_TYPE == 'M' && ( \
12566 PACKET_VERSION >= 20220000 \
12567 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
12568 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
12569 || PACKET_VERSION >= 20101026)
12571#elif CLIENT_TYPE == 'R' && ( \
12572 PACKET_VERSION >= 20210000 \
12573 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
12574 || PACKET_VERSION >= 20101026)
12576#elif CLIENT_TYPE == 'Z' && ( \
12577 PACKET_VERSION >= 20220000 \
12578 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
12579 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
12580 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
12582#else
12583ID_CZ_MACRO_USE_SKILL_TOGROUND = 0x0000 // Disabled
12584#endif
12591{
12592public:
12593 CZ_MACRO_USE_SKILL_TOGROUND(std::shared_ptr<ZoneSession> s)
12595 {}
12597
12598 void handle(ByteBuffer &&buf);
12599 void deserialize(ByteBuffer &buf);
12600
12601/* Structure */
12602};
12603
12604enum {
12605#if CLIENT_TYPE == 'A' && \
12606 PACKET_VERSION >= 20050718
12607ID_CZ_MAIL_ADD_ITEM = 0x0247
12608#elif CLIENT_TYPE == 'M' && ( \
12609 PACKET_VERSION >= 20220000 \
12610 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
12611 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
12612 || PACKET_VERSION >= 20050718)
12613ID_CZ_MAIL_ADD_ITEM = 0x0247
12614#elif CLIENT_TYPE == 'R' && ( \
12615 PACKET_VERSION >= 20210000 \
12616 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
12617 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
12618ID_CZ_MAIL_ADD_ITEM = 0x0247
12619#elif CLIENT_TYPE == 'S' && \
12620 PACKET_VERSION >= 20050718
12621ID_CZ_MAIL_ADD_ITEM = 0x0247
12622#elif CLIENT_TYPE == 'Z' && ( \
12623 PACKET_VERSION >= 20220000 \
12624 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
12625 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
12626 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
12627ID_CZ_MAIL_ADD_ITEM = 0x0247
12628#else
12629ID_CZ_MAIL_ADD_ITEM = 0x0000 // Disabled
12630#endif
12636class CZ_MAIL_ADD_ITEM : public Base::NetworkPacket<ZoneSession>
12637{
12638public:
12639 CZ_MAIL_ADD_ITEM(std::shared_ptr<ZoneSession> s)
12641 {}
12643
12644 void handle(ByteBuffer &&buf);
12645 void deserialize(ByteBuffer &buf);
12646
12647/* Structure */
12648 int16_t _inventory_index{ 0 };
12649 int _amount{ 0 };
12650};
12651
12652enum {
12653#if CLIENT_TYPE == 'A' && \
12654 PACKET_VERSION >= 20050718
12655ID_CZ_MAIL_DELETE = 0x0243
12656#elif CLIENT_TYPE == 'M' && ( \
12657 PACKET_VERSION >= 20220000 \
12658 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
12659 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
12660 || PACKET_VERSION >= 20050718)
12661ID_CZ_MAIL_DELETE = 0x0243
12662#elif CLIENT_TYPE == 'R' && ( \
12663 PACKET_VERSION >= 20210000 \
12664 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
12665 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
12666ID_CZ_MAIL_DELETE = 0x0243
12667#elif CLIENT_TYPE == 'S' && \
12668 PACKET_VERSION >= 20050718
12669ID_CZ_MAIL_DELETE = 0x0243
12670#elif CLIENT_TYPE == 'Z' && ( \
12671 PACKET_VERSION >= 20220000 \
12672 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
12673 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
12674 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
12675ID_CZ_MAIL_DELETE = 0x0243
12676#else
12677ID_CZ_MAIL_DELETE = 0x0000 // Disabled
12678#endif
12684class CZ_MAIL_DELETE : public Base::NetworkPacket<ZoneSession>
12685{
12686public:
12687 CZ_MAIL_DELETE(std::shared_ptr<ZoneSession> s)
12689 {}
12690 virtual ~CZ_MAIL_DELETE() {}
12691
12692 void handle(ByteBuffer &&buf);
12693 void deserialize(ByteBuffer &buf);
12694
12695/* Structure */
12696 int _mail_id{ 0 };
12697};
12698
12699enum {
12700#if CLIENT_TYPE == 'A' && \
12701 PACKET_VERSION >= 20050718
12702ID_CZ_MAIL_GET_ITEM = 0x0244
12703#elif CLIENT_TYPE == 'M' && ( \
12704 PACKET_VERSION >= 20220000 \
12705 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
12706 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
12707 || PACKET_VERSION >= 20050718)
12708ID_CZ_MAIL_GET_ITEM = 0x0244
12709#elif CLIENT_TYPE == 'R' && ( \
12710 PACKET_VERSION >= 20210000 \
12711 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
12712 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
12713ID_CZ_MAIL_GET_ITEM = 0x0244
12714#elif CLIENT_TYPE == 'S' && \
12715 PACKET_VERSION >= 20050718
12716ID_CZ_MAIL_GET_ITEM = 0x0244
12717#elif CLIENT_TYPE == 'Z' && ( \
12718 PACKET_VERSION >= 20220000 \
12719 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
12720 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
12721 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
12722ID_CZ_MAIL_GET_ITEM = 0x0244
12723#else
12724ID_CZ_MAIL_GET_ITEM = 0x0000 // Disabled
12725#endif
12731class CZ_MAIL_GET_ITEM : public Base::NetworkPacket<ZoneSession>
12732{
12733public:
12734 CZ_MAIL_GET_ITEM(std::shared_ptr<ZoneSession> s)
12736 {}
12738
12739 void handle(ByteBuffer &&buf);
12740 void deserialize(ByteBuffer &buf);
12741
12742/* Structure */
12743 int _mail_id{ 0 };
12744};
12745
12746enum {
12747#if CLIENT_TYPE == 'A' && \
12748 PACKET_VERSION >= 20050718
12749ID_CZ_MAIL_GET_LIST = 0x023f
12750#elif CLIENT_TYPE == 'M' && ( \
12751 PACKET_VERSION >= 20220000 \
12752 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
12753 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
12754 || PACKET_VERSION >= 20050718)
12755ID_CZ_MAIL_GET_LIST = 0x023f
12756#elif CLIENT_TYPE == 'R' && ( \
12757 PACKET_VERSION >= 20210000 \
12758 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
12759 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
12760ID_CZ_MAIL_GET_LIST = 0x023f
12761#elif CLIENT_TYPE == 'S' && \
12762 PACKET_VERSION >= 20050718
12763ID_CZ_MAIL_GET_LIST = 0x023f
12764#elif CLIENT_TYPE == 'Z' && ( \
12765 PACKET_VERSION >= 20220000 \
12766 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
12767 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
12768 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
12769ID_CZ_MAIL_GET_LIST = 0x023f
12770#else
12771ID_CZ_MAIL_GET_LIST = 0x0000 // Disabled
12772#endif
12778class CZ_MAIL_GET_LIST : public Base::NetworkPacket<ZoneSession>
12779{
12780public:
12781 CZ_MAIL_GET_LIST(std::shared_ptr<ZoneSession> s)
12783 {}
12785
12786 void handle(ByteBuffer &&buf);
12787 void deserialize(ByteBuffer &buf);
12788
12789/* Structure */
12790};
12791
12792enum {
12793#if CLIENT_TYPE == 'A' && \
12794 PACKET_VERSION >= 20050718
12795ID_CZ_MAIL_OPEN = 0x0241
12796#elif CLIENT_TYPE == 'M' && ( \
12797 PACKET_VERSION >= 20220000 \
12798 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
12799 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
12800 || PACKET_VERSION >= 20050718)
12801ID_CZ_MAIL_OPEN = 0x0241
12802#elif CLIENT_TYPE == 'R' && ( \
12803 PACKET_VERSION >= 20210000 \
12804 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
12805 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
12806ID_CZ_MAIL_OPEN = 0x0241
12807#elif CLIENT_TYPE == 'S' && \
12808 PACKET_VERSION >= 20050718
12809ID_CZ_MAIL_OPEN = 0x0241
12810#elif CLIENT_TYPE == 'Z' && ( \
12811 PACKET_VERSION >= 20220000 \
12812 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
12813 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
12814 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
12815ID_CZ_MAIL_OPEN = 0x0241
12816#else
12817ID_CZ_MAIL_OPEN = 0x0000 // Disabled
12818#endif
12824class CZ_MAIL_OPEN : public Base::NetworkPacket<ZoneSession>
12825{
12826public:
12827 CZ_MAIL_OPEN(std::shared_ptr<ZoneSession> s)
12829 {}
12830 virtual ~CZ_MAIL_OPEN() {}
12831
12832 void handle(ByteBuffer &&buf);
12833 void deserialize(ByteBuffer &buf);
12834
12835/* Structure */
12836 int _mail_id{ 0 };
12837};
12838
12839enum {
12840#if CLIENT_TYPE == 'A' && \
12841 PACKET_VERSION >= 20050718
12842ID_CZ_MAIL_RESET_ITEM = 0x0246
12843#elif CLIENT_TYPE == 'M' && ( \
12844 PACKET_VERSION >= 20220000 \
12845 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
12846 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
12847 || PACKET_VERSION >= 20050718)
12848ID_CZ_MAIL_RESET_ITEM = 0x0246
12849#elif CLIENT_TYPE == 'R' && ( \
12850 PACKET_VERSION >= 20210000 \
12851 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
12852 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
12853ID_CZ_MAIL_RESET_ITEM = 0x0246
12854#elif CLIENT_TYPE == 'S' && \
12855 PACKET_VERSION >= 20050718
12856ID_CZ_MAIL_RESET_ITEM = 0x0246
12857#elif CLIENT_TYPE == 'Z' && ( \
12858 PACKET_VERSION >= 20220000 \
12859 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
12860 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
12861 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
12862ID_CZ_MAIL_RESET_ITEM = 0x0246
12863#else
12864ID_CZ_MAIL_RESET_ITEM = 0x0000 // Disabled
12865#endif
12871class CZ_MAIL_RESET_ITEM : public Base::NetworkPacket<ZoneSession>
12872{
12873public:
12874 CZ_MAIL_RESET_ITEM(std::shared_ptr<ZoneSession> s)
12876 {}
12878
12879 void handle(ByteBuffer &&buf);
12880 void deserialize(ByteBuffer &buf);
12881
12882/* Structure */
12883 int16_t _type{ 0 };
12884};
12885
12886enum {
12887#if CLIENT_TYPE == 'A' && \
12888 PACKET_VERSION >= 20050829
12889ID_CZ_MAIL_SEND = 0x0248
12890#elif CLIENT_TYPE == 'M' && ( \
12891 PACKET_VERSION >= 20220000 \
12892 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
12893 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
12894 || PACKET_VERSION >= 20050829)
12895ID_CZ_MAIL_SEND = 0x0248
12896#elif CLIENT_TYPE == 'R' && ( \
12897 PACKET_VERSION >= 20210000 \
12898 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
12899 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
12900ID_CZ_MAIL_SEND = 0x0248
12901#elif CLIENT_TYPE == 'S' && \
12902 PACKET_VERSION >= 20050829
12903ID_CZ_MAIL_SEND = 0x0248
12904#elif CLIENT_TYPE == 'Z' && ( \
12905 PACKET_VERSION >= 20220000 \
12906 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
12907 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
12908 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
12909ID_CZ_MAIL_SEND = 0x0248
12910#else
12911ID_CZ_MAIL_SEND = 0x0000 // Disabled
12912#endif
12918class CZ_MAIL_SEND : public Base::NetworkPacket<ZoneSession>
12919{
12920public:
12921 CZ_MAIL_SEND(std::shared_ptr<ZoneSession> s)
12923 {}
12924 virtual ~CZ_MAIL_SEND() {}
12925
12926 void handle(ByteBuffer &&buf);
12927 void deserialize(ByteBuffer &buf);
12928
12929/* Structure */
12930 int16_t _packet_length { 0 };
12933 int8_t _body_length{ 0 };
12935};
12936
12937enum {
12938#if CLIENT_TYPE == 'A' && \
12939 PACKET_VERSION >= 20040000
12940ID_CZ_MAKE_GROUP = 0x00f9
12941#elif CLIENT_TYPE == 'M' && ( \
12942 PACKET_VERSION >= 20220000 \
12943 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
12944 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
12945 || PACKET_VERSION >= 20031117)
12946ID_CZ_MAKE_GROUP = 0x00f9
12947#elif CLIENT_TYPE == 'R' && ( \
12948 PACKET_VERSION >= 20210000 \
12949 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
12950 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
12951ID_CZ_MAKE_GROUP = 0x00f9
12952#elif CLIENT_TYPE == 'S' && \
12953 PACKET_VERSION >= 20031117
12954ID_CZ_MAKE_GROUP = 0x00f9
12955#elif CLIENT_TYPE == 'Z' && ( \
12956 PACKET_VERSION >= 20220000 \
12957 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
12958 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
12959 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
12960ID_CZ_MAKE_GROUP = 0x00f9
12961#else
12962ID_CZ_MAKE_GROUP = 0x0000 // Disabled
12963#endif
12969class CZ_MAKE_GROUP : public Base::NetworkPacket<ZoneSession>
12970{
12971public:
12972 CZ_MAKE_GROUP(std::shared_ptr<ZoneSession> s)
12974 {}
12975 virtual ~CZ_MAKE_GROUP() {}
12976
12977 void handle(ByteBuffer &&buf);
12978 void deserialize(ByteBuffer &buf);
12979
12980/* Structure */
12982};
12983
12984enum {
12985#if CLIENT_TYPE == 'A' && \
12986 PACKET_VERSION >= 20040000
12987ID_CZ_MAKE_GROUP2 = 0x01e8
12988#elif CLIENT_TYPE == 'M' && ( \
12989 PACKET_VERSION >= 20220000 \
12990 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
12991 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
12992 || PACKET_VERSION >= 20031117)
12993ID_CZ_MAKE_GROUP2 = 0x01e8
12994#elif CLIENT_TYPE == 'R' && ( \
12995 PACKET_VERSION >= 20210000 \
12996 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
12997 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
12998ID_CZ_MAKE_GROUP2 = 0x01e8
12999#elif CLIENT_TYPE == 'S' && \
13000 PACKET_VERSION >= 20031117
13001ID_CZ_MAKE_GROUP2 = 0x01e8
13002#elif CLIENT_TYPE == 'Z' && ( \
13003 PACKET_VERSION >= 20220000 \
13004 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
13005 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
13006 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
13007ID_CZ_MAKE_GROUP2 = 0x01e8
13008#else
13009ID_CZ_MAKE_GROUP2 = 0x0000 // Disabled
13010#endif
13016class CZ_MAKE_GROUP2 : public Base::NetworkPacket<ZoneSession>
13017{
13018public:
13019 CZ_MAKE_GROUP2(std::shared_ptr<ZoneSession> s)
13021 {}
13022 virtual ~CZ_MAKE_GROUP2() {}
13023
13024 void handle(ByteBuffer &&buf);
13025 void deserialize(ByteBuffer &buf);
13026
13027/* Structure */
13030 int8_t _item_share_rule{ 0 };
13031};
13032
13033enum {
13034#if CLIENT_TYPE == 'A' && \
13035 PACKET_VERSION >= 20070828
13037#elif CLIENT_TYPE == 'M' && ( \
13038 PACKET_VERSION >= 20220000 \
13039 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
13040 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
13041 || PACKET_VERSION >= 20070828)
13043#elif CLIENT_TYPE == 'R' && ( \
13044 PACKET_VERSION >= 20210000 \
13045 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
13046 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
13048#elif CLIENT_TYPE == 'S' && \
13049 PACKET_VERSION >= 20070828
13051#elif CLIENT_TYPE == 'Z' && ( \
13052 PACKET_VERSION >= 20220000 \
13053 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
13054 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
13055 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
13057#else
13058ID_CZ_MEMORIALDUNGEON_COMMAND = 0x0000 // Disabled
13059#endif
13066{
13067public:
13068 CZ_MEMORIALDUNGEON_COMMAND(std::shared_ptr<ZoneSession> s)
13070 {}
13072
13073 void handle(ByteBuffer &&buf);
13074 void deserialize(ByteBuffer &buf);
13075
13076/* Structure */
13077 int _command{ 0 };
13078};
13079
13080enum {
13081#if CLIENT_TYPE == 'A' && \
13082 PACKET_VERSION >= 20061226
13083ID_CZ_MER_COMMAND = 0x029f
13084#elif CLIENT_TYPE == 'M' && ( \
13085 PACKET_VERSION >= 20220000 \
13086 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
13087 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
13088 || PACKET_VERSION >= 20061226)
13089ID_CZ_MER_COMMAND = 0x029f
13090#elif CLIENT_TYPE == 'R' && ( \
13091 PACKET_VERSION >= 20210000 \
13092 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
13093 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
13094ID_CZ_MER_COMMAND = 0x029f
13095#elif CLIENT_TYPE == 'S' && \
13096 PACKET_VERSION >= 20061226
13097ID_CZ_MER_COMMAND = 0x029f
13098#elif CLIENT_TYPE == 'Z' && ( \
13099 PACKET_VERSION >= 20220000 \
13100 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
13101 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
13102 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
13103ID_CZ_MER_COMMAND = 0x029f
13104#else
13105ID_CZ_MER_COMMAND = 0x0000 // Disabled
13106#endif
13112class CZ_MER_COMMAND : public Base::NetworkPacket<ZoneSession>
13113{
13114public:
13115 CZ_MER_COMMAND(std::shared_ptr<ZoneSession> s)
13117 {}
13118 virtual ~CZ_MER_COMMAND() {}
13119
13120 void handle(ByteBuffer &&buf);
13121 void deserialize(ByteBuffer &buf);
13122
13123/* Structure */
13124};
13125
13126enum {
13127#if CLIENT_TYPE == 'A' && \
13128 PACKET_VERSION >= 20040000
13129ID_CZ_MONSTER_TALK = 0x01cb
13130#elif CLIENT_TYPE == 'M' && ( \
13131 PACKET_VERSION >= 20220000 \
13132 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
13133 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
13134 || (PACKET_VERSION >= 20030000 && PACKET_VERSION < 20200000))
13135ID_CZ_MONSTER_TALK = 0x01cb
13136#elif CLIENT_TYPE == 'R' && ( \
13137 PACKET_VERSION >= 20210000 \
13138 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
13139 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
13140ID_CZ_MONSTER_TALK = 0x01cb
13141#elif CLIENT_TYPE == 'S' && \
13142 PACKET_VERSION >= 20030000
13143ID_CZ_MONSTER_TALK = 0x01cb
13144#elif CLIENT_TYPE == 'Z' && ( \
13145 PACKET_VERSION >= 20220000 \
13146 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
13147 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
13148 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
13149ID_CZ_MONSTER_TALK = 0x01cb
13150#else
13151ID_CZ_MONSTER_TALK = 0x0000 // Disabled
13152#endif
13158class CZ_MONSTER_TALK : public Base::NetworkPacket<ZoneSession>
13159{
13160public:
13161 CZ_MONSTER_TALK(std::shared_ptr<ZoneSession> s)
13163 {}
13164 virtual ~CZ_MONSTER_TALK() {}
13165
13166 void handle(ByteBuffer &&buf);
13167 void deserialize(ByteBuffer &buf);
13168
13169/* Structure */
13170};
13171
13172enum {
13173#if CLIENT_TYPE == 'A' && \
13174 PACKET_VERSION >= 20040000
13175ID_CZ_MOVETO_MAP = 0x0140
13176#elif CLIENT_TYPE == 'M' && ( \
13177 PACKET_VERSION >= 20220000 \
13178 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
13179 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
13180 || (PACKET_VERSION >= 20030000 && PACKET_VERSION < 20200000))
13181ID_CZ_MOVETO_MAP = 0x0140
13182#elif CLIENT_TYPE == 'R' && ( \
13183 PACKET_VERSION >= 20210000 \
13184 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
13185 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
13186ID_CZ_MOVETO_MAP = 0x0140
13187#elif CLIENT_TYPE == 'S' && \
13188 PACKET_VERSION >= 20030000
13189ID_CZ_MOVETO_MAP = 0x0140
13190#elif CLIENT_TYPE == 'Z' && ( \
13191 PACKET_VERSION >= 20220000 \
13192 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
13193 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
13194 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
13195ID_CZ_MOVETO_MAP = 0x0140
13196#else
13197ID_CZ_MOVETO_MAP = 0x0000 // Disabled
13198#endif
13204class CZ_MOVETO_MAP : public Base::NetworkPacket<ZoneSession>
13205{
13206public:
13207 CZ_MOVETO_MAP(std::shared_ptr<ZoneSession> s)
13209 {}
13210 virtual ~CZ_MOVETO_MAP() {}
13211
13212 void handle(ByteBuffer &&buf);
13213 void deserialize(ByteBuffer &buf);
13214
13215/* Structure */
13217 int16_t _x{ 0 };
13218 int16_t _y{ 0 };
13219};
13220
13221enum {
13222#if CLIENT_TYPE == 'A' && \
13223 PACKET_VERSION >= 20040000
13225#elif CLIENT_TYPE == 'M' && ( \
13226 PACKET_VERSION >= 20220000 \
13227 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
13228 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
13229 || (PACKET_VERSION >= 20030000 && PACKET_VERSION < 20200000))
13231#elif CLIENT_TYPE == 'R' && ( \
13232 PACKET_VERSION >= 20210000 \
13233 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
13234 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
13236#elif CLIENT_TYPE == 'S' && \
13237 PACKET_VERSION >= 20030000
13239#elif CLIENT_TYPE == 'Z' && ( \
13240 PACKET_VERSION >= 20220000 \
13241 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
13242 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
13243 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
13245#else
13246ID_CZ_MOVE_ITEM_FROM_BODY_TO_CART = 0x0000 // Disabled
13247#endif
13254{
13255public:
13256 CZ_MOVE_ITEM_FROM_BODY_TO_CART(std::shared_ptr<ZoneSession> s)
13258 {}
13260
13261 void handle(ByteBuffer &&buf);
13262 void deserialize(ByteBuffer &buf);
13263
13264/* Structure */
13265 int16_t _inventory_index{ 0 };
13266 int _amount{ 0 };
13267};
13268
13269enum {
13270#if CLIENT_TYPE == 'M' && ( \
13271 PACKET_VERSION >= 20220000 \
13272 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
13273 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
13274 || PACKET_VERSION >= 20131106)
13276#elif CLIENT_TYPE == 'R' && ( \
13277 PACKET_VERSION >= 20210000 \
13278 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
13279 || PACKET_VERSION >= 20131106)
13281#elif CLIENT_TYPE == 'Z' && ( \
13282 PACKET_VERSION >= 20220000 \
13283 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
13284 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
13285 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
13287#else
13289#endif
13296{
13297public:
13298 CZ_MOVE_ITEM_FROM_BODY_TO_GUILDSTORAGE(std::shared_ptr<ZoneSession> s)
13300 {}
13302
13303 void handle(ByteBuffer &&buf);
13304 void deserialize(ByteBuffer &buf);
13305
13306/* Structure */
13307};
13308
13309enum {
13310#if CLIENT_TYPE == 'M' && \
13311 PACKET_VERSION >= 20030000
13313#elif CLIENT_TYPE == 'M' && \
13314 PACKET_VERSION >= 20120712
13316#elif CLIENT_TYPE == 'M' && ( \
13317 PACKET_VERSION == 20161103 \
13318 || PACKET_VERSION >= 20120926)
13320#elif CLIENT_TYPE == 'M' && ( \
13321 PACKET_VERSION == 20160318 \
13322 || PACKET_VERSION == 20151029 \
13323 || PACKET_VERSION == 20150812 \
13324 || PACKET_VERSION >= 20141016 \
13325 || PACKET_VERSION >= 20130107)
13327#elif CLIENT_TYPE == 'M' && \
13328 PACKET_VERSION >= 20130116
13330#elif CLIENT_TYPE == 'M' && ( \
13331 PACKET_VERSION == 20131108 \
13332 || PACKET_VERSION == 20131107)
13334#elif CLIENT_TYPE == 'M' && ( \
13335 PACKET_VERSION == 20140613 \
13336 || PACKET_VERSION == 20140612)
13338#elif CLIENT_TYPE == 'M' && \
13339 PACKET_VERSION >= 20140814
13341#elif CLIENT_TYPE == 'M' && ( \
13342 PACKET_VERSION == 20150130 \
13343 || PACKET_VERSION == 20150129)
13345#elif CLIENT_TYPE == 'M' && \
13346 PACKET_VERSION >= 20150226
13348#elif CLIENT_TYPE == 'M' && \
13349 PACKET_VERSION >= 20150618
13351#elif CLIENT_TYPE == 'M' && \
13352 PACKET_VERSION >= 20150702
13354#elif CLIENT_TYPE == 'M' && \
13355 PACKET_VERSION >= 20151022
13357#elif CLIENT_TYPE == 'M' && \
13358 PACKET_VERSION >= 20160526
13360#elif CLIENT_TYPE == 'M' && ( \
13361 PACKET_VERSION >= 20220000 \
13362 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
13363 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
13364 || PACKET_VERSION >= 20160609)
13366#elif CLIENT_TYPE == 'M' && \
13367 PACKET_VERSION >= 20160630
13369#elif CLIENT_TYPE == 'M' && \
13370 PACKET_VERSION >= 20180131
13372#elif CLIENT_TYPE == 'M' && \
13373 PACKET_VERSION >= 20180309
13375#elif CLIENT_TYPE == 'M' && ( \
13376 PACKET_VERSION == 20190821 \
13377 || PACKET_VERSION == 20190807 \
13378 || PACKET_VERSION == 20190802 \
13379 || PACKET_VERSION == 20190731 \
13380 || PACKET_VERSION == 20190724 \
13381 || PACKET_VERSION == 20190717 \
13382 || PACKET_VERSION == 20190703 \
13383 || PACKET_VERSION == 20190605 \
13384 || PACKET_VERSION == 20190530 \
13385 || PACKET_VERSION == 20190523 \
13386 || PACKET_VERSION == 20190522 \
13387 || PACKET_VERSION == 20190508 \
13388 || PACKET_VERSION == 20190418 \
13389 || PACKET_VERSION == 20190417 \
13390 || PACKET_VERSION == 20190327 \
13391 || PACKET_VERSION == 20190322 \
13392 || PACKET_VERSION == 20190320 \
13393 || PACKET_VERSION == 20190313 \
13394 || PACKET_VERSION == 20190306 \
13395 || PACKET_VERSION == 20190228 \
13396 || PACKET_VERSION == 20190123 \
13397 || PACKET_VERSION == 20190116 \
13398 || PACKET_VERSION == 20181226 \
13399 || PACKET_VERSION == 20181219 \
13400 || PACKET_VERSION == 20181212 \
13401 || PACKET_VERSION == 20181205 \
13402 || PACKET_VERSION == 20181128 \
13403 || PACKET_VERSION == 20181114 \
13404 || PACKET_VERSION == 20181107 \
13405 || PACKET_VERSION == 20181024 \
13406 || PACKET_VERSION == 20180919 \
13407 || PACKET_VERSION == 20180831 \
13408 || PACKET_VERSION == 20180822 \
13409 || PACKET_VERSION >= 20180808 \
13410 || PACKET_VERSION >= 20180718 \
13411 || PACKET_VERSION >= 20180704 \
13412 || PACKET_VERSION >= 20180621 \
13413 || PACKET_VERSION >= 20180620 \
13414 || PACKET_VERSION >= 20180530 \
13415 || PACKET_VERSION >= 20180523 \
13416 || PACKET_VERSION >= 20180516 \
13417 || PACKET_VERSION >= 20180509 \
13418 || PACKET_VERSION >= 20180502 \
13419 || PACKET_VERSION >= 20180425 \
13420 || PACKET_VERSION >= 20180404 \
13421 || PACKET_VERSION >= 20180328 \
13422 || PACKET_VERSION >= 20180321)
13424#elif CLIENT_TYPE == 'R' && \
13425 PACKET_VERSION >= 20120712
13427#elif CLIENT_TYPE == 'R' && ( \
13428 PACKET_VERSION == 20161103 \
13429 || PACKET_VERSION >= 20120926)
13431#elif CLIENT_TYPE == 'R' && ( \
13432 PACKET_VERSION >= 20210000 \
13433 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
13434 || PACKET_VERSION >= 20121011)
13436#elif CLIENT_TYPE == 'R' && \
13437 PACKET_VERSION >= 20130116
13439#elif CLIENT_TYPE == 'R' && ( \
13440 PACKET_VERSION == 20151029 \
13441 || PACKET_VERSION == 20150812 \
13442 || PACKET_VERSION >= 20141016)
13444#elif CLIENT_TYPE == 'R' && \
13445 PACKET_VERSION >= 20150226
13447#elif CLIENT_TYPE == 'R' && \
13448 PACKET_VERSION >= 20150618
13450#elif CLIENT_TYPE == 'R' && \
13451 PACKET_VERSION >= 20151022
13453#elif CLIENT_TYPE == 'R' && \
13454 PACKET_VERSION >= 20160630
13456#elif CLIENT_TYPE == 'R' && ( \
13457 PACKET_VERSION == 20190821 \
13458 || PACKET_VERSION == 20190807 \
13459 || PACKET_VERSION == 20190802 \
13460 || PACKET_VERSION == 20190731 \
13461 || PACKET_VERSION == 20190724 \
13462 || PACKET_VERSION == 20190717 \
13463 || PACKET_VERSION == 20190703 \
13464 || PACKET_VERSION == 20190626 \
13465 || PACKET_VERSION == 20190605 \
13466 || PACKET_VERSION == 20190530 \
13467 || PACKET_VERSION == 20190522 \
13468 || PACKET_VERSION == 20190508 \
13469 || PACKET_VERSION == 20190418 \
13470 || PACKET_VERSION == 20190417 \
13471 || PACKET_VERSION == 20190327 \
13472 || PACKET_VERSION == 20190322 \
13473 || PACKET_VERSION == 20190320 \
13474 || PACKET_VERSION == 20190306 \
13475 || PACKET_VERSION == 20190228 \
13476 || PACKET_VERSION == 20190123 \
13477 || PACKET_VERSION == 20190116 \
13478 || PACKET_VERSION == 20181226 \
13479 || PACKET_VERSION == 20181219 \
13480 || PACKET_VERSION == 20181212 \
13481 || PACKET_VERSION == 20181205 \
13482 || PACKET_VERSION == 20181128 \
13483 || PACKET_VERSION == 20181121 \
13484 || PACKET_VERSION == 20181114 \
13485 || PACKET_VERSION == 20181107 \
13486 || PACKET_VERSION == 20180822 \
13487 || PACKET_VERSION >= 20180808 \
13488 || PACKET_VERSION >= 20180718 \
13489 || PACKET_VERSION >= 20180711 \
13490 || PACKET_VERSION >= 20180621 \
13491 || PACKET_VERSION >= 20180620 \
13492 || PACKET_VERSION >= 20180612 \
13493 || PACKET_VERSION >= 20180530 \
13494 || PACKET_VERSION >= 20180523 \
13495 || PACKET_VERSION >= 20180516 \
13496 || PACKET_VERSION >= 20180502 \
13497 || PACKET_VERSION >= 20180425 \
13498 || PACKET_VERSION >= 20180404 \
13499 || PACKET_VERSION >= 20180328)
13501#elif CLIENT_TYPE == 'S' && \
13502 PACKET_VERSION >= 20030000
13504#elif CLIENT_TYPE == 'Z' && ( \
13505 PACKET_VERSION == 20190814 \
13506 || PACKET_VERSION == 20190724 \
13507 || PACKET_VERSION == 20190717 \
13508 || PACKET_VERSION == 20190710 \
13509 || PACKET_VERSION == 20190709 \
13510 || PACKET_VERSION == 20190605 \
13511 || PACKET_VERSION == 20190530 \
13512 || PACKET_VERSION == 20190515 \
13513 || PACKET_VERSION == 20190508 \
13514 || PACKET_VERSION == 20190502 \
13515 || PACKET_VERSION == 20190424 \
13516 || PACKET_VERSION == 20190410 \
13517 || PACKET_VERSION == 20190403 \
13518 || PACKET_VERSION == 20190313 \
13519 || PACKET_VERSION == 20190227 \
13520 || PACKET_VERSION == 20190213 \
13521 || PACKET_VERSION == 20190117 \
13522 || PACKET_VERSION == 20181226 \
13523 || PACKET_VERSION == 20181219 \
13524 || PACKET_VERSION == 20181212 \
13525 || PACKET_VERSION == 20181128 \
13526 || PACKET_VERSION == 20181120 \
13527 || PACKET_VERSION == 20180928 \
13528 || PACKET_VERSION == 20180912 \
13529 || PACKET_VERSION == 20180829 \
13530 || PACKET_VERSION >= 20180808 \
13531 || PACKET_VERSION >= 20180801 \
13532 || PACKET_VERSION >= 20180711 \
13533 || PACKET_VERSION >= 20180703 \
13534 || PACKET_VERSION >= 20180627 \
13535 || PACKET_VERSION >= 20180509 \
13536 || PACKET_VERSION >= 20180411 \
13537 || PACKET_VERSION >= 20180321 \
13538 || PACKET_VERSION >= 20171113 \
13539 || PACKET_VERSION >= 20171031 \
13540 || PACKET_VERSION >= 20171030 \
13541 || PACKET_VERSION >= 20171027 \
13542 || PACKET_VERSION >= 20171025 \
13543 || PACKET_VERSION >= 20171024 \
13544 || PACKET_VERSION >= 20171023 \
13545 || PACKET_VERSION >= 20171019)
13547#elif CLIENT_TYPE == 'Z' && ( \
13548 PACKET_VERSION == 20180309 \
13549 || PACKET_VERSION == 20180307 \
13550 || PACKET_VERSION == 20171128 \
13551 || PACKET_VERSION == 20171117 \
13552 || PACKET_VERSION == 20171116)
13554#elif CLIENT_TYPE == 'Z' && \
13555 PACKET_VERSION >= 20171122
13557#elif CLIENT_TYPE == 'Z' && ( \
13558 PACKET_VERSION >= 20220000 \
13559 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
13560 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
13561 || PACKET_VERSION >= 20171213 \
13562 || PACKET_VERSION >= 20171212 \
13563 || PACKET_VERSION >= 20171211 \
13564 || PACKET_VERSION >= 20171210 \
13565 || PACKET_VERSION >= 20171209 \
13566 || PACKET_VERSION >= 20171208)
13568#elif CLIENT_TYPE == 'Z' && \
13569 PACKET_VERSION >= 20171221
13571#elif CLIENT_TYPE == 'Z' && \
13572 PACKET_VERSION >= 20171229
13574#else
13575ID_CZ_MOVE_ITEM_FROM_BODY_TO_STORE = 0x0000 // Disabled
13576#endif
13583{
13584public:
13585 CZ_MOVE_ITEM_FROM_BODY_TO_STORE(std::shared_ptr<ZoneSession> s)
13587 {}
13589
13590 void handle(ByteBuffer &&buf);
13591 void deserialize(ByteBuffer &buf);
13592
13593/* Structure */
13594 int16_t _inventory_index{ 0 };
13595 int _amount{ 0 };
13596};
13597
13598enum {
13599#if CLIENT_TYPE == 'A' && \
13600 PACKET_VERSION >= 20080701
13602#elif CLIENT_TYPE == 'M' && ( \
13603 PACKET_VERSION >= 20220000 \
13604 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
13605 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
13606 || (PACKET_VERSION >= 20190000 && PACKET_VERSION < 20200000) \
13607 || PACKET_VERSION >= 20180315 \
13608 || PACKET_VERSION >= 20180213 \
13609 || PACKET_VERSION >= 20180207 \
13610 || PACKET_VERSION >= 20180124 \
13611 || PACKET_VERSION >= 20180117 \
13612 || PACKET_VERSION >= 20180103 \
13613 || PACKET_VERSION >= 20171220 \
13614 || PACKET_VERSION >= 20171213 \
13615 || PACKET_VERSION >= 20171101 \
13616 || PACKET_VERSION >= 20171011 \
13617 || PACKET_VERSION >= 20170906 \
13618 || PACKET_VERSION >= 20170823 \
13619 || PACKET_VERSION >= 20170816 \
13620 || PACKET_VERSION >= 20170809 \
13621 || PACKET_VERSION >= 20170726 \
13622 || PACKET_VERSION >= 20170719 \
13623 || PACKET_VERSION >= 20170712 \
13624 || PACKET_VERSION >= 20170705 \
13625 || PACKET_VERSION >= 20170628 \
13626 || PACKET_VERSION >= 20170621 \
13627 || PACKET_VERSION >= 20170614 \
13628 || PACKET_VERSION >= 20170607 \
13629 || PACKET_VERSION >= 20170531 \
13630 || PACKET_VERSION >= 20170524 \
13631 || PACKET_VERSION >= 20170502 \
13632 || PACKET_VERSION >= 20170329 \
13633 || PACKET_VERSION >= 20170322 \
13634 || PACKET_VERSION >= 20170315 \
13635 || PACKET_VERSION >= 20170308 \
13636 || PACKET_VERSION >= 20170125 \
13637 || PACKET_VERSION >= 20170118 \
13638 || PACKET_VERSION >= 20170111 \
13639 || PACKET_VERSION >= 20170104 \
13640 || PACKET_VERSION >= 20161221 \
13641 || PACKET_VERSION >= 20161214 \
13642 || PACKET_VERSION >= 20161207 \
13643 || PACKET_VERSION >= 20161130 \
13644 || PACKET_VERSION >= 20161026 \
13645 || PACKET_VERSION >= 20161019 \
13646 || PACKET_VERSION >= 20161012 \
13647 || PACKET_VERSION >= 20160928 \
13648 || PACKET_VERSION >= 20160921 \
13649 || PACKET_VERSION >= 20160913 \
13650 || PACKET_VERSION >= 20160907 \
13651 || PACKET_VERSION >= 20160831 \
13652 || PACKET_VERSION >= 20160824 \
13653 || PACKET_VERSION >= 20160817 \
13654 || PACKET_VERSION >= 20160810 \
13655 || PACKET_VERSION >= 20160803 \
13656 || PACKET_VERSION >= 20160720 \
13657 || PACKET_VERSION >= 20160713 \
13658 || PACKET_VERSION >= 20160622 \
13659 || PACKET_VERSION >= 20160615 \
13660 || PACKET_VERSION >= 20160525 \
13661 || PACKET_VERSION >= 20160511 \
13662 || PACKET_VERSION >= 20160504 \
13663 || PACKET_VERSION >= 20160427 \
13664 || PACKET_VERSION >= 20160414 \
13665 || PACKET_VERSION >= 20160406 \
13666 || PACKET_VERSION >= 20160323 \
13667 || PACKET_VERSION >= 20160316 \
13668 || PACKET_VERSION >= 20160309 \
13669 || PACKET_VERSION >= 20160302 \
13670 || PACKET_VERSION >= 20160224 \
13671 || PACKET_VERSION >= 20160217 \
13672 || PACKET_VERSION >= 20160211 \
13673 || PACKET_VERSION >= 20160203 \
13674 || PACKET_VERSION >= 20160120 \
13675 || PACKET_VERSION >= 20160106 \
13676 || PACKET_VERSION >= 20151230 \
13677 || PACKET_VERSION >= 20151223 \
13678 || PACKET_VERSION >= 20151216 \
13679 || PACKET_VERSION >= 20151209 \
13680 || PACKET_VERSION >= 20151202 \
13681 || PACKET_VERSION >= 20151111 \
13682 || PACKET_VERSION >= 20151021 \
13683 || PACKET_VERSION >= 20151014 \
13684 || PACKET_VERSION >= 20151001 \
13685 || PACKET_VERSION >= 20150819 \
13686 || PACKET_VERSION >= 20150805 \
13687 || PACKET_VERSION >= 20150722 \
13688 || PACKET_VERSION >= 20150715 \
13689 || PACKET_VERSION >= 20150701 \
13690 || PACKET_VERSION >= 20150624 \
13691 || PACKET_VERSION >= 20150603 \
13692 || PACKET_VERSION >= 20150527 \
13693 || PACKET_VERSION >= 20150429 \
13694 || PACKET_VERSION >= 20150422 \
13695 || PACKET_VERSION >= 20150415 \
13696 || PACKET_VERSION >= 20150225 \
13697 || PACKET_VERSION >= 20150217 \
13698 || PACKET_VERSION >= 20150211 \
13699 || PACKET_VERSION >= 20150204 \
13700 || PACKET_VERSION >= 20150121 \
13701 || PACKET_VERSION >= 20150107 \
13702 || PACKET_VERSION >= 20141231 \
13703 || PACKET_VERSION >= 20141105 \
13704 || PACKET_VERSION >= 20141029 \
13705 || PACKET_VERSION >= 20141022 \
13706 || PACKET_VERSION >= 20141015 \
13707 || PACKET_VERSION >= 20141008 \
13708 || PACKET_VERSION >= 20140917 \
13709 || PACKET_VERSION >= 20140827 \
13710 || PACKET_VERSION >= 20140813 \
13711 || PACKET_VERSION >= 20140806 \
13712 || PACKET_VERSION >= 20140730 \
13713 || PACKET_VERSION >= 20140723 \
13714 || PACKET_VERSION >= 20140716 \
13715 || PACKET_VERSION >= 20140702 \
13716 || PACKET_VERSION >= 20140611 \
13717 || PACKET_VERSION >= 20140605 \
13718 || PACKET_VERSION >= 20140528 \
13719 || PACKET_VERSION >= 20140521 \
13720 || PACKET_VERSION >= 20140508 \
13721 || PACKET_VERSION >= 20140423 \
13722 || PACKET_VERSION >= 20140416 \
13723 || PACKET_VERSION >= 20140409 \
13724 || PACKET_VERSION >= 20140402 \
13725 || PACKET_VERSION >= 20140312 \
13726 || PACKET_VERSION >= 20140305 \
13727 || PACKET_VERSION >= 20140226 \
13728 || PACKET_VERSION >= 20140219 \
13729 || PACKET_VERSION >= 20140212 \
13730 || PACKET_VERSION >= 20140205 \
13731 || PACKET_VERSION >= 20140115 \
13732 || PACKET_VERSION >= 20140108 \
13733 || PACKET_VERSION >= 20131230 \
13734 || PACKET_VERSION >= 20131218 \
13735 || PACKET_VERSION >= 20131204 \
13736 || PACKET_VERSION >= 20131127 \
13737 || PACKET_VERSION >= 20131120 \
13738 || PACKET_VERSION >= 20131113 \
13739 || PACKET_VERSION >= 20131106 \
13740 || PACKET_VERSION >= 20131030 \
13741 || PACKET_VERSION >= 20131023 \
13742 || PACKET_VERSION >= 20131016 \
13743 || PACKET_VERSION >= 20131008 \
13744 || PACKET_VERSION >= 20131002 \
13745 || PACKET_VERSION >= 20130917 \
13746 || PACKET_VERSION >= 20130911 \
13747 || PACKET_VERSION >= 20130828 \
13748 || PACKET_VERSION >= 20130814 \
13749 || PACKET_VERSION >= 20130807 \
13750 || PACKET_VERSION >= 20130717 \
13751 || PACKET_VERSION >= 20130703 \
13752 || PACKET_VERSION >= 20130618 \
13753 || PACKET_VERSION >= 20130605 \
13754 || PACKET_VERSION >= 20130502 \
13755 || PACKET_VERSION >= 20130417 \
13756 || PACKET_VERSION >= 20130410 \
13757 || PACKET_VERSION >= 20130403 \
13758 || PACKET_VERSION >= 20130320 \
13759 || PACKET_VERSION >= 20130313 \
13760 || PACKET_VERSION >= 20130227 \
13761 || PACKET_VERSION >= 20130220 \
13762 || PACKET_VERSION >= 20130109 \
13763 || PACKET_VERSION >= 20130103 \
13764 || PACKET_VERSION >= 20121121 \
13765 || PACKET_VERSION >= 20121114 \
13766 || PACKET_VERSION >= 20121107 \
13767 || PACKET_VERSION >= 20121031 \
13768 || PACKET_VERSION >= 20120925 \
13769 || PACKET_VERSION >= 20120919 \
13770 || PACKET_VERSION >= 20120814 \
13771 || PACKET_VERSION >= 20120808 \
13772 || PACKET_VERSION >= 20120801 \
13773 || PACKET_VERSION >= 20120724 \
13774 || PACKET_VERSION >= 20120716 \
13775 || PACKET_VERSION >= 20120710 \
13776 || PACKET_VERSION >= 20120702 \
13777 || PACKET_VERSION >= 20120626 \
13778 || PACKET_VERSION >= 20120612 \
13779 || PACKET_VERSION >= 20120604 \
13780 || PACKET_VERSION >= 20120529 \
13781 || PACKET_VERSION >= 20120522 \
13782 || PACKET_VERSION >= 20120515 \
13783 || PACKET_VERSION >= 20120508 \
13784 || PACKET_VERSION >= 20120503 \
13785 || PACKET_VERSION >= 20120424 \
13786 || PACKET_VERSION >= 20120417 \
13787 || PACKET_VERSION >= 20120410 \
13788 || PACKET_VERSION >= 20120404 \
13789 || PACKET_VERSION >= 20120328 \
13790 || PACKET_VERSION >= 20120320 \
13791 || PACKET_VERSION >= 20120314 \
13792 || PACKET_VERSION >= 20120214 \
13793 || PACKET_VERSION >= 20120207 \
13794 || PACKET_VERSION >= 20120120 \
13795 || PACKET_VERSION >= 20120117 \
13796 || PACKET_VERSION >= 20120103 \
13797 || PACKET_VERSION >= 20111227 \
13798 || PACKET_VERSION >= 20111220 \
13799 || PACKET_VERSION >= 20111207 \
13800 || PACKET_VERSION >= 20111114 \
13801 || PACKET_VERSION >= 20111108 \
13802 || PACKET_VERSION >= 20111101 \
13803 || PACKET_VERSION >= 20111017 \
13804 || PACKET_VERSION >= 20111010 \
13805 || PACKET_VERSION >= 20111004 \
13806 || PACKET_VERSION >= 20110928 \
13807 || PACKET_VERSION >= 20110920 \
13808 || PACKET_VERSION >= 20110906 \
13809 || PACKET_VERSION >= 20110823 \
13810 || PACKET_VERSION >= 20110816 \
13811 || PACKET_VERSION >= 20110809 \
13812 || PACKET_VERSION >= 20110726 \
13813 || PACKET_VERSION >= 20110718 \
13814 || PACKET_VERSION >= 20110705 \
13815 || PACKET_VERSION >= 20110627 \
13816 || PACKET_VERSION >= 20110620 \
13817 || PACKET_VERSION >= 20110607 \
13818 || PACKET_VERSION >= 20110531 \
13819 || PACKET_VERSION >= 20110523 \
13820 || PACKET_VERSION >= 20110517 \
13821 || PACKET_VERSION >= 20110511 \
13822 || PACKET_VERSION >= 20110503 \
13823 || PACKET_VERSION >= 20110419 \
13824 || PACKET_VERSION >= 20110412 \
13825 || PACKET_VERSION >= 20110405 \
13826 || PACKET_VERSION >= 20110329 \
13827 || PACKET_VERSION >= 20110315 \
13828 || PACKET_VERSION >= 20110308 \
13829 || PACKET_VERSION >= 20110228 \
13830 || PACKET_VERSION >= 20110222 \
13831 || PACKET_VERSION >= 20110215 \
13832 || PACKET_VERSION >= 20110208 \
13833 || PACKET_VERSION >= 20110131 \
13834 || PACKET_VERSION >= 20110125 \
13835 || PACKET_VERSION >= 20110104 \
13836 || PACKET_VERSION >= 20101214 \
13837 || PACKET_VERSION >= 20101207 \
13838 || PACKET_VERSION >= 20101123 \
13839 || PACKET_VERSION >= 20100105 \
13840 || PACKET_VERSION >= 20090406 \
13841 || PACKET_VERSION >= 20090401 \
13842 || PACKET_VERSION >= 20090325 \
13843 || PACKET_VERSION >= 20090318 \
13844 || PACKET_VERSION >= 20090311 \
13845 || PACKET_VERSION >= 20090225 \
13846 || PACKET_VERSION >= 20090218 \
13847 || PACKET_VERSION >= 20090204 \
13848 || PACKET_VERSION >= 20090129 \
13849 || PACKET_VERSION >= 20090120 \
13850 || PACKET_VERSION >= 20090114 \
13851 || PACKET_VERSION >= 20090107 \
13852 || PACKET_VERSION >= 20081203 \
13853 || PACKET_VERSION >= 20081126 \
13854 || PACKET_VERSION >= 20081119 \
13855 || PACKET_VERSION >= 20081112 \
13856 || PACKET_VERSION >= 20081105 \
13857 || PACKET_VERSION >= 20081029 \
13858 || PACKET_VERSION >= 20081022 \
13859 || PACKET_VERSION >= 20081015 \
13860 || PACKET_VERSION >= 20081008 \
13861 || PACKET_VERSION >= 20081001 \
13862 || PACKET_VERSION >= 20080924 \
13863 || PACKET_VERSION >= 20080917 \
13864 || PACKET_VERSION >= 20080910 \
13865 || PACKET_VERSION >= 20080903 \
13866 || PACKET_VERSION >= 20080708 \
13867 || PACKET_VERSION >= 20080701 \
13868 || PACKET_VERSION >= 20080624 \
13869 || PACKET_VERSION >= 20080617 \
13870 || PACKET_VERSION >= 20080528)
13872#elif CLIENT_TYPE == 'R' && ( \
13873 PACKET_VERSION >= 20210000 \
13874 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
13875 || (PACKET_VERSION >= 20190000 && PACKET_VERSION < 20200000) \
13876 || PACKET_VERSION >= 20180321 \
13877 || PACKET_VERSION >= 20180213 \
13878 || PACKET_VERSION >= 20180207 \
13879 || PACKET_VERSION >= 20180124 \
13880 || PACKET_VERSION >= 20180117 \
13881 || PACKET_VERSION >= 20180103 \
13882 || PACKET_VERSION >= 20171220 \
13883 || PACKET_VERSION >= 20171213 \
13884 || PACKET_VERSION >= 20171101 \
13885 || PACKET_VERSION >= 20171011 \
13886 || PACKET_VERSION >= 20170906 \
13887 || PACKET_VERSION >= 20170823 \
13888 || PACKET_VERSION >= 20170816 \
13889 || PACKET_VERSION >= 20170809 \
13890 || PACKET_VERSION >= 20170726 \
13891 || PACKET_VERSION >= 20170719 \
13892 || PACKET_VERSION >= 20170712 \
13893 || PACKET_VERSION >= 20170705 \
13894 || PACKET_VERSION >= 20170628 \
13895 || PACKET_VERSION >= 20170621 \
13896 || PACKET_VERSION >= 20170614 \
13897 || PACKET_VERSION >= 20170607 \
13898 || PACKET_VERSION >= 20170531 \
13899 || PACKET_VERSION >= 20170524 \
13900 || PACKET_VERSION >= 20170502 \
13901 || PACKET_VERSION >= 20170329 \
13902 || PACKET_VERSION >= 20170322 \
13903 || PACKET_VERSION >= 20170315 \
13904 || PACKET_VERSION >= 20170308 \
13905 || PACKET_VERSION >= 20170125 \
13906 || PACKET_VERSION >= 20170118 \
13907 || PACKET_VERSION >= 20170111 \
13908 || PACKET_VERSION >= 20170104 \
13909 || PACKET_VERSION >= 20161221 \
13910 || PACKET_VERSION >= 20161214 \
13911 || PACKET_VERSION >= 20161207 \
13912 || PACKET_VERSION >= 20161130 \
13913 || PACKET_VERSION >= 20161026 \
13914 || PACKET_VERSION >= 20161019 \
13915 || PACKET_VERSION >= 20161012 \
13916 || PACKET_VERSION >= 20160928 \
13917 || PACKET_VERSION >= 20160921 \
13918 || PACKET_VERSION >= 20160913 \
13919 || PACKET_VERSION >= 20160907 \
13920 || PACKET_VERSION >= 20160831 \
13921 || PACKET_VERSION >= 20160824 \
13922 || PACKET_VERSION >= 20160817 \
13923 || PACKET_VERSION >= 20160810 \
13924 || PACKET_VERSION >= 20160803 \
13925 || PACKET_VERSION >= 20160720 \
13926 || PACKET_VERSION >= 20160713 \
13927 || PACKET_VERSION >= 20160622 \
13928 || PACKET_VERSION >= 20160615 \
13929 || PACKET_VERSION >= 20160525 \
13930 || PACKET_VERSION >= 20160511 \
13931 || PACKET_VERSION >= 20160504 \
13932 || PACKET_VERSION >= 20160427 \
13933 || PACKET_VERSION >= 20160414 \
13934 || PACKET_VERSION >= 20160406 \
13935 || PACKET_VERSION >= 20160323 \
13936 || PACKET_VERSION >= 20160316 \
13937 || PACKET_VERSION >= 20160309 \
13938 || PACKET_VERSION >= 20160302 \
13939 || PACKET_VERSION >= 20160224 \
13940 || PACKET_VERSION >= 20160217 \
13941 || PACKET_VERSION >= 20160211 \
13942 || PACKET_VERSION >= 20160203 \
13943 || PACKET_VERSION >= 20160120 \
13944 || PACKET_VERSION >= 20160106 \
13945 || PACKET_VERSION >= 20151230 \
13946 || PACKET_VERSION >= 20151223 \
13947 || PACKET_VERSION >= 20151216 \
13948 || PACKET_VERSION >= 20151209 \
13949 || PACKET_VERSION >= 20151202 \
13950 || PACKET_VERSION >= 20151111 \
13951 || PACKET_VERSION >= 20151021 \
13952 || PACKET_VERSION >= 20151014 \
13953 || PACKET_VERSION >= 20151001 \
13954 || PACKET_VERSION >= 20150819 \
13955 || PACKET_VERSION >= 20150805 \
13956 || PACKET_VERSION >= 20150722 \
13957 || PACKET_VERSION >= 20150715 \
13958 || PACKET_VERSION >= 20150701 \
13959 || PACKET_VERSION >= 20150624 \
13960 || PACKET_VERSION >= 20150603 \
13961 || PACKET_VERSION >= 20150527 \
13962 || PACKET_VERSION >= 20150429 \
13963 || PACKET_VERSION >= 20150422 \
13964 || PACKET_VERSION >= 20150415 \
13965 || PACKET_VERSION >= 20150225 \
13966 || PACKET_VERSION >= 20150217 \
13967 || PACKET_VERSION >= 20150211 \
13968 || PACKET_VERSION >= 20150204 \
13969 || PACKET_VERSION >= 20150121 \
13970 || PACKET_VERSION >= 20150107 \
13971 || PACKET_VERSION >= 20141231 \
13972 || PACKET_VERSION >= 20141105 \
13973 || PACKET_VERSION >= 20141029 \
13974 || PACKET_VERSION >= 20141022 \
13975 || PACKET_VERSION >= 20141015 \
13976 || PACKET_VERSION >= 20141008 \
13977 || PACKET_VERSION >= 20140917 \
13978 || PACKET_VERSION >= 20140827 \
13979 || PACKET_VERSION >= 20140813 \
13980 || PACKET_VERSION >= 20140806 \
13981 || PACKET_VERSION >= 20140730 \
13982 || PACKET_VERSION >= 20140723 \
13983 || PACKET_VERSION >= 20140716 \
13984 || PACKET_VERSION >= 20140702 \
13985 || PACKET_VERSION >= 20140611 \
13986 || PACKET_VERSION >= 20140605 \
13987 || PACKET_VERSION >= 20140528 \
13988 || PACKET_VERSION >= 20140521 \
13989 || PACKET_VERSION >= 20140508 \
13990 || PACKET_VERSION >= 20140423 \
13991 || PACKET_VERSION >= 20140416 \
13992 || PACKET_VERSION >= 20140409 \
13993 || PACKET_VERSION >= 20140402 \
13994 || PACKET_VERSION >= 20140312 \
13995 || PACKET_VERSION >= 20140305 \
13996 || PACKET_VERSION >= 20140226 \
13997 || PACKET_VERSION >= 20140219 \
13998 || PACKET_VERSION >= 20140212 \
13999 || PACKET_VERSION >= 20140205 \
14000 || PACKET_VERSION >= 20140115 \
14001 || PACKET_VERSION >= 20140108 \
14002 || PACKET_VERSION >= 20131230 \
14003 || PACKET_VERSION >= 20131218 \
14004 || PACKET_VERSION >= 20131204 \
14005 || PACKET_VERSION >= 20131127 \
14006 || PACKET_VERSION >= 20131120 \
14007 || PACKET_VERSION >= 20131113 \
14008 || PACKET_VERSION >= 20131106 \
14009 || PACKET_VERSION >= 20131030 \
14010 || PACKET_VERSION >= 20131023 \
14011 || PACKET_VERSION >= 20131016 \
14012 || PACKET_VERSION >= 20131008 \
14013 || PACKET_VERSION >= 20131002 \
14014 || PACKET_VERSION >= 20130917 \
14015 || PACKET_VERSION >= 20130911 \
14016 || PACKET_VERSION >= 20130828 \
14017 || PACKET_VERSION >= 20130814 \
14018 || PACKET_VERSION >= 20130807 \
14019 || PACKET_VERSION >= 20130717 \
14020 || PACKET_VERSION >= 20130703 \
14021 || PACKET_VERSION >= 20130618 \
14022 || PACKET_VERSION >= 20130605 \
14023 || PACKET_VERSION >= 20130502 \
14024 || PACKET_VERSION >= 20130417 \
14025 || PACKET_VERSION >= 20130410 \
14026 || PACKET_VERSION >= 20130403 \
14027 || PACKET_VERSION >= 20130320 \
14028 || PACKET_VERSION >= 20130313 \
14029 || PACKET_VERSION >= 20130227 \
14030 || PACKET_VERSION >= 20130220 \
14031 || PACKET_VERSION >= 20130109 \
14032 || PACKET_VERSION >= 20130103 \
14033 || PACKET_VERSION >= 20121121 \
14034 || PACKET_VERSION >= 20121114 \
14035 || PACKET_VERSION >= 20121107 \
14036 || PACKET_VERSION >= 20121031 \
14037 || PACKET_VERSION >= 20120925 \
14038 || PACKET_VERSION >= 20120919 \
14039 || PACKET_VERSION >= 20120814 \
14040 || PACKET_VERSION >= 20120808 \
14041 || PACKET_VERSION >= 20120801 \
14042 || PACKET_VERSION >= 20120724 \
14043 || PACKET_VERSION >= 20120716 \
14044 || PACKET_VERSION >= 20120710 \
14045 || PACKET_VERSION >= 20120702 \
14046 || PACKET_VERSION >= 20120626 \
14047 || PACKET_VERSION >= 20120612 \
14048 || PACKET_VERSION >= 20120601 \
14049 || PACKET_VERSION >= 20120529 \
14050 || PACKET_VERSION >= 20120523 \
14051 || PACKET_VERSION >= 20120515 \
14052 || PACKET_VERSION >= 20120508 \
14053 || PACKET_VERSION >= 20120502 \
14054 || PACKET_VERSION >= 20120424 \
14055 || PACKET_VERSION >= 20120417 \
14056 || PACKET_VERSION >= 20120410 \
14057 || PACKET_VERSION >= 20120404 \
14058 || PACKET_VERSION >= 20120328 \
14059 || PACKET_VERSION >= 20120320 \
14060 || PACKET_VERSION >= 20120314 \
14061 || PACKET_VERSION >= 20120214 \
14062 || PACKET_VERSION >= 20120207 \
14063 || PACKET_VERSION >= 20120120 \
14064 || PACKET_VERSION >= 20120117 \
14065 || PACKET_VERSION >= 20120103 \
14066 || PACKET_VERSION >= 20111227 \
14067 || PACKET_VERSION >= 20111220 \
14068 || PACKET_VERSION >= 20111207 \
14069 || PACKET_VERSION >= 20111114 \
14070 || PACKET_VERSION >= 20111108 \
14071 || PACKET_VERSION >= 20111101 \
14072 || PACKET_VERSION >= 20111017 \
14073 || PACKET_VERSION >= 20111010 \
14074 || PACKET_VERSION >= 20111004 \
14075 || PACKET_VERSION >= 20110928 \
14076 || PACKET_VERSION >= 20110920 \
14077 || PACKET_VERSION >= 20110906 \
14078 || PACKET_VERSION >= 20110823 \
14079 || PACKET_VERSION >= 20110104 \
14080 || PACKET_VERSION >= 20101123 \
14081 || PACKET_VERSION >= 20100105 \
14082 || (PACKET_VERSION >= 20090000 && PACKET_VERSION < 20100105) \
14083 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20090000))
14085#elif CLIENT_TYPE == 'S' && \
14086 PACKET_VERSION >= 20080618
14088#elif CLIENT_TYPE == 'Z' && ( \
14089 PACKET_VERSION >= 20220000 \
14090 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
14091 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
14092 || (PACKET_VERSION >= 20190000 && PACKET_VERSION < 20200000) \
14093 || PACKET_VERSION >= 20180523 \
14094 || PACKET_VERSION >= 20180511 \
14095 || PACKET_VERSION >= 20180315 \
14096 || PACKET_VERSION >= 20180314 \
14097 || PACKET_VERSION >= 20180228 \
14098 || PACKET_VERSION >= 20180221 \
14099 || PACKET_VERSION >= 20180213 \
14100 || PACKET_VERSION >= 20180131 \
14101 || PACKET_VERSION >= 20180117 \
14102 || PACKET_VERSION >= 20180103 \
14103 || PACKET_VERSION >= 20171130 \
14104 || PACKET_VERSION >= 20171127 \
14105 || PACKET_VERSION >= 20171121 \
14106 || PACKET_VERSION >= 20171018)
14108#else
14109ID_CZ_MOVE_ITEM_FROM_BODY_TO_STORE2 = 0x0000 // Disabled
14110#endif
14117{
14118public:
14119 CZ_MOVE_ITEM_FROM_BODY_TO_STORE2(std::shared_ptr<ZoneSession> s)
14121 {}
14123
14124 void handle(ByteBuffer &&buf);
14125 void deserialize(ByteBuffer &buf);
14126
14127/* Structure */
14128 int16_t _inventory_index{ 0 };
14129 int _amount{ 0 };
14130};
14131
14132enum {
14133#if CLIENT_TYPE == 'A' && \
14134 PACKET_VERSION >= 20040000
14136#elif CLIENT_TYPE == 'M' && ( \
14137 PACKET_VERSION >= 20220000 \
14138 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
14139 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
14140 || (PACKET_VERSION >= 20030000 && PACKET_VERSION < 20200000))
14142#elif CLIENT_TYPE == 'R' && ( \
14143 PACKET_VERSION >= 20210000 \
14144 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
14145 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
14147#elif CLIENT_TYPE == 'S' && \
14148 PACKET_VERSION >= 20030000
14150#elif CLIENT_TYPE == 'Z' && ( \
14151 PACKET_VERSION >= 20220000 \
14152 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
14153 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
14154 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
14156#else
14157ID_CZ_MOVE_ITEM_FROM_CART_TO_BODY = 0x0000 // Disabled
14158#endif
14165{
14166public:
14167 CZ_MOVE_ITEM_FROM_CART_TO_BODY(std::shared_ptr<ZoneSession> s)
14169 {}
14171
14172 void handle(ByteBuffer &&buf);
14173 void deserialize(ByteBuffer &buf);
14174
14175/* Structure */
14176 int16_t _inventory_index{ 0 };
14177 int _amount{ 0 };
14178};
14179
14180enum {
14181#if CLIENT_TYPE == 'M' && ( \
14182 PACKET_VERSION >= 20220000 \
14183 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
14184 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
14185 || PACKET_VERSION >= 20131106)
14187#elif CLIENT_TYPE == 'R' && ( \
14188 PACKET_VERSION >= 20210000 \
14189 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
14190 || PACKET_VERSION >= 20131106)
14192#elif CLIENT_TYPE == 'Z' && ( \
14193 PACKET_VERSION >= 20220000 \
14194 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
14195 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
14196 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
14198#else
14200#endif
14207{
14208public:
14209 CZ_MOVE_ITEM_FROM_CART_TO_GUILDSTORAGE(std::shared_ptr<ZoneSession> s)
14211 {}
14213
14214 void handle(ByteBuffer &&buf);
14215 void deserialize(ByteBuffer &buf);
14216
14217/* Structure */
14218 int16_t _inventory_index{ 0 };
14219 int _amount{ 0 };
14220};
14221
14222enum {
14223#if CLIENT_TYPE == 'A' && \
14224 PACKET_VERSION >= 20040000
14226#elif CLIENT_TYPE == 'M' && ( \
14227 PACKET_VERSION >= 20220000 \
14228 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
14229 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
14230 || (PACKET_VERSION >= 20030000 && PACKET_VERSION < 20200000))
14232#elif CLIENT_TYPE == 'R' && ( \
14233 PACKET_VERSION >= 20210000 \
14234 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
14235 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
14237#elif CLIENT_TYPE == 'S' && \
14238 PACKET_VERSION >= 20030000
14240#elif CLIENT_TYPE == 'Z' && ( \
14241 PACKET_VERSION >= 20220000 \
14242 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
14243 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
14244 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
14246#else
14247ID_CZ_MOVE_ITEM_FROM_CART_TO_STORE = 0x0000 // Disabled
14248#endif
14255{
14256public:
14257 CZ_MOVE_ITEM_FROM_CART_TO_STORE(std::shared_ptr<ZoneSession> s)
14259 {}
14261
14262 void handle(ByteBuffer &&buf);
14263 void deserialize(ByteBuffer &buf);
14264
14265/* Structure */
14266 int16_t _inventory_index{ 0 };
14267 int _amount{ 0 };
14268};
14269
14270enum {
14271#if CLIENT_TYPE == 'M' && ( \
14272 PACKET_VERSION >= 20220000 \
14273 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
14274 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
14275 || PACKET_VERSION >= 20131106)
14277#elif CLIENT_TYPE == 'R' && ( \
14278 PACKET_VERSION >= 20210000 \
14279 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
14280 || PACKET_VERSION >= 20131106)
14282#elif CLIENT_TYPE == 'Z' && ( \
14283 PACKET_VERSION >= 20220000 \
14284 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
14285 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
14286 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
14288#else
14290#endif
14297{
14298public:
14299 CZ_MOVE_ITEM_FROM_GUILDSTORAGE_TO_BODY(std::shared_ptr<ZoneSession> s)
14301 {}
14303
14304 void handle(ByteBuffer &&buf);
14305 void deserialize(ByteBuffer &buf);
14306
14307/* Structure */
14308 int16_t _inventory_index{ 0 };
14309 int _amount{ 0 };
14310};
14311
14312enum {
14313#if CLIENT_TYPE == 'M' && ( \
14314 PACKET_VERSION >= 20220000 \
14315 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
14316 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
14317 || PACKET_VERSION >= 20131106)
14319#elif CLIENT_TYPE == 'R' && ( \
14320 PACKET_VERSION >= 20210000 \
14321 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
14322 || PACKET_VERSION >= 20131106)
14324#elif CLIENT_TYPE == 'Z' && ( \
14325 PACKET_VERSION >= 20220000 \
14326 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
14327 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
14328 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
14330#else
14332#endif
14339{
14340public:
14341 CZ_MOVE_ITEM_FROM_GUILDSTORAGE_TO_CART(std::shared_ptr<ZoneSession> s)
14343 {}
14345
14346 void handle(ByteBuffer &&buf);
14347 void deserialize(ByteBuffer &buf);
14348
14349/* Structure */
14350 int16_t _inventory_index{ 0 };
14351 int _amount{ 0 };
14352};
14353
14354enum {
14355#if CLIENT_TYPE == 'A' && \
14356 PACKET_VERSION >= 20041129
14358#elif CLIENT_TYPE == 'M' && \
14359 PACKET_VERSION >= 20030000
14361#elif CLIENT_TYPE == 'M' && \
14362 PACKET_VERSION >= 20120712
14364#elif CLIENT_TYPE == 'M' && ( \
14365 PACKET_VERSION >= 20220000 \
14366 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
14367 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
14368 || PACKET_VERSION >= 20120926)
14370#elif CLIENT_TYPE == 'M' && ( \
14371 PACKET_VERSION == 20160318 \
14372 || PACKET_VERSION == 20151029 \
14373 || PACKET_VERSION == 20151022 \
14374 || PACKET_VERSION == 20150812 \
14375 || PACKET_VERSION >= 20130107)
14377#elif CLIENT_TYPE == 'M' && \
14378 PACKET_VERSION >= 20130116
14380#elif CLIENT_TYPE == 'M' && ( \
14381 PACKET_VERSION == 20131108 \
14382 || PACKET_VERSION == 20131107)
14384#elif CLIENT_TYPE == 'M' && ( \
14385 PACKET_VERSION == 20150226 \
14386 || PACKET_VERSION == 20140613 \
14387 || PACKET_VERSION == 20140612)
14389#elif CLIENT_TYPE == 'M' && \
14390 PACKET_VERSION >= 20140814
14392#elif CLIENT_TYPE == 'M' && \
14393 PACKET_VERSION >= 20141016
14395#elif CLIENT_TYPE == 'M' && ( \
14396 PACKET_VERSION == 20150130 \
14397 || PACKET_VERSION == 20150129)
14399#elif CLIENT_TYPE == 'M' && \
14400 PACKET_VERSION >= 20150618
14402#elif CLIENT_TYPE == 'M' && \
14403 PACKET_VERSION >= 20150702
14405#elif CLIENT_TYPE == 'M' && \
14406 PACKET_VERSION >= 20160526
14408#elif CLIENT_TYPE == 'M' && \
14409 PACKET_VERSION >= 20160609
14411#elif CLIENT_TYPE == 'M' && \
14412 PACKET_VERSION >= 20160630
14414#elif CLIENT_TYPE == 'M' && \
14415 PACKET_VERSION >= 20161103
14417#elif CLIENT_TYPE == 'M' && \
14418 PACKET_VERSION >= 20180131
14420#elif CLIENT_TYPE == 'M' && \
14421 PACKET_VERSION >= 20180309
14423#elif CLIENT_TYPE == 'M' && ( \
14424 PACKET_VERSION == 20190821 \
14425 || PACKET_VERSION == 20190807 \
14426 || PACKET_VERSION == 20190802 \
14427 || PACKET_VERSION == 20190731 \
14428 || PACKET_VERSION == 20190724 \
14429 || PACKET_VERSION == 20190717 \
14430 || PACKET_VERSION == 20190703 \
14431 || PACKET_VERSION == 20190605 \
14432 || PACKET_VERSION == 20190530 \
14433 || PACKET_VERSION == 20190523 \
14434 || PACKET_VERSION == 20190522 \
14435 || PACKET_VERSION == 20190508 \
14436 || PACKET_VERSION == 20190418 \
14437 || PACKET_VERSION == 20190417 \
14438 || PACKET_VERSION == 20190327 \
14439 || PACKET_VERSION == 20190322 \
14440 || PACKET_VERSION == 20190320 \
14441 || PACKET_VERSION == 20190313 \
14442 || PACKET_VERSION == 20190306 \
14443 || PACKET_VERSION == 20190228 \
14444 || PACKET_VERSION == 20190123 \
14445 || PACKET_VERSION == 20190116 \
14446 || PACKET_VERSION == 20181226 \
14447 || PACKET_VERSION == 20181219 \
14448 || PACKET_VERSION == 20181212 \
14449 || PACKET_VERSION == 20181205 \
14450 || PACKET_VERSION == 20181128 \
14451 || PACKET_VERSION == 20181114 \
14452 || PACKET_VERSION == 20181107 \
14453 || PACKET_VERSION == 20181024 \
14454 || PACKET_VERSION == 20180919 \
14455 || PACKET_VERSION == 20180831 \
14456 || PACKET_VERSION == 20180822 \
14457 || PACKET_VERSION >= 20180808 \
14458 || PACKET_VERSION >= 20180718 \
14459 || PACKET_VERSION >= 20180704 \
14460 || PACKET_VERSION >= 20180621 \
14461 || PACKET_VERSION >= 20180620 \
14462 || PACKET_VERSION >= 20180530 \
14463 || PACKET_VERSION >= 20180523 \
14464 || PACKET_VERSION >= 20180516 \
14465 || PACKET_VERSION >= 20180509 \
14466 || PACKET_VERSION >= 20180502 \
14467 || PACKET_VERSION >= 20180425 \
14468 || PACKET_VERSION >= 20180404 \
14469 || PACKET_VERSION >= 20180328 \
14470 || PACKET_VERSION >= 20180321)
14472#elif CLIENT_TYPE == 'R' && \
14473 PACKET_VERSION >= 20080000
14475#elif CLIENT_TYPE == 'R' && \
14476 PACKET_VERSION >= 20120712
14478#elif CLIENT_TYPE == 'R' && ( \
14479 PACKET_VERSION >= 20210000 \
14480 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
14481 || PACKET_VERSION >= 20120926)
14483#elif CLIENT_TYPE == 'R' && \
14484 PACKET_VERSION >= 20121011
14486#elif CLIENT_TYPE == 'R' && \
14487 PACKET_VERSION >= 20130116
14489#elif CLIENT_TYPE == 'R' && \
14490 PACKET_VERSION >= 20141016
14492#elif CLIENT_TYPE == 'R' && \
14493 PACKET_VERSION >= 20150226
14495#elif CLIENT_TYPE == 'R' && \
14496 PACKET_VERSION >= 20150618
14498#elif CLIENT_TYPE == 'R' && ( \
14499 PACKET_VERSION == 20151029 \
14500 || PACKET_VERSION == 20151022 \
14501 || PACKET_VERSION == 20150812)
14503#elif CLIENT_TYPE == 'R' && \
14504 PACKET_VERSION >= 20160630
14506#elif CLIENT_TYPE == 'R' && \
14507 PACKET_VERSION >= 20161103
14509#elif CLIENT_TYPE == 'R' && ( \
14510 PACKET_VERSION == 20190821 \
14511 || PACKET_VERSION == 20190807 \
14512 || PACKET_VERSION == 20190802 \
14513 || PACKET_VERSION == 20190731 \
14514 || PACKET_VERSION == 20190724 \
14515 || PACKET_VERSION == 20190717 \
14516 || PACKET_VERSION == 20190703 \
14517 || PACKET_VERSION == 20190626 \
14518 || PACKET_VERSION == 20190605 \
14519 || PACKET_VERSION == 20190530 \
14520 || PACKET_VERSION == 20190522 \
14521 || PACKET_VERSION == 20190508 \
14522 || PACKET_VERSION == 20190418 \
14523 || PACKET_VERSION == 20190417 \
14524 || PACKET_VERSION == 20190327 \
14525 || PACKET_VERSION == 20190322 \
14526 || PACKET_VERSION == 20190320 \
14527 || PACKET_VERSION == 20190306 \
14528 || PACKET_VERSION == 20190228 \
14529 || PACKET_VERSION == 20190123 \
14530 || PACKET_VERSION == 20190116 \
14531 || PACKET_VERSION == 20181226 \
14532 || PACKET_VERSION == 20181219 \
14533 || PACKET_VERSION == 20181212 \
14534 || PACKET_VERSION == 20181205 \
14535 || PACKET_VERSION == 20181128 \
14536 || PACKET_VERSION == 20181121 \
14537 || PACKET_VERSION == 20181114 \
14538 || PACKET_VERSION == 20181107 \
14539 || PACKET_VERSION == 20180822 \
14540 || PACKET_VERSION >= 20180808 \
14541 || PACKET_VERSION >= 20180718 \
14542 || PACKET_VERSION >= 20180711 \
14543 || PACKET_VERSION >= 20180621 \
14544 || PACKET_VERSION >= 20180620 \
14545 || PACKET_VERSION >= 20180612 \
14546 || PACKET_VERSION >= 20180530 \
14547 || PACKET_VERSION >= 20180523 \
14548 || PACKET_VERSION >= 20180516 \
14549 || PACKET_VERSION >= 20180502 \
14550 || PACKET_VERSION >= 20180425 \
14551 || PACKET_VERSION >= 20180404 \
14552 || PACKET_VERSION >= 20180328)
14554#elif CLIENT_TYPE == 'S' && \
14555 PACKET_VERSION >= 20030000
14557#elif CLIENT_TYPE == 'Z' && \
14558 PACKET_VERSION >= 20170000
14560#elif CLIENT_TYPE == 'Z' && ( \
14561 PACKET_VERSION == 20190814 \
14562 || PACKET_VERSION == 20190724 \
14563 || PACKET_VERSION == 20190717 \
14564 || PACKET_VERSION == 20190710 \
14565 || PACKET_VERSION == 20190709 \
14566 || PACKET_VERSION == 20190605 \
14567 || PACKET_VERSION == 20190530 \
14568 || PACKET_VERSION == 20190515 \
14569 || PACKET_VERSION == 20190508 \
14570 || PACKET_VERSION == 20190502 \
14571 || PACKET_VERSION == 20190424 \
14572 || PACKET_VERSION == 20190410 \
14573 || PACKET_VERSION == 20190403 \
14574 || PACKET_VERSION == 20190313 \
14575 || PACKET_VERSION == 20190227 \
14576 || PACKET_VERSION == 20190213 \
14577 || PACKET_VERSION == 20190117 \
14578 || PACKET_VERSION == 20181226 \
14579 || PACKET_VERSION == 20181219 \
14580 || PACKET_VERSION == 20181212 \
14581 || PACKET_VERSION == 20181128 \
14582 || PACKET_VERSION == 20181120 \
14583 || PACKET_VERSION == 20180928 \
14584 || PACKET_VERSION == 20180912 \
14585 || PACKET_VERSION == 20180829 \
14586 || PACKET_VERSION >= 20180808 \
14587 || PACKET_VERSION >= 20180801 \
14588 || PACKET_VERSION >= 20180711 \
14589 || PACKET_VERSION >= 20180703 \
14590 || PACKET_VERSION >= 20180627 \
14591 || PACKET_VERSION >= 20180509 \
14592 || PACKET_VERSION >= 20180411 \
14593 || PACKET_VERSION >= 20180321 \
14594 || PACKET_VERSION >= 20171113 \
14595 || PACKET_VERSION >= 20171031 \
14596 || PACKET_VERSION >= 20171030 \
14597 || PACKET_VERSION >= 20171027 \
14598 || PACKET_VERSION >= 20171025 \
14599 || PACKET_VERSION >= 20171024 \
14600 || PACKET_VERSION >= 20171023 \
14601 || PACKET_VERSION >= 20171019)
14603#elif CLIENT_TYPE == 'Z' && ( \
14604 PACKET_VERSION == 20180309 \
14605 || PACKET_VERSION == 20180307 \
14606 || PACKET_VERSION == 20171128 \
14607 || PACKET_VERSION == 20171117 \
14608 || PACKET_VERSION == 20171116)
14610#elif CLIENT_TYPE == 'Z' && \
14611 PACKET_VERSION >= 20171122
14613#elif CLIENT_TYPE == 'Z' && ( \
14614 PACKET_VERSION >= 20220000 \
14615 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
14616 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
14617 || PACKET_VERSION >= 20171213 \
14618 || PACKET_VERSION >= 20171212 \
14619 || PACKET_VERSION >= 20171211 \
14620 || PACKET_VERSION >= 20171210 \
14621 || PACKET_VERSION >= 20171209 \
14622 || PACKET_VERSION >= 20171208)
14624#elif CLIENT_TYPE == 'Z' && \
14625 PACKET_VERSION >= 20171221
14627#elif CLIENT_TYPE == 'Z' && \
14628 PACKET_VERSION >= 20171229
14630#else
14631ID_CZ_MOVE_ITEM_FROM_STORE_TO_BODY = 0x0000 // Disabled
14632#endif
14639{
14640public:
14641 CZ_MOVE_ITEM_FROM_STORE_TO_BODY(std::shared_ptr<ZoneSession> s)
14643 {}
14645
14646 void handle(ByteBuffer &&buf);
14647 void deserialize(ByteBuffer &buf);
14648
14649/* Structure */
14650 int16_t _inventory_index{ 0 };
14651 int _amount{ 0 };
14652};
14653
14654enum {
14655#if CLIENT_TYPE == 'A' && \
14656 PACKET_VERSION >= 20080701
14658#elif CLIENT_TYPE == 'M' && ( \
14659 PACKET_VERSION >= 20220000 \
14660 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
14661 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
14662 || (PACKET_VERSION >= 20190000 && PACKET_VERSION < 20200000) \
14663 || PACKET_VERSION >= 20180315 \
14664 || PACKET_VERSION >= 20180213 \
14665 || PACKET_VERSION >= 20180207 \
14666 || PACKET_VERSION >= 20180124 \
14667 || PACKET_VERSION >= 20180117 \
14668 || PACKET_VERSION >= 20180103 \
14669 || PACKET_VERSION >= 20171220 \
14670 || PACKET_VERSION >= 20171213 \
14671 || PACKET_VERSION >= 20171206 \
14672 || PACKET_VERSION >= 20171129 \
14673 || PACKET_VERSION >= 20171122 \
14674 || PACKET_VERSION >= 20171115 \
14675 || PACKET_VERSION >= 20171101 \
14676 || PACKET_VERSION >= 20171025 \
14677 || PACKET_VERSION >= 20171018 \
14678 || PACKET_VERSION >= 20171011 \
14679 || PACKET_VERSION >= 20170830 \
14680 || PACKET_VERSION >= 20170823 \
14681 || PACKET_VERSION >= 20170809 \
14682 || PACKET_VERSION >= 20170801 \
14683 || PACKET_VERSION >= 20170719 \
14684 || PACKET_VERSION >= 20170712 \
14685 || PACKET_VERSION >= 20170705 \
14686 || PACKET_VERSION >= 20170628 \
14687 || PACKET_VERSION >= 20170621 \
14688 || PACKET_VERSION >= 20170517 \
14689 || PACKET_VERSION >= 20170502 \
14690 || PACKET_VERSION >= 20170419 \
14691 || PACKET_VERSION >= 20170412 \
14692 || PACKET_VERSION >= 20170329 \
14693 || PACKET_VERSION >= 20170322 \
14694 || PACKET_VERSION >= 20170315 \
14695 || PACKET_VERSION >= 20170308 \
14696 || PACKET_VERSION >= 20170111 \
14697 || PACKET_VERSION >= 20170104 \
14698 || PACKET_VERSION >= 20161207 \
14699 || PACKET_VERSION >= 20161130 \
14700 || PACKET_VERSION >= 20161116 \
14701 || PACKET_VERSION >= 20161109 \
14702 || PACKET_VERSION >= 20161026 \
14703 || PACKET_VERSION >= 20161019 \
14704 || PACKET_VERSION >= 20161012 \
14705 || PACKET_VERSION >= 20160928 \
14706 || PACKET_VERSION >= 20160921 \
14707 || PACKET_VERSION >= 20160913 \
14708 || PACKET_VERSION >= 20160907 \
14709 || PACKET_VERSION >= 20160831 \
14710 || PACKET_VERSION >= 20160824 \
14711 || PACKET_VERSION >= 20160727 \
14712 || PACKET_VERSION >= 20160720 \
14713 || PACKET_VERSION >= 20160525 \
14714 || PACKET_VERSION >= 20160511 \
14715 || PACKET_VERSION >= 20160504 \
14716 || PACKET_VERSION >= 20160427 \
14717 || PACKET_VERSION >= 20160406 \
14718 || PACKET_VERSION >= 20160330 \
14719 || PACKET_VERSION >= 20160323 \
14720 || PACKET_VERSION >= 20160316 \
14721 || PACKET_VERSION >= 20160224 \
14722 || PACKET_VERSION >= 20160217 \
14723 || PACKET_VERSION >= 20160211 \
14724 || PACKET_VERSION >= 20160203 \
14725 || PACKET_VERSION >= 20160120 \
14726 || PACKET_VERSION >= 20160106 \
14727 || PACKET_VERSION >= 20151230 \
14728 || PACKET_VERSION >= 20151223 \
14729 || PACKET_VERSION >= 20151216 \
14730 || PACKET_VERSION >= 20151209 \
14731 || PACKET_VERSION >= 20151202 \
14732 || PACKET_VERSION >= 20151125 \
14733 || PACKET_VERSION >= 20151118 \
14734 || PACKET_VERSION >= 20151104 \
14735 || PACKET_VERSION >= 20151021 \
14736 || PACKET_VERSION >= 20151014 \
14737 || PACKET_VERSION >= 20151001 \
14738 || PACKET_VERSION >= 20150916 \
14739 || PACKET_VERSION >= 20150909 \
14740 || PACKET_VERSION >= 20150819 \
14741 || PACKET_VERSION >= 20150805 \
14742 || PACKET_VERSION >= 20150701 \
14743 || PACKET_VERSION >= 20150624 \
14744 || PACKET_VERSION >= 20150617 \
14745 || PACKET_VERSION >= 20150603 \
14746 || PACKET_VERSION >= 20150527 \
14747 || PACKET_VERSION >= 20150429 \
14748 || PACKET_VERSION >= 20150422 \
14749 || PACKET_VERSION >= 20150401 \
14750 || PACKET_VERSION >= 20150325 \
14751 || PACKET_VERSION >= 20150225 \
14752 || PACKET_VERSION >= 20150217 \
14753 || PACKET_VERSION >= 20150211 \
14754 || PACKET_VERSION >= 20150204 \
14755 || PACKET_VERSION >= 20150128 \
14756 || PACKET_VERSION >= 20150121 \
14757 || PACKET_VERSION >= 20150107 \
14758 || PACKET_VERSION >= 20141231 \
14759 || PACKET_VERSION >= 20141105 \
14760 || PACKET_VERSION >= 20141029 \
14761 || PACKET_VERSION >= 20141022 \
14762 || PACKET_VERSION >= 20141008 \
14763 || PACKET_VERSION >= 20141001 \
14764 || PACKET_VERSION >= 20140924 \
14765 || PACKET_VERSION >= 20140917 \
14766 || PACKET_VERSION >= 20140827 \
14767 || PACKET_VERSION >= 20140820 \
14768 || PACKET_VERSION >= 20140813 \
14769 || PACKET_VERSION >= 20140806 \
14770 || PACKET_VERSION >= 20140611 \
14771 || PACKET_VERSION >= 20140605 \
14772 || PACKET_VERSION >= 20140528 \
14773 || PACKET_VERSION >= 20140521 \
14774 || PACKET_VERSION >= 20140508 \
14775 || PACKET_VERSION >= 20140423 \
14776 || PACKET_VERSION >= 20140416 \
14777 || PACKET_VERSION >= 20140402 \
14778 || PACKET_VERSION >= 20140326 \
14779 || PACKET_VERSION >= 20140312 \
14780 || PACKET_VERSION >= 20140305 \
14781 || PACKET_VERSION >= 20140212 \
14782 || PACKET_VERSION >= 20140205 \
14783 || PACKET_VERSION >= 20140115 \
14784 || PACKET_VERSION >= 20140108 \
14785 || PACKET_VERSION >= 20131230 \
14786 || PACKET_VERSION >= 20131218 \
14787 || PACKET_VERSION >= 20131204 \
14788 || PACKET_VERSION >= 20131127 \
14789 || PACKET_VERSION >= 20131106 \
14790 || PACKET_VERSION >= 20131030 \
14791 || PACKET_VERSION >= 20131008 \
14792 || PACKET_VERSION >= 20131002 \
14793 || PACKET_VERSION >= 20130911 \
14794 || PACKET_VERSION >= 20130904 \
14795 || PACKET_VERSION >= 20130814 \
14796 || PACKET_VERSION >= 20130807 \
14797 || PACKET_VERSION >= 20130717 \
14798 || PACKET_VERSION >= 20130703 \
14799 || PACKET_VERSION >= 20130618 \
14800 || PACKET_VERSION >= 20130605 \
14801 || PACKET_VERSION >= 20130502 \
14802 || PACKET_VERSION >= 20130417 \
14803 || PACKET_VERSION >= 20130410 \
14804 || PACKET_VERSION >= 20130403 \
14805 || PACKET_VERSION >= 20130327 \
14806 || PACKET_VERSION >= 20130320 \
14807 || PACKET_VERSION >= 20130313 \
14808 || PACKET_VERSION >= 20130227 \
14809 || PACKET_VERSION >= 20130220 \
14810 || PACKET_VERSION >= 20130115 \
14811 || PACKET_VERSION >= 20130109 \
14812 || PACKET_VERSION >= 20130103 \
14813 || PACKET_VERSION >= 20121121 \
14814 || PACKET_VERSION >= 20121114 \
14815 || PACKET_VERSION >= 20121107 \
14816 || PACKET_VERSION >= 20121031 \
14817 || PACKET_VERSION >= 20121024 \
14818 || PACKET_VERSION >= 20121017 \
14819 || PACKET_VERSION >= 20120925 \
14820 || PACKET_VERSION >= 20120919 \
14821 || PACKET_VERSION >= 20120911 \
14822 || PACKET_VERSION >= 20120905 \
14823 || PACKET_VERSION >= 20120830 \
14824 || PACKET_VERSION >= 20120822 \
14825 || PACKET_VERSION >= 20120814 \
14826 || PACKET_VERSION >= 20120808 \
14827 || PACKET_VERSION >= 20120724 \
14828 || PACKET_VERSION >= 20120716 \
14829 || PACKET_VERSION >= 20120710 \
14830 || PACKET_VERSION >= 20120702 \
14831 || PACKET_VERSION >= 20120626 \
14832 || PACKET_VERSION >= 20120612 \
14833 || PACKET_VERSION >= 20120604 \
14834 || PACKET_VERSION >= 20120529 \
14835 || PACKET_VERSION >= 20120508 \
14836 || PACKET_VERSION >= 20120503 \
14837 || PACKET_VERSION >= 20120424 \
14838 || PACKET_VERSION >= 20120417 \
14839 || PACKET_VERSION >= 20120328 \
14840 || PACKET_VERSION >= 20120320 \
14841 || PACKET_VERSION >= 20120214 \
14842 || PACKET_VERSION >= 20120207 \
14843 || PACKET_VERSION >= 20120131 \
14844 || PACKET_VERSION >= 20120120 \
14845 || PACKET_VERSION >= 20120117 \
14846 || PACKET_VERSION >= 20120103 \
14847 || PACKET_VERSION >= 20111227 \
14848 || PACKET_VERSION >= 20111220 \
14849 || PACKET_VERSION >= 20111213 \
14850 || PACKET_VERSION >= 20111207 \
14851 || PACKET_VERSION >= 20111122 \
14852 || PACKET_VERSION >= 20111114 \
14853 || PACKET_VERSION >= 20111108 \
14854 || PACKET_VERSION >= 20111010 \
14855 || PACKET_VERSION >= 20111004 \
14856 || PACKET_VERSION >= 20110928 \
14857 || PACKET_VERSION >= 20110920 \
14858 || PACKET_VERSION >= 20110906 \
14859 || PACKET_VERSION >= 20110831 \
14860 || PACKET_VERSION >= 20110823 \
14861 || PACKET_VERSION >= 20110816 \
14862 || PACKET_VERSION >= 20110809 \
14863 || PACKET_VERSION >= 20110705 \
14864 || PACKET_VERSION >= 20110627 \
14865 || PACKET_VERSION >= 20110620 \
14866 || PACKET_VERSION >= 20110607 \
14867 || PACKET_VERSION >= 20110531 \
14868 || PACKET_VERSION >= 20110523 \
14869 || PACKET_VERSION >= 20110517 \
14870 || PACKET_VERSION >= 20110511 \
14871 || PACKET_VERSION >= 20110503 \
14872 || PACKET_VERSION >= 20110426 \
14873 || PACKET_VERSION >= 20110412 \
14874 || PACKET_VERSION >= 20110405 \
14875 || PACKET_VERSION >= 20110329 \
14876 || PACKET_VERSION >= 20110118 \
14877 || PACKET_VERSION >= 20110104 \
14878 || PACKET_VERSION >= 20101228 \
14879 || PACKET_VERSION >= 20101130 \
14880 || PACKET_VERSION >= 20101123 \
14881 || PACKET_VERSION >= 20100105 \
14882 || PACKET_VERSION >= 20090318 \
14883 || PACKET_VERSION >= 20090311 \
14884 || PACKET_VERSION >= 20090211 \
14885 || PACKET_VERSION >= 20090204 \
14886 || PACKET_VERSION >= 20090120 \
14887 || PACKET_VERSION >= 20090107 \
14888 || PACKET_VERSION >= 20081217 \
14889 || PACKET_VERSION >= 20081203 \
14890 || PACKET_VERSION >= 20081126 \
14891 || PACKET_VERSION >= 20081119 \
14892 || PACKET_VERSION >= 20081112 \
14893 || PACKET_VERSION >= 20081105 \
14894 || PACKET_VERSION >= 20081029 \
14895 || PACKET_VERSION >= 20081001 \
14896 || PACKET_VERSION >= 20080924 \
14897 || PACKET_VERSION >= 20080917 \
14898 || PACKET_VERSION >= 20080910 \
14899 || PACKET_VERSION >= 20080903 \
14900 || PACKET_VERSION >= 20080820 \
14901 || PACKET_VERSION >= 20080813 \
14902 || PACKET_VERSION >= 20080806 \
14903 || PACKET_VERSION >= 20080708 \
14904 || PACKET_VERSION >= 20080701 \
14905 || PACKET_VERSION >= 20080528)
14907#elif CLIENT_TYPE == 'R' && ( \
14908 PACKET_VERSION >= 20210000 \
14909 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
14910 || (PACKET_VERSION >= 20190000 && PACKET_VERSION < 20200000) \
14911 || PACKET_VERSION >= 20180321 \
14912 || PACKET_VERSION >= 20180213 \
14913 || PACKET_VERSION >= 20180207 \
14914 || PACKET_VERSION >= 20180124 \
14915 || PACKET_VERSION >= 20180117 \
14916 || PACKET_VERSION >= 20180103 \
14917 || PACKET_VERSION >= 20171220 \
14918 || PACKET_VERSION >= 20171213 \
14919 || PACKET_VERSION >= 20171206 \
14920 || PACKET_VERSION >= 20171129 \
14921 || PACKET_VERSION >= 20171122 \
14922 || PACKET_VERSION >= 20171115 \
14923 || PACKET_VERSION >= 20171101 \
14924 || PACKET_VERSION >= 20171025 \
14925 || PACKET_VERSION >= 20171018 \
14926 || PACKET_VERSION >= 20171011 \
14927 || PACKET_VERSION >= 20170830 \
14928 || PACKET_VERSION >= 20170823 \
14929 || PACKET_VERSION >= 20170809 \
14930 || PACKET_VERSION >= 20170801 \
14931 || PACKET_VERSION >= 20170719 \
14932 || PACKET_VERSION >= 20170712 \
14933 || PACKET_VERSION >= 20170705 \
14934 || PACKET_VERSION >= 20170628 \
14935 || PACKET_VERSION >= 20170621 \
14936 || PACKET_VERSION >= 20170517 \
14937 || PACKET_VERSION >= 20170502 \
14938 || PACKET_VERSION >= 20170419 \
14939 || PACKET_VERSION >= 20170412 \
14940 || PACKET_VERSION >= 20170329 \
14941 || PACKET_VERSION >= 20170322 \
14942 || PACKET_VERSION >= 20170315 \
14943 || PACKET_VERSION >= 20170308 \
14944 || PACKET_VERSION >= 20170111 \
14945 || PACKET_VERSION >= 20170104 \
14946 || PACKET_VERSION >= 20161207 \
14947 || PACKET_VERSION >= 20161130 \
14948 || PACKET_VERSION >= 20161116 \
14949 || PACKET_VERSION >= 20161109 \
14950 || PACKET_VERSION >= 20161026 \
14951 || PACKET_VERSION >= 20161019 \
14952 || PACKET_VERSION >= 20161012 \
14953 || PACKET_VERSION >= 20160928 \
14954 || PACKET_VERSION >= 20160921 \
14955 || PACKET_VERSION >= 20160913 \
14956 || PACKET_VERSION >= 20160907 \
14957 || PACKET_VERSION >= 20160831 \
14958 || PACKET_VERSION >= 20160824 \
14959 || PACKET_VERSION >= 20160727 \
14960 || PACKET_VERSION >= 20160720 \
14961 || PACKET_VERSION >= 20160525 \
14962 || PACKET_VERSION >= 20160511 \
14963 || PACKET_VERSION >= 20160504 \
14964 || PACKET_VERSION >= 20160427 \
14965 || PACKET_VERSION >= 20160406 \
14966 || PACKET_VERSION >= 20160330 \
14967 || PACKET_VERSION >= 20160323 \
14968 || PACKET_VERSION >= 20160316 \
14969 || PACKET_VERSION >= 20160224 \
14970 || PACKET_VERSION >= 20160217 \
14971 || PACKET_VERSION >= 20160211 \
14972 || PACKET_VERSION >= 20160203 \
14973 || PACKET_VERSION >= 20160120 \
14974 || PACKET_VERSION >= 20160106 \
14975 || PACKET_VERSION >= 20151230 \
14976 || PACKET_VERSION >= 20151223 \
14977 || PACKET_VERSION >= 20151216 \
14978 || PACKET_VERSION >= 20151209 \
14979 || PACKET_VERSION >= 20151202 \
14980 || PACKET_VERSION >= 20151125 \
14981 || PACKET_VERSION >= 20151118 \
14982 || PACKET_VERSION >= 20151104 \
14983 || PACKET_VERSION >= 20151021 \
14984 || PACKET_VERSION >= 20151014 \
14985 || PACKET_VERSION >= 20151001 \
14986 || PACKET_VERSION >= 20150916 \
14987 || PACKET_VERSION >= 20150909 \
14988 || PACKET_VERSION >= 20150819 \
14989 || PACKET_VERSION >= 20150805 \
14990 || PACKET_VERSION >= 20150701 \
14991 || PACKET_VERSION >= 20150624 \
14992 || PACKET_VERSION >= 20150617 \
14993 || PACKET_VERSION >= 20150603 \
14994 || PACKET_VERSION >= 20150527 \
14995 || PACKET_VERSION >= 20150429 \
14996 || PACKET_VERSION >= 20150422 \
14997 || PACKET_VERSION >= 20150401 \
14998 || PACKET_VERSION >= 20150325 \
14999 || PACKET_VERSION >= 20150225 \
15000 || PACKET_VERSION >= 20150217 \
15001 || PACKET_VERSION >= 20150211 \
15002 || PACKET_VERSION >= 20150204 \
15003 || PACKET_VERSION >= 20150128 \
15004 || PACKET_VERSION >= 20150121 \
15005 || PACKET_VERSION >= 20150107 \
15006 || PACKET_VERSION >= 20141231 \
15007 || PACKET_VERSION >= 20141105 \
15008 || PACKET_VERSION >= 20141029 \
15009 || PACKET_VERSION >= 20141022 \
15010 || PACKET_VERSION >= 20141008 \
15011 || PACKET_VERSION >= 20141001 \
15012 || PACKET_VERSION >= 20140924 \
15013 || PACKET_VERSION >= 20140917 \
15014 || PACKET_VERSION >= 20140827 \
15015 || PACKET_VERSION >= 20140820 \
15016 || PACKET_VERSION >= 20140813 \
15017 || PACKET_VERSION >= 20140806 \
15018 || PACKET_VERSION >= 20140611 \
15019 || PACKET_VERSION >= 20140605 \
15020 || PACKET_VERSION >= 20140528 \
15021 || PACKET_VERSION >= 20140521 \
15022 || PACKET_VERSION >= 20140508 \
15023 || PACKET_VERSION >= 20140423 \
15024 || PACKET_VERSION >= 20140416 \
15025 || PACKET_VERSION >= 20140402 \
15026 || PACKET_VERSION >= 20140326 \
15027 || PACKET_VERSION >= 20140312 \
15028 || PACKET_VERSION >= 20140305 \
15029 || PACKET_VERSION >= 20140212 \
15030 || PACKET_VERSION >= 20140205 \
15031 || PACKET_VERSION >= 20140115 \
15032 || PACKET_VERSION >= 20140108 \
15033 || PACKET_VERSION >= 20131230 \
15034 || PACKET_VERSION >= 20131223 \
15035 || PACKET_VERSION >= 20131218 \
15036 || PACKET_VERSION >= 20131204 \
15037 || PACKET_VERSION >= 20131127 \
15038 || PACKET_VERSION >= 20131106 \
15039 || PACKET_VERSION >= 20131030 \
15040 || PACKET_VERSION >= 20131008 \
15041 || PACKET_VERSION >= 20131002 \
15042 || PACKET_VERSION >= 20130911 \
15043 || PACKET_VERSION >= 20130904 \
15044 || PACKET_VERSION >= 20130814 \
15045 || PACKET_VERSION >= 20130807 \
15046 || PACKET_VERSION >= 20130717 \
15047 || PACKET_VERSION >= 20130703 \
15048 || PACKET_VERSION >= 20130618 \
15049 || PACKET_VERSION >= 20130605 \
15050 || PACKET_VERSION >= 20130502 \
15051 || PACKET_VERSION >= 20130417 \
15052 || PACKET_VERSION >= 20130410 \
15053 || PACKET_VERSION >= 20130403 \
15054 || PACKET_VERSION >= 20130327 \
15055 || PACKET_VERSION >= 20130320 \
15056 || PACKET_VERSION >= 20130313 \
15057 || PACKET_VERSION >= 20130227 \
15058 || PACKET_VERSION >= 20130220 \
15059 || PACKET_VERSION >= 20130115 \
15060 || PACKET_VERSION >= 20130109 \
15061 || PACKET_VERSION >= 20130103 \
15062 || PACKET_VERSION >= 20121121 \
15063 || PACKET_VERSION >= 20121114 \
15064 || PACKET_VERSION >= 20121107 \
15065 || PACKET_VERSION >= 20121031 \
15066 || PACKET_VERSION >= 20121024 \
15067 || PACKET_VERSION >= 20121017 \
15068 || PACKET_VERSION >= 20120925 \
15069 || PACKET_VERSION >= 20120919 \
15070 || PACKET_VERSION >= 20120911 \
15071 || PACKET_VERSION >= 20120905 \
15072 || PACKET_VERSION >= 20120830 \
15073 || PACKET_VERSION >= 20120822 \
15074 || PACKET_VERSION >= 20120814 \
15075 || PACKET_VERSION >= 20120808 \
15076 || PACKET_VERSION >= 20120724 \
15077 || PACKET_VERSION >= 20120716 \
15078 || PACKET_VERSION >= 20120710 \
15079 || PACKET_VERSION >= 20120702 \
15080 || PACKET_VERSION >= 20120626 \
15081 || PACKET_VERSION >= 20120612 \
15082 || PACKET_VERSION >= 20120601 \
15083 || PACKET_VERSION >= 20120529 \
15084 || PACKET_VERSION >= 20120508 \
15085 || PACKET_VERSION >= 20120502 \
15086 || PACKET_VERSION >= 20120424 \
15087 || PACKET_VERSION >= 20120417 \
15088 || PACKET_VERSION >= 20120328 \
15089 || PACKET_VERSION >= 20120320 \
15090 || PACKET_VERSION >= 20120214 \
15091 || PACKET_VERSION >= 20120207 \
15092 || PACKET_VERSION >= 20120131 \
15093 || PACKET_VERSION >= 20120120 \
15094 || PACKET_VERSION >= 20120117 \
15095 || PACKET_VERSION >= 20120103 \
15096 || PACKET_VERSION >= 20111227 \
15097 || PACKET_VERSION >= 20111220 \
15098 || PACKET_VERSION >= 20111213 \
15099 || PACKET_VERSION >= 20111207 \
15100 || PACKET_VERSION >= 20111122 \
15101 || PACKET_VERSION >= 20111114 \
15102 || PACKET_VERSION >= 20111108 \
15103 || PACKET_VERSION >= 20111010 \
15104 || PACKET_VERSION >= 20111004 \
15105 || PACKET_VERSION >= 20110928 \
15106 || PACKET_VERSION >= 20110920 \
15107 || PACKET_VERSION >= 20110906 \
15108 || PACKET_VERSION >= 20110831 \
15109 || PACKET_VERSION >= 20110823 \
15110 || PACKET_VERSION >= 20110816 \
15111 || PACKET_VERSION >= 20110104 \
15112 || PACKET_VERSION >= 20101123 \
15113 || PACKET_VERSION >= 20100105 \
15114 || (PACKET_VERSION >= 20090000 && PACKET_VERSION < 20100105) \
15115 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20090000))
15117#elif CLIENT_TYPE == 'S' && \
15118 PACKET_VERSION >= 20080618
15120#elif CLIENT_TYPE == 'Z' && ( \
15121 PACKET_VERSION >= 20220000 \
15122 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
15123 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
15124 || (PACKET_VERSION >= 20190000 && PACKET_VERSION < 20200000) \
15125 || PACKET_VERSION >= 20180523 \
15126 || PACKET_VERSION >= 20180511 \
15127 || PACKET_VERSION >= 20180315 \
15128 || PACKET_VERSION >= 20180314 \
15129 || PACKET_VERSION >= 20180228 \
15130 || PACKET_VERSION >= 20180213 \
15131 || PACKET_VERSION >= 20180131 \
15132 || PACKET_VERSION >= 20180103 \
15133 || PACKET_VERSION >= 20171130 \
15134 || PACKET_VERSION >= 20171127 \
15135 || PACKET_VERSION >= 20171121 \
15136 || PACKET_VERSION >= 20171115 \
15137 || PACKET_VERSION >= 20171018)
15139#else
15140ID_CZ_MOVE_ITEM_FROM_STORE_TO_BODY2 = 0x0000 // Disabled
15141#endif
15148{
15149public:
15150 CZ_MOVE_ITEM_FROM_STORE_TO_BODY2(std::shared_ptr<ZoneSession> s)
15152 {}
15154
15155 void handle(ByteBuffer &&buf);
15156 void deserialize(ByteBuffer &buf);
15157
15158/* Structure */
15159 int16_t _inventory_index{ 0 };
15160 int _amount{ 0 };
15161};
15162
15163enum {
15164#if CLIENT_TYPE == 'A' && \
15165 PACKET_VERSION >= 20040000
15167#elif CLIENT_TYPE == 'M' && ( \
15168 PACKET_VERSION >= 20220000 \
15169 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
15170 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
15171 || (PACKET_VERSION >= 20030000 && PACKET_VERSION < 20200000))
15173#elif CLIENT_TYPE == 'R' && ( \
15174 PACKET_VERSION >= 20210000 \
15175 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
15176 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
15178#elif CLIENT_TYPE == 'S' && \
15179 PACKET_VERSION >= 20030000
15181#elif CLIENT_TYPE == 'Z' && ( \
15182 PACKET_VERSION >= 20220000 \
15183 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
15184 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
15185 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
15187#else
15188ID_CZ_MOVE_ITEM_FROM_STORE_TO_CART = 0x0000 // Disabled
15189#endif
15196{
15197public:
15198 CZ_MOVE_ITEM_FROM_STORE_TO_CART(std::shared_ptr<ZoneSession> s)
15200 {}
15202
15203 void handle(ByteBuffer &&buf);
15204 void deserialize(ByteBuffer &buf);
15205
15206/* Structure */
15207 int16_t _inventory_index{ 0 };
15208 int _amount{ 0 };
15209};
15210
15211enum {
15212#if CLIENT_TYPE == 'A' && \
15213 PACKET_VERSION >= 20040000
15215#elif CLIENT_TYPE == 'M' && ( \
15216 PACKET_VERSION >= 20220000 \
15217 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
15218 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
15219 || (PACKET_VERSION >= 20030000 && PACKET_VERSION < 20200000))
15221#elif CLIENT_TYPE == 'R' && ( \
15222 PACKET_VERSION >= 20210000 \
15223 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
15224 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
15226#elif CLIENT_TYPE == 'S' && \
15227 PACKET_VERSION >= 20030000
15229#elif CLIENT_TYPE == 'Z' && ( \
15230 PACKET_VERSION >= 20220000 \
15231 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
15232 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
15233 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
15235#else
15236ID_CZ_NOTIFY_ACTORINIT = 0x0000 // Disabled
15237#endif
15243class CZ_NOTIFY_ACTORINIT : public Base::NetworkPacket<ZoneSession>
15244{
15245public:
15246 CZ_NOTIFY_ACTORINIT(std::shared_ptr<ZoneSession> s)
15248 {}
15250
15251 void handle(ByteBuffer &&buf);
15252 void deserialize(ByteBuffer &buf);
15253
15254/* Structure */
15255};
15256
15257enum {
15258#if CLIENT_TYPE == 'M' && ( \
15259 PACKET_VERSION >= 20220000 \
15260 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
15261 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
15262 || PACKET_VERSION >= 20181017)
15264#elif CLIENT_TYPE == 'R' && ( \
15265 PACKET_VERSION >= 20210000 \
15266 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
15267 || PACKET_VERSION >= 20181017)
15269#elif CLIENT_TYPE == 'Z' && ( \
15270 PACKET_VERSION >= 20220000 \
15271 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
15272 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
15273 || (PACKET_VERSION >= 20190000 && PACKET_VERSION < 20200000))
15275#else
15276ID_CZ_NPC_BARTER_CLOSE = 0x0000 // Disabled
15277#endif
15283class CZ_NPC_BARTER_CLOSE : public Base::NetworkPacket<ZoneSession>
15284{
15285public:
15286 CZ_NPC_BARTER_CLOSE(std::shared_ptr<ZoneSession> s)
15288 {}
15290
15291 void handle(ByteBuffer &&buf);
15292 void deserialize(ByteBuffer &buf);
15293
15294/* Structure */
15295};
15296
15297enum {
15298#if CLIENT_TYPE == 'M' && ( \
15299 PACKET_VERSION >= 20220000 \
15300 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
15301 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
15302 || PACKET_VERSION >= 20180912)
15304#elif CLIENT_TYPE == 'R' && ( \
15305 PACKET_VERSION >= 20210000 \
15306 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
15307 || PACKET_VERSION >= 20180912)
15309#elif CLIENT_TYPE == 'Z' && ( \
15310 PACKET_VERSION >= 20220000 \
15311 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
15312 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
15313 || (PACKET_VERSION >= 20190000 && PACKET_VERSION < 20200000))
15315#else
15316ID_CZ_NPC_BARTER_PURCHASE = 0x0000 // Disabled
15317#endif
15324{
15325public:
15326 CZ_NPC_BARTER_PURCHASE(std::shared_ptr<ZoneSession> s)
15328 {}
15330
15331 void handle(ByteBuffer &&buf);
15332 void deserialize(ByteBuffer &buf);
15333
15334/* Structure */
15335};
15336
15337enum {
15338#if CLIENT_TYPE == 'M' && ( \
15339 PACKET_VERSION >= 20220000 \
15340 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
15341 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000))
15343#elif CLIENT_TYPE == 'R' && ( \
15344 PACKET_VERSION >= 20210000 \
15345 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000))
15347#elif CLIENT_TYPE == 'Z' && ( \
15348 PACKET_VERSION >= 20220000 \
15349 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
15350 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000))
15352#else
15353ID_CZ_NPC_EXPANDED_BARTER_MARKET_CLOSE = 0x0000 // Disabled
15354#endif
15361{
15362public:
15363 CZ_NPC_EXPANDED_BARTER_MARKET_CLOSE(std::shared_ptr<ZoneSession> s)
15365 {}
15367
15368 void handle(ByteBuffer &&buf);
15369 void deserialize(ByteBuffer &buf);
15370
15371/* Structure */
15372};
15373
15374enum {
15375#if CLIENT_TYPE == 'M' && ( \
15376 PACKET_VERSION >= 20220000 \
15377 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
15378 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000))
15380#elif CLIENT_TYPE == 'R' && ( \
15381 PACKET_VERSION >= 20210000 \
15382 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000))
15384#elif CLIENT_TYPE == 'Z' && ( \
15385 PACKET_VERSION >= 20220000 \
15386 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
15387 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000))
15389#else
15391#endif
15398{
15399public:
15400 CZ_NPC_EXPANDED_BARTER_MARKET_PURCHASE(std::shared_ptr<ZoneSession> s)
15402 {}
15404
15405 void handle(ByteBuffer &&buf);
15406 void deserialize(ByteBuffer &buf);
15407
15408/* Structure */
15409};
15410
15411enum {
15412#if CLIENT_TYPE == 'M' && ( \
15413 PACKET_VERSION >= 20220000 \
15414 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
15415 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
15416 || PACKET_VERSION >= 20130911)
15418#elif CLIENT_TYPE == 'R' && ( \
15419 PACKET_VERSION >= 20210000 \
15420 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
15421 || PACKET_VERSION >= 20130911)
15423#elif CLIENT_TYPE == 'Z' && ( \
15424 PACKET_VERSION >= 20220000 \
15425 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
15426 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
15427 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
15429#else
15430ID_CZ_NPC_MARKET_CLOSE = 0x0000 // Disabled
15431#endif
15437class CZ_NPC_MARKET_CLOSE : public Base::NetworkPacket<ZoneSession>
15438{
15439public:
15440 CZ_NPC_MARKET_CLOSE(std::shared_ptr<ZoneSession> s)
15442 {}
15444
15445 void handle(ByteBuffer &&buf);
15446 void deserialize(ByteBuffer &buf);
15447
15448/* Structure */
15449};
15450
15451enum {
15452#if CLIENT_TYPE == 'M' && ( \
15453 PACKET_VERSION >= 20220000 \
15454 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
15455 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
15456 || PACKET_VERSION >= 20130911)
15458#elif CLIENT_TYPE == 'R' && ( \
15459 PACKET_VERSION >= 20210000 \
15460 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
15461 || PACKET_VERSION >= 20130911)
15463#elif CLIENT_TYPE == 'Z' && ( \
15464 PACKET_VERSION >= 20220000 \
15465 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
15466 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
15467 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
15469#else
15470ID_CZ_NPC_MARKET_PURCHASE = 0x0000 // Disabled
15471#endif
15478{
15479public:
15480 CZ_NPC_MARKET_PURCHASE(std::shared_ptr<ZoneSession> s)
15482 {}
15484
15485 void handle(ByteBuffer &&buf);
15486 void deserialize(ByteBuffer &buf);
15487
15488/* Structure */
15489};
15490
15491enum {
15492#if CLIENT_TYPE == 'M' && ( \
15493 PACKET_VERSION >= 20220000 \
15494 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
15495 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
15496 || PACKET_VERSION >= 20130911)
15497ID_CZ_NPC_TRADE_QUIT = 0x09d4
15498#elif CLIENT_TYPE == 'R' && ( \
15499 PACKET_VERSION >= 20210000 \
15500 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
15501 || PACKET_VERSION >= 20130911)
15502ID_CZ_NPC_TRADE_QUIT = 0x09d4
15503#elif CLIENT_TYPE == 'Z' && ( \
15504 PACKET_VERSION >= 20220000 \
15505 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
15506 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
15507 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
15508ID_CZ_NPC_TRADE_QUIT = 0x09d4
15509#else
15510ID_CZ_NPC_TRADE_QUIT = 0x0000 // Disabled
15511#endif
15517class CZ_NPC_TRADE_QUIT : public Base::NetworkPacket<ZoneSession>
15518{
15519public:
15520 CZ_NPC_TRADE_QUIT(std::shared_ptr<ZoneSession> s)
15522 {}
15524
15525 void handle(ByteBuffer &&buf);
15526 void deserialize(ByteBuffer &buf);
15527
15528/* Structure */
15529};
15530
15531enum {
15532#if CLIENT_TYPE == 'M' && ( \
15533 PACKET_VERSION >= 20220000 \
15534 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
15535 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
15536 || PACKET_VERSION >= 20130814)
15538#elif CLIENT_TYPE == 'R' && ( \
15539 PACKET_VERSION >= 20210000 \
15540 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
15541 || PACKET_VERSION >= 20130814)
15543#elif CLIENT_TYPE == 'Z' && ( \
15544 PACKET_VERSION >= 20220000 \
15545 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
15546 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
15547 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
15549#else
15550ID_CZ_NPROTECTGAMEGUARDCSAUTH = 0x0000 // Disabled
15551#endif
15558{
15559public:
15560 CZ_NPROTECTGAMEGUARDCSAUTH(std::shared_ptr<ZoneSession> s)
15562 {}
15564
15565 void handle(ByteBuffer &&buf);
15566 void deserialize(ByteBuffer &buf);
15567
15568/* Structure */
15569};
15570
15571enum {
15572#if CLIENT_TYPE == 'M' && ( \
15573 PACKET_VERSION >= 20220000 \
15574 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
15575 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
15576 || PACKET_VERSION >= 20160615)
15578#elif CLIENT_TYPE == 'R' && ( \
15579 PACKET_VERSION >= 20210000 \
15580 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
15581 || PACKET_VERSION >= 20160615)
15583#elif CLIENT_TYPE == 'Z' && ( \
15584 PACKET_VERSION >= 20220000 \
15585 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
15586 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
15587 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
15589#else
15590ID_CZ_OFFLINE_STORE_CREATE = 0x0000 // Disabled
15591#endif
15598{
15599public:
15600 CZ_OFFLINE_STORE_CREATE(std::shared_ptr<ZoneSession> s)
15602 {}
15604
15605 void handle(ByteBuffer &&buf);
15606 void deserialize(ByteBuffer &buf);
15607
15608/* Structure */
15609};
15610
15611enum {
15612#if CLIENT_TYPE == 'M' && ( \
15613 PACKET_VERSION >= 20220000 \
15614 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
15615 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
15616 || PACKET_VERSION >= 20130417)
15618#elif CLIENT_TYPE == 'R' && ( \
15619 PACKET_VERSION >= 20210000 \
15620 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
15621 || PACKET_VERSION >= 20130417)
15623#elif CLIENT_TYPE == 'Z' && ( \
15624 PACKET_VERSION >= 20220000 \
15625 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
15626 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
15627 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
15629#else
15630ID_CZ_OPEN_BARGAIN_SALE_TOOL = 0x0000 // Disabled
15631#endif
15638{
15639public:
15640 CZ_OPEN_BARGAIN_SALE_TOOL(std::shared_ptr<ZoneSession> s)
15642 {}
15644
15645 void handle(ByteBuffer &&buf);
15646 void deserialize(ByteBuffer &buf);
15647
15648/* Structure */
15649};
15650
15651enum {
15652#if CLIENT_TYPE == 'M' && \
15653 PACKET_VERSION >= 20131218
15654ID_CZ_OPEN_RODEXBOX = 0x09e8
15655#elif CLIENT_TYPE == 'M' && ( \
15656 PACKET_VERSION >= 20220000 \
15657 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
15658 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
15659 || PACKET_VERSION >= 20170228)
15660ID_CZ_OPEN_RODEXBOX = 0x0ac0
15661#elif CLIENT_TYPE == 'R' && \
15662 PACKET_VERSION >= 20131218
15663ID_CZ_OPEN_RODEXBOX = 0x09e8
15664#elif CLIENT_TYPE == 'R' && ( \
15665 PACKET_VERSION >= 20210000 \
15666 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
15667 || PACKET_VERSION >= 20170228)
15668ID_CZ_OPEN_RODEXBOX = 0x0ac0
15669#elif CLIENT_TYPE == 'Z' && ( \
15670 PACKET_VERSION >= 20220000 \
15671 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
15672 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
15673 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
15674ID_CZ_OPEN_RODEXBOX = 0x0ac0
15675#elif CLIENT_TYPE == 'Z' && \
15676 PACKET_VERSION >= 20180000
15677ID_CZ_OPEN_RODEXBOX = 0x09e8
15678#else
15679ID_CZ_OPEN_RODEXBOX = 0x0000 // Disabled
15680#endif
15686class CZ_OPEN_RODEXBOX : public Base::NetworkPacket<ZoneSession>
15687{
15688public:
15689 CZ_OPEN_RODEXBOX(std::shared_ptr<ZoneSession> s)
15691 {}
15693
15694 void handle(ByteBuffer &&buf);
15695 void deserialize(ByteBuffer &buf);
15696
15697/* Structure */
15698};
15699
15700enum {
15701#if CLIENT_TYPE == 'A' && \
15702 PACKET_VERSION >= 20080520
15704#elif CLIENT_TYPE == 'M' && ( \
15705 PACKET_VERSION >= 20220000 \
15706 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
15707 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
15708 || PACKET_VERSION >= 20080520)
15710#elif CLIENT_TYPE == 'R' && ( \
15711 PACKET_VERSION >= 20210000 \
15712 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
15713 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
15715#elif CLIENT_TYPE == 'S' && \
15716 PACKET_VERSION >= 20080527
15718#elif CLIENT_TYPE == 'Z' && ( \
15719 PACKET_VERSION >= 20220000 \
15720 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
15721 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
15722 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
15724#else
15725ID_CZ_OPEN_SIMPLE_CASHSHOP_ITEMLIST = 0x0000 // Disabled
15726#endif
15733{
15734public:
15735 CZ_OPEN_SIMPLE_CASHSHOP_ITEMLIST(std::shared_ptr<ZoneSession> s)
15737 {}
15739
15740 void handle(ByteBuffer &&buf);
15741 void deserialize(ByteBuffer &buf);
15742
15743/* Structure */
15744};
15745
15746enum {
15747#if CLIENT_TYPE == 'M' && ( \
15748 PACKET_VERSION >= 20220000 \
15749 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
15750 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
15751 || PACKET_VERSION >= 20091228)
15753#elif CLIENT_TYPE == 'R' && ( \
15754 PACKET_VERSION >= 20210000 \
15755 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
15756 || PACKET_VERSION >= 20091229)
15758#elif CLIENT_TYPE == 'Z' && ( \
15759 PACKET_VERSION >= 20220000 \
15760 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
15761 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
15762 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
15764#else
15765ID_CZ_PARTY_BOOKING_REQ_DELETE = 0x0000 // Disabled
15766#endif
15773{
15774public:
15775 CZ_PARTY_BOOKING_REQ_DELETE(std::shared_ptr<ZoneSession> s)
15777 {}
15779
15780 void handle(ByteBuffer &&buf);
15781 void deserialize(ByteBuffer &buf);
15782
15783/* Structure */
15784};
15785
15786enum {
15787#if CLIENT_TYPE == 'M' && ( \
15788 PACKET_VERSION == 20190821 \
15789 || PACKET_VERSION == 20190807 \
15790 || PACKET_VERSION == 20190802 \
15791 || PACKET_VERSION == 20190731 \
15792 || PACKET_VERSION == 20190724 \
15793 || PACKET_VERSION == 20190717 \
15794 || PACKET_VERSION == 20190703 \
15795 || PACKET_VERSION == 20190605 \
15796 || PACKET_VERSION == 20190530 \
15797 || PACKET_VERSION == 20190523 \
15798 || PACKET_VERSION == 20190522 \
15799 || PACKET_VERSION == 20190508 \
15800 || PACKET_VERSION == 20190418 \
15801 || PACKET_VERSION == 20190417 \
15802 || PACKET_VERSION == 20190327 \
15803 || PACKET_VERSION == 20190322 \
15804 || PACKET_VERSION == 20190320 \
15805 || PACKET_VERSION == 20190313 \
15806 || PACKET_VERSION == 20190306 \
15807 || PACKET_VERSION == 20190228 \
15808 || PACKET_VERSION == 20190123 \
15809 || PACKET_VERSION == 20190116 \
15810 || (PACKET_VERSION >= 20190000 && PACKET_VERSION < 20190116) \
15811 || PACKET_VERSION == 20181226 \
15812 || PACKET_VERSION == 20181219 \
15813 || PACKET_VERSION == 20181212 \
15814 || PACKET_VERSION == 20181205 \
15815 || PACKET_VERSION == 20181128 \
15816 || PACKET_VERSION == 20181114 \
15817 || PACKET_VERSION == 20181107 \
15818 || PACKET_VERSION == 20181024 \
15819 || PACKET_VERSION == 20180919 \
15820 || PACKET_VERSION == 20180831 \
15821 || PACKET_VERSION == 20180822 \
15822 || PACKET_VERSION >= 20180808 \
15823 || PACKET_VERSION >= 20180718 \
15824 || PACKET_VERSION >= 20180704 \
15825 || PACKET_VERSION >= 20180621 \
15826 || PACKET_VERSION >= 20180620 \
15827 || PACKET_VERSION >= 20180530 \
15828 || PACKET_VERSION >= 20180523 \
15829 || PACKET_VERSION >= 20180516 \
15830 || PACKET_VERSION >= 20180509 \
15831 || PACKET_VERSION >= 20180502 \
15832 || PACKET_VERSION >= 20180425 \
15833 || PACKET_VERSION >= 20180404 \
15834 || PACKET_VERSION >= 20180328 \
15835 || PACKET_VERSION >= 20180321 \
15836 || PACKET_VERSION >= 20180315 \
15837 || PACKET_VERSION >= 20180221 \
15838 || PACKET_VERSION >= 20180213 \
15839 || PACKET_VERSION >= 20180207 \
15840 || PACKET_VERSION >= 20180124 \
15841 || PACKET_VERSION >= 20180117 \
15842 || PACKET_VERSION >= 20180103 \
15843 || PACKET_VERSION >= 20171227 \
15844 || PACKET_VERSION >= 20171220 \
15845 || PACKET_VERSION >= 20171213 \
15846 || PACKET_VERSION >= 20171122 \
15847 || PACKET_VERSION >= 20171115 \
15848 || PACKET_VERSION >= 20171101 \
15849 || PACKET_VERSION >= 20171025 \
15850 || PACKET_VERSION >= 20171018 \
15851 || PACKET_VERSION >= 20171011 \
15852 || PACKET_VERSION >= 20170913 \
15853 || PACKET_VERSION >= 20170906 \
15854 || PACKET_VERSION >= 20170830 \
15855 || PACKET_VERSION >= 20170823 \
15856 || PACKET_VERSION >= 20170816 \
15857 || PACKET_VERSION >= 20170809 \
15858 || PACKET_VERSION >= 20170801 \
15859 || PACKET_VERSION >= 20170719 \
15860 || PACKET_VERSION >= 20170712 \
15861 || PACKET_VERSION >= 20170705 \
15862 || PACKET_VERSION >= 20170628 \
15863 || PACKET_VERSION >= 20170621 \
15864 || PACKET_VERSION >= 20170531 \
15865 || PACKET_VERSION >= 20170524 \
15866 || PACKET_VERSION >= 20170517 \
15867 || PACKET_VERSION >= 20170426 \
15868 || PACKET_VERSION >= 20170329 \
15869 || PACKET_VERSION >= 20170322 \
15870 || PACKET_VERSION >= 20170315 \
15871 || PACKET_VERSION >= 20170308 \
15872 || PACKET_VERSION >= 20170111 \
15873 || PACKET_VERSION >= 20170104 \
15874 || PACKET_VERSION >= 20161207 \
15875 || PACKET_VERSION >= 20161130 \
15876 || PACKET_VERSION >= 20161109 \
15877 || PACKET_VERSION >= 20161102 \
15878 || PACKET_VERSION >= 20161026 \
15879 || PACKET_VERSION >= 20161019 \
15880 || PACKET_VERSION >= 20160928 \
15881 || PACKET_VERSION >= 20160921 \
15882 || PACKET_VERSION >= 20160913 \
15883 || PACKET_VERSION >= 20160907 \
15884 || PACKET_VERSION >= 20160831 \
15885 || PACKET_VERSION >= 20160824 \
15886 || PACKET_VERSION >= 20160615 \
15887 || PACKET_VERSION >= 20160608 \
15888 || PACKET_VERSION >= 20160525 \
15889 || PACKET_VERSION >= 20160511 \
15890 || PACKET_VERSION >= 20160504 \
15891 || PACKET_VERSION >= 20160427 \
15892 || PACKET_VERSION >= 20160323 \
15893 || PACKET_VERSION >= 20160316 \
15894 || PACKET_VERSION >= 20160309 \
15895 || PACKET_VERSION >= 20160302 \
15896 || PACKET_VERSION >= 20160217 \
15897 || PACKET_VERSION >= 20160211 \
15898 || PACKET_VERSION >= 20160203 \
15899 || PACKET_VERSION >= 20160120 \
15900 || PACKET_VERSION >= 20160106 \
15901 || PACKET_VERSION >= 20151230 \
15902 || PACKET_VERSION >= 20151223 \
15903 || PACKET_VERSION >= 20151209 \
15904 || PACKET_VERSION >= 20151202 \
15905 || PACKET_VERSION >= 20151125 \
15906 || PACKET_VERSION >= 20151118 \
15907 || PACKET_VERSION >= 20151111 \
15908 || PACKET_VERSION >= 20151104 \
15909 || PACKET_VERSION >= 20151028 \
15910 || PACKET_VERSION >= 20151014 \
15911 || PACKET_VERSION >= 20151001 \
15912 || PACKET_VERSION >= 20150909 \
15913 || PACKET_VERSION >= 20150902 \
15914 || PACKET_VERSION >= 20150819 \
15915 || PACKET_VERSION >= 20150805 \
15916 || PACKET_VERSION >= 20150708 \
15917 || PACKET_VERSION >= 20150701 \
15918 || PACKET_VERSION >= 20150624 \
15919 || PACKET_VERSION >= 20150603 \
15920 || PACKET_VERSION >= 20150527 \
15921 || PACKET_VERSION >= 20150429 \
15922 || PACKET_VERSION >= 20150422 \
15923 || PACKET_VERSION >= 20150401 \
15924 || PACKET_VERSION >= 20150325 \
15925 || PACKET_VERSION >= 20150318 \
15926 || PACKET_VERSION >= 20150311 \
15927 || PACKET_VERSION >= 20150304 \
15928 || PACKET_VERSION >= 20150225 \
15929 || PACKET_VERSION >= 20150217 \
15930 || PACKET_VERSION >= 20150211 \
15931 || PACKET_VERSION >= 20150204 \
15932 || PACKET_VERSION >= 20150121 \
15933 || PACKET_VERSION >= 20150107 \
15934 || PACKET_VERSION >= 20141231 \
15935 || PACKET_VERSION >= 20141210 \
15936 || PACKET_VERSION >= 20141203 \
15937 || PACKET_VERSION >= 20141126 \
15938 || PACKET_VERSION >= 20141105 \
15939 || PACKET_VERSION >= 20141029 \
15940 || PACKET_VERSION >= 20141022 \
15941 || PACKET_VERSION >= 20141008 \
15942 || PACKET_VERSION >= 20141001 \
15943 || PACKET_VERSION >= 20140924 \
15944 || PACKET_VERSION >= 20140917 \
15945 || PACKET_VERSION >= 20140827 \
15946 || PACKET_VERSION >= 20140820 \
15947 || PACKET_VERSION >= 20140813 \
15948 || PACKET_VERSION >= 20140806 \
15949 || PACKET_VERSION >= 20140730 \
15950 || PACKET_VERSION >= 20140611 \
15951 || PACKET_VERSION >= 20140605 \
15952 || PACKET_VERSION >= 20140528 \
15953 || PACKET_VERSION >= 20140521 \
15954 || PACKET_VERSION >= 20140514 \
15955 || PACKET_VERSION >= 20140508 \
15956 || PACKET_VERSION >= 20140423 \
15957 || PACKET_VERSION >= 20140416 \
15958 || PACKET_VERSION >= 20140312 \
15959 || PACKET_VERSION >= 20140305 \
15960 || PACKET_VERSION >= 20140226 \
15961 || PACKET_VERSION >= 20140219 \
15962 || PACKET_VERSION >= 20140212 \
15963 || PACKET_VERSION >= 20140205 \
15964 || PACKET_VERSION >= 20140129 \
15965 || PACKET_VERSION >= 20140122 \
15966 || PACKET_VERSION >= 20140115 \
15967 || PACKET_VERSION >= 20140108 \
15968 || PACKET_VERSION >= 20131230 \
15969 || PACKET_VERSION >= 20131218 \
15970 || PACKET_VERSION >= 20131127 \
15971 || PACKET_VERSION >= 20131120 \
15972 || PACKET_VERSION >= 20131113 \
15973 || PACKET_VERSION >= 20131106 \
15974 || PACKET_VERSION >= 20131030 \
15975 || PACKET_VERSION >= 20131023 \
15976 || PACKET_VERSION >= 20131016 \
15977 || PACKET_VERSION >= 20131008 \
15978 || PACKET_VERSION >= 20131002 \
15979 || PACKET_VERSION >= 20130911 \
15980 || PACKET_VERSION >= 20130904 \
15981 || PACKET_VERSION >= 20130814 \
15982 || PACKET_VERSION >= 20130807 \
15983 || PACKET_VERSION >= 20130717 \
15984 || PACKET_VERSION >= 20130703 \
15985 || PACKET_VERSION >= 20130618 \
15986 || PACKET_VERSION >= 20130605 \
15987 || PACKET_VERSION >= 20130502 \
15988 || PACKET_VERSION >= 20130417 \
15989 || PACKET_VERSION >= 20130410 \
15990 || PACKET_VERSION >= 20130403 \
15991 || PACKET_VERSION >= 20130320 \
15992 || PACKET_VERSION >= 20130313 \
15993 || PACKET_VERSION >= 20130306 \
15994 || PACKET_VERSION >= 20130227 \
15995 || PACKET_VERSION >= 20130220 \
15996 || PACKET_VERSION >= 20130215 \
15997 || PACKET_VERSION >= 20130130 \
15998 || PACKET_VERSION >= 20130121 \
15999 || PACKET_VERSION >= 20130109 \
16000 || PACKET_VERSION >= 20130103 \
16001 || PACKET_VERSION >= 20121205 \
16002 || PACKET_VERSION >= 20121128 \
16003 || PACKET_VERSION >= 20121107 \
16004 || PACKET_VERSION >= 20121031 \
16005 || PACKET_VERSION >= 20120925 \
16006 || PACKET_VERSION >= 20120919 \
16007 || PACKET_VERSION >= 20120905 \
16008 || PACKET_VERSION >= 20120830 \
16009 || PACKET_VERSION >= 20120814 \
16010 || PACKET_VERSION >= 20120808 \
16011 || PACKET_VERSION >= 20120724 \
16012 || PACKET_VERSION >= 20120716 \
16013 || PACKET_VERSION >= 20120710 \
16014 || PACKET_VERSION >= 20120702 \
16015 || PACKET_VERSION >= 20120626 \
16016 || PACKET_VERSION >= 20120612 \
16017 || PACKET_VERSION >= 20120604 \
16018 || PACKET_VERSION >= 20120529 \
16019 || PACKET_VERSION >= 20120508 \
16020 || PACKET_VERSION >= 20120503 \
16021 || PACKET_VERSION >= 20120424 \
16022 || PACKET_VERSION >= 20120417 \
16023 || PACKET_VERSION >= 20120328 \
16024 || PACKET_VERSION >= 20120320 \
16025 || PACKET_VERSION >= 20120214 \
16026 || PACKET_VERSION >= 20120207 \
16027 || PACKET_VERSION >= 20120131 \
16028 || PACKET_VERSION >= 20120120 \
16029 || PACKET_VERSION >= 20120103 \
16030 || PACKET_VERSION >= 20111220 \
16031 || PACKET_VERSION >= 20111122 \
16032 || PACKET_VERSION >= 20111114 \
16033 || PACKET_VERSION >= 20111025 \
16034 || PACKET_VERSION >= 20111017 \
16035 || PACKET_VERSION >= 20111010 \
16036 || PACKET_VERSION >= 20111004 \
16037 || PACKET_VERSION >= 20110928 \
16038 || PACKET_VERSION >= 20110920 \
16039 || PACKET_VERSION >= 20110906 \
16040 || PACKET_VERSION >= 20110831 \
16041 || PACKET_VERSION >= 20110823 \
16042 || PACKET_VERSION >= 20110816 \
16043 || PACKET_VERSION >= 20110802 \
16044 || PACKET_VERSION >= 20110711 \
16045 || PACKET_VERSION >= 20110705 \
16046 || PACKET_VERSION >= 20110620 \
16047 || PACKET_VERSION >= 20110607 \
16048 || PACKET_VERSION >= 20110531 \
16049 || PACKET_VERSION >= 20110523 \
16050 || PACKET_VERSION >= 20110511 \
16051 || PACKET_VERSION >= 20110503 \
16052 || PACKET_VERSION >= 20110426 \
16053 || PACKET_VERSION >= 20110419 \
16054 || PACKET_VERSION >= 20110412 \
16055 || PACKET_VERSION >= 20110405 \
16056 || PACKET_VERSION >= 20110329 \
16057 || PACKET_VERSION >= 20110308 \
16058 || PACKET_VERSION >= 20110228 \
16059 || PACKET_VERSION >= 20110222 \
16060 || PACKET_VERSION >= 20110215 \
16061 || PACKET_VERSION >= 20110208 \
16062 || PACKET_VERSION >= 20110131 \
16063 || PACKET_VERSION >= 20110125 \
16064 || PACKET_VERSION >= 20110118 \
16065 || PACKET_VERSION >= 20110104 \
16066 || PACKET_VERSION >= 20101228 \
16067 || PACKET_VERSION >= 20101221 \
16068 || PACKET_VERSION >= 20101214 \
16069 || PACKET_VERSION >= 20101130 \
16070 || PACKET_VERSION >= 20101123 \
16071 || PACKET_VERSION >= 20100105 \
16072 || PACKET_VERSION >= 20091222)
16074#elif CLIENT_TYPE == 'M' && \
16075 PACKET_VERSION >= 20120712
16077#elif CLIENT_TYPE == 'M' && \
16078 PACKET_VERSION >= 20120926
16080#elif CLIENT_TYPE == 'M' && ( \
16081 PACKET_VERSION == 20160318 \
16082 || PACKET_VERSION == 20151029 \
16083 || PACKET_VERSION == 20151022 \
16084 || PACKET_VERSION == 20150812 \
16085 || PACKET_VERSION >= 20141016 \
16086 || PACKET_VERSION >= 20130107)
16088#elif CLIENT_TYPE == 'M' && \
16089 PACKET_VERSION >= 20130116
16091#elif CLIENT_TYPE == 'M' && ( \
16092 PACKET_VERSION == 20131108 \
16093 || PACKET_VERSION == 20131107)
16095#elif CLIENT_TYPE == 'M' && ( \
16096 PACKET_VERSION == 20140613 \
16097 || PACKET_VERSION == 20140612)
16099#elif CLIENT_TYPE == 'M' && \
16100 PACKET_VERSION >= 20140814
16102#elif CLIENT_TYPE == 'M' && ( \
16103 PACKET_VERSION >= 20220000 \
16104 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
16105 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
16106 || PACKET_VERSION >= 20150130 \
16107 || PACKET_VERSION >= 20150129)
16109#elif CLIENT_TYPE == 'M' && \
16110 PACKET_VERSION >= 20150226
16112#elif CLIENT_TYPE == 'M' && ( \
16113 PACKET_VERSION == 20180131 \
16114 || PACKET_VERSION >= 20150618)
16116#elif CLIENT_TYPE == 'M' && \
16117 PACKET_VERSION >= 20150702
16119#elif CLIENT_TYPE == 'M' && \
16120 PACKET_VERSION >= 20160526
16122#elif CLIENT_TYPE == 'M' && \
16123 PACKET_VERSION >= 20160609
16125#elif CLIENT_TYPE == 'M' && \
16126 PACKET_VERSION >= 20160630
16128#elif CLIENT_TYPE == 'M' && \
16129 PACKET_VERSION >= 20161103
16131#elif CLIENT_TYPE == 'M' && \
16132 PACKET_VERSION >= 20180309
16134#elif CLIENT_TYPE == 'R' && ( \
16135 PACKET_VERSION == 20190821 \
16136 || PACKET_VERSION == 20190807 \
16137 || PACKET_VERSION == 20190802 \
16138 || PACKET_VERSION == 20190731 \
16139 || PACKET_VERSION == 20190724 \
16140 || PACKET_VERSION == 20190717 \
16141 || PACKET_VERSION == 20190703 \
16142 || PACKET_VERSION == 20190626 \
16143 || PACKET_VERSION == 20190605 \
16144 || PACKET_VERSION == 20190530 \
16145 || PACKET_VERSION == 20190522 \
16146 || PACKET_VERSION == 20190508 \
16147 || PACKET_VERSION == 20190418 \
16148 || PACKET_VERSION == 20190417 \
16149 || PACKET_VERSION == 20190327 \
16150 || PACKET_VERSION == 20190322 \
16151 || PACKET_VERSION == 20190320 \
16152 || PACKET_VERSION == 20190306 \
16153 || PACKET_VERSION == 20190228 \
16154 || PACKET_VERSION == 20190123 \
16155 || PACKET_VERSION == 20190116 \
16156 || (PACKET_VERSION >= 20190000 && PACKET_VERSION < 20190116) \
16157 || PACKET_VERSION == 20181226 \
16158 || PACKET_VERSION == 20181219 \
16159 || PACKET_VERSION == 20181212 \
16160 || PACKET_VERSION == 20181205 \
16161 || PACKET_VERSION == 20181128 \
16162 || PACKET_VERSION == 20181121 \
16163 || PACKET_VERSION == 20181114 \
16164 || PACKET_VERSION == 20181107 \
16165 || PACKET_VERSION == 20180822 \
16166 || PACKET_VERSION >= 20180808 \
16167 || PACKET_VERSION >= 20180718 \
16168 || PACKET_VERSION >= 20180711 \
16169 || PACKET_VERSION >= 20180621 \
16170 || PACKET_VERSION >= 20180620 \
16171 || PACKET_VERSION >= 20180612 \
16172 || PACKET_VERSION >= 20180530 \
16173 || PACKET_VERSION >= 20180523 \
16174 || PACKET_VERSION >= 20180516 \
16175 || PACKET_VERSION >= 20180502 \
16176 || PACKET_VERSION >= 20180425 \
16177 || PACKET_VERSION >= 20180404 \
16178 || PACKET_VERSION >= 20180328 \
16179 || PACKET_VERSION >= 20180321 \
16180 || PACKET_VERSION >= 20180221 \
16181 || PACKET_VERSION >= 20180213 \
16182 || PACKET_VERSION >= 20180207 \
16183 || PACKET_VERSION >= 20180124 \
16184 || PACKET_VERSION >= 20180117 \
16185 || PACKET_VERSION >= 20180103 \
16186 || PACKET_VERSION >= 20171227 \
16187 || PACKET_VERSION >= 20171220 \
16188 || PACKET_VERSION >= 20171213 \
16189 || PACKET_VERSION >= 20171122 \
16190 || PACKET_VERSION >= 20171115 \
16191 || PACKET_VERSION >= 20171101 \
16192 || PACKET_VERSION >= 20171025 \
16193 || PACKET_VERSION >= 20171018 \
16194 || PACKET_VERSION >= 20171011 \
16195 || PACKET_VERSION >= 20170913 \
16196 || PACKET_VERSION >= 20170906 \
16197 || PACKET_VERSION >= 20170830 \
16198 || PACKET_VERSION >= 20170823 \
16199 || PACKET_VERSION >= 20170816 \
16200 || PACKET_VERSION >= 20170809 \
16201 || PACKET_VERSION >= 20170801 \
16202 || PACKET_VERSION >= 20170719 \
16203 || PACKET_VERSION >= 20170712 \
16204 || PACKET_VERSION >= 20170705 \
16205 || PACKET_VERSION >= 20170628 \
16206 || PACKET_VERSION >= 20170621 \
16207 || PACKET_VERSION >= 20170531 \
16208 || PACKET_VERSION >= 20170524 \
16209 || PACKET_VERSION >= 20170517 \
16210 || PACKET_VERSION >= 20170426 \
16211 || PACKET_VERSION >= 20170329 \
16212 || PACKET_VERSION >= 20170322 \
16213 || PACKET_VERSION >= 20170315 \
16214 || PACKET_VERSION >= 20170308 \
16215 || PACKET_VERSION >= 20170111 \
16216 || PACKET_VERSION >= 20170104 \
16217 || PACKET_VERSION >= 20161207 \
16218 || PACKET_VERSION >= 20161130 \
16219 || PACKET_VERSION >= 20161109 \
16220 || PACKET_VERSION >= 20161102 \
16221 || PACKET_VERSION >= 20161026 \
16222 || PACKET_VERSION >= 20161019 \
16223 || PACKET_VERSION >= 20160928 \
16224 || PACKET_VERSION >= 20160921 \
16225 || PACKET_VERSION >= 20160913 \
16226 || PACKET_VERSION >= 20160907 \
16227 || PACKET_VERSION >= 20160831 \
16228 || PACKET_VERSION >= 20160824 \
16229 || PACKET_VERSION >= 20160615 \
16230 || PACKET_VERSION >= 20160608 \
16231 || PACKET_VERSION >= 20160525 \
16232 || PACKET_VERSION >= 20160511 \
16233 || PACKET_VERSION >= 20160504 \
16234 || PACKET_VERSION >= 20160427 \
16235 || PACKET_VERSION >= 20160323 \
16236 || PACKET_VERSION >= 20160316 \
16237 || PACKET_VERSION >= 20160309 \
16238 || PACKET_VERSION >= 20160302 \
16239 || PACKET_VERSION >= 20160217 \
16240 || PACKET_VERSION >= 20160211 \
16241 || PACKET_VERSION >= 20160203 \
16242 || PACKET_VERSION >= 20160120 \
16243 || PACKET_VERSION >= 20160106 \
16244 || PACKET_VERSION >= 20151230 \
16245 || PACKET_VERSION >= 20151223 \
16246 || PACKET_VERSION >= 20151209 \
16247 || PACKET_VERSION >= 20151202 \
16248 || PACKET_VERSION >= 20151125 \
16249 || PACKET_VERSION >= 20151118 \
16250 || PACKET_VERSION >= 20151111 \
16251 || PACKET_VERSION >= 20151104 \
16252 || PACKET_VERSION >= 20151028 \
16253 || PACKET_VERSION >= 20151014 \
16254 || PACKET_VERSION >= 20151001 \
16255 || PACKET_VERSION >= 20150909 \
16256 || PACKET_VERSION >= 20150902 \
16257 || PACKET_VERSION >= 20150819 \
16258 || PACKET_VERSION >= 20150805 \
16259 || PACKET_VERSION >= 20150708 \
16260 || PACKET_VERSION >= 20150701 \
16261 || PACKET_VERSION >= 20150624 \
16262 || PACKET_VERSION >= 20150603 \
16263 || PACKET_VERSION >= 20150527 \
16264 || PACKET_VERSION >= 20150429 \
16265 || PACKET_VERSION >= 20150422 \
16266 || PACKET_VERSION >= 20150401 \
16267 || PACKET_VERSION >= 20150325 \
16268 || PACKET_VERSION >= 20150318 \
16269 || PACKET_VERSION >= 20150311 \
16270 || PACKET_VERSION >= 20150304 \
16271 || PACKET_VERSION >= 20150225 \
16272 || PACKET_VERSION >= 20150217 \
16273 || PACKET_VERSION >= 20150211 \
16274 || PACKET_VERSION >= 20150204 \
16275 || PACKET_VERSION >= 20150121 \
16276 || PACKET_VERSION >= 20150107 \
16277 || PACKET_VERSION >= 20141231 \
16278 || PACKET_VERSION >= 20141210 \
16279 || PACKET_VERSION >= 20141203 \
16280 || PACKET_VERSION >= 20141126 \
16281 || PACKET_VERSION >= 20141105 \
16282 || PACKET_VERSION >= 20141029 \
16283 || PACKET_VERSION >= 20141022 \
16284 || PACKET_VERSION >= 20141008 \
16285 || PACKET_VERSION >= 20141001 \
16286 || PACKET_VERSION >= 20140924 \
16287 || PACKET_VERSION >= 20140917 \
16288 || PACKET_VERSION >= 20140827 \
16289 || PACKET_VERSION >= 20140820 \
16290 || PACKET_VERSION >= 20140813 \
16291 || PACKET_VERSION >= 20140806 \
16292 || PACKET_VERSION >= 20140730 \
16293 || PACKET_VERSION >= 20140611 \
16294 || PACKET_VERSION >= 20140605 \
16295 || PACKET_VERSION >= 20140528 \
16296 || PACKET_VERSION >= 20140521 \
16297 || PACKET_VERSION >= 20140514 \
16298 || PACKET_VERSION >= 20140508 \
16299 || PACKET_VERSION >= 20140423 \
16300 || PACKET_VERSION >= 20140416 \
16301 || PACKET_VERSION >= 20140312 \
16302 || PACKET_VERSION >= 20140305 \
16303 || PACKET_VERSION >= 20140226 \
16304 || PACKET_VERSION >= 20140219 \
16305 || PACKET_VERSION >= 20140212 \
16306 || PACKET_VERSION >= 20140205 \
16307 || PACKET_VERSION >= 20140129 \
16308 || PACKET_VERSION >= 20140122 \
16309 || PACKET_VERSION >= 20140115 \
16310 || PACKET_VERSION >= 20140108 \
16311 || PACKET_VERSION >= 20131230 \
16312 || PACKET_VERSION >= 20131223 \
16313 || PACKET_VERSION >= 20131218 \
16314 || PACKET_VERSION >= 20131127 \
16315 || PACKET_VERSION >= 20131120 \
16316 || PACKET_VERSION >= 20131113 \
16317 || PACKET_VERSION >= 20131106 \
16318 || PACKET_VERSION >= 20131030 \
16319 || PACKET_VERSION >= 20131023 \
16320 || PACKET_VERSION >= 20131016 \
16321 || PACKET_VERSION >= 20131008 \
16322 || PACKET_VERSION >= 20131002 \
16323 || PACKET_VERSION >= 20130911 \
16324 || PACKET_VERSION >= 20130904 \
16325 || PACKET_VERSION >= 20130814 \
16326 || PACKET_VERSION >= 20130807 \
16327 || PACKET_VERSION >= 20130717 \
16328 || PACKET_VERSION >= 20130703 \
16329 || PACKET_VERSION >= 20130618 \
16330 || PACKET_VERSION >= 20130605 \
16331 || PACKET_VERSION >= 20130502 \
16332 || PACKET_VERSION >= 20130417 \
16333 || PACKET_VERSION >= 20130410 \
16334 || PACKET_VERSION >= 20130403 \
16335 || PACKET_VERSION >= 20130320 \
16336 || PACKET_VERSION >= 20130313 \
16337 || PACKET_VERSION >= 20130306 \
16338 || PACKET_VERSION >= 20130227 \
16339 || PACKET_VERSION >= 20130220 \
16340 || PACKET_VERSION >= 20130215 \
16341 || PACKET_VERSION >= 20130130 \
16342 || PACKET_VERSION >= 20130121 \
16343 || PACKET_VERSION >= 20130109 \
16344 || PACKET_VERSION >= 20130103 \
16345 || PACKET_VERSION >= 20121205 \
16346 || PACKET_VERSION >= 20121128 \
16347 || PACKET_VERSION >= 20121107 \
16348 || PACKET_VERSION >= 20121031 \
16349 || PACKET_VERSION >= 20120925 \
16350 || PACKET_VERSION >= 20120919 \
16351 || PACKET_VERSION >= 20120905 \
16352 || PACKET_VERSION >= 20120830 \
16353 || PACKET_VERSION >= 20120814 \
16354 || PACKET_VERSION >= 20120808 \
16355 || PACKET_VERSION >= 20120724 \
16356 || PACKET_VERSION >= 20120716 \
16357 || PACKET_VERSION >= 20120710 \
16358 || PACKET_VERSION >= 20120702 \
16359 || PACKET_VERSION >= 20120626 \
16360 || PACKET_VERSION >= 20120612 \
16361 || PACKET_VERSION >= 20120601 \
16362 || PACKET_VERSION >= 20120529 \
16363 || PACKET_VERSION >= 20120508 \
16364 || PACKET_VERSION >= 20120502 \
16365 || PACKET_VERSION >= 20120424 \
16366 || PACKET_VERSION >= 20120417 \
16367 || PACKET_VERSION >= 20120328 \
16368 || PACKET_VERSION >= 20120320 \
16369 || PACKET_VERSION >= 20120214 \
16370 || PACKET_VERSION >= 20120207 \
16371 || PACKET_VERSION >= 20120131 \
16372 || PACKET_VERSION >= 20120120 \
16373 || PACKET_VERSION >= 20120103 \
16374 || PACKET_VERSION >= 20111220 \
16375 || PACKET_VERSION >= 20111122 \
16376 || PACKET_VERSION >= 20111114 \
16377 || PACKET_VERSION >= 20111025 \
16378 || PACKET_VERSION >= 20111017 \
16379 || PACKET_VERSION >= 20111010 \
16380 || PACKET_VERSION >= 20111004 \
16381 || PACKET_VERSION >= 20110928 \
16382 || PACKET_VERSION >= 20110920 \
16383 || PACKET_VERSION >= 20110906 \
16384 || PACKET_VERSION >= 20110831 \
16385 || PACKET_VERSION >= 20110823 \
16386 || PACKET_VERSION >= 20110816 \
16387 || PACKET_VERSION >= 20110104 \
16388 || (PACKET_VERSION >= 20100000 && PACKET_VERSION < 20110104) \
16389 || PACKET_VERSION >= 20091222)
16391#elif CLIENT_TYPE == 'R' && \
16392 PACKET_VERSION >= 20120712
16394#elif CLIENT_TYPE == 'R' && \
16395 PACKET_VERSION >= 20120926
16397#elif CLIENT_TYPE == 'R' && ( \
16398 PACKET_VERSION >= 20210000 \
16399 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
16400 || PACKET_VERSION >= 20121011)
16402#elif CLIENT_TYPE == 'R' && \
16403 PACKET_VERSION >= 20130116
16405#elif CLIENT_TYPE == 'R' && ( \
16406 PACKET_VERSION == 20151029 \
16407 || PACKET_VERSION == 20151022 \
16408 || PACKET_VERSION == 20150812 \
16409 || PACKET_VERSION >= 20141016)
16411#elif CLIENT_TYPE == 'R' && \
16412 PACKET_VERSION >= 20150226
16414#elif CLIENT_TYPE == 'R' && \
16415 PACKET_VERSION >= 20150618
16417#elif CLIENT_TYPE == 'R' && \
16418 PACKET_VERSION >= 20160630
16420#elif CLIENT_TYPE == 'R' && \
16421 PACKET_VERSION >= 20161103
16423#elif CLIENT_TYPE == 'Z' && ( \
16424 PACKET_VERSION == 20190814 \
16425 || PACKET_VERSION == 20190724 \
16426 || PACKET_VERSION == 20190717 \
16427 || PACKET_VERSION == 20190710 \
16428 || PACKET_VERSION == 20190709 \
16429 || PACKET_VERSION == 20190605 \
16430 || PACKET_VERSION == 20190530 \
16431 || PACKET_VERSION == 20190515 \
16432 || PACKET_VERSION == 20190508 \
16433 || PACKET_VERSION == 20190502 \
16434 || PACKET_VERSION == 20190424 \
16435 || PACKET_VERSION == 20190410 \
16436 || PACKET_VERSION == 20190403 \
16437 || PACKET_VERSION == 20190313 \
16438 || PACKET_VERSION == 20190227 \
16439 || PACKET_VERSION == 20190213 \
16440 || PACKET_VERSION == 20190117 \
16441 || PACKET_VERSION == 20181226 \
16442 || PACKET_VERSION == 20181219 \
16443 || PACKET_VERSION == 20181212 \
16444 || PACKET_VERSION == 20181128 \
16445 || PACKET_VERSION == 20181120 \
16446 || PACKET_VERSION == 20180928 \
16447 || PACKET_VERSION == 20180912 \
16448 || PACKET_VERSION == 20180829 \
16449 || PACKET_VERSION >= 20180808 \
16450 || PACKET_VERSION >= 20180801 \
16451 || PACKET_VERSION >= 20180711 \
16452 || PACKET_VERSION >= 20180703 \
16453 || PACKET_VERSION >= 20180627 \
16454 || PACKET_VERSION >= 20180509 \
16455 || PACKET_VERSION >= 20180411 \
16456 || PACKET_VERSION >= 20180321 \
16457 || PACKET_VERSION >= 20171113 \
16458 || PACKET_VERSION >= 20171031 \
16459 || PACKET_VERSION >= 20171030 \
16460 || PACKET_VERSION >= 20171027 \
16461 || PACKET_VERSION >= 20171025 \
16462 || PACKET_VERSION >= 20171024 \
16463 || PACKET_VERSION >= 20171023 \
16464 || PACKET_VERSION >= 20171019)
16466#elif CLIENT_TYPE == 'Z' && ( \
16467 PACKET_VERSION == 20180309 \
16468 || PACKET_VERSION == 20180307 \
16469 || PACKET_VERSION == 20171128 \
16470 || PACKET_VERSION == 20171117 \
16471 || PACKET_VERSION == 20171116)
16473#elif CLIENT_TYPE == 'Z' && \
16474 PACKET_VERSION >= 20171122
16476#elif CLIENT_TYPE == 'Z' && ( \
16477 PACKET_VERSION == 20171213 \
16478 || PACKET_VERSION == 20171212 \
16479 || PACKET_VERSION == 20171211 \
16480 || PACKET_VERSION == 20171210 \
16481 || PACKET_VERSION == 20171209 \
16482 || PACKET_VERSION == 20171208)
16484#elif CLIENT_TYPE == 'Z' && ( \
16485 PACKET_VERSION >= 20220000 \
16486 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
16487 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
16488 || PACKET_VERSION >= 20171221)
16490#elif CLIENT_TYPE == 'Z' && \
16491 PACKET_VERSION >= 20171229
16493#else
16494ID_CZ_PARTY_BOOKING_REQ_REGISTER = 0x0000 // Disabled
16495#endif
16502{
16503public:
16504 CZ_PARTY_BOOKING_REQ_REGISTER(std::shared_ptr<ZoneSession> s)
16506 {}
16508
16509 void handle(ByteBuffer &&buf);
16510 void deserialize(ByteBuffer &buf);
16511
16512/* Structure */
16513 int16_t _level{ 0 };
16514 int16_t _map_id{ 0 };
16516};
16517
16518enum {
16519#if CLIENT_TYPE == 'M' && ( \
16520 PACKET_VERSION >= 20220000 \
16521 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
16522 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
16523 || PACKET_VERSION >= 20091228)
16525#elif CLIENT_TYPE == 'R' && ( \
16526 PACKET_VERSION >= 20210000 \
16527 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
16528 || PACKET_VERSION >= 20091229)
16530#elif CLIENT_TYPE == 'Z' && ( \
16531 PACKET_VERSION >= 20220000 \
16532 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
16533 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
16534 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
16536#else
16537ID_CZ_PARTY_BOOKING_REQ_SEARCH = 0x0000 // Disabled
16538#endif
16545{
16546public:
16547 CZ_PARTY_BOOKING_REQ_SEARCH(std::shared_ptr<ZoneSession> s)
16549 {}
16551
16552 void handle(ByteBuffer &&buf);
16553 void deserialize(ByteBuffer &buf);
16554
16555/* Structure */
16556 int16_t _level{ 0 };
16557 int16_t _map_id{ 0 };
16558 int16_t _job{ 0 };
16559 int _last_index{ 0 };
16560 int16_t _result_count{ 0 };
16561};
16562
16563enum {
16564#if CLIENT_TYPE == 'M' && ( \
16565 PACKET_VERSION >= 20220000 \
16566 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
16567 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
16568 || PACKET_VERSION >= 20091228)
16570#elif CLIENT_TYPE == 'R' && ( \
16571 PACKET_VERSION >= 20210000 \
16572 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
16573 || PACKET_VERSION >= 20091229)
16575#elif CLIENT_TYPE == 'Z' && ( \
16576 PACKET_VERSION >= 20220000 \
16577 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
16578 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
16579 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
16581#else
16582ID_CZ_PARTY_BOOKING_REQ_UPDATE = 0x0000 // Disabled
16583#endif
16590{
16591public:
16592 CZ_PARTY_BOOKING_REQ_UPDATE(std::shared_ptr<ZoneSession> s)
16594 {}
16596
16597 void handle(ByteBuffer &&buf);
16598 void deserialize(ByteBuffer &buf);
16599
16600/* Structure */
16602};
16603
16604enum {
16605#if CLIENT_TYPE == 'A' && \
16606 PACKET_VERSION >= 20070821
16607ID_CZ_PARTY_CONFIG = 0x02c8
16608#elif CLIENT_TYPE == 'M' && ( \
16609 PACKET_VERSION >= 20220000 \
16610 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
16611 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
16612 || PACKET_VERSION >= 20070821)
16613ID_CZ_PARTY_CONFIG = 0x02c8
16614#elif CLIENT_TYPE == 'R' && ( \
16615 PACKET_VERSION >= 20210000 \
16616 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
16617 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
16618ID_CZ_PARTY_CONFIG = 0x02c8
16619#elif CLIENT_TYPE == 'S' && \
16620 PACKET_VERSION >= 20070821
16621ID_CZ_PARTY_CONFIG = 0x02c8
16622#elif CLIENT_TYPE == 'Z' && ( \
16623 PACKET_VERSION >= 20220000 \
16624 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
16625 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
16626 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
16627ID_CZ_PARTY_CONFIG = 0x02c8
16628#else
16629ID_CZ_PARTY_CONFIG = 0x0000 // Disabled
16630#endif
16636class CZ_PARTY_CONFIG : public Base::NetworkPacket<ZoneSession>
16637{
16638public:
16639 CZ_PARTY_CONFIG(std::shared_ptr<ZoneSession> s)
16641 {}
16642 virtual ~CZ_PARTY_CONFIG() {}
16643
16644 void handle(ByteBuffer &&buf);
16645 void deserialize(ByteBuffer &buf);
16646
16647/* Structure */
16648 int8_t _refuse_invite{ 0 };
16649};
16650
16651enum {
16652#if CLIENT_TYPE == 'A' && \
16653 PACKET_VERSION >= 20070821
16654ID_CZ_PARTY_JOIN_REQ = 0x02c4
16655#elif CLIENT_TYPE == 'M' && ( \
16656 PACKET_VERSION == 20190821 \
16657 || PACKET_VERSION == 20190807 \
16658 || PACKET_VERSION == 20190802 \
16659 || PACKET_VERSION == 20190731 \
16660 || PACKET_VERSION == 20190724 \
16661 || PACKET_VERSION == 20190717 \
16662 || PACKET_VERSION == 20190703 \
16663 || PACKET_VERSION == 20190605 \
16664 || PACKET_VERSION == 20190530 \
16665 || PACKET_VERSION == 20190523 \
16666 || PACKET_VERSION == 20190522 \
16667 || PACKET_VERSION == 20190508 \
16668 || PACKET_VERSION == 20190418 \
16669 || PACKET_VERSION == 20190417 \
16670 || PACKET_VERSION == 20190327 \
16671 || PACKET_VERSION == 20190322 \
16672 || PACKET_VERSION == 20190320 \
16673 || PACKET_VERSION == 20190313 \
16674 || PACKET_VERSION == 20190306 \
16675 || PACKET_VERSION == 20190228 \
16676 || PACKET_VERSION == 20190123 \
16677 || PACKET_VERSION == 20190116 \
16678 || (PACKET_VERSION >= 20190000 && PACKET_VERSION < 20190116) \
16679 || PACKET_VERSION == 20181226 \
16680 || PACKET_VERSION == 20181219 \
16681 || PACKET_VERSION == 20181212 \
16682 || PACKET_VERSION == 20181205 \
16683 || PACKET_VERSION == 20181128 \
16684 || PACKET_VERSION == 20181114 \
16685 || PACKET_VERSION == 20181107 \
16686 || PACKET_VERSION == 20181024 \
16687 || PACKET_VERSION == 20180919 \
16688 || PACKET_VERSION == 20180831 \
16689 || PACKET_VERSION == 20180822 \
16690 || PACKET_VERSION >= 20180808 \
16691 || PACKET_VERSION >= 20180718 \
16692 || PACKET_VERSION >= 20180704 \
16693 || PACKET_VERSION >= 20180621 \
16694 || PACKET_VERSION >= 20180620 \
16695 || PACKET_VERSION >= 20180530 \
16696 || PACKET_VERSION >= 20180523 \
16697 || PACKET_VERSION >= 20180516 \
16698 || PACKET_VERSION >= 20180509 \
16699 || PACKET_VERSION >= 20180502 \
16700 || PACKET_VERSION >= 20180425 \
16701 || PACKET_VERSION >= 20180404 \
16702 || PACKET_VERSION >= 20180328 \
16703 || PACKET_VERSION >= 20180321 \
16704 || PACKET_VERSION >= 20180315 \
16705 || PACKET_VERSION >= 20180117 \
16706 || PACKET_VERSION >= 20180103 \
16707 || PACKET_VERSION >= 20171206 \
16708 || PACKET_VERSION >= 20171129 \
16709 || PACKET_VERSION >= 20171122 \
16710 || PACKET_VERSION >= 20171002 \
16711 || PACKET_VERSION >= 20170927 \
16712 || PACKET_VERSION >= 20170913 \
16713 || PACKET_VERSION >= 20170906 \
16714 || PACKET_VERSION >= 20170830 \
16715 || PACKET_VERSION >= 20170712 \
16716 || PACKET_VERSION >= 20170705 \
16717 || PACKET_VERSION >= 20170322 \
16718 || PACKET_VERSION >= 20170315 \
16719 || PACKET_VERSION >= 20170222 \
16720 || PACKET_VERSION >= 20170215 \
16721 || PACKET_VERSION >= 20170208 \
16722 || PACKET_VERSION >= 20170104 \
16723 || PACKET_VERSION >= 20161221 \
16724 || PACKET_VERSION >= 20161214 \
16725 || PACKET_VERSION >= 20161116 \
16726 || PACKET_VERSION >= 20161109 \
16727 || PACKET_VERSION >= 20160615 \
16728 || PACKET_VERSION >= 20160608 \
16729 || PACKET_VERSION >= 20160601 \
16730 || PACKET_VERSION >= 20160427 \
16731 || PACKET_VERSION >= 20160420 \
16732 || PACKET_VERSION >= 20160106 \
16733 || PACKET_VERSION >= 20151223 \
16734 || PACKET_VERSION >= 20151118 \
16735 || PACKET_VERSION >= 20151111 \
16736 || PACKET_VERSION >= 20151028 \
16737 || PACKET_VERSION >= 20151021 \
16738 || PACKET_VERSION >= 20150715 \
16739 || PACKET_VERSION >= 20150708 \
16740 || PACKET_VERSION >= 20150520 \
16741 || PACKET_VERSION >= 20150513 \
16742 || PACKET_VERSION >= 20150304 \
16743 || PACKET_VERSION >= 20150225 \
16744 || PACKET_VERSION >= 20150107 \
16745 || PACKET_VERSION >= 20140730 \
16746 || PACKET_VERSION >= 20140723 \
16747 || PACKET_VERSION >= 20140611 \
16748 || PACKET_VERSION >= 20140514 \
16749 || PACKET_VERSION >= 20140508 \
16750 || PACKET_VERSION >= 20140326 \
16751 || PACKET_VERSION >= 20140319 \
16752 || PACKET_VERSION >= 20140108 \
16753 || PACKET_VERSION >= 20131230 \
16754 || PACKET_VERSION >= 20130724 \
16755 || PACKET_VERSION >= 20130717 \
16756 || PACKET_VERSION >= 20130626 \
16757 || PACKET_VERSION >= 20130618 \
16758 || PACKET_VERSION >= 20130403 \
16759 || PACKET_VERSION >= 20130327 \
16760 || PACKET_VERSION >= 20130103 \
16761 || PACKET_VERSION >= 20121227 \
16762 || PACKET_VERSION >= 20120716 \
16763 || PACKET_VERSION >= 20120710 \
16764 || PACKET_VERSION >= 20120515 \
16765 || PACKET_VERSION >= 20120508 \
16766 || PACKET_VERSION >= 20120410 \
16767 || PACKET_VERSION >= 20120404 \
16768 || PACKET_VERSION >= 20120314 \
16769 || PACKET_VERSION >= 20120307 \
16770 || PACKET_VERSION >= 20120131 \
16771 || PACKET_VERSION >= 20120120 \
16772 || PACKET_VERSION >= 20120103 \
16773 || PACKET_VERSION >= 20111227 \
16774 || PACKET_VERSION >= 20111220 \
16775 || PACKET_VERSION >= 20111213 \
16776 || PACKET_VERSION >= 20111122 \
16777 || PACKET_VERSION >= 20111108 \
16778 || PACKET_VERSION >= 20111101 \
16779 || PACKET_VERSION >= 20111010 \
16780 || PACKET_VERSION >= 20111004 \
16781 || PACKET_VERSION >= 20110831 \
16782 || PACKET_VERSION >= 20110823 \
16783 || PACKET_VERSION >= 20110816 \
16784 || PACKET_VERSION >= 20110809 \
16785 || PACKET_VERSION >= 20110802 \
16786 || PACKET_VERSION >= 20110726 \
16787 || PACKET_VERSION >= 20110718 \
16788 || PACKET_VERSION >= 20110711 \
16789 || PACKET_VERSION >= 20110705 \
16790 || PACKET_VERSION >= 20110627 \
16791 || PACKET_VERSION >= 20110614 \
16792 || PACKET_VERSION >= 20110607 \
16793 || PACKET_VERSION >= 20110523 \
16794 || PACKET_VERSION >= 20110517 \
16795 || PACKET_VERSION >= 20110511 \
16796 || PACKET_VERSION >= 20110503 \
16797 || PACKET_VERSION >= 20110426 \
16798 || PACKET_VERSION >= 20110419 \
16799 || PACKET_VERSION >= 20110322 \
16800 || PACKET_VERSION >= 20110315 \
16801 || PACKET_VERSION >= 20110228 \
16802 || PACKET_VERSION >= 20110222 \
16803 || PACKET_VERSION >= 20110215 \
16804 || PACKET_VERSION >= 20110125 \
16805 || PACKET_VERSION >= 20110118 \
16806 || PACKET_VERSION >= 20110104 \
16807 || PACKET_VERSION >= 20101123 \
16808 || PACKET_VERSION >= 20100105 \
16809 || (PACKET_VERSION >= 20090000 && PACKET_VERSION < 20100105) \
16810 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20090000) \
16811 || PACKET_VERSION >= 20070821)
16812ID_CZ_PARTY_JOIN_REQ = 0x02c4
16813#elif CLIENT_TYPE == 'M' && \
16814 PACKET_VERSION >= 20120712
16815ID_CZ_PARTY_JOIN_REQ = 0x094e
16816#elif CLIENT_TYPE == 'M' && \
16817 PACKET_VERSION >= 20120926
16818ID_CZ_PARTY_JOIN_REQ = 0x088a
16819#elif CLIENT_TYPE == 'M' && ( \
16820 PACKET_VERSION == 20160318 \
16821 || PACKET_VERSION == 20151029 \
16822 || PACKET_VERSION == 20150812 \
16823 || PACKET_VERSION >= 20141016 \
16824 || PACKET_VERSION >= 20130107)
16825ID_CZ_PARTY_JOIN_REQ = 0x0802
16826#elif CLIENT_TYPE == 'M' && \
16827 PACKET_VERSION >= 20130116
16828ID_CZ_PARTY_JOIN_REQ = 0x08a0
16829#elif CLIENT_TYPE == 'M' && ( \
16830 PACKET_VERSION >= 20220000 \
16831 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
16832 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
16833 || PACKET_VERSION >= 20131108 \
16834 || PACKET_VERSION >= 20131107)
16835ID_CZ_PARTY_JOIN_REQ = 0x095d
16836#elif CLIENT_TYPE == 'M' && ( \
16837 PACKET_VERSION == 20140613 \
16838 || PACKET_VERSION == 20140612)
16839ID_CZ_PARTY_JOIN_REQ = 0x0874
16840#elif CLIENT_TYPE == 'M' && \
16841 PACKET_VERSION >= 20140814
16842ID_CZ_PARTY_JOIN_REQ = 0x087c
16843#elif CLIENT_TYPE == 'M' && ( \
16844 PACKET_VERSION == 20150130 \
16845 || PACKET_VERSION == 20150129)
16846ID_CZ_PARTY_JOIN_REQ = 0x0927
16847#elif CLIENT_TYPE == 'M' && \
16848 PACKET_VERSION >= 20150226
16849ID_CZ_PARTY_JOIN_REQ = 0x0360
16850#elif CLIENT_TYPE == 'M' && \
16851 PACKET_VERSION >= 20150618
16852ID_CZ_PARTY_JOIN_REQ = 0x0870
16853#elif CLIENT_TYPE == 'M' && \
16854 PACKET_VERSION >= 20150702
16855ID_CZ_PARTY_JOIN_REQ = 0x08a5
16856#elif CLIENT_TYPE == 'M' && \
16857 PACKET_VERSION >= 20151022
16858ID_CZ_PARTY_JOIN_REQ = 0x0940
16859#elif CLIENT_TYPE == 'M' && \
16860 PACKET_VERSION >= 20160526
16861ID_CZ_PARTY_JOIN_REQ = 0x0945
16862#elif CLIENT_TYPE == 'M' && \
16863 PACKET_VERSION >= 20160609
16864ID_CZ_PARTY_JOIN_REQ = 0x035f
16865#elif CLIENT_TYPE == 'M' && \
16866 PACKET_VERSION >= 20160630
16867ID_CZ_PARTY_JOIN_REQ = 0x0926
16868#elif CLIENT_TYPE == 'M' && \
16869 PACKET_VERSION >= 20161103
16870ID_CZ_PARTY_JOIN_REQ = 0x089f
16871#elif CLIENT_TYPE == 'M' && \
16872 PACKET_VERSION >= 20180131
16873ID_CZ_PARTY_JOIN_REQ = 0x087a
16874#elif CLIENT_TYPE == 'M' && \
16875 PACKET_VERSION >= 20180309
16876ID_CZ_PARTY_JOIN_REQ = 0x0948
16877#elif CLIENT_TYPE == 'R' && ( \
16878 PACKET_VERSION == 20190821 \
16879 || PACKET_VERSION == 20190807 \
16880 || PACKET_VERSION == 20190802 \
16881 || PACKET_VERSION == 20190731 \
16882 || PACKET_VERSION == 20190724 \
16883 || PACKET_VERSION == 20190717 \
16884 || PACKET_VERSION == 20190703 \
16885 || PACKET_VERSION == 20190626 \
16886 || PACKET_VERSION == 20190605 \
16887 || PACKET_VERSION == 20190530 \
16888 || PACKET_VERSION == 20190522 \
16889 || PACKET_VERSION == 20190508 \
16890 || PACKET_VERSION == 20190418 \
16891 || PACKET_VERSION == 20190417 \
16892 || PACKET_VERSION == 20190327 \
16893 || PACKET_VERSION == 20190322 \
16894 || PACKET_VERSION == 20190320 \
16895 || PACKET_VERSION == 20190306 \
16896 || PACKET_VERSION == 20190228 \
16897 || PACKET_VERSION == 20190123 \
16898 || PACKET_VERSION == 20190116 \
16899 || (PACKET_VERSION >= 20190000 && PACKET_VERSION < 20190116) \
16900 || PACKET_VERSION == 20181226 \
16901 || PACKET_VERSION == 20181219 \
16902 || PACKET_VERSION == 20181212 \
16903 || PACKET_VERSION == 20181205 \
16904 || PACKET_VERSION == 20181128 \
16905 || PACKET_VERSION == 20181121 \
16906 || PACKET_VERSION == 20181114 \
16907 || PACKET_VERSION == 20181107 \
16908 || PACKET_VERSION == 20180822 \
16909 || PACKET_VERSION >= 20180808 \
16910 || PACKET_VERSION >= 20180718 \
16911 || PACKET_VERSION >= 20180711 \
16912 || PACKET_VERSION >= 20180621 \
16913 || PACKET_VERSION >= 20180620 \
16914 || PACKET_VERSION >= 20180612 \
16915 || PACKET_VERSION >= 20180530 \
16916 || PACKET_VERSION >= 20180523 \
16917 || PACKET_VERSION >= 20180516 \
16918 || PACKET_VERSION >= 20180502 \
16919 || PACKET_VERSION >= 20180425 \
16920 || PACKET_VERSION >= 20180404 \
16921 || PACKET_VERSION >= 20180328 \
16922 || PACKET_VERSION >= 20180321 \
16923 || PACKET_VERSION >= 20180117 \
16924 || PACKET_VERSION >= 20180103 \
16925 || PACKET_VERSION >= 20171206 \
16926 || PACKET_VERSION >= 20171129 \
16927 || PACKET_VERSION >= 20171122 \
16928 || PACKET_VERSION >= 20171002 \
16929 || PACKET_VERSION >= 20170927 \
16930 || PACKET_VERSION >= 20170913 \
16931 || PACKET_VERSION >= 20170906 \
16932 || PACKET_VERSION >= 20170830 \
16933 || PACKET_VERSION >= 20170712 \
16934 || PACKET_VERSION >= 20170705 \
16935 || PACKET_VERSION >= 20170322 \
16936 || PACKET_VERSION >= 20170315 \
16937 || PACKET_VERSION >= 20170222 \
16938 || PACKET_VERSION >= 20170215 \
16939 || PACKET_VERSION >= 20170208 \
16940 || PACKET_VERSION >= 20170104 \
16941 || PACKET_VERSION >= 20161221 \
16942 || PACKET_VERSION >= 20161214 \
16943 || PACKET_VERSION >= 20161116 \
16944 || PACKET_VERSION >= 20161109 \
16945 || PACKET_VERSION >= 20160615 \
16946 || PACKET_VERSION >= 20160608 \
16947 || PACKET_VERSION >= 20160601 \
16948 || PACKET_VERSION >= 20160427 \
16949 || PACKET_VERSION >= 20160420 \
16950 || PACKET_VERSION >= 20160106 \
16951 || PACKET_VERSION >= 20151223 \
16952 || PACKET_VERSION >= 20151118 \
16953 || PACKET_VERSION >= 20151111 \
16954 || PACKET_VERSION >= 20151028 \
16955 || PACKET_VERSION >= 20151021 \
16956 || PACKET_VERSION >= 20150715 \
16957 || PACKET_VERSION >= 20150708 \
16958 || PACKET_VERSION >= 20150520 \
16959 || PACKET_VERSION >= 20150513 \
16960 || PACKET_VERSION >= 20150304 \
16961 || PACKET_VERSION >= 20150225 \
16962 || PACKET_VERSION >= 20150107 \
16963 || PACKET_VERSION >= 20140730 \
16964 || PACKET_VERSION >= 20140723 \
16965 || PACKET_VERSION >= 20140514 \
16966 || PACKET_VERSION >= 20140508 \
16967 || PACKET_VERSION >= 20140326 \
16968 || PACKET_VERSION >= 20140319 \
16969 || PACKET_VERSION >= 20140108 \
16970 || PACKET_VERSION >= 20131230 \
16971 || PACKET_VERSION >= 20131223 \
16972 || PACKET_VERSION >= 20130724 \
16973 || PACKET_VERSION >= 20130717 \
16974 || PACKET_VERSION >= 20130626 \
16975 || PACKET_VERSION >= 20130618 \
16976 || PACKET_VERSION >= 20130403 \
16977 || PACKET_VERSION >= 20130327 \
16978 || PACKET_VERSION >= 20130103 \
16979 || PACKET_VERSION >= 20121227 \
16980 || PACKET_VERSION >= 20120716 \
16981 || PACKET_VERSION >= 20120710 \
16982 || PACKET_VERSION >= 20120515 \
16983 || PACKET_VERSION >= 20120508 \
16984 || PACKET_VERSION >= 20120410 \
16985 || PACKET_VERSION >= 20120404 \
16986 || PACKET_VERSION >= 20120314 \
16987 || PACKET_VERSION >= 20120307 \
16988 || PACKET_VERSION >= 20120131 \
16989 || PACKET_VERSION >= 20120120 \
16990 || PACKET_VERSION >= 20120103 \
16991 || PACKET_VERSION >= 20111227 \
16992 || PACKET_VERSION >= 20111220 \
16993 || PACKET_VERSION >= 20111213 \
16994 || PACKET_VERSION >= 20111122 \
16995 || PACKET_VERSION >= 20111108 \
16996 || PACKET_VERSION >= 20111101 \
16997 || PACKET_VERSION >= 20111010 \
16998 || PACKET_VERSION >= 20111004 \
16999 || PACKET_VERSION >= 20110831 \
17000 || PACKET_VERSION >= 20110823 \
17001 || PACKET_VERSION >= 20110816 \
17002 || PACKET_VERSION >= 20110104 \
17003 || (PACKET_VERSION >= 20100000 && PACKET_VERSION < 20110104) \
17004 || (PACKET_VERSION >= 20090000 && PACKET_VERSION < 20100000) \
17005 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20090000))
17006ID_CZ_PARTY_JOIN_REQ = 0x02c4
17007#elif CLIENT_TYPE == 'R' && ( \
17008 PACKET_VERSION >= 20210000 \
17009 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
17010 || PACKET_VERSION >= 20120712)
17011ID_CZ_PARTY_JOIN_REQ = 0x094e
17012#elif CLIENT_TYPE == 'R' && \
17013 PACKET_VERSION >= 20120926
17014ID_CZ_PARTY_JOIN_REQ = 0x088a
17015#elif CLIENT_TYPE == 'R' && \
17016 PACKET_VERSION >= 20121011
17017ID_CZ_PARTY_JOIN_REQ = 0x088f
17018#elif CLIENT_TYPE == 'R' && \
17019 PACKET_VERSION >= 20130116
17020ID_CZ_PARTY_JOIN_REQ = 0x08a0
17021#elif CLIENT_TYPE == 'R' && ( \
17022 PACKET_VERSION == 20151029 \
17023 || PACKET_VERSION == 20150812 \
17024 || PACKET_VERSION >= 20141016)
17025ID_CZ_PARTY_JOIN_REQ = 0x0802
17026#elif CLIENT_TYPE == 'R' && \
17027 PACKET_VERSION >= 20150226
17028ID_CZ_PARTY_JOIN_REQ = 0x0360
17029#elif CLIENT_TYPE == 'R' && \
17030 PACKET_VERSION >= 20150618
17031ID_CZ_PARTY_JOIN_REQ = 0x0870
17032#elif CLIENT_TYPE == 'R' && \
17033 PACKET_VERSION >= 20151022
17034ID_CZ_PARTY_JOIN_REQ = 0x0940
17035#elif CLIENT_TYPE == 'R' && \
17036 PACKET_VERSION >= 20160630
17037ID_CZ_PARTY_JOIN_REQ = 0x0926
17038#elif CLIENT_TYPE == 'R' && \
17039 PACKET_VERSION >= 20161103
17040ID_CZ_PARTY_JOIN_REQ = 0x089f
17041#elif CLIENT_TYPE == 'S' && \
17042 PACKET_VERSION >= 20070821
17043ID_CZ_PARTY_JOIN_REQ = 0x02c4
17044#elif CLIENT_TYPE == 'Z' && ( \
17045 PACKET_VERSION == 20190814 \
17046 || PACKET_VERSION == 20190724 \
17047 || PACKET_VERSION == 20190717 \
17048 || PACKET_VERSION == 20190710 \
17049 || PACKET_VERSION == 20190709 \
17050 || PACKET_VERSION == 20190605 \
17051 || PACKET_VERSION == 20190530 \
17052 || PACKET_VERSION == 20190515 \
17053 || PACKET_VERSION == 20190508 \
17054 || PACKET_VERSION == 20190502 \
17055 || PACKET_VERSION == 20190424 \
17056 || PACKET_VERSION == 20190410 \
17057 || PACKET_VERSION == 20190403 \
17058 || PACKET_VERSION == 20190313 \
17059 || PACKET_VERSION == 20190227 \
17060 || PACKET_VERSION == 20190213 \
17061 || PACKET_VERSION == 20190117 \
17062 || PACKET_VERSION == 20181226 \
17063 || PACKET_VERSION == 20181219 \
17064 || PACKET_VERSION == 20181212 \
17065 || PACKET_VERSION == 20181128 \
17066 || PACKET_VERSION == 20181120 \
17067 || PACKET_VERSION == 20180928 \
17068 || PACKET_VERSION == 20180912 \
17069 || PACKET_VERSION == 20180829 \
17070 || PACKET_VERSION >= 20180808 \
17071 || PACKET_VERSION >= 20180801 \
17072 || PACKET_VERSION >= 20180711 \
17073 || PACKET_VERSION >= 20180703 \
17074 || PACKET_VERSION >= 20180627 \
17075 || PACKET_VERSION >= 20180509 \
17076 || PACKET_VERSION >= 20180411 \
17077 || PACKET_VERSION >= 20180321 \
17078 || PACKET_VERSION >= 20171113 \
17079 || PACKET_VERSION >= 20171031 \
17080 || PACKET_VERSION >= 20171030 \
17081 || PACKET_VERSION >= 20171027 \
17082 || PACKET_VERSION >= 20171025 \
17083 || PACKET_VERSION >= 20171024 \
17084 || PACKET_VERSION >= 20171023 \
17085 || PACKET_VERSION >= 20171019)
17086ID_CZ_PARTY_JOIN_REQ = 0x02c4
17087#elif CLIENT_TYPE == 'Z' && ( \
17088 PACKET_VERSION == 20180309 \
17089 || PACKET_VERSION == 20180307 \
17090 || PACKET_VERSION == 20171128 \
17091 || PACKET_VERSION == 20171117 \
17092 || PACKET_VERSION == 20171116)
17093ID_CZ_PARTY_JOIN_REQ = 0x0802
17094#elif CLIENT_TYPE == 'Z' && \
17095 PACKET_VERSION >= 20171122
17096ID_CZ_PARTY_JOIN_REQ = 0x08ad
17097#elif CLIENT_TYPE == 'Z' && ( \
17098 PACKET_VERSION == 20171213 \
17099 || PACKET_VERSION == 20171212 \
17100 || PACKET_VERSION == 20171211 \
17101 || PACKET_VERSION == 20171210 \
17102 || PACKET_VERSION == 20171209 \
17103 || PACKET_VERSION == 20171208)
17104ID_CZ_PARTY_JOIN_REQ = 0x088d
17105#elif CLIENT_TYPE == 'Z' && \
17106 PACKET_VERSION >= 20171221
17107ID_CZ_PARTY_JOIN_REQ = 0x0932
17108#elif CLIENT_TYPE == 'Z' && ( \
17109 PACKET_VERSION >= 20220000 \
17110 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
17111 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
17112 || PACKET_VERSION >= 20171229)
17113ID_CZ_PARTY_JOIN_REQ = 0x0945
17114#else
17115ID_CZ_PARTY_JOIN_REQ = 0x0000 // Disabled
17116#endif
17122class CZ_PARTY_JOIN_REQ : public Base::NetworkPacket<ZoneSession>
17123{
17124public:
17125 CZ_PARTY_JOIN_REQ(std::shared_ptr<ZoneSession> s)
17127 {}
17129
17130 void handle(ByteBuffer &&buf);
17131 void deserialize(ByteBuffer &buf);
17132
17133/* Structure */
17135};
17136
17137enum {
17138#if CLIENT_TYPE == 'A' && \
17139 PACKET_VERSION >= 20070821
17141#elif CLIENT_TYPE == 'M' && ( \
17142 PACKET_VERSION >= 20220000 \
17143 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
17144 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
17145 || PACKET_VERSION >= 20070821)
17147#elif CLIENT_TYPE == 'R' && ( \
17148 PACKET_VERSION >= 20210000 \
17149 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
17150 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
17152#elif CLIENT_TYPE == 'S' && \
17153 PACKET_VERSION >= 20070821
17155#elif CLIENT_TYPE == 'Z' && ( \
17156 PACKET_VERSION >= 20220000 \
17157 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
17158 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
17159 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
17161#else
17162ID_CZ_PARTY_JOIN_REQ_ACK = 0x0000 // Disabled
17163#endif
17170{
17171public:
17172 CZ_PARTY_JOIN_REQ_ACK(std::shared_ptr<ZoneSession> s)
17174 {}
17176
17177 void handle(ByteBuffer &&buf);
17178 void deserialize(ByteBuffer &buf);
17179
17180/* Structure */
17181 int _party_id{ 0 };
17182 int8_t _response{ 0 };
17183};
17184
17185enum {
17186#if CLIENT_TYPE == 'M' && \
17187 PACKET_VERSION >= 20111108
17189#elif CLIENT_TYPE == 'R' && \
17190 PACKET_VERSION >= 20111108
17192#else
17193ID_CZ_PARTY_RECRUIT_ACK_RECALL = 0x0000 // Disabled
17194#endif
17201{
17202public:
17203 CZ_PARTY_RECRUIT_ACK_RECALL(std::shared_ptr<ZoneSession> s)
17205 {}
17207
17208 void handle(ByteBuffer &&buf);
17209 void deserialize(ByteBuffer &buf);
17210
17211/* Structure */
17212};
17213
17214enum {
17215#if CLIENT_TYPE == 'M' && \
17216 PACKET_VERSION >= 20111101
17218#elif CLIENT_TYPE == 'R' && \
17219 PACKET_VERSION >= 20111101
17221#else
17222ID_CZ_PARTY_RECRUIT_ADD_FILTERLINGLIST = 0x0000 // Disabled
17223#endif
17230{
17231public:
17232 CZ_PARTY_RECRUIT_ADD_FILTERLINGLIST(std::shared_ptr<ZoneSession> s)
17234 {}
17236
17237 void handle(ByteBuffer &&buf);
17238 void deserialize(ByteBuffer &buf);
17239
17240/* Structure */
17241};
17242
17243enum {
17244#if CLIENT_TYPE == 'M' && \
17245 PACKET_VERSION >= 20111122
17247#elif CLIENT_TYPE == 'R' && \
17248 PACKET_VERSION >= 20111122
17250#else
17251ID_CZ_PARTY_RECRUIT_CANCEL_VOLUNTEER = 0x0000 // Disabled
17252#endif
17259{
17260public:
17261 CZ_PARTY_RECRUIT_CANCEL_VOLUNTEER(std::shared_ptr<ZoneSession> s)
17263 {}
17265
17266 void handle(ByteBuffer &&buf);
17267 void deserialize(ByteBuffer &buf);
17268
17269/* Structure */
17270};
17271
17272enum {
17273#if CLIENT_TYPE == 'M' && \
17274 PACKET_VERSION >= 20111108
17276#elif CLIENT_TYPE == 'R' && \
17277 PACKET_VERSION >= 20111108
17279#else
17280ID_CZ_PARTY_RECRUIT_REFUSE_VOLUNTEER = 0x0000 // Disabled
17281#endif
17288{
17289public:
17290 CZ_PARTY_RECRUIT_REFUSE_VOLUNTEER(std::shared_ptr<ZoneSession> s)
17292 {}
17294
17295 void handle(ByteBuffer &&buf);
17296 void deserialize(ByteBuffer &buf);
17297
17298/* Structure */
17299};
17300
17301enum {
17302#if CLIENT_TYPE == 'M' && \
17303 PACKET_VERSION >= 20111025
17305#elif CLIENT_TYPE == 'R' && \
17306 PACKET_VERSION >= 20111025
17308#else
17309ID_CZ_PARTY_RECRUIT_REQ_DELETE = 0x0000 // Disabled
17310#endif
17317{
17318public:
17319 CZ_PARTY_RECRUIT_REQ_DELETE(std::shared_ptr<ZoneSession> s)
17321 {}
17323
17324 void handle(ByteBuffer &&buf);
17325 void deserialize(ByteBuffer &buf);
17326
17327/* Structure */
17328};
17329
17330enum {
17331#if CLIENT_TYPE == 'M' && \
17332 PACKET_VERSION >= 20111025
17334#elif CLIENT_TYPE == 'R' && \
17335 PACKET_VERSION >= 20111025
17337#else
17338ID_CZ_PARTY_RECRUIT_REQ_REGISTER = 0x0000 // Disabled
17339#endif
17346{
17347public:
17348 CZ_PARTY_RECRUIT_REQ_REGISTER(std::shared_ptr<ZoneSession> s)
17350 {}
17352
17353 void handle(ByteBuffer &&buf);
17354 void deserialize(ByteBuffer &buf);
17355
17356/* Structure */
17357};
17358
17359enum {
17360#if CLIENT_TYPE == 'M' && \
17361 PACKET_VERSION >= 20111025
17363#elif CLIENT_TYPE == 'R' && \
17364 PACKET_VERSION >= 20111025
17366#else
17367ID_CZ_PARTY_RECRUIT_REQ_SEARCH = 0x0000 // Disabled
17368#endif
17375{
17376public:
17377 CZ_PARTY_RECRUIT_REQ_SEARCH(std::shared_ptr<ZoneSession> s)
17379 {}
17381
17382 void handle(ByteBuffer &&buf);
17383 void deserialize(ByteBuffer &buf);
17384
17385/* Structure */
17386};
17387
17388enum {
17389#if CLIENT_TYPE == 'M' && \
17390 PACKET_VERSION >= 20111025
17392#elif CLIENT_TYPE == 'R' && \
17393 PACKET_VERSION >= 20111025
17395#else
17396ID_CZ_PARTY_RECRUIT_REQ_UPDATE = 0x0000 // Disabled
17397#endif
17404{
17405public:
17406 CZ_PARTY_RECRUIT_REQ_UPDATE(std::shared_ptr<ZoneSession> s)
17408 {}
17410
17411 void handle(ByteBuffer &&buf);
17412 void deserialize(ByteBuffer &buf);
17413
17414/* Structure */
17415};
17416
17417enum {
17418#if CLIENT_TYPE == 'M' && \
17419 PACKET_VERSION >= 20111025
17421#elif CLIENT_TYPE == 'R' && \
17422 PACKET_VERSION >= 20111025
17424#else
17425ID_CZ_PARTY_RECRUIT_REQ_VOLUNTEER = 0x0000 // Disabled
17426#endif
17433{
17434public:
17435 CZ_PARTY_RECRUIT_REQ_VOLUNTEER(std::shared_ptr<ZoneSession> s)
17437 {}
17439
17440 void handle(ByteBuffer &&buf);
17441 void deserialize(ByteBuffer &buf);
17442
17443/* Structure */
17444};
17445
17446enum {
17447#if CLIENT_TYPE == 'M' && \
17448 PACKET_VERSION >= 20111025
17450#elif CLIENT_TYPE == 'R' && \
17451 PACKET_VERSION >= 20111025
17453#else
17454ID_CZ_PARTY_RECRUIT_SHOW_EQUIPMENT = 0x0000 // Disabled
17455#endif
17462{
17463public:
17464 CZ_PARTY_RECRUIT_SHOW_EQUIPMENT(std::shared_ptr<ZoneSession> s)
17466 {}
17468
17469 void handle(ByteBuffer &&buf);
17470 void deserialize(ByteBuffer &buf);
17471
17472/* Structure */
17473};
17474
17475enum {
17476#if CLIENT_TYPE == 'M' && \
17477 PACKET_VERSION >= 20111101
17479#elif CLIENT_TYPE == 'R' && \
17480 PACKET_VERSION >= 20111101
17482#else
17483ID_CZ_PARTY_RECRUIT_SUB_FILTERLINGLIST = 0x0000 // Disabled
17484#endif
17491{
17492public:
17493 CZ_PARTY_RECRUIT_SUB_FILTERLINGLIST(std::shared_ptr<ZoneSession> s)
17495 {}
17497
17498 void handle(ByteBuffer &&buf);
17499 void deserialize(ByteBuffer &buf);
17500
17501/* Structure */
17502};
17503
17504enum {
17505#if CLIENT_TYPE == 'A' && \
17506 PACKET_VERSION >= 20070711
17508#elif CLIENT_TYPE == 'M' && ( \
17509 PACKET_VERSION >= 20220000 \
17510 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
17511 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
17512 || PACKET_VERSION >= 20070711)
17514#elif CLIENT_TYPE == 'R' && ( \
17515 PACKET_VERSION >= 20210000 \
17516 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
17517 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
17519#elif CLIENT_TYPE == 'S' && \
17520 PACKET_VERSION >= 20061204
17522#elif CLIENT_TYPE == 'Z' && ( \
17523 PACKET_VERSION >= 20220000 \
17524 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
17525 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
17526 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
17528#else
17529ID_CZ_PC_BUY_CASH_POINT_ITEM = 0x0000 // Disabled
17530#endif
17537{
17538public:
17539 CZ_PC_BUY_CASH_POINT_ITEM(std::shared_ptr<ZoneSession> s)
17541 {}
17543
17544 void handle(ByteBuffer &&buf);
17545 void deserialize(ByteBuffer &buf);
17546
17547/* Structure */
17548 int16_t _packet_length{ 0 };
17550 int16_t _count{ 0 };
17551 std::vector<cz_pc_buy_cash_point_item> _items;
17552};
17553
17554enum {
17555#if CLIENT_TYPE == 'A' && \
17556 PACKET_VERSION >= 20040000
17558#elif CLIENT_TYPE == 'M' && ( \
17559 PACKET_VERSION >= 20220000 \
17560 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
17561 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
17562 || (PACKET_VERSION >= 20030000 && PACKET_VERSION < 20200000))
17564#elif CLIENT_TYPE == 'R' && ( \
17565 PACKET_VERSION >= 20210000 \
17566 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
17567 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
17569#elif CLIENT_TYPE == 'S' && \
17570 PACKET_VERSION >= 20030000
17572#elif CLIENT_TYPE == 'Z' && ( \
17573 PACKET_VERSION >= 20220000 \
17574 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
17575 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
17576 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
17578#else
17579ID_CZ_PC_PURCHASE_ITEMLIST = 0x0000 // Disabled
17580#endif
17587{
17588public:
17589 CZ_PC_PURCHASE_ITEMLIST(std::shared_ptr<ZoneSession> s)
17591 {}
17593
17594 void handle(ByteBuffer &&buf);
17595 void deserialize(ByteBuffer &buf);
17596
17597/* Structure */
17599 std::vector<cz_pc_purchase_itemlist> _items;
17600};
17601
17602enum {
17603#if CLIENT_TYPE == 'A' && \
17604 PACKET_VERSION >= 20040000
17606#elif CLIENT_TYPE == 'M' && ( \
17607 PACKET_VERSION >= 20220000 \
17608 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
17609 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
17610 || (PACKET_VERSION >= 20030000 && PACKET_VERSION < 20200000))
17612#elif CLIENT_TYPE == 'R' && ( \
17613 PACKET_VERSION >= 20210000 \
17614 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
17615 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
17617#elif CLIENT_TYPE == 'S' && \
17618 PACKET_VERSION >= 20030000
17620#elif CLIENT_TYPE == 'Z' && ( \
17621 PACKET_VERSION >= 20220000 \
17622 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
17623 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
17624 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
17626#else
17627ID_CZ_PC_PURCHASE_ITEMLIST_FROMMC = 0x0000 // Disabled
17628#endif
17635{
17636public:
17637 CZ_PC_PURCHASE_ITEMLIST_FROMMC(std::shared_ptr<ZoneSession> s)
17639 {}
17641
17642 void handle(ByteBuffer &&buf);
17643 void deserialize(ByteBuffer &buf);
17644
17645/* Structure */
17646 int16_t _packet_length{ 0 };
17647 int _account_id{ 0 };
17648 std::vector<cz_pc_purchase_itemlist> _items{ 0 };
17649};
17650
17651enum {
17652#if CLIENT_TYPE == 'M' && ( \
17653 PACKET_VERSION >= 20220000 \
17654 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
17655 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
17656 || PACKET_VERSION >= 20091215)
17658#elif CLIENT_TYPE == 'R' && ( \
17659 PACKET_VERSION >= 20210000 \
17660 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
17661 || PACKET_VERSION >= 20091215)
17663#elif CLIENT_TYPE == 'Z' && ( \
17664 PACKET_VERSION >= 20220000 \
17665 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
17666 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
17667 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
17669#else
17670ID_CZ_PC_PURCHASE_ITEMLIST_FROMMC2 = 0x0000 // Disabled
17671#endif
17678{
17679public:
17680 CZ_PC_PURCHASE_ITEMLIST_FROMMC2(std::shared_ptr<ZoneSession> s)
17682 {}
17684
17685 void handle(ByteBuffer &&buf);
17686 void deserialize(ByteBuffer &buf);
17687
17688/* Structure */
17689 int16_t _packet_length{ 0 };
17690 int _account_id{ 0 };
17691 int _unique_id{ 0 };
17692 std::vector<cz_pc_purchase_itemlist> _items{ 0 };
17693};
17694
17695enum {
17696#if CLIENT_TYPE == 'A' && \
17697 PACKET_VERSION >= 20040000
17699#elif CLIENT_TYPE == 'M' && ( \
17700 PACKET_VERSION >= 20220000 \
17701 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
17702 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
17703 || (PACKET_VERSION >= 20030000 && PACKET_VERSION < 20200000))
17705#elif CLIENT_TYPE == 'R' && ( \
17706 PACKET_VERSION >= 20210000 \
17707 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
17708 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
17710#elif CLIENT_TYPE == 'S' && \
17711 PACKET_VERSION >= 20030000
17713#elif CLIENT_TYPE == 'Z' && ( \
17714 PACKET_VERSION >= 20220000 \
17715 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
17716 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
17717 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
17719#else
17720ID_CZ_PC_SELL_ITEMLIST = 0x0000 // Disabled
17721#endif
17727class CZ_PC_SELL_ITEMLIST : public Base::NetworkPacket<ZoneSession>
17728{
17729public:
17730 CZ_PC_SELL_ITEMLIST(std::shared_ptr<ZoneSession> s)
17732 {}
17734
17735 void handle(ByteBuffer &&buf);
17736 void deserialize(ByteBuffer &buf);
17737
17738/* Structure */
17739 int16_t _packet_length{ 0 };
17740 std::vector<cz_pc_sell_itemlist> _items;
17741
17742};
17743
17744enum {
17745#if CLIENT_TYPE == 'A' && \
17746 PACKET_VERSION >= 20040000
17747ID_CZ_PETEGG_INFO = 0x01a8
17748#elif CLIENT_TYPE == 'M' && ( \
17749 PACKET_VERSION >= 20220000 \
17750 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
17751 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
17752 || (PACKET_VERSION >= 20030000 && PACKET_VERSION < 20200000))
17753ID_CZ_PETEGG_INFO = 0x01a8
17754#elif CLIENT_TYPE == 'R' && ( \
17755 PACKET_VERSION >= 20210000 \
17756 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
17757 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
17758ID_CZ_PETEGG_INFO = 0x01a8
17759#elif CLIENT_TYPE == 'S' && \
17760 PACKET_VERSION >= 20030000
17761ID_CZ_PETEGG_INFO = 0x01a8
17762#elif CLIENT_TYPE == 'Z' && ( \
17763 PACKET_VERSION >= 20220000 \
17764 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
17765 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
17766 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
17767ID_CZ_PETEGG_INFO = 0x01a8
17768#else
17769ID_CZ_PETEGG_INFO = 0x0000 // Disabled
17770#endif
17776class CZ_PETEGG_INFO : public Base::NetworkPacket<ZoneSession>
17777{
17778public:
17779 CZ_PETEGG_INFO(std::shared_ptr<ZoneSession> s)
17781 {}
17782 virtual ~CZ_PETEGG_INFO() {}
17783
17784 void handle(ByteBuffer &&buf);
17785 void deserialize(ByteBuffer &buf);
17786
17787/* Structure */
17788};
17789
17790enum {
17791#if CLIENT_TYPE == 'A' && \
17792 PACKET_VERSION >= 20040000
17793ID_CZ_PET_ACT = 0x01a9
17794#elif CLIENT_TYPE == 'M' && ( \
17795 PACKET_VERSION >= 20220000 \
17796 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
17797 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
17798 || (PACKET_VERSION >= 20030000 && PACKET_VERSION < 20200000))
17799ID_CZ_PET_ACT = 0x01a9
17800#elif CLIENT_TYPE == 'R' && ( \
17801 PACKET_VERSION >= 20210000 \
17802 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
17803 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
17804ID_CZ_PET_ACT = 0x01a9
17805#elif CLIENT_TYPE == 'S' && \
17806 PACKET_VERSION >= 20030000
17807ID_CZ_PET_ACT = 0x01a9
17808#elif CLIENT_TYPE == 'Z' && ( \
17809 PACKET_VERSION >= 20220000 \
17810 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
17811 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
17812 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
17813ID_CZ_PET_ACT = 0x01a9
17814#else
17815ID_CZ_PET_ACT = 0x0000 // Disabled
17816#endif
17822class CZ_PET_ACT : public Base::NetworkPacket<ZoneSession>
17823{
17824public:
17825 CZ_PET_ACT(std::shared_ptr<ZoneSession> s)
17827 {}
17828 virtual ~CZ_PET_ACT() {}
17829
17830 void handle(ByteBuffer &&buf);
17831 void deserialize(ByteBuffer &buf);
17832
17833/* Structure */
17834 int _emotion{ 0 };
17835};
17836
17837enum {
17838#if CLIENT_TYPE == 'M' && ( \
17839 PACKET_VERSION >= 20220000 \
17840 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
17841 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
17842 || PACKET_VERSION >= 20140122)
17843ID_CZ_PET_EVOLUTION = 0x09fb
17844#elif CLIENT_TYPE == 'R' && ( \
17845 PACKET_VERSION >= 20210000 \
17846 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
17847 || PACKET_VERSION >= 20140122)
17848ID_CZ_PET_EVOLUTION = 0x09fb
17849#elif CLIENT_TYPE == 'Z' && ( \
17850 PACKET_VERSION >= 20220000 \
17851 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
17852 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
17853 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
17854ID_CZ_PET_EVOLUTION = 0x09fb
17855#else
17856ID_CZ_PET_EVOLUTION = 0x0000 // Disabled
17857#endif
17863class CZ_PET_EVOLUTION : public Base::NetworkPacket<ZoneSession>
17864{
17865public:
17866 CZ_PET_EVOLUTION(std::shared_ptr<ZoneSession> s)
17868 {}
17870
17871 void handle(ByteBuffer &&buf);
17872 void deserialize(ByteBuffer &buf);
17873
17874/* Structure */
17875 int16_t _packet_length{ 0 };
17877 std::vector<cz_pet_evolution_itemlist> _items;
17878};
17879
17880enum {
17881#if CLIENT_TYPE == 'M' && ( \
17882 PACKET_VERSION >= 20220000 \
17883 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
17884 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
17885 || PACKET_VERSION >= 20190227)
17886ID_CZ_PING = 0x0b1c
17887#elif CLIENT_TYPE == 'R' && ( \
17888 PACKET_VERSION >= 20210000 \
17889 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
17890 || PACKET_VERSION >= 20190220)
17891ID_CZ_PING = 0x0b1c
17892#elif CLIENT_TYPE == 'Z' && ( \
17893 PACKET_VERSION >= 20220000 \
17894 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
17895 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
17896 || PACKET_VERSION >= 20190220)
17897ID_CZ_PING = 0x0b1c
17898#else
17899ID_CZ_PING = 0x0000 // Disabled
17900#endif
17906class CZ_PING : public Base::NetworkPacket<ZoneSession>
17907{
17908public:
17909 CZ_PING(std::shared_ptr<ZoneSession> s)
17911 {}
17912 virtual ~CZ_PING() {}
17913
17914 void handle(ByteBuffer &&buf);
17915 void deserialize(ByteBuffer &buf);
17916
17917/* Structure */
17918};
17919
17920enum {
17921#if CLIENT_TYPE == 'A' && \
17922 PACKET_VERSION >= 20040000
17923ID_CZ_PKMODE_CHANGE = 0x0138
17924#elif CLIENT_TYPE == 'M' && ( \
17925 PACKET_VERSION >= 20220000 \
17926 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
17927 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
17928 || (PACKET_VERSION >= 20030000 && PACKET_VERSION < 20200000))
17929ID_CZ_PKMODE_CHANGE = 0x0138
17930#elif CLIENT_TYPE == 'R' && ( \
17931 PACKET_VERSION >= 20210000 \
17932 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
17933 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
17934ID_CZ_PKMODE_CHANGE = 0x0138
17935#elif CLIENT_TYPE == 'S' && \
17936 PACKET_VERSION >= 20030000
17937ID_CZ_PKMODE_CHANGE = 0x0138
17938#elif CLIENT_TYPE == 'Z' && ( \
17939 PACKET_VERSION >= 20220000 \
17940 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
17941 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
17942 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
17943ID_CZ_PKMODE_CHANGE = 0x0138
17944#else
17945ID_CZ_PKMODE_CHANGE = 0x0000 // Disabled
17946#endif
17952class CZ_PKMODE_CHANGE : public Base::NetworkPacket<ZoneSession>
17953{
17954public:
17955 CZ_PKMODE_CHANGE(std::shared_ptr<ZoneSession> s)
17957 {}
17959
17960 void handle(ByteBuffer &&buf);
17961 void deserialize(ByteBuffer &buf);
17962
17963/* Structure */
17964};
17965
17966enum {
17967#if CLIENT_TYPE == 'M' && ( \
17968 PACKET_VERSION >= 20220000 \
17969 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
17970 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
17971 || PACKET_VERSION >= 20151118)
17973#elif CLIENT_TYPE == 'R' && ( \
17974 PACKET_VERSION >= 20210000 \
17975 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
17976 || PACKET_VERSION >= 20151118)
17978#elif CLIENT_TYPE == 'Z' && ( \
17979 PACKET_VERSION >= 20220000 \
17980 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
17981 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
17982 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
17984#else
17985ID_CZ_PRIVATE_AIRSHIP_REQUEST = 0x0000 // Disabled
17986#endif
17993{
17994public:
17995 CZ_PRIVATE_AIRSHIP_REQUEST(std::shared_ptr<ZoneSession> s)
17997 {}
17999
18000 void handle(ByteBuffer &&buf);
18001 void deserialize(ByteBuffer &buf);
18002
18003/* Structure */
18005#if (CLIENT_TYPE == 'M' && PACKET_VERSION >= 20181121) || \
18006 (CLIENT_TYPE == 'R' && PACKET_VERSION >= 20180704) || \
18007 (CLIENT_TYPE == 'Z' && PACKET_VERSION >= 20181114)
18008 int _item_id{ 0 };
18009#else
18010 int16_t _item_id{ 0 };
18011#endif
18012};
18013
18014enum {
18015#if CLIENT_TYPE == 'A' && \
18016 PACKET_VERSION >= 20080318
18017ID_CZ_PROGRESS = 0x02f1
18018#elif CLIENT_TYPE == 'M' && ( \
18019 PACKET_VERSION >= 20220000 \
18020 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
18021 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
18022 || PACKET_VERSION >= 20080318)
18023ID_CZ_PROGRESS = 0x02f1
18024#elif CLIENT_TYPE == 'R' && ( \
18025 PACKET_VERSION >= 20210000 \
18026 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
18027 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
18028ID_CZ_PROGRESS = 0x02f1
18029#elif CLIENT_TYPE == 'S' && \
18030 PACKET_VERSION >= 20080318
18031ID_CZ_PROGRESS = 0x02f1
18032#elif CLIENT_TYPE == 'Z' && ( \
18033 PACKET_VERSION >= 20220000 \
18034 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
18035 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
18036 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
18037ID_CZ_PROGRESS = 0x02f1
18038#else
18039ID_CZ_PROGRESS = 0x0000 // Disabled
18040#endif
18046class CZ_PROGRESS : public Base::NetworkPacket<ZoneSession>
18047{
18048public:
18049 CZ_PROGRESS(std::shared_ptr<ZoneSession> s)
18051 {}
18052 virtual ~CZ_PROGRESS() {}
18053
18054 void handle(ByteBuffer &&buf);
18055 void deserialize(ByteBuffer &buf);
18056
18057/* Structure */
18058};
18059
18060enum {
18061#if CLIENT_TYPE == 'M' && ( \
18062 PACKET_VERSION >= 20220000 \
18063 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
18064 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000))
18066#elif CLIENT_TYPE == 'R' && ( \
18067 PACKET_VERSION >= 20210000 \
18068 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000))
18070#elif CLIENT_TYPE == 'Z' && ( \
18071 PACKET_VERSION >= 20220000 \
18072 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
18073 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000))
18075#else
18076ID_CZ_RANDOM_COMBINE_ITEM_UI_CLOSE = 0x0000 // Disabled
18077#endif
18084{
18085public:
18086 CZ_RANDOM_COMBINE_ITEM_UI_CLOSE(std::shared_ptr<ZoneSession> s)
18088 {}
18090
18091 void handle(ByteBuffer &&buf);
18092 void deserialize(ByteBuffer &buf);
18093
18094/* Structure */
18095};
18096
18097enum {
18098#if CLIENT_TYPE == 'M' && ( \
18099 PACKET_VERSION >= 20220000 \
18100 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
18101 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000))
18103#elif CLIENT_TYPE == 'R' && ( \
18104 PACKET_VERSION >= 20210000 \
18105 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000))
18107#elif CLIENT_TYPE == 'Z' && ( \
18108 PACKET_VERSION >= 20220000 \
18109 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
18110 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000))
18112#else
18113ID_CZ_RANDOM_UPGRADE_ITEM_UI_CLOSE = 0x0000 // Disabled
18114#endif
18121{
18122public:
18123 CZ_RANDOM_UPGRADE_ITEM_UI_CLOSE(std::shared_ptr<ZoneSession> s)
18125 {}
18127
18128 void handle(ByteBuffer &&buf);
18129 void deserialize(ByteBuffer &buf);
18130
18131/* Structure */
18132};
18133
18134enum {
18135#if CLIENT_TYPE == 'A' && \
18136 PACKET_VERSION >= 20040000
18137ID_CZ_RECALL = 0x01bc
18138#elif CLIENT_TYPE == 'M' && ( \
18139 PACKET_VERSION >= 20220000 \
18140 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
18141 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
18142 || (PACKET_VERSION >= 20030000 && PACKET_VERSION < 20200000))
18143ID_CZ_RECALL = 0x01bc
18144#elif CLIENT_TYPE == 'R' && ( \
18145 PACKET_VERSION >= 20210000 \
18146 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
18147 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
18148ID_CZ_RECALL = 0x01bc
18149#elif CLIENT_TYPE == 'S' && \
18150 PACKET_VERSION >= 20030000
18151ID_CZ_RECALL = 0x01bc
18152#elif CLIENT_TYPE == 'Z' && ( \
18153 PACKET_VERSION >= 20220000 \
18154 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
18155 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
18156 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
18157ID_CZ_RECALL = 0x01bc
18158#else
18159ID_CZ_RECALL = 0x0000 // Disabled
18160#endif
18166class CZ_RECALL : public Base::NetworkPacket<ZoneSession>
18167{
18168public:
18169 CZ_RECALL(std::shared_ptr<ZoneSession> s)
18171 {}
18172 virtual ~CZ_RECALL() {}
18173
18174 void handle(ByteBuffer &&buf);
18175 void deserialize(ByteBuffer &buf);
18176
18177/* Structure */
18179};
18180
18181enum {
18182#if CLIENT_TYPE == 'A' && \
18183 PACKET_VERSION >= 20040000
18184ID_CZ_RECALL_GID = 0x01bd
18185#elif CLIENT_TYPE == 'M' && ( \
18186 PACKET_VERSION >= 20220000 \
18187 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
18188 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
18189 || (PACKET_VERSION >= 20030000 && PACKET_VERSION < 20200000))
18190ID_CZ_RECALL_GID = 0x01bd
18191#elif CLIENT_TYPE == 'R' && ( \
18192 PACKET_VERSION >= 20210000 \
18193 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
18194 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
18195ID_CZ_RECALL_GID = 0x01bd
18196#elif CLIENT_TYPE == 'S' && \
18197 PACKET_VERSION >= 20030000
18198ID_CZ_RECALL_GID = 0x01bd
18199#elif CLIENT_TYPE == 'Z' && ( \
18200 PACKET_VERSION >= 20220000 \
18201 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
18202 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
18203 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
18204ID_CZ_RECALL_GID = 0x01bd
18205#else
18206ID_CZ_RECALL_GID = 0x0000 // Disabled
18207#endif
18213class CZ_RECALL_GID : public Base::NetworkPacket<ZoneSession>
18214{
18215public:
18216 CZ_RECALL_GID(std::shared_ptr<ZoneSession> s)
18218 {}
18219 virtual ~CZ_RECALL_GID() {}
18220
18221 void handle(ByteBuffer &&buf);
18222 void deserialize(ByteBuffer &buf);
18223
18224/* Structure */
18226};
18227
18228enum {
18229#if CLIENT_TYPE == 'M' && ( \
18230 PACKET_VERSION >= 20220000 \
18231 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
18232 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
18233 || PACKET_VERSION >= 20100720)
18234ID_CZ_RECALL_SSO = 0x0842
18235#elif CLIENT_TYPE == 'R' && ( \
18236 PACKET_VERSION >= 20210000 \
18237 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
18238 || PACKET_VERSION >= 20100720)
18239ID_CZ_RECALL_SSO = 0x0842
18240#elif CLIENT_TYPE == 'Z' && ( \
18241 PACKET_VERSION >= 20220000 \
18242 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
18243 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
18244 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
18245ID_CZ_RECALL_SSO = 0x0842
18246#else
18247ID_CZ_RECALL_SSO = 0x0000 // Disabled
18248#endif
18254class CZ_RECALL_SSO : public Base::NetworkPacket<ZoneSession>
18255{
18256public:
18257 CZ_RECALL_SSO(std::shared_ptr<ZoneSession> s)
18259 {}
18260 virtual ~CZ_RECALL_SSO() {}
18261
18262 void handle(ByteBuffer &&buf);
18263 void deserialize(ByteBuffer &buf);
18264
18265/* Structure */
18266 int _account_id{ 0 };
18267};
18268
18269enum {
18270#if CLIENT_TYPE == 'M' && ( \
18271 PACKET_VERSION >= 20220000 \
18272 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
18273 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
18274 || PACKET_VERSION >= 20140618)
18276#elif CLIENT_TYPE == 'R' && ( \
18277 PACKET_VERSION >= 20210000 \
18278 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
18279 || PACKET_VERSION >= 20140618)
18281#elif CLIENT_TYPE == 'Z' && ( \
18282 PACKET_VERSION >= 20220000 \
18283 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
18284 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
18285 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
18287#else
18288ID_CZ_RECV_ROULETTE_ITEM = 0x0000 // Disabled
18289#endif
18296{
18297public:
18298 CZ_RECV_ROULETTE_ITEM(std::shared_ptr<ZoneSession> s)
18300 {}
18302
18303 void handle(ByteBuffer &&buf);
18304 void deserialize(ByteBuffer &buf);
18305
18306/* Structure */
18307};
18308
18309enum {
18310#if CLIENT_TYPE == 'M' && ( \
18311 PACKET_VERSION >= 20220000 \
18312 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
18313 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
18314 || PACKET_VERSION >= 20161005)
18315ID_CZ_REFINE_ADD_ITEM = 0x0aa1
18316#elif CLIENT_TYPE == 'R' && ( \
18317 PACKET_VERSION >= 20210000 \
18318 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
18319 || PACKET_VERSION >= 20161005)
18320ID_CZ_REFINE_ADD_ITEM = 0x0aa1
18321#elif CLIENT_TYPE == 'Z' && ( \
18322 PACKET_VERSION >= 20220000 \
18323 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
18324 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
18325 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
18326ID_CZ_REFINE_ADD_ITEM = 0x0aa1
18327#else
18328ID_CZ_REFINE_ADD_ITEM = 0x0000 // Disabled
18329#endif
18335class CZ_REFINE_ADD_ITEM : public Base::NetworkPacket<ZoneSession>
18336{
18337public:
18338 CZ_REFINE_ADD_ITEM(std::shared_ptr<ZoneSession> s)
18340 {}
18342
18343 void handle(ByteBuffer &&buf);
18344 void deserialize(ByteBuffer &buf);
18345
18346/* Structure */
18347};
18348
18349enum {
18350#if CLIENT_TYPE == 'M' && ( \
18351 PACKET_VERSION >= 20220000 \
18352 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
18353 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
18354 || PACKET_VERSION >= 20161005)
18356#elif CLIENT_TYPE == 'R' && ( \
18357 PACKET_VERSION >= 20210000 \
18358 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
18359 || PACKET_VERSION >= 20161005)
18361#elif CLIENT_TYPE == 'Z' && ( \
18362 PACKET_VERSION >= 20220000 \
18363 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
18364 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
18365 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
18367#else
18368ID_CZ_REFINE_ITEM_REQUEST = 0x0000 // Disabled
18369#endif
18376{
18377public:
18378 CZ_REFINE_ITEM_REQUEST(std::shared_ptr<ZoneSession> s)
18380 {}
18382
18383 void handle(ByteBuffer &&buf);
18384 void deserialize(ByteBuffer &buf);
18385
18386/* Structure */
18387};
18388
18389enum {
18390#if CLIENT_TYPE == 'M' && ( \
18391 PACKET_VERSION >= 20220000 \
18392 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
18393 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
18394 || PACKET_VERSION >= 20161005)
18396#elif CLIENT_TYPE == 'R' && ( \
18397 PACKET_VERSION >= 20210000 \
18398 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
18399 || PACKET_VERSION >= 20161005)
18401#elif CLIENT_TYPE == 'Z' && ( \
18402 PACKET_VERSION >= 20220000 \
18403 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
18404 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
18405 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
18407#else
18408ID_CZ_REFINE_WINDOW_CLOSE = 0x0000 // Disabled
18409#endif
18416{
18417public:
18418 CZ_REFINE_WINDOW_CLOSE(std::shared_ptr<ZoneSession> s)
18420 {}
18422
18423 void handle(ByteBuffer &&buf);
18424 void deserialize(ByteBuffer &buf);
18425
18426/* Structure */
18427};
18428
18429enum {
18430#if CLIENT_TYPE == 'A' && \
18431 PACKET_VERSION >= 20040000
18433#elif CLIENT_TYPE == 'M' && ( \
18434 PACKET_VERSION >= 20220000 \
18435 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
18436 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
18437 || (PACKET_VERSION >= 20030000 && PACKET_VERSION < 20200000))
18439#elif CLIENT_TYPE == 'R' && ( \
18440 PACKET_VERSION >= 20210000 \
18441 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
18442 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
18444#elif CLIENT_TYPE == 'S' && \
18445 PACKET_VERSION >= 20030000
18447#elif CLIENT_TYPE == 'Z' && ( \
18448 PACKET_VERSION >= 20220000 \
18449 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
18450 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
18451 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
18453#else
18454ID_CZ_REGISTER_GUILD_EMBLEM_IMG = 0x0000 // Disabled
18455#endif
18462{
18463public:
18464 CZ_REGISTER_GUILD_EMBLEM_IMG(std::shared_ptr<ZoneSession> s)
18466 {}
18468
18469 void handle(ByteBuffer &&buf);
18470 void deserialize(ByteBuffer &buf);
18471
18472/* Structure */
18473 int16_t _packet_length{ 0 };
18474 char _emblem[MAX_EMBLEM_LENGTH]; // no well-formed emblem bitmap is larger than 1782 (24 bit) / 1654 (8 bit) bytes [HerculesWS]
18475};
18476
18477enum {
18478#if CLIENT_TYPE == 'A' && \
18479 PACKET_VERSION >= 20040000
18481#elif CLIENT_TYPE == 'M' && ( \
18482 PACKET_VERSION >= 20220000 \
18483 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
18484 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
18485 || (PACKET_VERSION >= 20030000 && PACKET_VERSION < 20200000))
18487#elif CLIENT_TYPE == 'R' && ( \
18488 PACKET_VERSION >= 20210000 \
18489 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
18490 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
18492#elif CLIENT_TYPE == 'S' && \
18493 PACKET_VERSION >= 20030000
18495#elif CLIENT_TYPE == 'Z' && ( \
18496 PACKET_VERSION >= 20220000 \
18497 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
18498 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
18499 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
18501#else
18502ID_CZ_REG_CHANGE_GUILD_POSITIONINFO = 0x0000 // Disabled
18503#endif
18510{
18511public:
18512 CZ_REG_CHANGE_GUILD_POSITIONINFO(std::shared_ptr<ZoneSession> s)
18514 {}
18516
18517 void handle(ByteBuffer &&buf);
18518 void deserialize(ByteBuffer &buf);
18519
18520/* Structure */
18521 int16_t _packet_length{ 0 };
18522 std::vector<s_cz_reg_change_guild_positioninfo> _info;
18523};
18524
18525enum {
18526#if CLIENT_TYPE == 'A' && \
18527 PACKET_VERSION >= 20040000
18529#elif CLIENT_TYPE == 'M' && ( \
18530 PACKET_VERSION >= 20220000 \
18531 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
18532 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
18533 || (PACKET_VERSION >= 20030000 && PACKET_VERSION < 20200000))
18535#elif CLIENT_TYPE == 'R' && ( \
18536 PACKET_VERSION >= 20210000 \
18537 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
18538 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
18540#elif CLIENT_TYPE == 'S' && \
18541 PACKET_VERSION >= 20030000
18543#elif CLIENT_TYPE == 'Z' && ( \
18544 PACKET_VERSION >= 20220000 \
18545 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
18546 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
18547 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
18549#else
18550ID_CZ_REMEMBER_WARPPOINT = 0x0000 // Disabled
18551#endif
18558{
18559public:
18560 CZ_REMEMBER_WARPPOINT(std::shared_ptr<ZoneSession> s)
18562 {}
18564
18565 void handle(ByteBuffer &&buf);
18566 void deserialize(ByteBuffer &buf);
18567
18568/* Structure */
18569};
18570
18571enum {
18572#if CLIENT_TYPE == 'A' && \
18573 PACKET_VERSION >= 20040000
18574ID_CZ_REMOVE_AID = 0x01ba
18575#elif CLIENT_TYPE == 'M' && ( \
18576 PACKET_VERSION >= 20220000 \
18577 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
18578 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
18579 || (PACKET_VERSION >= 20030000 && PACKET_VERSION < 20200000))
18580ID_CZ_REMOVE_AID = 0x01ba
18581#elif CLIENT_TYPE == 'R' && ( \
18582 PACKET_VERSION >= 20210000 \
18583 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
18584 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
18585ID_CZ_REMOVE_AID = 0x01ba
18586#elif CLIENT_TYPE == 'S' && \
18587 PACKET_VERSION >= 20030000
18588ID_CZ_REMOVE_AID = 0x01ba
18589#elif CLIENT_TYPE == 'Z' && ( \
18590 PACKET_VERSION >= 20220000 \
18591 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
18592 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
18593 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
18594ID_CZ_REMOVE_AID = 0x01ba
18595#else
18596ID_CZ_REMOVE_AID = 0x0000 // Disabled
18597#endif
18603class CZ_REMOVE_AID : public Base::NetworkPacket<ZoneSession>
18604{
18605public:
18606 CZ_REMOVE_AID(std::shared_ptr<ZoneSession> s)
18608 {}
18609 virtual ~CZ_REMOVE_AID() {}
18610
18611 void handle(ByteBuffer &&buf);
18612 void deserialize(ByteBuffer &buf);
18613
18614/* Structure */
18615};
18616
18617enum {
18618#if CLIENT_TYPE == 'M' && ( \
18619 PACKET_VERSION >= 20220000 \
18620 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
18621 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
18622 || PACKET_VERSION >= 20100720)
18623ID_CZ_REMOVE_AID_SSO = 0x0843
18624#elif CLIENT_TYPE == 'R' && ( \
18625 PACKET_VERSION >= 20210000 \
18626 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
18627 || PACKET_VERSION >= 20100720)
18628ID_CZ_REMOVE_AID_SSO = 0x0843
18629#elif CLIENT_TYPE == 'Z' && ( \
18630 PACKET_VERSION >= 20220000 \
18631 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
18632 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
18633 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
18634ID_CZ_REMOVE_AID_SSO = 0x0843
18635#else
18636ID_CZ_REMOVE_AID_SSO = 0x0000 // Disabled
18637#endif
18643class CZ_REMOVE_AID_SSO : public Base::NetworkPacket<ZoneSession>
18644{
18645public:
18646 CZ_REMOVE_AID_SSO(std::shared_ptr<ZoneSession> s)
18648 {}
18650
18651 void handle(ByteBuffer &&buf);
18652 void deserialize(ByteBuffer &buf);
18653
18654/* Structure */
18655 int _account_id{ 0 };
18656};
18657
18658enum {
18659#if CLIENT_TYPE == 'A' && \
18660 PACKET_VERSION >= 20050608
18661ID_CZ_RENAME_MER = 0x0231
18662#elif CLIENT_TYPE == 'M' && ( \
18663 PACKET_VERSION >= 20220000 \
18664 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
18665 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
18666 || PACKET_VERSION >= 20050608)
18667ID_CZ_RENAME_MER = 0x0231
18668#elif CLIENT_TYPE == 'R' && ( \
18669 PACKET_VERSION >= 20210000 \
18670 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
18671 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
18672ID_CZ_RENAME_MER = 0x0231
18673#elif CLIENT_TYPE == 'S' && \
18674 PACKET_VERSION >= 20050608
18675ID_CZ_RENAME_MER = 0x0231
18676#elif CLIENT_TYPE == 'Z' && ( \
18677 PACKET_VERSION >= 20220000 \
18678 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
18679 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
18680 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
18681ID_CZ_RENAME_MER = 0x0231
18682#else
18683ID_CZ_RENAME_MER = 0x0000 // Disabled
18684#endif
18690class CZ_RENAME_MER : public Base::NetworkPacket<ZoneSession>
18691{
18692public:
18693 CZ_RENAME_MER(std::shared_ptr<ZoneSession> s)
18695 {}
18696 virtual ~CZ_RENAME_MER() {}
18697
18698 void handle(ByteBuffer &&buf);
18699 void deserialize(ByteBuffer &buf);
18700
18701/* Structure */
18703};
18704
18705enum {
18706#if CLIENT_TYPE == 'A' && \
18707 PACKET_VERSION >= 20040000
18708ID_CZ_RENAME_PET = 0x01a5
18709#elif CLIENT_TYPE == 'M' && ( \
18710 PACKET_VERSION >= 20220000 \
18711 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
18712 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
18713 || (PACKET_VERSION >= 20030000 && PACKET_VERSION < 20200000))
18714ID_CZ_RENAME_PET = 0x01a5
18715#elif CLIENT_TYPE == 'R' && ( \
18716 PACKET_VERSION >= 20210000 \
18717 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
18718 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
18719ID_CZ_RENAME_PET = 0x01a5
18720#elif CLIENT_TYPE == 'S' && \
18721 PACKET_VERSION >= 20030000
18722ID_CZ_RENAME_PET = 0x01a5
18723#elif CLIENT_TYPE == 'Z' && ( \
18724 PACKET_VERSION >= 20220000 \
18725 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
18726 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
18727 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
18728ID_CZ_RENAME_PET = 0x01a5
18729#else
18730ID_CZ_RENAME_PET = 0x0000 // Disabled
18731#endif
18737class CZ_RENAME_PET : public Base::NetworkPacket<ZoneSession>
18738{
18739public:
18740 CZ_RENAME_PET(std::shared_ptr<ZoneSession> s)
18742 {}
18743 virtual ~CZ_RENAME_PET() {}
18744
18745 void handle(ByteBuffer &&buf);
18746 void deserialize(ByteBuffer &buf);
18747
18748/* Structure */
18750};
18751
18752enum {
18753#if CLIENT_TYPE == 'M' && ( \
18754 PACKET_VERSION >= 20220000 \
18755 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
18756 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
18757 || PACKET_VERSION >= 20111004)
18759#elif CLIENT_TYPE == 'R' && ( \
18760 PACKET_VERSION >= 20210000 \
18761 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
18762 || PACKET_VERSION >= 20111004)
18764#elif CLIENT_TYPE == 'Z' && ( \
18765 PACKET_VERSION >= 20220000 \
18766 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
18767 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
18768 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
18770#else
18771ID_CZ_REPLY_ENTRY_QUEUE_ADMISSION = 0x0000 // Disabled
18772#endif
18779{
18780public:
18781 CZ_REPLY_ENTRY_QUEUE_ADMISSION(std::shared_ptr<ZoneSession> s)
18783 {}
18785
18786 void handle(ByteBuffer &&buf);
18787 void deserialize(ByteBuffer &buf);
18788
18789/* Structure */
18790};
18791
18792enum {
18793#if CLIENT_TYPE == 'M' && ( \
18794 PACKET_VERSION >= 20220000 \
18795 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
18796 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
18797 || PACKET_VERSION >= 20111004)
18799#elif CLIENT_TYPE == 'R' && ( \
18800 PACKET_VERSION >= 20210000 \
18801 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
18802 || PACKET_VERSION >= 20111004)
18804#elif CLIENT_TYPE == 'Z' && ( \
18805 PACKET_VERSION >= 20220000 \
18806 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
18807 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
18808 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
18810#else
18811ID_CZ_REPLY_LOBBY_ADMISSION = 0x0000 // Disabled
18812#endif
18819{
18820public:
18821 CZ_REPLY_LOBBY_ADMISSION(std::shared_ptr<ZoneSession> s)
18823 {}
18825
18826 void handle(ByteBuffer &&buf);
18827 void deserialize(ByteBuffer &buf);
18828
18829/* Structure */
18830};
18831
18832enum {
18833#if CLIENT_TYPE == 'A' && \
18834 PACKET_VERSION >= 20041213
18835ID_CZ_REQMAKINGHOMUN = 0x01ca
18836#elif CLIENT_TYPE == 'M' && ( \
18837 PACKET_VERSION >= 20220000 \
18838 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
18839 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
18840 || PACKET_VERSION >= 20041213)
18841ID_CZ_REQMAKINGHOMUN = 0x01ca
18842#elif CLIENT_TYPE == 'R' && ( \
18843 PACKET_VERSION >= 20210000 \
18844 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
18845 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
18846ID_CZ_REQMAKINGHOMUN = 0x01ca
18847#elif CLIENT_TYPE == 'S' && \
18848 PACKET_VERSION >= 20041213
18849ID_CZ_REQMAKINGHOMUN = 0x01ca
18850#elif CLIENT_TYPE == 'Z' && ( \
18851 PACKET_VERSION >= 20220000 \
18852 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
18853 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
18854 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
18855ID_CZ_REQMAKINGHOMUN = 0x01ca
18856#else
18857ID_CZ_REQMAKINGHOMUN = 0x0000 // Disabled
18858#endif
18864class CZ_REQMAKINGHOMUN : public Base::NetworkPacket<ZoneSession>
18865{
18866public:
18867 CZ_REQMAKINGHOMUN(std::shared_ptr<ZoneSession> s)
18869 {}
18871
18872 void handle(ByteBuffer &&buf);
18873 void deserialize(ByteBuffer &buf);
18874
18875/* Structure */
18876};
18877
18878enum {
18879#if CLIENT_TYPE == 'A' && \
18880 PACKET_VERSION >= 20040000
18881ID_CZ_REQMAKINGITEM = 0x018e
18882#elif CLIENT_TYPE == 'M' && ( \
18883 PACKET_VERSION >= 20220000 \
18884 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
18885 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
18886 || (PACKET_VERSION >= 20030000 && PACKET_VERSION < 20200000))
18887ID_CZ_REQMAKINGITEM = 0x018e
18888#elif CLIENT_TYPE == 'R' && ( \
18889 PACKET_VERSION >= 20210000 \
18890 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
18891 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
18892ID_CZ_REQMAKINGITEM = 0x018e
18893#elif CLIENT_TYPE == 'S' && \
18894 PACKET_VERSION >= 20030000
18895ID_CZ_REQMAKINGITEM = 0x018e
18896#elif CLIENT_TYPE == 'Z' && ( \
18897 PACKET_VERSION >= 20220000 \
18898 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
18899 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
18900 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
18901ID_CZ_REQMAKINGITEM = 0x018e
18902#else
18903ID_CZ_REQMAKINGITEM = 0x0000 // Disabled
18904#endif
18910class CZ_REQMAKINGITEM : public Base::NetworkPacket<ZoneSession>
18911{
18912public:
18913 CZ_REQMAKINGITEM(std::shared_ptr<ZoneSession> s)
18915 {}
18917
18918 void handle(ByteBuffer &&buf);
18919 void deserialize(ByteBuffer &buf);
18920
18921/* Structure */
18922 int16_t _item_id{ 0 };
18923 int16_t _material_id[3]{ 0 };
18924};
18925
18926enum {
18927#if CLIENT_TYPE == 'A' && \
18928 PACKET_VERSION >= 20041129
18929ID_CZ_REQNAME = 0x0094
18930#elif CLIENT_TYPE == 'M' && \
18931 PACKET_VERSION >= 20030000
18932ID_CZ_REQNAME = 0x0094
18933#elif CLIENT_TYPE == 'M' && \
18934 PACKET_VERSION >= 20120712
18935ID_CZ_REQNAME = 0x0877
18936#elif CLIENT_TYPE == 'M' && \
18937 PACKET_VERSION >= 20120926
18938ID_CZ_REQNAME = 0x0838
18939#elif CLIENT_TYPE == 'M' && ( \
18940 PACKET_VERSION >= 20220000 \
18941 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
18942 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
18943 || PACKET_VERSION >= 20180131 \
18944 || PACKET_VERSION >= 20160609 \
18945 || PACKET_VERSION >= 20160526 \
18946 || PACKET_VERSION >= 20160318 \
18947 || PACKET_VERSION >= 20151029 \
18948 || PACKET_VERSION >= 20151022 \
18949 || PACKET_VERSION >= 20150812 \
18950 || PACKET_VERSION >= 20150618 \
18951 || PACKET_VERSION >= 20141016 \
18952 || PACKET_VERSION >= 20140814 \
18953 || PACKET_VERSION >= 20130107)
18954ID_CZ_REQNAME = 0x096a
18955#elif CLIENT_TYPE == 'M' && \
18956 PACKET_VERSION >= 20130116
18957ID_CZ_REQNAME = 0x0939
18958#elif CLIENT_TYPE == 'M' && ( \
18959 PACKET_VERSION == 20131108 \
18960 || PACKET_VERSION == 20131107)
18961ID_CZ_REQNAME = 0x0281
18962#elif CLIENT_TYPE == 'M' && ( \
18963 PACKET_VERSION == 20140613 \
18964 || PACKET_VERSION == 20140612)
18965ID_CZ_REQNAME = 0x0924
18966#elif CLIENT_TYPE == 'M' && ( \
18967 PACKET_VERSION == 20150130 \
18968 || PACKET_VERSION == 20150129)
18969ID_CZ_REQNAME = 0x0874
18970#elif CLIENT_TYPE == 'M' && \
18971 PACKET_VERSION >= 20150226
18972ID_CZ_REQNAME = 0x0436
18973#elif CLIENT_TYPE == 'M' && \
18974 PACKET_VERSION >= 20150702
18975ID_CZ_REQNAME = 0x0802
18976#elif CLIENT_TYPE == 'M' && \
18977 PACKET_VERSION >= 20160630
18978ID_CZ_REQNAME = 0x088e
18979#elif CLIENT_TYPE == 'M' && \
18980 PACKET_VERSION >= 20161103
18981ID_CZ_REQNAME = 0x092f
18982#elif CLIENT_TYPE == 'M' && \
18983 PACKET_VERSION >= 20180309
18984ID_CZ_REQNAME = 0x0941
18985#elif CLIENT_TYPE == 'M' && ( \
18986 PACKET_VERSION == 20190821 \
18987 || PACKET_VERSION == 20190807 \
18988 || PACKET_VERSION == 20190802 \
18989 || PACKET_VERSION == 20190731 \
18990 || PACKET_VERSION == 20190724 \
18991 || PACKET_VERSION == 20190717 \
18992 || PACKET_VERSION == 20190703 \
18993 || PACKET_VERSION == 20190605 \
18994 || PACKET_VERSION == 20190530 \
18995 || PACKET_VERSION == 20190523 \
18996 || PACKET_VERSION == 20190522 \
18997 || PACKET_VERSION == 20190508 \
18998 || PACKET_VERSION == 20190418 \
18999 || PACKET_VERSION == 20190417 \
19000 || PACKET_VERSION == 20190327 \
19001 || PACKET_VERSION == 20190322 \
19002 || PACKET_VERSION == 20190320 \
19003 || PACKET_VERSION == 20190313 \
19004 || PACKET_VERSION == 20190306 \
19005 || PACKET_VERSION == 20190228 \
19006 || PACKET_VERSION == 20190123 \
19007 || PACKET_VERSION == 20190116 \
19008 || PACKET_VERSION == 20181226 \
19009 || PACKET_VERSION == 20181219 \
19010 || PACKET_VERSION == 20181212 \
19011 || PACKET_VERSION == 20181205 \
19012 || PACKET_VERSION == 20181128 \
19013 || PACKET_VERSION == 20181114 \
19014 || PACKET_VERSION == 20181107 \
19015 || PACKET_VERSION == 20181024 \
19016 || PACKET_VERSION == 20180919 \
19017 || PACKET_VERSION == 20180831 \
19018 || PACKET_VERSION == 20180822 \
19019 || PACKET_VERSION >= 20180808 \
19020 || PACKET_VERSION >= 20180718 \
19021 || PACKET_VERSION >= 20180704 \
19022 || PACKET_VERSION >= 20180621 \
19023 || PACKET_VERSION >= 20180620 \
19024 || PACKET_VERSION >= 20180530 \
19025 || PACKET_VERSION >= 20180523 \
19026 || PACKET_VERSION >= 20180516 \
19027 || PACKET_VERSION >= 20180509 \
19028 || PACKET_VERSION >= 20180502 \
19029 || PACKET_VERSION >= 20180425 \
19030 || PACKET_VERSION >= 20180404 \
19031 || PACKET_VERSION >= 20180328 \
19032 || PACKET_VERSION >= 20180321)
19033ID_CZ_REQNAME = 0x0368
19034#elif CLIENT_TYPE == 'R' && \
19035 PACKET_VERSION >= 20080000
19036ID_CZ_REQNAME = 0x0094
19037#elif CLIENT_TYPE == 'R' && \
19038 PACKET_VERSION >= 20120712
19039ID_CZ_REQNAME = 0x0877
19040#elif CLIENT_TYPE == 'R' && \
19041 PACKET_VERSION >= 20120926
19042ID_CZ_REQNAME = 0x0838
19043#elif CLIENT_TYPE == 'R' && \
19044 PACKET_VERSION >= 20121011
19045ID_CZ_REQNAME = 0x0817
19046#elif CLIENT_TYPE == 'R' && \
19047 PACKET_VERSION >= 20130116
19048ID_CZ_REQNAME = 0x0939
19049#elif CLIENT_TYPE == 'R' && ( \
19050 PACKET_VERSION >= 20210000 \
19051 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
19052 || PACKET_VERSION >= 20151029 \
19053 || PACKET_VERSION >= 20151022 \
19054 || PACKET_VERSION >= 20150812 \
19055 || PACKET_VERSION >= 20150618 \
19056 || PACKET_VERSION >= 20141016)
19057ID_CZ_REQNAME = 0x096a
19058#elif CLIENT_TYPE == 'R' && \
19059 PACKET_VERSION >= 20150226
19060ID_CZ_REQNAME = 0x0436
19061#elif CLIENT_TYPE == 'R' && \
19062 PACKET_VERSION >= 20160630
19063ID_CZ_REQNAME = 0x088e
19064#elif CLIENT_TYPE == 'R' && \
19065 PACKET_VERSION >= 20161103
19066ID_CZ_REQNAME = 0x092f
19067#elif CLIENT_TYPE == 'R' && ( \
19068 PACKET_VERSION == 20190821 \
19069 || PACKET_VERSION == 20190807 \
19070 || PACKET_VERSION == 20190802 \
19071 || PACKET_VERSION == 20190731 \
19072 || PACKET_VERSION == 20190724 \
19073 || PACKET_VERSION == 20190717 \
19074 || PACKET_VERSION == 20190703 \
19075 || PACKET_VERSION == 20190626 \
19076 || PACKET_VERSION == 20190605 \
19077 || PACKET_VERSION == 20190530 \
19078 || PACKET_VERSION == 20190522 \
19079 || PACKET_VERSION == 20190508 \
19080 || PACKET_VERSION == 20190418 \
19081 || PACKET_VERSION == 20190417 \
19082 || PACKET_VERSION == 20190327 \
19083 || PACKET_VERSION == 20190322 \
19084 || PACKET_VERSION == 20190320 \
19085 || PACKET_VERSION == 20190306 \
19086 || PACKET_VERSION == 20190228 \
19087 || PACKET_VERSION == 20190123 \
19088 || PACKET_VERSION == 20190116 \
19089 || PACKET_VERSION == 20181226 \
19090 || PACKET_VERSION == 20181219 \
19091 || PACKET_VERSION == 20181212 \
19092 || PACKET_VERSION == 20181205 \
19093 || PACKET_VERSION == 20181128 \
19094 || PACKET_VERSION == 20181121 \
19095 || PACKET_VERSION == 20181114 \
19096 || PACKET_VERSION == 20181107 \
19097 || PACKET_VERSION == 20180822 \
19098 || PACKET_VERSION >= 20180808 \
19099 || PACKET_VERSION >= 20180718 \
19100 || PACKET_VERSION >= 20180711 \
19101 || PACKET_VERSION >= 20180621 \
19102 || PACKET_VERSION >= 20180620 \
19103 || PACKET_VERSION >= 20180612 \
19104 || PACKET_VERSION >= 20180530 \
19105 || PACKET_VERSION >= 20180523 \
19106 || PACKET_VERSION >= 20180516 \
19107 || PACKET_VERSION >= 20180502 \
19108 || PACKET_VERSION >= 20180425 \
19109 || PACKET_VERSION >= 20180404 \
19110 || PACKET_VERSION >= 20180328)
19111ID_CZ_REQNAME = 0x0368
19112#elif CLIENT_TYPE == 'S' && \
19113 PACKET_VERSION >= 20030000
19114ID_CZ_REQNAME = 0x0094
19115#elif CLIENT_TYPE == 'Z' && \
19116 PACKET_VERSION >= 20170000
19117ID_CZ_REQNAME = 0x0094
19118#elif CLIENT_TYPE == 'Z' && ( \
19119 PACKET_VERSION == 20190814 \
19120 || PACKET_VERSION == 20190724 \
19121 || PACKET_VERSION == 20190717 \
19122 || PACKET_VERSION == 20190710 \
19123 || PACKET_VERSION == 20190709 \
19124 || PACKET_VERSION == 20190605 \
19125 || PACKET_VERSION == 20190530 \
19126 || PACKET_VERSION == 20190515 \
19127 || PACKET_VERSION == 20190508 \
19128 || PACKET_VERSION == 20190502 \
19129 || PACKET_VERSION == 20190424 \
19130 || PACKET_VERSION == 20190410 \
19131 || PACKET_VERSION == 20190403 \
19132 || PACKET_VERSION == 20190313 \
19133 || PACKET_VERSION == 20190227 \
19134 || PACKET_VERSION == 20190213 \
19135 || PACKET_VERSION == 20190117 \
19136 || PACKET_VERSION == 20181226 \
19137 || PACKET_VERSION == 20181219 \
19138 || PACKET_VERSION == 20181212 \
19139 || PACKET_VERSION == 20181128 \
19140 || PACKET_VERSION == 20181120 \
19141 || PACKET_VERSION == 20180928 \
19142 || PACKET_VERSION == 20180912 \
19143 || PACKET_VERSION == 20180829 \
19144 || PACKET_VERSION >= 20180808 \
19145 || PACKET_VERSION >= 20180801 \
19146 || PACKET_VERSION >= 20180711 \
19147 || PACKET_VERSION >= 20180703 \
19148 || PACKET_VERSION >= 20180627 \
19149 || PACKET_VERSION >= 20180509 \
19150 || PACKET_VERSION >= 20180411 \
19151 || PACKET_VERSION >= 20180321 \
19152 || PACKET_VERSION >= 20171113 \
19153 || PACKET_VERSION >= 20171031 \
19154 || PACKET_VERSION >= 20171030 \
19155 || PACKET_VERSION >= 20171027 \
19156 || PACKET_VERSION >= 20171025 \
19157 || PACKET_VERSION >= 20171024 \
19158 || PACKET_VERSION >= 20171023 \
19159 || PACKET_VERSION >= 20171019)
19160ID_CZ_REQNAME = 0x0368
19161#elif CLIENT_TYPE == 'Z' && ( \
19162 PACKET_VERSION >= 20220000 \
19163 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
19164 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
19165 || PACKET_VERSION >= 20180309 \
19166 || PACKET_VERSION >= 20180307 \
19167 || PACKET_VERSION >= 20171128 \
19168 || PACKET_VERSION >= 20171122 \
19169 || PACKET_VERSION >= 20171117 \
19170 || PACKET_VERSION >= 20171116)
19171ID_CZ_REQNAME = 0x096a
19172#elif CLIENT_TYPE == 'Z' && ( \
19173 PACKET_VERSION == 20171213 \
19174 || PACKET_VERSION == 20171212 \
19175 || PACKET_VERSION == 20171211 \
19176 || PACKET_VERSION == 20171210 \
19177 || PACKET_VERSION == 20171209 \
19178 || PACKET_VERSION == 20171208)
19179ID_CZ_REQNAME = 0x0941
19180#elif CLIENT_TYPE == 'Z' && \
19181 PACKET_VERSION >= 20171221
19182ID_CZ_REQNAME = 0x0438
19183#elif CLIENT_TYPE == 'Z' && \
19184 PACKET_VERSION >= 20171229
19185ID_CZ_REQNAME = 0x093e
19186#else
19187ID_CZ_REQNAME = 0x0000 // Disabled
19188#endif
19194class CZ_REQNAME : public Base::NetworkPacket<ZoneSession>
19195{
19196public:
19197 CZ_REQNAME(std::shared_ptr<ZoneSession> s)
19199 {}
19200 virtual ~CZ_REQNAME() {}
19201
19202 void handle(ByteBuffer &&buf);
19203 void deserialize(ByteBuffer &buf);
19204
19205/* Structure */
19206 uint32_t _guid{0};
19207};
19208
19209enum {
19210#if CLIENT_TYPE == 'A' && \
19211 PACKET_VERSION >= 20080528
19212ID_CZ_REQNAME2 = 0x0368
19213#elif CLIENT_TYPE == 'M' && ( \
19214 PACKET_VERSION >= 20220000 \
19215 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
19216 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
19217 || (PACKET_VERSION >= 20190000 && PACKET_VERSION < 20200000) \
19218 || PACKET_VERSION >= 20180315 \
19219 || PACKET_VERSION >= 20180213 \
19220 || PACKET_VERSION >= 20180117 \
19221 || PACKET_VERSION >= 20180103 \
19222 || PACKET_VERSION >= 20171227 \
19223 || PACKET_VERSION >= 20171220 \
19224 || PACKET_VERSION >= 20171129 \
19225 || PACKET_VERSION >= 20171122 \
19226 || PACKET_VERSION >= 20171115 \
19227 || PACKET_VERSION >= 20171108 \
19228 || PACKET_VERSION >= 20171101 \
19229 || PACKET_VERSION >= 20171002 \
19230 || PACKET_VERSION >= 20170913 \
19231 || PACKET_VERSION >= 20170906 \
19232 || PACKET_VERSION >= 20170830 \
19233 || PACKET_VERSION >= 20170823 \
19234 || PACKET_VERSION >= 20170809 \
19235 || PACKET_VERSION >= 20170801 \
19236 || PACKET_VERSION >= 20170726 \
19237 || PACKET_VERSION >= 20170719 \
19238 || PACKET_VERSION >= 20170621 \
19239 || PACKET_VERSION >= 20170531 \
19240 || PACKET_VERSION >= 20170524 \
19241 || PACKET_VERSION >= 20170517 \
19242 || PACKET_VERSION >= 20170502 \
19243 || PACKET_VERSION >= 20170412 \
19244 || PACKET_VERSION >= 20170322 \
19245 || PACKET_VERSION >= 20170315 \
19246 || PACKET_VERSION >= 20170308 \
19247 || PACKET_VERSION >= 20170228 \
19248 || PACKET_VERSION >= 20170222 \
19249 || PACKET_VERSION >= 20170215 \
19250 || PACKET_VERSION >= 20170201 \
19251 || PACKET_VERSION >= 20170125 \
19252 || PACKET_VERSION >= 20170104 \
19253 || PACKET_VERSION >= 20161221 \
19254 || PACKET_VERSION >= 20161130 \
19255 || PACKET_VERSION >= 20161123 \
19256 || PACKET_VERSION >= 20161116 \
19257 || PACKET_VERSION >= 20161026 \
19258 || PACKET_VERSION >= 20161019 \
19259 || PACKET_VERSION >= 20161012 \
19260 || PACKET_VERSION >= 20161005 \
19261 || PACKET_VERSION >= 20160928 \
19262 || PACKET_VERSION >= 20160921 \
19263 || PACKET_VERSION >= 20160913 \
19264 || PACKET_VERSION >= 20160907 \
19265 || PACKET_VERSION >= 20160831 \
19266 || PACKET_VERSION >= 20160824 \
19267 || PACKET_VERSION >= 20160706 \
19268 || PACKET_VERSION >= 20160629 \
19269 || PACKET_VERSION >= 20160615 \
19270 || PACKET_VERSION >= 20160511 \
19271 || PACKET_VERSION >= 20160504 \
19272 || PACKET_VERSION >= 20160414 \
19273 || PACKET_VERSION >= 20160406 \
19274 || PACKET_VERSION >= 20160309 \
19275 || PACKET_VERSION >= 20160302 \
19276 || PACKET_VERSION >= 20160224 \
19277 || PACKET_VERSION >= 20160217 \
19278 || PACKET_VERSION >= 20160120 \
19279 || PACKET_VERSION >= 20160113 \
19280 || PACKET_VERSION >= 20160106 \
19281 || PACKET_VERSION >= 20151230 \
19282 || PACKET_VERSION >= 20151209 \
19283 || PACKET_VERSION >= 20151202 \
19284 || PACKET_VERSION >= 20151125 \
19285 || PACKET_VERSION >= 20151021 \
19286 || PACKET_VERSION >= 20151014 \
19287 || PACKET_VERSION >= 20151001 \
19288 || PACKET_VERSION >= 20150916 \
19289 || PACKET_VERSION >= 20150909 \
19290 || PACKET_VERSION >= 20150902 \
19291 || PACKET_VERSION >= 20150826 \
19292 || PACKET_VERSION >= 20150805 \
19293 || PACKET_VERSION >= 20150729 \
19294 || PACKET_VERSION >= 20150722 \
19295 || PACKET_VERSION >= 20150715 \
19296 || PACKET_VERSION >= 20150708 \
19297 || PACKET_VERSION >= 20150701 \
19298 || PACKET_VERSION >= 20150617 \
19299 || PACKET_VERSION >= 20150603 \
19300 || PACKET_VERSION >= 20150527 \
19301 || PACKET_VERSION >= 20150520 \
19302 || PACKET_VERSION >= 20150415 \
19303 || PACKET_VERSION >= 20150311 \
19304 || PACKET_VERSION >= 20150217 \
19305 || PACKET_VERSION >= 20150211 \
19306 || PACKET_VERSION >= 20150204 \
19307 || PACKET_VERSION >= 20150128 \
19308 || PACKET_VERSION >= 20150107 \
19309 || PACKET_VERSION >= 20141231 \
19310 || PACKET_VERSION >= 20141217 \
19311 || PACKET_VERSION >= 20141210 \
19312 || PACKET_VERSION >= 20141203 \
19313 || PACKET_VERSION >= 20141126 \
19314 || PACKET_VERSION >= 20141105 \
19315 || PACKET_VERSION >= 20141001 \
19316 || PACKET_VERSION >= 20140917 \
19317 || PACKET_VERSION >= 20140827 \
19318 || PACKET_VERSION >= 20140820 \
19319 || PACKET_VERSION >= 20140806 \
19320 || PACKET_VERSION >= 20140730 \
19321 || PACKET_VERSION >= 20140723 \
19322 || PACKET_VERSION >= 20140709 \
19323 || PACKET_VERSION >= 20140702 \
19324 || PACKET_VERSION >= 20140611 \
19325 || PACKET_VERSION >= 20140605 \
19326 || PACKET_VERSION >= 20140528 \
19327 || PACKET_VERSION >= 20140521 \
19328 || PACKET_VERSION >= 20140514 \
19329 || PACKET_VERSION >= 20140508 \
19330 || PACKET_VERSION >= 20140423 \
19331 || PACKET_VERSION >= 20140416 \
19332 || PACKET_VERSION >= 20140312 \
19333 || PACKET_VERSION >= 20140226 \
19334 || PACKET_VERSION >= 20140212 \
19335 || PACKET_VERSION >= 20140129 \
19336 || PACKET_VERSION >= 20140122 \
19337 || PACKET_VERSION >= 20140108 \
19338 || PACKET_VERSION >= 20131230 \
19339 || PACKET_VERSION >= 20131211 \
19340 || PACKET_VERSION >= 20131204 \
19341 || PACKET_VERSION >= 20131127 \
19342 || PACKET_VERSION >= 20131120 \
19343 || PACKET_VERSION >= 20131106 \
19344 || PACKET_VERSION >= 20131030 \
19345 || PACKET_VERSION >= 20131008 \
19346 || PACKET_VERSION >= 20130925 \
19347 || PACKET_VERSION >= 20130917 \
19348 || PACKET_VERSION >= 20130904 \
19349 || PACKET_VERSION >= 20130821 \
19350 || PACKET_VERSION >= 20130814 \
19351 || PACKET_VERSION >= 20130807 \
19352 || PACKET_VERSION >= 20130717 \
19353 || PACKET_VERSION >= 20130626 \
19354 || PACKET_VERSION >= 20130618 \
19355 || PACKET_VERSION >= 20130605 \
19356 || PACKET_VERSION >= 20130529 \
19357 || PACKET_VERSION >= 20130417 \
19358 || PACKET_VERSION >= 20130410 \
19359 || PACKET_VERSION >= 20130403 \
19360 || PACKET_VERSION >= 20130320 \
19361 || PACKET_VERSION >= 20130313 \
19362 || PACKET_VERSION >= 20130306 \
19363 || PACKET_VERSION >= 20130227 \
19364 || PACKET_VERSION >= 20130206 \
19365 || PACKET_VERSION >= 20130130 \
19366 || PACKET_VERSION >= 20130121 \
19367 || PACKET_VERSION >= 20130115 \
19368 || PACKET_VERSION >= 20130109 \
19369 || PACKET_VERSION >= 20130103 \
19370 || PACKET_VERSION >= 20121227 \
19371 || PACKET_VERSION >= 20121218 \
19372 || PACKET_VERSION >= 20121212 \
19373 || PACKET_VERSION >= 20121107 \
19374 || PACKET_VERSION >= 20121031 \
19375 || PACKET_VERSION >= 20121024 \
19376 || PACKET_VERSION >= 20121017 \
19377 || PACKET_VERSION >= 20120925 \
19378 || PACKET_VERSION >= 20120919 \
19379 || PACKET_VERSION >= 20120905 \
19380 || PACKET_VERSION >= 20120830 \
19381 || PACKET_VERSION >= 20120814 \
19382 || PACKET_VERSION >= 20120808 \
19383 || PACKET_VERSION >= 20120724 \
19384 || PACKET_VERSION >= 20120716 \
19385 || PACKET_VERSION >= 20120626 \
19386 || PACKET_VERSION >= 20120612 \
19387 || PACKET_VERSION >= 20120604 \
19388 || PACKET_VERSION >= 20120529 \
19389 || PACKET_VERSION >= 20120515 \
19390 || PACKET_VERSION >= 20120417 \
19391 || PACKET_VERSION >= 20120328 \
19392 || PACKET_VERSION >= 20120307 \
19393 || PACKET_VERSION >= 20120228 \
19394 || PACKET_VERSION >= 20120221 \
19395 || PACKET_VERSION >= 20120214 \
19396 || PACKET_VERSION >= 20120207 \
19397 || PACKET_VERSION >= 20120131 \
19398 || PACKET_VERSION >= 20120120 \
19399 || PACKET_VERSION >= 20120117 \
19400 || PACKET_VERSION >= 20120103 \
19401 || PACKET_VERSION >= 20111227 \
19402 || PACKET_VERSION >= 20111220 \
19403 || PACKET_VERSION >= 20111122 \
19404 || PACKET_VERSION >= 20111108 \
19405 || PACKET_VERSION >= 20111101 \
19406 || PACKET_VERSION >= 20111025 \
19407 || PACKET_VERSION >= 20111010 \
19408 || PACKET_VERSION >= 20110906 \
19409 || PACKET_VERSION >= 20110831 \
19410 || PACKET_VERSION >= 20110809 \
19411 || PACKET_VERSION >= 20110802 \
19412 || PACKET_VERSION >= 20110726 \
19413 || PACKET_VERSION >= 20110718 \
19414 || PACKET_VERSION >= 20110711 \
19415 || PACKET_VERSION >= 20110627 \
19416 || PACKET_VERSION >= 20110620 \
19417 || PACKET_VERSION >= 20110523 \
19418 || PACKET_VERSION >= 20110426 \
19419 || PACKET_VERSION >= 20110419 \
19420 || PACKET_VERSION >= 20110412 \
19421 || PACKET_VERSION >= 20110405 \
19422 || PACKET_VERSION >= 20110329 \
19423 || PACKET_VERSION >= 20110322 \
19424 || PACKET_VERSION >= 20110315 \
19425 || PACKET_VERSION >= 20110308 \
19426 || PACKET_VERSION >= 20110228 \
19427 || PACKET_VERSION >= 20110208 \
19428 || PACKET_VERSION >= 20110131 \
19429 || PACKET_VERSION >= 20110125 \
19430 || PACKET_VERSION >= 20110118 \
19431 || PACKET_VERSION >= 20110104 \
19432 || PACKET_VERSION >= 20101228 \
19433 || PACKET_VERSION >= 20101221 \
19434 || PACKET_VERSION >= 20101214 \
19435 || PACKET_VERSION >= 20101207 \
19436 || PACKET_VERSION >= 20101130 \
19437 || PACKET_VERSION >= 20101123 \
19438 || PACKET_VERSION >= 20100105 \
19439 || PACKET_VERSION >= 20090204 \
19440 || PACKET_VERSION >= 20090129 \
19441 || PACKET_VERSION >= 20090120 \
19442 || PACKET_VERSION >= 20090114 \
19443 || PACKET_VERSION >= 20090107 \
19444 || PACKET_VERSION >= 20081217 \
19445 || PACKET_VERSION >= 20081126 \
19446 || PACKET_VERSION >= 20081119 \
19447 || PACKET_VERSION >= 20081105 \
19448 || PACKET_VERSION >= 20081029 \
19449 || PACKET_VERSION >= 20081022 \
19450 || PACKET_VERSION >= 20081008 \
19451 || PACKET_VERSION >= 20081001 \
19452 || PACKET_VERSION >= 20080924 \
19453 || PACKET_VERSION >= 20080917 \
19454 || PACKET_VERSION >= 20080910 \
19455 || PACKET_VERSION >= 20080903 \
19456 || PACKET_VERSION >= 20080827 \
19457 || PACKET_VERSION >= 20080820 \
19458 || PACKET_VERSION >= 20080806 \
19459 || PACKET_VERSION >= 20080730 \
19460 || PACKET_VERSION >= 20080722 \
19461 || PACKET_VERSION >= 20080715 \
19462 || PACKET_VERSION >= 20080528)
19463ID_CZ_REQNAME2 = 0x0368
19464#elif CLIENT_TYPE == 'R' && ( \
19465 PACKET_VERSION >= 20210000 \
19466 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
19467 || (PACKET_VERSION >= 20190000 && PACKET_VERSION < 20200000) \
19468 || PACKET_VERSION >= 20180321 \
19469 || PACKET_VERSION >= 20180213 \
19470 || PACKET_VERSION >= 20180117 \
19471 || PACKET_VERSION >= 20180103 \
19472 || PACKET_VERSION >= 20171227 \
19473 || PACKET_VERSION >= 20171220 \
19474 || PACKET_VERSION >= 20171129 \
19475 || PACKET_VERSION >= 20171122 \
19476 || PACKET_VERSION >= 20171115 \
19477 || PACKET_VERSION >= 20171108 \
19478 || PACKET_VERSION >= 20171101 \
19479 || PACKET_VERSION >= 20171002 \
19480 || PACKET_VERSION >= 20170913 \
19481 || PACKET_VERSION >= 20170906 \
19482 || PACKET_VERSION >= 20170830 \
19483 || PACKET_VERSION >= 20170823 \
19484 || PACKET_VERSION >= 20170809 \
19485 || PACKET_VERSION >= 20170801 \
19486 || PACKET_VERSION >= 20170726 \
19487 || PACKET_VERSION >= 20170719 \
19488 || PACKET_VERSION >= 20170621 \
19489 || PACKET_VERSION >= 20170531 \
19490 || PACKET_VERSION >= 20170524 \
19491 || PACKET_VERSION >= 20170517 \
19492 || PACKET_VERSION >= 20170502 \
19493 || PACKET_VERSION >= 20170412 \
19494 || PACKET_VERSION >= 20170322 \
19495 || PACKET_VERSION >= 20170315 \
19496 || PACKET_VERSION >= 20170308 \
19497 || PACKET_VERSION >= 20170228 \
19498 || PACKET_VERSION >= 20170222 \
19499 || PACKET_VERSION >= 20170215 \
19500 || PACKET_VERSION >= 20170201 \
19501 || PACKET_VERSION >= 20170125 \
19502 || PACKET_VERSION >= 20170104 \
19503 || PACKET_VERSION >= 20161221 \
19504 || PACKET_VERSION >= 20161130 \
19505 || PACKET_VERSION >= 20161123 \
19506 || PACKET_VERSION >= 20161116 \
19507 || PACKET_VERSION >= 20161026 \
19508 || PACKET_VERSION >= 20161019 \
19509 || PACKET_VERSION >= 20161012 \
19510 || PACKET_VERSION >= 20161005 \
19511 || PACKET_VERSION >= 20160928 \
19512 || PACKET_VERSION >= 20160921 \
19513 || PACKET_VERSION >= 20160913 \
19514 || PACKET_VERSION >= 20160907 \
19515 || PACKET_VERSION >= 20160831 \
19516 || PACKET_VERSION >= 20160824 \
19517 || PACKET_VERSION >= 20160706 \
19518 || PACKET_VERSION >= 20160629 \
19519 || PACKET_VERSION >= 20160615 \
19520 || PACKET_VERSION >= 20160511 \
19521 || PACKET_VERSION >= 20160504 \
19522 || PACKET_VERSION >= 20160414 \
19523 || PACKET_VERSION >= 20160406 \
19524 || PACKET_VERSION >= 20160309 \
19525 || PACKET_VERSION >= 20160302 \
19526 || PACKET_VERSION >= 20160224 \
19527 || PACKET_VERSION >= 20160217 \
19528 || PACKET_VERSION >= 20160120 \
19529 || PACKET_VERSION >= 20160113 \
19530 || PACKET_VERSION >= 20160106 \
19531 || PACKET_VERSION >= 20151230 \
19532 || PACKET_VERSION >= 20151209 \
19533 || PACKET_VERSION >= 20151202 \
19534 || PACKET_VERSION >= 20151125 \
19535 || PACKET_VERSION >= 20151021 \
19536 || PACKET_VERSION >= 20151014 \
19537 || PACKET_VERSION >= 20151001 \
19538 || PACKET_VERSION >= 20150916 \
19539 || PACKET_VERSION >= 20150909 \
19540 || PACKET_VERSION >= 20150902 \
19541 || PACKET_VERSION >= 20150826 \
19542 || PACKET_VERSION >= 20150805 \
19543 || PACKET_VERSION >= 20150729 \
19544 || PACKET_VERSION >= 20150722 \
19545 || PACKET_VERSION >= 20150715 \
19546 || PACKET_VERSION >= 20150708 \
19547 || PACKET_VERSION >= 20150701 \
19548 || PACKET_VERSION >= 20150617 \
19549 || PACKET_VERSION >= 20150603 \
19550 || PACKET_VERSION >= 20150527 \
19551 || PACKET_VERSION >= 20150520 \
19552 || PACKET_VERSION >= 20150415 \
19553 || PACKET_VERSION >= 20150311 \
19554 || PACKET_VERSION >= 20150217 \
19555 || PACKET_VERSION >= 20150211 \
19556 || PACKET_VERSION >= 20150204 \
19557 || PACKET_VERSION >= 20150128 \
19558 || PACKET_VERSION >= 20150107 \
19559 || PACKET_VERSION >= 20141231 \
19560 || PACKET_VERSION >= 20141217 \
19561 || PACKET_VERSION >= 20141210 \
19562 || PACKET_VERSION >= 20141203 \
19563 || PACKET_VERSION >= 20141126 \
19564 || PACKET_VERSION >= 20141105 \
19565 || PACKET_VERSION >= 20141001 \
19566 || PACKET_VERSION >= 20140917 \
19567 || PACKET_VERSION >= 20140827 \
19568 || PACKET_VERSION >= 20140820 \
19569 || PACKET_VERSION >= 20140806 \
19570 || PACKET_VERSION >= 20140730 \
19571 || PACKET_VERSION >= 20140723 \
19572 || PACKET_VERSION >= 20140709 \
19573 || PACKET_VERSION >= 20140702 \
19574 || PACKET_VERSION >= 20140611 \
19575 || PACKET_VERSION >= 20140605 \
19576 || PACKET_VERSION >= 20140528 \
19577 || PACKET_VERSION >= 20140521 \
19578 || PACKET_VERSION >= 20140514 \
19579 || PACKET_VERSION >= 20140508 \
19580 || PACKET_VERSION >= 20140423 \
19581 || PACKET_VERSION >= 20140416 \
19582 || PACKET_VERSION >= 20140312 \
19583 || PACKET_VERSION >= 20140226 \
19584 || PACKET_VERSION >= 20140212 \
19585 || PACKET_VERSION >= 20140129 \
19586 || PACKET_VERSION >= 20140122 \
19587 || PACKET_VERSION >= 20140108 \
19588 || PACKET_VERSION >= 20131230 \
19589 || PACKET_VERSION >= 20131211 \
19590 || PACKET_VERSION >= 20131204 \
19591 || PACKET_VERSION >= 20131127 \
19592 || PACKET_VERSION >= 20131120 \
19593 || PACKET_VERSION >= 20131106 \
19594 || PACKET_VERSION >= 20131030 \
19595 || PACKET_VERSION >= 20131008 \
19596 || PACKET_VERSION >= 20130925 \
19597 || PACKET_VERSION >= 20130917 \
19598 || PACKET_VERSION >= 20130904 \
19599 || PACKET_VERSION >= 20130821 \
19600 || PACKET_VERSION >= 20130814 \
19601 || PACKET_VERSION >= 20130807 \
19602 || PACKET_VERSION >= 20130717 \
19603 || PACKET_VERSION >= 20130626 \
19604 || PACKET_VERSION >= 20130618 \
19605 || PACKET_VERSION >= 20130605 \
19606 || PACKET_VERSION >= 20130529 \
19607 || PACKET_VERSION >= 20130417 \
19608 || PACKET_VERSION >= 20130410 \
19609 || PACKET_VERSION >= 20130403 \
19610 || PACKET_VERSION >= 20130320 \
19611 || PACKET_VERSION >= 20130313 \
19612 || PACKET_VERSION >= 20130306 \
19613 || PACKET_VERSION >= 20130227 \
19614 || PACKET_VERSION >= 20130206 \
19615 || PACKET_VERSION >= 20130130 \
19616 || PACKET_VERSION >= 20130121 \
19617 || PACKET_VERSION >= 20130115 \
19618 || PACKET_VERSION >= 20130109 \
19619 || PACKET_VERSION >= 20130103 \
19620 || PACKET_VERSION >= 20121227 \
19621 || PACKET_VERSION >= 20121218 \
19622 || PACKET_VERSION >= 20121212 \
19623 || PACKET_VERSION >= 20121107 \
19624 || PACKET_VERSION >= 20121031 \
19625 || PACKET_VERSION >= 20121024 \
19626 || PACKET_VERSION >= 20121017 \
19627 || PACKET_VERSION >= 20120925 \
19628 || PACKET_VERSION >= 20120919 \
19629 || PACKET_VERSION >= 20120905 \
19630 || PACKET_VERSION >= 20120830 \
19631 || PACKET_VERSION >= 20120814 \
19632 || PACKET_VERSION >= 20120808 \
19633 || PACKET_VERSION >= 20120724 \
19634 || PACKET_VERSION >= 20120716 \
19635 || PACKET_VERSION >= 20120626 \
19636 || PACKET_VERSION >= 20120612 \
19637 || PACKET_VERSION >= 20120601 \
19638 || PACKET_VERSION >= 20120529 \
19639 || PACKET_VERSION >= 20120515 \
19640 || PACKET_VERSION >= 20120417 \
19641 || PACKET_VERSION >= 20120328 \
19642 || PACKET_VERSION >= 20120307 \
19643 || PACKET_VERSION >= 20120228 \
19644 || PACKET_VERSION >= 20120221 \
19645 || PACKET_VERSION >= 20120214 \
19646 || PACKET_VERSION >= 20120207 \
19647 || PACKET_VERSION >= 20120131 \
19648 || PACKET_VERSION >= 20120120 \
19649 || PACKET_VERSION >= 20120117 \
19650 || PACKET_VERSION >= 20120103 \
19651 || PACKET_VERSION >= 20111227 \
19652 || PACKET_VERSION >= 20111220 \
19653 || PACKET_VERSION >= 20111122 \
19654 || PACKET_VERSION >= 20111108 \
19655 || PACKET_VERSION >= 20111101 \
19656 || PACKET_VERSION >= 20111025 \
19657 || PACKET_VERSION >= 20111010 \
19658 || PACKET_VERSION >= 20110906 \
19659 || PACKET_VERSION >= 20110831 \
19660 || PACKET_VERSION >= 20110104 \
19661 || PACKET_VERSION >= 20101123 \
19662 || PACKET_VERSION >= 20100105 \
19663 || (PACKET_VERSION >= 20090000 && PACKET_VERSION < 20100105) \
19664 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20090000))
19665ID_CZ_REQNAME2 = 0x0368
19666#elif CLIENT_TYPE == 'S' && \
19667 PACKET_VERSION >= 20080618
19668ID_CZ_REQNAME2 = 0x0368
19669#elif CLIENT_TYPE == 'Z' && ( \
19670 PACKET_VERSION >= 20220000 \
19671 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
19672 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
19673 || (PACKET_VERSION >= 20190000 && PACKET_VERSION < 20200000) \
19674 || PACKET_VERSION >= 20180523 \
19675 || PACKET_VERSION >= 20180511 \
19676 || PACKET_VERSION >= 20180315 \
19677 || PACKET_VERSION >= 20180314 \
19678 || PACKET_VERSION >= 20180228 \
19679 || PACKET_VERSION >= 20180213 \
19680 || PACKET_VERSION >= 20180131 \
19681 || PACKET_VERSION >= 20180103 \
19682 || PACKET_VERSION >= 20171206 \
19683 || PACKET_VERSION >= 20171204 \
19684 || PACKET_VERSION >= 20171130 \
19685 || PACKET_VERSION >= 20171018)
19686ID_CZ_REQNAME2 = 0x0368
19687#else
19688ID_CZ_REQNAME2 = 0x0000 // Disabled
19689#endif
19695class CZ_REQNAME2 : public Base::NetworkPacket<ZoneSession>
19696{
19697public:
19698 CZ_REQNAME2(std::shared_ptr<ZoneSession> s)
19700 {}
19701 virtual ~CZ_REQNAME2() {}
19702
19703 void handle(ByteBuffer &&buf);
19704 void deserialize(ByteBuffer &buf);
19705
19706/* Structure */
19707 uint32_t _guid;
19708};
19709
19710enum {
19711#if CLIENT_TYPE == 'A' && \
19712 PACKET_VERSION >= 20041129
19713ID_CZ_REQNAME_BYGID = 0x0193
19714#elif CLIENT_TYPE == 'M' && \
19715 PACKET_VERSION >= 20030000
19716ID_CZ_REQNAME_BYGID = 0x0193
19717#elif CLIENT_TYPE == 'M' && \
19718 PACKET_VERSION >= 20120712
19719ID_CZ_REQNAME_BYGID = 0x0202
19720#elif CLIENT_TYPE == 'M' && \
19721 PACKET_VERSION >= 20120926
19722ID_CZ_REQNAME_BYGID = 0x0958
19723#elif CLIENT_TYPE == 'M' && ( \
19724 PACKET_VERSION == 20180131 \
19725 || PACKET_VERSION >= 20160609 \
19726 || PACKET_VERSION >= 20160526 \
19727 || PACKET_VERSION >= 20160318 \
19728 || PACKET_VERSION >= 20151029 \
19729 || PACKET_VERSION >= 20151022 \
19730 || PACKET_VERSION >= 20150812 \
19731 || PACKET_VERSION >= 20150618 \
19732 || PACKET_VERSION >= 20150226 \
19733 || PACKET_VERSION >= 20141016 \
19734 || PACKET_VERSION >= 20140814 \
19735 || PACKET_VERSION >= 20130107)
19736ID_CZ_REQNAME_BYGID = 0x0368
19737#elif CLIENT_TYPE == 'M' && \
19738 PACKET_VERSION >= 20130116
19739ID_CZ_REQNAME_BYGID = 0x087c
19740#elif CLIENT_TYPE == 'M' && ( \
19741 PACKET_VERSION == 20131108 \
19742 || PACKET_VERSION == 20131107)
19743ID_CZ_REQNAME_BYGID = 0x0891
19744#elif CLIENT_TYPE == 'M' && ( \
19745 PACKET_VERSION >= 20220000 \
19746 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
19747 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
19748 || PACKET_VERSION >= 20140613 \
19749 || PACKET_VERSION >= 20140612)
19750ID_CZ_REQNAME_BYGID = 0x094f
19751#elif CLIENT_TYPE == 'M' && ( \
19752 PACKET_VERSION == 20150130 \
19753 || PACKET_VERSION == 20150129)
19754ID_CZ_REQNAME_BYGID = 0x087d
19755#elif CLIENT_TYPE == 'M' && \
19756 PACKET_VERSION >= 20150702
19757ID_CZ_REQNAME_BYGID = 0x094e
19758#elif CLIENT_TYPE == 'M' && \
19759 PACKET_VERSION >= 20160630
19760ID_CZ_REQNAME_BYGID = 0x0863
19761#elif CLIENT_TYPE == 'M' && \
19762 PACKET_VERSION >= 20161103
19763ID_CZ_REQNAME_BYGID = 0x0925
19764#elif CLIENT_TYPE == 'M' && \
19765 PACKET_VERSION >= 20180309
19766ID_CZ_REQNAME_BYGID = 0x0957
19767#elif CLIENT_TYPE == 'M' && ( \
19768 PACKET_VERSION == 20190821 \
19769 || PACKET_VERSION == 20190807 \
19770 || PACKET_VERSION == 20190802 \
19771 || PACKET_VERSION == 20190731 \
19772 || PACKET_VERSION == 20190724 \
19773 || PACKET_VERSION == 20190717 \
19774 || PACKET_VERSION == 20190703 \
19775 || PACKET_VERSION == 20190605 \
19776 || PACKET_VERSION == 20190530 \
19777 || PACKET_VERSION == 20190523 \
19778 || PACKET_VERSION == 20190522 \
19779 || PACKET_VERSION == 20190508 \
19780 || PACKET_VERSION == 20190418 \
19781 || PACKET_VERSION == 20190417 \
19782 || PACKET_VERSION == 20190327 \
19783 || PACKET_VERSION == 20190322 \
19784 || PACKET_VERSION == 20190320 \
19785 || PACKET_VERSION == 20190313 \
19786 || PACKET_VERSION == 20190306 \
19787 || PACKET_VERSION == 20190228 \
19788 || PACKET_VERSION == 20190123 \
19789 || PACKET_VERSION == 20190116 \
19790 || PACKET_VERSION == 20181226 \
19791 || PACKET_VERSION == 20181219 \
19792 || PACKET_VERSION == 20181212 \
19793 || PACKET_VERSION == 20181205 \
19794 || PACKET_VERSION == 20181128 \
19795 || PACKET_VERSION == 20181114 \
19796 || PACKET_VERSION == 20181107 \
19797 || PACKET_VERSION == 20181024 \
19798 || PACKET_VERSION == 20180919 \
19799 || PACKET_VERSION == 20180831 \
19800 || PACKET_VERSION == 20180822 \
19801 || PACKET_VERSION >= 20180808 \
19802 || PACKET_VERSION >= 20180718 \
19803 || PACKET_VERSION >= 20180704 \
19804 || PACKET_VERSION >= 20180621 \
19805 || PACKET_VERSION >= 20180620 \
19806 || PACKET_VERSION >= 20180530 \
19807 || PACKET_VERSION >= 20180523 \
19808 || PACKET_VERSION >= 20180516 \
19809 || PACKET_VERSION >= 20180509 \
19810 || PACKET_VERSION >= 20180502 \
19811 || PACKET_VERSION >= 20180425 \
19812 || PACKET_VERSION >= 20180404 \
19813 || PACKET_VERSION >= 20180328 \
19814 || PACKET_VERSION >= 20180321)
19815ID_CZ_REQNAME_BYGID = 0x0369
19816#elif CLIENT_TYPE == 'R' && \
19817 PACKET_VERSION >= 20080000
19818ID_CZ_REQNAME_BYGID = 0x0193
19819#elif CLIENT_TYPE == 'R' && \
19820 PACKET_VERSION >= 20120712
19821ID_CZ_REQNAME_BYGID = 0x0202
19822#elif CLIENT_TYPE == 'R' && \
19823 PACKET_VERSION >= 20120926
19824ID_CZ_REQNAME_BYGID = 0x0958
19825#elif CLIENT_TYPE == 'R' && \
19826 PACKET_VERSION >= 20121011
19827ID_CZ_REQNAME_BYGID = 0x08a6
19828#elif CLIENT_TYPE == 'R' && ( \
19829 PACKET_VERSION >= 20210000 \
19830 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
19831 || PACKET_VERSION >= 20130116)
19832ID_CZ_REQNAME_BYGID = 0x087c
19833#elif CLIENT_TYPE == 'R' && ( \
19834 PACKET_VERSION == 20151029 \
19835 || PACKET_VERSION == 20151022 \
19836 || PACKET_VERSION == 20150812 \
19837 || PACKET_VERSION == 20150618 \
19838 || PACKET_VERSION == 20150226 \
19839 || PACKET_VERSION >= 20141016)
19840ID_CZ_REQNAME_BYGID = 0x0368
19841#elif CLIENT_TYPE == 'R' && \
19842 PACKET_VERSION >= 20160630
19843ID_CZ_REQNAME_BYGID = 0x0863
19844#elif CLIENT_TYPE == 'R' && \
19845 PACKET_VERSION >= 20161103
19846ID_CZ_REQNAME_BYGID = 0x0925
19847#elif CLIENT_TYPE == 'R' && ( \
19848 PACKET_VERSION == 20190821 \
19849 || PACKET_VERSION == 20190807 \
19850 || PACKET_VERSION == 20190802 \
19851 || PACKET_VERSION == 20190731 \
19852 || PACKET_VERSION == 20190724 \
19853 || PACKET_VERSION == 20190717 \
19854 || PACKET_VERSION == 20190703 \
19855 || PACKET_VERSION == 20190626 \
19856 || PACKET_VERSION == 20190605 \
19857 || PACKET_VERSION == 20190530 \
19858 || PACKET_VERSION == 20190522 \
19859 || PACKET_VERSION == 20190508 \
19860 || PACKET_VERSION == 20190418 \
19861 || PACKET_VERSION == 20190417 \
19862 || PACKET_VERSION == 20190327 \
19863 || PACKET_VERSION == 20190322 \
19864 || PACKET_VERSION == 20190320 \
19865 || PACKET_VERSION == 20190306 \
19866 || PACKET_VERSION == 20190228 \
19867 || PACKET_VERSION == 20190123 \
19868 || PACKET_VERSION == 20190116 \
19869 || PACKET_VERSION == 20181226 \
19870 || PACKET_VERSION == 20181219 \
19871 || PACKET_VERSION == 20181212 \
19872 || PACKET_VERSION == 20181205 \
19873 || PACKET_VERSION == 20181128 \
19874 || PACKET_VERSION == 20181121 \
19875 || PACKET_VERSION == 20181114 \
19876 || PACKET_VERSION == 20181107 \
19877 || PACKET_VERSION == 20180822 \
19878 || PACKET_VERSION >= 20180808 \
19879 || PACKET_VERSION >= 20180718 \
19880 || PACKET_VERSION >= 20180711 \
19881 || PACKET_VERSION >= 20180621 \
19882 || PACKET_VERSION >= 20180620 \
19883 || PACKET_VERSION >= 20180612 \
19884 || PACKET_VERSION >= 20180530 \
19885 || PACKET_VERSION >= 20180523 \
19886 || PACKET_VERSION >= 20180516 \
19887 || PACKET_VERSION >= 20180502 \
19888 || PACKET_VERSION >= 20180425 \
19889 || PACKET_VERSION >= 20180404 \
19890 || PACKET_VERSION >= 20180328)
19891ID_CZ_REQNAME_BYGID = 0x0369
19892#elif CLIENT_TYPE == 'S' && \
19893 PACKET_VERSION >= 20030000
19894ID_CZ_REQNAME_BYGID = 0x0193
19895#elif CLIENT_TYPE == 'Z' && \
19896 PACKET_VERSION >= 20170000
19897ID_CZ_REQNAME_BYGID = 0x0193
19898#elif CLIENT_TYPE == 'Z' && ( \
19899 PACKET_VERSION == 20190814 \
19900 || PACKET_VERSION == 20190724 \
19901 || PACKET_VERSION == 20190717 \
19902 || PACKET_VERSION == 20190710 \
19903 || PACKET_VERSION == 20190709 \
19904 || PACKET_VERSION == 20190605 \
19905 || PACKET_VERSION == 20190530 \
19906 || PACKET_VERSION == 20190515 \
19907 || PACKET_VERSION == 20190508 \
19908 || PACKET_VERSION == 20190502 \
19909 || PACKET_VERSION == 20190424 \
19910 || PACKET_VERSION == 20190410 \
19911 || PACKET_VERSION == 20190403 \
19912 || PACKET_VERSION == 20190313 \
19913 || PACKET_VERSION == 20190227 \
19914 || PACKET_VERSION == 20190213 \
19915 || PACKET_VERSION == 20190117 \
19916 || PACKET_VERSION == 20181226 \
19917 || PACKET_VERSION == 20181219 \
19918 || PACKET_VERSION == 20181212 \
19919 || PACKET_VERSION == 20181128 \
19920 || PACKET_VERSION == 20181120 \
19921 || PACKET_VERSION == 20180928 \
19922 || PACKET_VERSION == 20180912 \
19923 || PACKET_VERSION == 20180829 \
19924 || PACKET_VERSION >= 20180808 \
19925 || PACKET_VERSION >= 20180801 \
19926 || PACKET_VERSION >= 20180711 \
19927 || PACKET_VERSION >= 20180703 \
19928 || PACKET_VERSION >= 20180627 \
19929 || PACKET_VERSION >= 20180509 \
19930 || PACKET_VERSION >= 20180411 \
19931 || PACKET_VERSION >= 20180321 \
19932 || PACKET_VERSION >= 20171113 \
19933 || PACKET_VERSION >= 20171031 \
19934 || PACKET_VERSION >= 20171030 \
19935 || PACKET_VERSION >= 20171027 \
19936 || PACKET_VERSION >= 20171025 \
19937 || PACKET_VERSION >= 20171024 \
19938 || PACKET_VERSION >= 20171023 \
19939 || PACKET_VERSION >= 20171019)
19940ID_CZ_REQNAME_BYGID = 0x0369
19941#elif CLIENT_TYPE == 'Z' && ( \
19942 PACKET_VERSION == 20180309 \
19943 || PACKET_VERSION == 20180307 \
19944 || PACKET_VERSION == 20171128 \
19945 || PACKET_VERSION == 20171122 \
19946 || PACKET_VERSION == 20171117 \
19947 || PACKET_VERSION == 20171116)
19948ID_CZ_REQNAME_BYGID = 0x0368
19949#elif CLIENT_TYPE == 'Z' && ( \
19950 PACKET_VERSION >= 20220000 \
19951 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
19952 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
19953 || PACKET_VERSION >= 20171213 \
19954 || PACKET_VERSION >= 20171212 \
19955 || PACKET_VERSION >= 20171211 \
19956 || PACKET_VERSION >= 20171210 \
19957 || PACKET_VERSION >= 20171209 \
19958 || PACKET_VERSION >= 20171208)
19959ID_CZ_REQNAME_BYGID = 0x0885
19960#elif CLIENT_TYPE == 'Z' && \
19961 PACKET_VERSION >= 20171221
19962ID_CZ_REQNAME_BYGID = 0x0867
19963#elif CLIENT_TYPE == 'Z' && \
19964 PACKET_VERSION >= 20171229
19965ID_CZ_REQNAME_BYGID = 0x0871
19966#else
19967ID_CZ_REQNAME_BYGID = 0x0000 // Disabled
19968#endif
19974class CZ_REQNAME_BYGID : public Base::NetworkPacket<ZoneSession>
19975{
19976public:
19977 CZ_REQNAME_BYGID(std::shared_ptr<ZoneSession> s)
19979 {}
19981
19982 void handle(ByteBuffer &&buf);
19983 void deserialize(ByteBuffer &buf);
19984
19985/* Structure */
19986 int _char_id{ 0 };
19987};
19988
19989enum {
19990#if CLIENT_TYPE == 'A' && \
19991 PACKET_VERSION >= 20080701
19992ID_CZ_REQNAME_BYGID2 = 0x0369
19993#elif CLIENT_TYPE == 'M' && ( \
19994 PACKET_VERSION >= 20220000 \
19995 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
19996 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
19997 || (PACKET_VERSION >= 20190000 && PACKET_VERSION < 20200000) \
19998 || PACKET_VERSION >= 20180315 \
19999 || PACKET_VERSION >= 20180314 \
20000 || PACKET_VERSION >= 20180221 \
20001 || PACKET_VERSION >= 20180213 \
20002 || PACKET_VERSION >= 20180117 \
20003 || PACKET_VERSION >= 20180103 \
20004 || PACKET_VERSION >= 20171227 \
20005 || PACKET_VERSION >= 20171220 \
20006 || PACKET_VERSION >= 20171129 \
20007 || PACKET_VERSION >= 20171122 \
20008 || PACKET_VERSION >= 20171115 \
20009 || PACKET_VERSION >= 20171108 \
20010 || PACKET_VERSION >= 20171101 \
20011 || PACKET_VERSION >= 20171002 \
20012 || PACKET_VERSION >= 20170927 \
20013 || PACKET_VERSION >= 20170920 \
20014 || PACKET_VERSION >= 20170913 \
20015 || PACKET_VERSION >= 20170906 \
20016 || PACKET_VERSION >= 20170830 \
20017 || PACKET_VERSION >= 20170823 \
20018 || PACKET_VERSION >= 20170809 \
20019 || PACKET_VERSION >= 20170801 \
20020 || PACKET_VERSION >= 20170726 \
20021 || PACKET_VERSION >= 20170719 \
20022 || PACKET_VERSION >= 20170621 \
20023 || PACKET_VERSION >= 20170607 \
20024 || PACKET_VERSION >= 20170531 \
20025 || PACKET_VERSION >= 20170517 \
20026 || PACKET_VERSION >= 20170426 \
20027 || PACKET_VERSION >= 20170412 \
20028 || PACKET_VERSION >= 20170405 \
20029 || PACKET_VERSION >= 20170322 \
20030 || PACKET_VERSION >= 20170315 \
20031 || PACKET_VERSION >= 20170308 \
20032 || PACKET_VERSION >= 20170228 \
20033 || PACKET_VERSION >= 20170222 \
20034 || PACKET_VERSION >= 20170215 \
20035 || PACKET_VERSION >= 20170201 \
20036 || PACKET_VERSION >= 20170125 \
20037 || PACKET_VERSION >= 20170104 \
20038 || PACKET_VERSION >= 20161221 \
20039 || PACKET_VERSION >= 20161214 \
20040 || PACKET_VERSION >= 20161207 \
20041 || PACKET_VERSION >= 20161130 \
20042 || PACKET_VERSION >= 20161123 \
20043 || PACKET_VERSION >= 20161116 \
20044 || PACKET_VERSION >= 20161026 \
20045 || PACKET_VERSION >= 20161019 \
20046 || PACKET_VERSION >= 20161012 \
20047 || PACKET_VERSION >= 20160928 \
20048 || PACKET_VERSION >= 20160921 \
20049 || PACKET_VERSION >= 20160913 \
20050 || PACKET_VERSION >= 20160907 \
20051 || PACKET_VERSION >= 20160831 \
20052 || PACKET_VERSION >= 20160824 \
20053 || PACKET_VERSION >= 20160622 \
20054 || PACKET_VERSION >= 20160615 \
20055 || PACKET_VERSION >= 20160511 \
20056 || PACKET_VERSION >= 20160504 \
20057 || PACKET_VERSION >= 20160414 \
20058 || PACKET_VERSION >= 20160406 \
20059 || PACKET_VERSION >= 20160316 \
20060 || PACKET_VERSION >= 20160302 \
20061 || PACKET_VERSION >= 20160224 \
20062 || PACKET_VERSION >= 20160217 \
20063 || PACKET_VERSION >= 20160120 \
20064 || PACKET_VERSION >= 20160113 \
20065 || PACKET_VERSION >= 20160106 \
20066 || PACKET_VERSION >= 20151230 \
20067 || PACKET_VERSION >= 20151216 \
20068 || PACKET_VERSION >= 20151209 \
20069 || PACKET_VERSION >= 20151202 \
20070 || PACKET_VERSION >= 20151125 \
20071 || PACKET_VERSION >= 20151118 \
20072 || PACKET_VERSION >= 20151111 \
20073 || PACKET_VERSION >= 20151021 \
20074 || PACKET_VERSION >= 20151014 \
20075 || PACKET_VERSION >= 20151001 \
20076 || PACKET_VERSION >= 20150916 \
20077 || PACKET_VERSION >= 20150909 \
20078 || PACKET_VERSION >= 20150826 \
20079 || PACKET_VERSION >= 20150805 \
20080 || PACKET_VERSION >= 20150715 \
20081 || PACKET_VERSION >= 20150708 \
20082 || PACKET_VERSION >= 20150701 \
20083 || PACKET_VERSION >= 20150617 \
20084 || PACKET_VERSION >= 20150603 \
20085 || PACKET_VERSION >= 20150527 \
20086 || PACKET_VERSION >= 20150520 \
20087 || PACKET_VERSION >= 20150422 \
20088 || PACKET_VERSION >= 20150311 \
20089 || PACKET_VERSION >= 20150225 \
20090 || PACKET_VERSION >= 20150217 \
20091 || PACKET_VERSION >= 20150211 \
20092 || PACKET_VERSION >= 20150204 \
20093 || PACKET_VERSION >= 20150128 \
20094 || PACKET_VERSION >= 20150107 \
20095 || PACKET_VERSION >= 20141231 \
20096 || PACKET_VERSION >= 20141217 \
20097 || PACKET_VERSION >= 20141210 \
20098 || PACKET_VERSION >= 20141203 \
20099 || PACKET_VERSION >= 20141126 \
20100 || PACKET_VERSION >= 20141105 \
20101 || PACKET_VERSION >= 20141029 \
20102 || PACKET_VERSION >= 20141001 \
20103 || PACKET_VERSION >= 20140924 \
20104 || PACKET_VERSION >= 20140917 \
20105 || PACKET_VERSION >= 20140827 \
20106 || PACKET_VERSION >= 20140820 \
20107 || PACKET_VERSION >= 20140806 \
20108 || PACKET_VERSION >= 20140709 \
20109 || PACKET_VERSION >= 20140702 \
20110 || PACKET_VERSION >= 20140611 \
20111 || PACKET_VERSION >= 20140605 \
20112 || PACKET_VERSION >= 20140528 \
20113 || PACKET_VERSION >= 20140521 \
20114 || PACKET_VERSION >= 20140514 \
20115 || PACKET_VERSION >= 20140508 \
20116 || PACKET_VERSION >= 20140430 \
20117 || PACKET_VERSION >= 20140423 \
20118 || PACKET_VERSION >= 20140416 \
20119 || PACKET_VERSION >= 20140312 \
20120 || PACKET_VERSION >= 20140226 \
20121 || PACKET_VERSION >= 20140219 \
20122 || PACKET_VERSION >= 20140212 \
20123 || PACKET_VERSION >= 20140129 \
20124 || PACKET_VERSION >= 20140122 \
20125 || PACKET_VERSION >= 20140108 \
20126 || PACKET_VERSION >= 20131230 \
20127 || PACKET_VERSION >= 20131211 \
20128 || PACKET_VERSION >= 20131204 \
20129 || PACKET_VERSION >= 20131127 \
20130 || PACKET_VERSION >= 20131113 \
20131 || PACKET_VERSION >= 20131106 \
20132 || PACKET_VERSION >= 20131030 \
20133 || PACKET_VERSION >= 20131008 \
20134 || PACKET_VERSION >= 20130925 \
20135 || PACKET_VERSION >= 20130917 \
20136 || PACKET_VERSION >= 20130904 \
20137 || PACKET_VERSION >= 20130814 \
20138 || PACKET_VERSION >= 20130807 \
20139 || PACKET_VERSION >= 20130717 \
20140 || PACKET_VERSION >= 20130626 \
20141 || PACKET_VERSION >= 20130618 \
20142 || PACKET_VERSION >= 20130605 \
20143 || PACKET_VERSION >= 20130529 \
20144 || PACKET_VERSION >= 20130522 \
20145 || PACKET_VERSION >= 20130417 \
20146 || PACKET_VERSION >= 20130410 \
20147 || PACKET_VERSION >= 20130403 \
20148 || PACKET_VERSION >= 20130320 \
20149 || PACKET_VERSION >= 20130313 \
20150 || PACKET_VERSION >= 20130227 \
20151 || PACKET_VERSION >= 20130206 \
20152 || PACKET_VERSION >= 20130130 \
20153 || PACKET_VERSION >= 20130121 \
20154 || PACKET_VERSION >= 20130109 \
20155 || PACKET_VERSION >= 20130103 \
20156 || PACKET_VERSION >= 20121227 \
20157 || PACKET_VERSION >= 20121218 \
20158 || PACKET_VERSION >= 20121212 \
20159 || PACKET_VERSION >= 20121107 \
20160 || PACKET_VERSION >= 20121031 \
20161 || PACKET_VERSION >= 20121024 \
20162 || PACKET_VERSION >= 20121017 \
20163 || PACKET_VERSION >= 20120925 \
20164 || PACKET_VERSION >= 20120919 \
20165 || PACKET_VERSION >= 20120905 \
20166 || PACKET_VERSION >= 20120830 \
20167 || PACKET_VERSION >= 20120814 \
20168 || PACKET_VERSION >= 20120808 \
20169 || PACKET_VERSION >= 20120724 \
20170 || PACKET_VERSION >= 20120716 \
20171 || PACKET_VERSION >= 20120626 \
20172 || PACKET_VERSION >= 20120612 \
20173 || PACKET_VERSION >= 20120604 \
20174 || PACKET_VERSION >= 20120529 \
20175 || PACKET_VERSION >= 20120522 \
20176 || PACKET_VERSION >= 20120515 \
20177 || PACKET_VERSION >= 20120503 \
20178 || PACKET_VERSION >= 20120424 \
20179 || PACKET_VERSION >= 20120404 \
20180 || PACKET_VERSION >= 20120328 \
20181 || PACKET_VERSION >= 20120320 \
20182 || PACKET_VERSION >= 20120314 \
20183 || PACKET_VERSION >= 20120307 \
20184 || PACKET_VERSION >= 20120228 \
20185 || PACKET_VERSION >= 20120221 \
20186 || PACKET_VERSION >= 20120214 \
20187 || PACKET_VERSION >= 20120131 \
20188 || PACKET_VERSION >= 20120117 \
20189 || PACKET_VERSION >= 20120103 \
20190 || PACKET_VERSION >= 20111227 \
20191 || PACKET_VERSION >= 20111220 \
20192 || PACKET_VERSION >= 20111207 \
20193 || PACKET_VERSION >= 20111122 \
20194 || PACKET_VERSION >= 20111114 \
20195 || PACKET_VERSION >= 20111108 \
20196 || PACKET_VERSION >= 20111101 \
20197 || PACKET_VERSION >= 20111025 \
20198 || PACKET_VERSION >= 20111010 \
20199 || PACKET_VERSION >= 20111004 \
20200 || PACKET_VERSION >= 20110928 \
20201 || PACKET_VERSION >= 20110920 \
20202 || PACKET_VERSION >= 20110906 \
20203 || PACKET_VERSION >= 20110831 \
20204 || PACKET_VERSION >= 20110823 \
20205 || PACKET_VERSION >= 20110816 \
20206 || PACKET_VERSION >= 20110809 \
20207 || PACKET_VERSION >= 20110726 \
20208 || PACKET_VERSION >= 20110718 \
20209 || PACKET_VERSION >= 20110711 \
20210 || PACKET_VERSION >= 20110705 \
20211 || PACKET_VERSION >= 20110620 \
20212 || PACKET_VERSION >= 20110607 \
20213 || PACKET_VERSION >= 20110531 \
20214 || PACKET_VERSION >= 20110517 \
20215 || PACKET_VERSION >= 20110503 \
20216 || PACKET_VERSION >= 20110426 \
20217 || PACKET_VERSION >= 20110419 \
20218 || PACKET_VERSION >= 20110412 \
20219 || PACKET_VERSION >= 20110405 \
20220 || PACKET_VERSION >= 20110329 \
20221 || PACKET_VERSION >= 20110322 \
20222 || PACKET_VERSION >= 20110308 \
20223 || PACKET_VERSION >= 20110228 \
20224 || PACKET_VERSION >= 20110208 \
20225 || PACKET_VERSION >= 20110131 \
20226 || PACKET_VERSION >= 20110125 \
20227 || PACKET_VERSION >= 20110118 \
20228 || PACKET_VERSION >= 20110104 \
20229 || PACKET_VERSION >= 20101228 \
20230 || PACKET_VERSION >= 20101207 \
20231 || PACKET_VERSION >= 20101130 \
20232 || PACKET_VERSION >= 20101123 \
20233 || PACKET_VERSION >= 20100105 \
20234 || PACKET_VERSION >= 20090318 \
20235 || PACKET_VERSION >= 20090311 \
20236 || PACKET_VERSION >= 20090225 \
20237 || PACKET_VERSION >= 20090211 \
20238 || PACKET_VERSION >= 20090204 \
20239 || PACKET_VERSION >= 20090114 \
20240 || PACKET_VERSION >= 20090107 \
20241 || PACKET_VERSION >= 20081126 \
20242 || PACKET_VERSION >= 20081119 \
20243 || PACKET_VERSION >= 20081112 \
20244 || PACKET_VERSION >= 20081029 \
20245 || PACKET_VERSION >= 20081022 \
20246 || PACKET_VERSION >= 20080924 \
20247 || PACKET_VERSION >= 20080917 \
20248 || PACKET_VERSION >= 20080910 \
20249 || PACKET_VERSION >= 20080903 \
20250 || PACKET_VERSION >= 20080827 \
20251 || PACKET_VERSION >= 20080813 \
20252 || PACKET_VERSION >= 20080806 \
20253 || PACKET_VERSION >= 20080722 \
20254 || PACKET_VERSION >= 20080715 \
20255 || PACKET_VERSION >= 20080708 \
20256 || PACKET_VERSION >= 20080701 \
20257 || PACKET_VERSION >= 20080624 \
20258 || PACKET_VERSION >= 20080528)
20259ID_CZ_REQNAME_BYGID2 = 0x0369
20260#elif CLIENT_TYPE == 'R' && ( \
20261 PACKET_VERSION >= 20210000 \
20262 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
20263 || (PACKET_VERSION >= 20190000 && PACKET_VERSION < 20200000) \
20264 || PACKET_VERSION >= 20180321 \
20265 || PACKET_VERSION >= 20180221 \
20266 || PACKET_VERSION >= 20180213 \
20267 || PACKET_VERSION >= 20180117 \
20268 || PACKET_VERSION >= 20180103 \
20269 || PACKET_VERSION >= 20171227 \
20270 || PACKET_VERSION >= 20171220 \
20271 || PACKET_VERSION >= 20171129 \
20272 || PACKET_VERSION >= 20171122 \
20273 || PACKET_VERSION >= 20171115 \
20274 || PACKET_VERSION >= 20171108 \
20275 || PACKET_VERSION >= 20171101 \
20276 || PACKET_VERSION >= 20171002 \
20277 || PACKET_VERSION >= 20170927 \
20278 || PACKET_VERSION >= 20170920 \
20279 || PACKET_VERSION >= 20170913 \
20280 || PACKET_VERSION >= 20170906 \
20281 || PACKET_VERSION >= 20170830 \
20282 || PACKET_VERSION >= 20170823 \
20283 || PACKET_VERSION >= 20170809 \
20284 || PACKET_VERSION >= 20170801 \
20285 || PACKET_VERSION >= 20170726 \
20286 || PACKET_VERSION >= 20170719 \
20287 || PACKET_VERSION >= 20170621 \
20288 || PACKET_VERSION >= 20170607 \
20289 || PACKET_VERSION >= 20170531 \
20290 || PACKET_VERSION >= 20170517 \
20291 || PACKET_VERSION >= 20170426 \
20292 || PACKET_VERSION >= 20170412 \
20293 || PACKET_VERSION >= 20170405 \
20294 || PACKET_VERSION >= 20170322 \
20295 || PACKET_VERSION >= 20170315 \
20296 || PACKET_VERSION >= 20170308 \
20297 || PACKET_VERSION >= 20170228 \
20298 || PACKET_VERSION >= 20170222 \
20299 || PACKET_VERSION >= 20170215 \
20300 || PACKET_VERSION >= 20170201 \
20301 || PACKET_VERSION >= 20170125 \
20302 || PACKET_VERSION >= 20170104 \
20303 || PACKET_VERSION >= 20161221 \
20304 || PACKET_VERSION >= 20161214 \
20305 || PACKET_VERSION >= 20161207 \
20306 || PACKET_VERSION >= 20161130 \
20307 || PACKET_VERSION >= 20161123 \
20308 || PACKET_VERSION >= 20161116 \
20309 || PACKET_VERSION >= 20161026 \
20310 || PACKET_VERSION >= 20161019 \
20311 || PACKET_VERSION >= 20161012 \
20312 || PACKET_VERSION >= 20160928 \
20313 || PACKET_VERSION >= 20160921 \
20314 || PACKET_VERSION >= 20160913 \
20315 || PACKET_VERSION >= 20160907 \
20316 || PACKET_VERSION >= 20160831 \
20317 || PACKET_VERSION >= 20160824 \
20318 || PACKET_VERSION >= 20160622 \
20319 || PACKET_VERSION >= 20160615 \
20320 || PACKET_VERSION >= 20160511 \
20321 || PACKET_VERSION >= 20160504 \
20322 || PACKET_VERSION >= 20160414 \
20323 || PACKET_VERSION >= 20160406 \
20324 || PACKET_VERSION >= 20160316 \
20325 || PACKET_VERSION >= 20160302 \
20326 || PACKET_VERSION >= 20160224 \
20327 || PACKET_VERSION >= 20160217 \
20328 || PACKET_VERSION >= 20160120 \
20329 || PACKET_VERSION >= 20160113 \
20330 || PACKET_VERSION >= 20160106 \
20331 || PACKET_VERSION >= 20151230 \
20332 || PACKET_VERSION >= 20151216 \
20333 || PACKET_VERSION >= 20151209 \
20334 || PACKET_VERSION >= 20151202 \
20335 || PACKET_VERSION >= 20151125 \
20336 || PACKET_VERSION >= 20151118 \
20337 || PACKET_VERSION >= 20151111 \
20338 || PACKET_VERSION >= 20151021 \
20339 || PACKET_VERSION >= 20151014 \
20340 || PACKET_VERSION >= 20151001 \
20341 || PACKET_VERSION >= 20150916 \
20342 || PACKET_VERSION >= 20150909 \
20343 || PACKET_VERSION >= 20150826 \
20344 || PACKET_VERSION >= 20150805 \
20345 || PACKET_VERSION >= 20150715 \
20346 || PACKET_VERSION >= 20150708 \
20347 || PACKET_VERSION >= 20150701 \
20348 || PACKET_VERSION >= 20150617 \
20349 || PACKET_VERSION >= 20150603 \
20350 || PACKET_VERSION >= 20150527 \
20351 || PACKET_VERSION >= 20150520 \
20352 || PACKET_VERSION >= 20150422 \
20353 || PACKET_VERSION >= 20150311 \
20354 || PACKET_VERSION >= 20150217 \
20355 || PACKET_VERSION >= 20150211 \
20356 || PACKET_VERSION >= 20150204 \
20357 || PACKET_VERSION >= 20150128 \
20358 || PACKET_VERSION >= 20150107 \
20359 || PACKET_VERSION >= 20141231 \
20360 || PACKET_VERSION >= 20141217 \
20361 || PACKET_VERSION >= 20141210 \
20362 || PACKET_VERSION >= 20141203 \
20363 || PACKET_VERSION >= 20141126 \
20364 || PACKET_VERSION >= 20141105 \
20365 || PACKET_VERSION >= 20141029 \
20366 || PACKET_VERSION >= 20141001 \
20367 || PACKET_VERSION >= 20140924 \
20368 || PACKET_VERSION >= 20140917 \
20369 || PACKET_VERSION >= 20140827 \
20370 || PACKET_VERSION >= 20140820 \
20371 || PACKET_VERSION >= 20140806 \
20372 || PACKET_VERSION >= 20140709 \
20373 || PACKET_VERSION >= 20140702 \
20374 || PACKET_VERSION >= 20140611 \
20375 || PACKET_VERSION >= 20140605 \
20376 || PACKET_VERSION >= 20140528 \
20377 || PACKET_VERSION >= 20140521 \
20378 || PACKET_VERSION >= 20140514 \
20379 || PACKET_VERSION >= 20140508 \
20380 || PACKET_VERSION >= 20140430 \
20381 || PACKET_VERSION >= 20140423 \
20382 || PACKET_VERSION >= 20140416 \
20383 || PACKET_VERSION >= 20140312 \
20384 || PACKET_VERSION >= 20140226 \
20385 || PACKET_VERSION >= 20140219 \
20386 || PACKET_VERSION >= 20140212 \
20387 || PACKET_VERSION >= 20140129 \
20388 || PACKET_VERSION >= 20140122 \
20389 || PACKET_VERSION >= 20140108 \
20390 || PACKET_VERSION >= 20131230 \
20391 || PACKET_VERSION >= 20131223 \
20392 || PACKET_VERSION >= 20131211 \
20393 || PACKET_VERSION >= 20131204 \
20394 || PACKET_VERSION >= 20131127 \
20395 || PACKET_VERSION >= 20131113 \
20396 || PACKET_VERSION >= 20131106 \
20397 || PACKET_VERSION >= 20131030 \
20398 || PACKET_VERSION >= 20131008 \
20399 || PACKET_VERSION >= 20130925 \
20400 || PACKET_VERSION >= 20130917 \
20401 || PACKET_VERSION >= 20130904 \
20402 || PACKET_VERSION >= 20130814 \
20403 || PACKET_VERSION >= 20130807 \
20404 || PACKET_VERSION >= 20130717 \
20405 || PACKET_VERSION >= 20130626 \
20406 || PACKET_VERSION >= 20130618 \
20407 || PACKET_VERSION >= 20130605 \
20408 || PACKET_VERSION >= 20130529 \
20409 || PACKET_VERSION >= 20130522 \
20410 || PACKET_VERSION >= 20130417 \
20411 || PACKET_VERSION >= 20130410 \
20412 || PACKET_VERSION >= 20130403 \
20413 || PACKET_VERSION >= 20130320 \
20414 || PACKET_VERSION >= 20130313 \
20415 || PACKET_VERSION >= 20130227 \
20416 || PACKET_VERSION >= 20130206 \
20417 || PACKET_VERSION >= 20130130 \
20418 || PACKET_VERSION >= 20130121 \
20419 || PACKET_VERSION >= 20130109 \
20420 || PACKET_VERSION >= 20130103 \
20421 || PACKET_VERSION >= 20121227 \
20422 || PACKET_VERSION >= 20121218 \
20423 || PACKET_VERSION >= 20121212 \
20424 || PACKET_VERSION >= 20121107 \
20425 || PACKET_VERSION >= 20121031 \
20426 || PACKET_VERSION >= 20121024 \
20427 || PACKET_VERSION >= 20121017 \
20428 || PACKET_VERSION >= 20120925 \
20429 || PACKET_VERSION >= 20120919 \
20430 || PACKET_VERSION >= 20120905 \
20431 || PACKET_VERSION >= 20120830 \
20432 || PACKET_VERSION >= 20120814 \
20433 || PACKET_VERSION >= 20120808 \
20434 || PACKET_VERSION >= 20120724 \
20435 || PACKET_VERSION >= 20120716 \
20436 || PACKET_VERSION >= 20120626 \
20437 || PACKET_VERSION >= 20120612 \
20438 || PACKET_VERSION >= 20120601 \
20439 || PACKET_VERSION >= 20120529 \
20440 || PACKET_VERSION >= 20120523 \
20441 || PACKET_VERSION >= 20120515 \
20442 || PACKET_VERSION >= 20120502 \
20443 || PACKET_VERSION >= 20120424 \
20444 || PACKET_VERSION >= 20120404 \
20445 || PACKET_VERSION >= 20120328 \
20446 || PACKET_VERSION >= 20120320 \
20447 || PACKET_VERSION >= 20120314 \
20448 || PACKET_VERSION >= 20120307 \
20449 || PACKET_VERSION >= 20120228 \
20450 || PACKET_VERSION >= 20120221 \
20451 || PACKET_VERSION >= 20120214 \
20452 || PACKET_VERSION >= 20120131 \
20453 || PACKET_VERSION >= 20120117 \
20454 || PACKET_VERSION >= 20120103 \
20455 || PACKET_VERSION >= 20111227 \
20456 || PACKET_VERSION >= 20111220 \
20457 || PACKET_VERSION >= 20111207 \
20458 || PACKET_VERSION >= 20111122 \
20459 || PACKET_VERSION >= 20111114 \
20460 || PACKET_VERSION >= 20111108 \
20461 || PACKET_VERSION >= 20111101 \
20462 || PACKET_VERSION >= 20111025 \
20463 || PACKET_VERSION >= 20111010 \
20464 || PACKET_VERSION >= 20111004 \
20465 || PACKET_VERSION >= 20110928 \
20466 || PACKET_VERSION >= 20110920 \
20467 || PACKET_VERSION >= 20110906 \
20468 || PACKET_VERSION >= 20110831 \
20469 || PACKET_VERSION >= 20110823 \
20470 || PACKET_VERSION >= 20110816 \
20471 || PACKET_VERSION >= 20110104 \
20472 || PACKET_VERSION >= 20101123 \
20473 || PACKET_VERSION >= 20100105 \
20474 || (PACKET_VERSION >= 20090000 && PACKET_VERSION < 20100105) \
20475 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20090000))
20476ID_CZ_REQNAME_BYGID2 = 0x0369
20477#elif CLIENT_TYPE == 'S' && \
20478 PACKET_VERSION >= 20080618
20479ID_CZ_REQNAME_BYGID2 = 0x0369
20480#elif CLIENT_TYPE == 'Z' && ( \
20481 PACKET_VERSION >= 20220000 \
20482 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
20483 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
20484 || (PACKET_VERSION >= 20190000 && PACKET_VERSION < 20200000) \
20485 || PACKET_VERSION >= 20180523 \
20486 || PACKET_VERSION >= 20180511 \
20487 || PACKET_VERSION >= 20180315 \
20488 || PACKET_VERSION >= 20180314 \
20489 || PACKET_VERSION >= 20180228 \
20490 || PACKET_VERSION >= 20180213 \
20491 || PACKET_VERSION >= 20180131 \
20492 || PACKET_VERSION >= 20180103 \
20493 || PACKET_VERSION >= 20171206 \
20494 || PACKET_VERSION >= 20171204 \
20495 || PACKET_VERSION >= 20171130 \
20496 || PACKET_VERSION >= 20171115 \
20497 || PACKET_VERSION >= 20171018)
20498ID_CZ_REQNAME_BYGID2 = 0x0369
20499#else
20500ID_CZ_REQNAME_BYGID2 = 0x0000 // Disabled
20501#endif
20507class CZ_REQNAME_BYGID2 : public Base::NetworkPacket<ZoneSession>
20508{
20509public:
20510 CZ_REQNAME_BYGID2(std::shared_ptr<ZoneSession> s)
20512 {}
20514
20515 void handle(ByteBuffer &&buf);
20516 void deserialize(ByteBuffer &buf);
20517
20518/* Structure */
20519 int _char_id{ 0 };
20520};
20521
20522enum {
20523#if CLIENT_TYPE == 'A' && \
20524 PACKET_VERSION >= 20041129
20525ID_CZ_REQUEST_ACT = 0x0089
20526#elif CLIENT_TYPE == 'M' && \
20527 PACKET_VERSION >= 20030000
20528ID_CZ_REQUEST_ACT = 0x0089
20529#elif CLIENT_TYPE == 'M' && ( \
20530 PACKET_VERSION == 20161103 \
20531 || PACKET_VERSION >= 20120712)
20532ID_CZ_REQUEST_ACT = 0x0436
20533#elif CLIENT_TYPE == 'M' && \
20534 PACKET_VERSION >= 20120926
20535ID_CZ_REQUEST_ACT = 0x08a4
20536#elif CLIENT_TYPE == 'M' && ( \
20537 PACKET_VERSION == 20180131 \
20538 || PACKET_VERSION >= 20160609 \
20539 || PACKET_VERSION >= 20160526 \
20540 || PACKET_VERSION >= 20160318 \
20541 || PACKET_VERSION >= 20151029 \
20542 || PACKET_VERSION >= 20151022 \
20543 || PACKET_VERSION >= 20150812 \
20544 || PACKET_VERSION >= 20150618 \
20545 || PACKET_VERSION >= 20150226 \
20546 || PACKET_VERSION >= 20141016 \
20547 || PACKET_VERSION >= 20140814 \
20548 || PACKET_VERSION >= 20130107)
20549ID_CZ_REQUEST_ACT = 0x0369
20550#elif CLIENT_TYPE == 'M' && \
20551 PACKET_VERSION >= 20130116
20552ID_CZ_REQUEST_ACT = 0x0863
20553#elif CLIENT_TYPE == 'M' && ( \
20554 PACKET_VERSION >= 20220000 \
20555 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
20556 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
20557 || PACKET_VERSION >= 20131108 \
20558 || PACKET_VERSION >= 20131107)
20559ID_CZ_REQUEST_ACT = 0x0947
20560#elif CLIENT_TYPE == 'M' && ( \
20561 PACKET_VERSION == 20140613 \
20562 || PACKET_VERSION == 20140612)
20563ID_CZ_REQUEST_ACT = 0x0891
20564#elif CLIENT_TYPE == 'M' && ( \
20565 PACKET_VERSION == 20150130 \
20566 || PACKET_VERSION == 20150129)
20567ID_CZ_REQUEST_ACT = 0x0838
20568#elif CLIENT_TYPE == 'M' && \
20569 PACKET_VERSION >= 20150702
20570ID_CZ_REQUEST_ACT = 0x0958
20571#elif CLIENT_TYPE == 'M' && \
20572 PACKET_VERSION >= 20160630
20573ID_CZ_REQUEST_ACT = 0x095a
20574#elif CLIENT_TYPE == 'M' && \
20575 PACKET_VERSION >= 20180309
20576ID_CZ_REQUEST_ACT = 0x0969
20577#elif CLIENT_TYPE == 'M' && ( \
20578 PACKET_VERSION == 20190821 \
20579 || PACKET_VERSION == 20190807 \
20580 || PACKET_VERSION == 20190802 \
20581 || PACKET_VERSION == 20190731 \
20582 || PACKET_VERSION == 20190724 \
20583 || PACKET_VERSION == 20190717 \
20584 || PACKET_VERSION == 20190703 \
20585 || PACKET_VERSION == 20190605 \
20586 || PACKET_VERSION == 20190530 \
20587 || PACKET_VERSION == 20190523 \
20588 || PACKET_VERSION == 20190522 \
20589 || PACKET_VERSION == 20190508 \
20590 || PACKET_VERSION == 20190418 \
20591 || PACKET_VERSION == 20190417 \
20592 || PACKET_VERSION == 20190327 \
20593 || PACKET_VERSION == 20190322 \
20594 || PACKET_VERSION == 20190320 \
20595 || PACKET_VERSION == 20190313 \
20596 || PACKET_VERSION == 20190306 \
20597 || PACKET_VERSION == 20190228 \
20598 || PACKET_VERSION == 20190123 \
20599 || PACKET_VERSION == 20190116 \
20600 || PACKET_VERSION == 20181226 \
20601 || PACKET_VERSION == 20181219 \
20602 || PACKET_VERSION == 20181212 \
20603 || PACKET_VERSION == 20181205 \
20604 || PACKET_VERSION == 20181128 \
20605 || PACKET_VERSION == 20181114 \
20606 || PACKET_VERSION == 20181107 \
20607 || PACKET_VERSION == 20181024 \
20608 || PACKET_VERSION == 20180919 \
20609 || PACKET_VERSION == 20180831 \
20610 || PACKET_VERSION == 20180822 \
20611 || PACKET_VERSION >= 20180808 \
20612 || PACKET_VERSION >= 20180718 \
20613 || PACKET_VERSION >= 20180704 \
20614 || PACKET_VERSION >= 20180621 \
20615 || PACKET_VERSION >= 20180620 \
20616 || PACKET_VERSION >= 20180530 \
20617 || PACKET_VERSION >= 20180523 \
20618 || PACKET_VERSION >= 20180516 \
20619 || PACKET_VERSION >= 20180509 \
20620 || PACKET_VERSION >= 20180502 \
20621 || PACKET_VERSION >= 20180425 \
20622 || PACKET_VERSION >= 20180404 \
20623 || PACKET_VERSION >= 20180328 \
20624 || PACKET_VERSION >= 20180321)
20625ID_CZ_REQUEST_ACT = 0x0437
20626#elif CLIENT_TYPE == 'R' && \
20627 PACKET_VERSION >= 20080000
20628ID_CZ_REQUEST_ACT = 0x0089
20629#elif CLIENT_TYPE == 'R' && ( \
20630 PACKET_VERSION == 20161103 \
20631 || PACKET_VERSION >= 20120712)
20632ID_CZ_REQUEST_ACT = 0x0436
20633#elif CLIENT_TYPE == 'R' && ( \
20634 PACKET_VERSION >= 20210000 \
20635 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
20636 || PACKET_VERSION >= 20120926)
20637ID_CZ_REQUEST_ACT = 0x08a4
20638#elif CLIENT_TYPE == 'R' && \
20639 PACKET_VERSION >= 20121011
20640ID_CZ_REQUEST_ACT = 0x08a1
20641#elif CLIENT_TYPE == 'R' && \
20642 PACKET_VERSION >= 20130116
20643ID_CZ_REQUEST_ACT = 0x0863
20644#elif CLIENT_TYPE == 'R' && ( \
20645 PACKET_VERSION == 20151029 \
20646 || PACKET_VERSION == 20151022 \
20647 || PACKET_VERSION == 20150812 \
20648 || PACKET_VERSION == 20150618 \
20649 || PACKET_VERSION == 20150226 \
20650 || PACKET_VERSION >= 20141016)
20651ID_CZ_REQUEST_ACT = 0x0369
20652#elif CLIENT_TYPE == 'R' && \
20653 PACKET_VERSION >= 20160630
20654ID_CZ_REQUEST_ACT = 0x095a
20655#elif CLIENT_TYPE == 'R' && ( \
20656 PACKET_VERSION == 20190821 \
20657 || PACKET_VERSION == 20190807 \
20658 || PACKET_VERSION == 20190802 \
20659 || PACKET_VERSION == 20190731 \
20660 || PACKET_VERSION == 20190724 \
20661 || PACKET_VERSION == 20190717 \
20662 || PACKET_VERSION == 20190703 \
20663 || PACKET_VERSION == 20190626 \
20664 || PACKET_VERSION == 20190605 \
20665 || PACKET_VERSION == 20190530 \
20666 || PACKET_VERSION == 20190522 \
20667 || PACKET_VERSION == 20190508 \
20668 || PACKET_VERSION == 20190418 \
20669 || PACKET_VERSION == 20190417 \
20670 || PACKET_VERSION == 20190327 \
20671 || PACKET_VERSION == 20190322 \
20672 || PACKET_VERSION == 20190320 \
20673 || PACKET_VERSION == 20190306 \
20674 || PACKET_VERSION == 20190228 \
20675 || PACKET_VERSION == 20190123 \
20676 || PACKET_VERSION == 20190116 \
20677 || PACKET_VERSION == 20181226 \
20678 || PACKET_VERSION == 20181219 \
20679 || PACKET_VERSION == 20181212 \
20680 || PACKET_VERSION == 20181205 \
20681 || PACKET_VERSION == 20181128 \
20682 || PACKET_VERSION == 20181121 \
20683 || PACKET_VERSION == 20181114 \
20684 || PACKET_VERSION == 20181107 \
20685 || PACKET_VERSION == 20180822 \
20686 || PACKET_VERSION >= 20180808 \
20687 || PACKET_VERSION >= 20180718 \
20688 || PACKET_VERSION >= 20180711 \
20689 || PACKET_VERSION >= 20180621 \
20690 || PACKET_VERSION >= 20180620 \
20691 || PACKET_VERSION >= 20180612 \
20692 || PACKET_VERSION >= 20180530 \
20693 || PACKET_VERSION >= 20180523 \
20694 || PACKET_VERSION >= 20180516 \
20695 || PACKET_VERSION >= 20180502 \
20696 || PACKET_VERSION >= 20180425 \
20697 || PACKET_VERSION >= 20180404 \
20698 || PACKET_VERSION >= 20180328)
20699ID_CZ_REQUEST_ACT = 0x0437
20700#elif CLIENT_TYPE == 'S' && \
20701 PACKET_VERSION >= 20030000
20702ID_CZ_REQUEST_ACT = 0x0089
20703#elif CLIENT_TYPE == 'Z' && \
20704 PACKET_VERSION >= 20170000
20705ID_CZ_REQUEST_ACT = 0x0089
20706#elif CLIENT_TYPE == 'Z' && ( \
20707 PACKET_VERSION == 20190814 \
20708 || PACKET_VERSION == 20190724 \
20709 || PACKET_VERSION == 20190717 \
20710 || PACKET_VERSION == 20190710 \
20711 || PACKET_VERSION == 20190709 \
20712 || PACKET_VERSION == 20190605 \
20713 || PACKET_VERSION == 20190530 \
20714 || PACKET_VERSION == 20190515 \
20715 || PACKET_VERSION == 20190508 \
20716 || PACKET_VERSION == 20190502 \
20717 || PACKET_VERSION == 20190424 \
20718 || PACKET_VERSION == 20190410 \
20719 || PACKET_VERSION == 20190403 \
20720 || PACKET_VERSION == 20190313 \
20721 || PACKET_VERSION == 20190227 \
20722 || PACKET_VERSION == 20190213 \
20723 || PACKET_VERSION == 20190117 \
20724 || PACKET_VERSION == 20181226 \
20725 || PACKET_VERSION == 20181219 \
20726 || PACKET_VERSION == 20181212 \
20727 || PACKET_VERSION == 20181128 \
20728 || PACKET_VERSION == 20181120 \
20729 || PACKET_VERSION == 20180928 \
20730 || PACKET_VERSION == 20180912 \
20731 || PACKET_VERSION == 20180829 \
20732 || PACKET_VERSION >= 20180808 \
20733 || PACKET_VERSION >= 20180801 \
20734 || PACKET_VERSION >= 20180711 \
20735 || PACKET_VERSION >= 20180703 \
20736 || PACKET_VERSION >= 20180627 \
20737 || PACKET_VERSION >= 20180509 \
20738 || PACKET_VERSION >= 20180411 \
20739 || PACKET_VERSION >= 20180321 \
20740 || PACKET_VERSION >= 20171113 \
20741 || PACKET_VERSION >= 20171031 \
20742 || PACKET_VERSION >= 20171030 \
20743 || PACKET_VERSION >= 20171027 \
20744 || PACKET_VERSION >= 20171025 \
20745 || PACKET_VERSION >= 20171024 \
20746 || PACKET_VERSION >= 20171023 \
20747 || PACKET_VERSION >= 20171019)
20748ID_CZ_REQUEST_ACT = 0x0437
20749#elif CLIENT_TYPE == 'Z' && ( \
20750 PACKET_VERSION == 20180309 \
20751 || PACKET_VERSION == 20180307 \
20752 || PACKET_VERSION == 20171128 \
20753 || PACKET_VERSION == 20171122 \
20754 || PACKET_VERSION == 20171117 \
20755 || PACKET_VERSION == 20171116)
20756ID_CZ_REQUEST_ACT = 0x0369
20757#elif CLIENT_TYPE == 'Z' && ( \
20758 PACKET_VERSION == 20171213 \
20759 || PACKET_VERSION == 20171212 \
20760 || PACKET_VERSION == 20171211 \
20761 || PACKET_VERSION == 20171210 \
20762 || PACKET_VERSION == 20171209 \
20763 || PACKET_VERSION == 20171208)
20764ID_CZ_REQUEST_ACT = 0x08ac
20765#elif CLIENT_TYPE == 'Z' && ( \
20766 PACKET_VERSION >= 20220000 \
20767 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
20768 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
20769 || PACKET_VERSION >= 20171221)
20770ID_CZ_REQUEST_ACT = 0x0937
20771#elif CLIENT_TYPE == 'Z' && \
20772 PACKET_VERSION >= 20171229
20773ID_CZ_REQUEST_ACT = 0x086c
20774#else
20775ID_CZ_REQUEST_ACT = 0x0000 // Disabled
20776#endif
20782class CZ_REQUEST_ACT : public Base::NetworkPacket<ZoneSession>
20783{
20784public:
20785 CZ_REQUEST_ACT(std::shared_ptr<ZoneSession> s)
20787 {}
20788 virtual ~CZ_REQUEST_ACT() {}
20789
20790 void handle(ByteBuffer &&buf);
20791 void deserialize(ByteBuffer &buf);
20792
20793/* Structure */
20794 uint32_t _target_guid{0};
20795 uint8_t _action{0};
20796};
20797
20798enum {
20799#if CLIENT_TYPE == 'M' && ( \
20800 PACKET_VERSION >= 20220000 \
20801 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
20802 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
20803 || (PACKET_VERSION >= 20190000 && PACKET_VERSION < 20200000) \
20804 || PACKET_VERSION >= 20180315 \
20805 || PACKET_VERSION >= 20180314 \
20806 || PACKET_VERSION >= 20180307 \
20807 || PACKET_VERSION >= 20180213 \
20808 || PACKET_VERSION >= 20180117 \
20809 || PACKET_VERSION >= 20180103 \
20810 || PACKET_VERSION >= 20171227 \
20811 || PACKET_VERSION >= 20171220 \
20812 || PACKET_VERSION >= 20171129 \
20813 || PACKET_VERSION >= 20171122 \
20814 || PACKET_VERSION >= 20171115 \
20815 || PACKET_VERSION >= 20171101 \
20816 || PACKET_VERSION >= 20171018 \
20817 || PACKET_VERSION >= 20171011 \
20818 || PACKET_VERSION >= 20171002 \
20819 || PACKET_VERSION >= 20170920 \
20820 || PACKET_VERSION >= 20170913 \
20821 || PACKET_VERSION >= 20170906 \
20822 || PACKET_VERSION >= 20170830 \
20823 || PACKET_VERSION >= 20170823 \
20824 || PACKET_VERSION >= 20170809 \
20825 || PACKET_VERSION >= 20170801 \
20826 || PACKET_VERSION >= 20170719 \
20827 || PACKET_VERSION >= 20170621 \
20828 || PACKET_VERSION >= 20170614 \
20829 || PACKET_VERSION >= 20170524 \
20830 || PACKET_VERSION >= 20170517 \
20831 || PACKET_VERSION >= 20170426 \
20832 || PACKET_VERSION >= 20170412 \
20833 || PACKET_VERSION >= 20170322 \
20834 || PACKET_VERSION >= 20170315 \
20835 || PACKET_VERSION >= 20170308 \
20836 || PACKET_VERSION >= 20170228 \
20837 || PACKET_VERSION >= 20170222 \
20838 || PACKET_VERSION >= 20170215 \
20839 || PACKET_VERSION >= 20170208 \
20840 || PACKET_VERSION >= 20170125 \
20841 || PACKET_VERSION >= 20170104 \
20842 || PACKET_VERSION >= 20161221 \
20843 || PACKET_VERSION >= 20161130 \
20844 || PACKET_VERSION >= 20161123 \
20845 || PACKET_VERSION >= 20161026 \
20846 || PACKET_VERSION >= 20161019 \
20847 || PACKET_VERSION >= 20160928 \
20848 || PACKET_VERSION >= 20160921 \
20849 || PACKET_VERSION >= 20160913 \
20850 || PACKET_VERSION >= 20160907 \
20851 || PACKET_VERSION >= 20160831 \
20852 || PACKET_VERSION >= 20160824 \
20853 || PACKET_VERSION >= 20160817 \
20854 || PACKET_VERSION >= 20160629 \
20855 || PACKET_VERSION >= 20160622 \
20856 || PACKET_VERSION >= 20160615 \
20857 || PACKET_VERSION >= 20160608 \
20858 || PACKET_VERSION >= 20160511 \
20859 || PACKET_VERSION >= 20160504 \
20860 || PACKET_VERSION >= 20160414 \
20861 || PACKET_VERSION >= 20160406 \
20862 || PACKET_VERSION >= 20160316 \
20863 || PACKET_VERSION >= 20160217 \
20864 || PACKET_VERSION >= 20160211 \
20865 || PACKET_VERSION >= 20160203 \
20866 || PACKET_VERSION >= 20160120 \
20867 || PACKET_VERSION >= 20160113 \
20868 || PACKET_VERSION >= 20160106 \
20869 || PACKET_VERSION >= 20151230 \
20870 || PACKET_VERSION >= 20151209 \
20871 || PACKET_VERSION >= 20151202 \
20872 || PACKET_VERSION >= 20151125 \
20873 || PACKET_VERSION >= 20151111 \
20874 || PACKET_VERSION >= 20151104 \
20875 || PACKET_VERSION >= 20151021 \
20876 || PACKET_VERSION >= 20151014 \
20877 || PACKET_VERSION >= 20151001 \
20878 || PACKET_VERSION >= 20150916 \
20879 || PACKET_VERSION >= 20150909 \
20880 || PACKET_VERSION >= 20150826 \
20881 || PACKET_VERSION >= 20150805 \
20882 || PACKET_VERSION >= 20150729 \
20883 || PACKET_VERSION >= 20150722 \
20884 || PACKET_VERSION >= 20150715 \
20885 || PACKET_VERSION >= 20150701 \
20886 || PACKET_VERSION >= 20150617 \
20887 || PACKET_VERSION >= 20150610 \
20888 || PACKET_VERSION >= 20150603 \
20889 || PACKET_VERSION >= 20150527 \
20890 || PACKET_VERSION >= 20150520 \
20891 || PACKET_VERSION >= 20150422 \
20892 || PACKET_VERSION >= 20150408 \
20893 || PACKET_VERSION >= 20150401 \
20894 || PACKET_VERSION >= 20150311 \
20895 || PACKET_VERSION >= 20150225 \
20896 || PACKET_VERSION >= 20150217 \
20897 || PACKET_VERSION >= 20150211 \
20898 || PACKET_VERSION >= 20150204 \
20899 || PACKET_VERSION >= 20150128 \
20900 || PACKET_VERSION >= 20150107 \
20901 || PACKET_VERSION >= 20141231 \
20902 || PACKET_VERSION >= 20141217 \
20903 || PACKET_VERSION >= 20141210 \
20904 || PACKET_VERSION >= 20141203 \
20905 || PACKET_VERSION >= 20141126 \
20906 || PACKET_VERSION >= 20141105 \
20907 || PACKET_VERSION >= 20141029 \
20908 || PACKET_VERSION >= 20141001 \
20909 || PACKET_VERSION >= 20140917 \
20910 || PACKET_VERSION >= 20140827 \
20911 || PACKET_VERSION >= 20140820 \
20912 || PACKET_VERSION >= 20140806 \
20913 || PACKET_VERSION >= 20140730 \
20914 || PACKET_VERSION >= 20140716 \
20915 || PACKET_VERSION >= 20140709 \
20916 || PACKET_VERSION >= 20140702 \
20917 || PACKET_VERSION >= 20140611 \
20918 || PACKET_VERSION >= 20140605 \
20919 || PACKET_VERSION >= 20140528 \
20920 || PACKET_VERSION >= 20140521 \
20921 || PACKET_VERSION >= 20140514 \
20922 || PACKET_VERSION >= 20140508 \
20923 || PACKET_VERSION >= 20140430 \
20924 || PACKET_VERSION >= 20140423 \
20925 || PACKET_VERSION >= 20140416 \
20926 || PACKET_VERSION >= 20140312 \
20927 || PACKET_VERSION >= 20140226 \
20928 || PACKET_VERSION >= 20140212 \
20929 || PACKET_VERSION >= 20140129 \
20930 || PACKET_VERSION >= 20140122 \
20931 || PACKET_VERSION >= 20140108 \
20932 || PACKET_VERSION >= 20131230 \
20933 || PACKET_VERSION >= 20131211 \
20934 || PACKET_VERSION >= 20131204 \
20935 || PACKET_VERSION >= 20131127 \
20936 || PACKET_VERSION >= 20131106 \
20937 || PACKET_VERSION >= 20131030 \
20938 || PACKET_VERSION >= 20131008 \
20939 || PACKET_VERSION >= 20131002 \
20940 || PACKET_VERSION >= 20130925 \
20941 || PACKET_VERSION >= 20130917 \
20942 || PACKET_VERSION >= 20130904 \
20943 || PACKET_VERSION >= 20130828 \
20944 || PACKET_VERSION >= 20130821 \
20945 || PACKET_VERSION >= 20130814 \
20946 || PACKET_VERSION >= 20130731 \
20947 || PACKET_VERSION >= 20130724 \
20948 || PACKET_VERSION >= 20130717 \
20949 || PACKET_VERSION >= 20130626 \
20950 || PACKET_VERSION >= 20130618 \
20951 || PACKET_VERSION >= 20130605 \
20952 || PACKET_VERSION >= 20130522 \
20953 || PACKET_VERSION >= 20130417 \
20954 || PACKET_VERSION >= 20130410 \
20955 || PACKET_VERSION >= 20130403 \
20956 || PACKET_VERSION >= 20130320 \
20957 || PACKET_VERSION >= 20130313 \
20958 || PACKET_VERSION >= 20130306 \
20959 || PACKET_VERSION >= 20130206 \
20960 || PACKET_VERSION >= 20130130 \
20961 || PACKET_VERSION >= 20130121 \
20962 || PACKET_VERSION >= 20130115 \
20963 || PACKET_VERSION >= 20130109 \
20964 || PACKET_VERSION >= 20130103 \
20965 || PACKET_VERSION >= 20121227 \
20966 || PACKET_VERSION >= 20121218 \
20967 || PACKET_VERSION >= 20121128 \
20968 || PACKET_VERSION >= 20121114 \
20969 || PACKET_VERSION >= 20121107 \
20970 || PACKET_VERSION >= 20121031 \
20971 || PACKET_VERSION >= 20121024 \
20972 || PACKET_VERSION >= 20121017 \
20973 || PACKET_VERSION >= 20120925 \
20974 || PACKET_VERSION >= 20120919 \
20975 || PACKET_VERSION >= 20120905 \
20976 || PACKET_VERSION >= 20120830 \
20977 || PACKET_VERSION >= 20120822 \
20978 || PACKET_VERSION >= 20120814 \
20979 || PACKET_VERSION >= 20120808 \
20980 || PACKET_VERSION >= 20120724 \
20981 || PACKET_VERSION >= 20120716 \
20982 || PACKET_VERSION >= 20120626 \
20983 || PACKET_VERSION >= 20120612 \
20984 || PACKET_VERSION >= 20120604 \
20985 || PACKET_VERSION >= 20120529 \
20986 || PACKET_VERSION >= 20120515 \
20987 || PACKET_VERSION >= 20120503 \
20988 || PACKET_VERSION >= 20120424 \
20989 || PACKET_VERSION >= 20120404 \
20990 || PACKET_VERSION >= 20120328 \
20991 || PACKET_VERSION >= 20120307 \
20992 || PACKET_VERSION >= 20120228 \
20993 || PACKET_VERSION >= 20120221 \
20994 || PACKET_VERSION >= 20120214 \
20995 || PACKET_VERSION >= 20120131 \
20996 || PACKET_VERSION >= 20120120 \
20997 || PACKET_VERSION >= 20120117 \
20998 || PACKET_VERSION >= 20120103 \
20999 || PACKET_VERSION >= 20111220 \
21000 || PACKET_VERSION >= 20111122 \
21001 || PACKET_VERSION >= 20111108 \
21002 || PACKET_VERSION >= 20111101 \
21003 || PACKET_VERSION >= 20111025 \
21004 || PACKET_VERSION >= 20111010 \
21005 || PACKET_VERSION >= 20110906 \
21006 || PACKET_VERSION >= 20110823 \
21007 || PACKET_VERSION >= 20110809 \
21008 || PACKET_VERSION >= 20110802 \
21009 || PACKET_VERSION >= 20110726 \
21010 || PACKET_VERSION >= 20110718 \
21011 || PACKET_VERSION >= 20110711 \
21012 || PACKET_VERSION >= 20110705 \
21013 || PACKET_VERSION >= 20110620 \
21014 || PACKET_VERSION >= 20110523 \
21015 || PACKET_VERSION >= 20110517 \
21016 || PACKET_VERSION >= 20110511 \
21017 || PACKET_VERSION >= 20110503 \
21018 || PACKET_VERSION >= 20110426 \
21019 || PACKET_VERSION >= 20110419 \
21020 || PACKET_VERSION >= 20110412 \
21021 || PACKET_VERSION >= 20110405 \
21022 || PACKET_VERSION >= 20110329 \
21023 || PACKET_VERSION >= 20110322 \
21024 || PACKET_VERSION >= 20110308 \
21025 || PACKET_VERSION >= 20110228 \
21026 || PACKET_VERSION >= 20110222 \
21027 || PACKET_VERSION >= 20110215 \
21028 || PACKET_VERSION >= 20110208 \
21029 || PACKET_VERSION >= 20110131 \
21030 || PACKET_VERSION >= 20110125 \
21031 || PACKET_VERSION >= 20110118 \
21032 || PACKET_VERSION >= 20110104 \
21033 || PACKET_VERSION >= 20101228 \
21034 || PACKET_VERSION >= 20101221 \
21035 || PACKET_VERSION >= 20101207 \
21036 || PACKET_VERSION >= 20101130 \
21037 || PACKET_VERSION >= 20101123 \
21038 || PACKET_VERSION >= 20100105 \
21039 || PACKET_VERSION >= 20090406 \
21040 || PACKET_VERSION >= 20090401 \
21041 || PACKET_VERSION >= 20090325 \
21042 || PACKET_VERSION >= 20090318 \
21043 || PACKET_VERSION >= 20090311 \
21044 || PACKET_VERSION >= 20090225 \
21045 || PACKET_VERSION >= 20090218 \
21046 || PACKET_VERSION >= 20090211 \
21047 || PACKET_VERSION >= 20090204 \
21048 || PACKET_VERSION >= 20090129 \
21049 || PACKET_VERSION >= 20090120 \
21050 || PACKET_VERSION >= 20090107 \
21051 || PACKET_VERSION >= 20081112 \
21052 || PACKET_VERSION >= 20081105 \
21053 || PACKET_VERSION >= 20081029 \
21054 || PACKET_VERSION >= 20081022 \
21055 || PACKET_VERSION >= 20081015 \
21056 || PACKET_VERSION >= 20081008 \
21057 || PACKET_VERSION >= 20081001 \
21058 || PACKET_VERSION >= 20080924 \
21059 || PACKET_VERSION >= 20080917 \
21060 || PACKET_VERSION >= 20080910)
21061ID_CZ_REQUEST_ACT2 = 0x0437
21062#elif CLIENT_TYPE == 'R' && ( \
21063 PACKET_VERSION >= 20210000 \
21064 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
21065 || (PACKET_VERSION >= 20190000 && PACKET_VERSION < 20200000) \
21066 || PACKET_VERSION >= 20180321 \
21067 || PACKET_VERSION >= 20180307 \
21068 || PACKET_VERSION >= 20180213 \
21069 || PACKET_VERSION >= 20180117 \
21070 || PACKET_VERSION >= 20180103 \
21071 || PACKET_VERSION >= 20171227 \
21072 || PACKET_VERSION >= 20171220 \
21073 || PACKET_VERSION >= 20171129 \
21074 || PACKET_VERSION >= 20171122 \
21075 || PACKET_VERSION >= 20171115 \
21076 || PACKET_VERSION >= 20171101 \
21077 || PACKET_VERSION >= 20171018 \
21078 || PACKET_VERSION >= 20171011 \
21079 || PACKET_VERSION >= 20171002 \
21080 || PACKET_VERSION >= 20170920 \
21081 || PACKET_VERSION >= 20170913 \
21082 || PACKET_VERSION >= 20170906 \
21083 || PACKET_VERSION >= 20170830 \
21084 || PACKET_VERSION >= 20170823 \
21085 || PACKET_VERSION >= 20170809 \
21086 || PACKET_VERSION >= 20170801 \
21087 || PACKET_VERSION >= 20170719 \
21088 || PACKET_VERSION >= 20170621 \
21089 || PACKET_VERSION >= 20170614 \
21090 || PACKET_VERSION >= 20170524 \
21091 || PACKET_VERSION >= 20170517 \
21092 || PACKET_VERSION >= 20170426 \
21093 || PACKET_VERSION >= 20170412 \
21094 || PACKET_VERSION >= 20170322 \
21095 || PACKET_VERSION >= 20170315 \
21096 || PACKET_VERSION >= 20170308 \
21097 || PACKET_VERSION >= 20170228 \
21098 || PACKET_VERSION >= 20170222 \
21099 || PACKET_VERSION >= 20170215 \
21100 || PACKET_VERSION >= 20170208 \
21101 || PACKET_VERSION >= 20170125 \
21102 || PACKET_VERSION >= 20170104 \
21103 || PACKET_VERSION >= 20161221 \
21104 || PACKET_VERSION >= 20161130 \
21105 || PACKET_VERSION >= 20161123 \
21106 || PACKET_VERSION >= 20161026 \
21107 || PACKET_VERSION >= 20161019 \
21108 || PACKET_VERSION >= 20160928 \
21109 || PACKET_VERSION >= 20160921 \
21110 || PACKET_VERSION >= 20160913 \
21111 || PACKET_VERSION >= 20160907 \
21112 || PACKET_VERSION >= 20160831 \
21113 || PACKET_VERSION >= 20160824 \
21114 || PACKET_VERSION >= 20160817 \
21115 || PACKET_VERSION >= 20160629 \
21116 || PACKET_VERSION >= 20160622 \
21117 || PACKET_VERSION >= 20160615 \
21118 || PACKET_VERSION >= 20160608 \
21119 || PACKET_VERSION >= 20160511 \
21120 || PACKET_VERSION >= 20160504 \
21121 || PACKET_VERSION >= 20160414 \
21122 || PACKET_VERSION >= 20160406 \
21123 || PACKET_VERSION >= 20160316 \
21124 || PACKET_VERSION >= 20160217 \
21125 || PACKET_VERSION >= 20160211 \
21126 || PACKET_VERSION >= 20160203 \
21127 || PACKET_VERSION >= 20160120 \
21128 || PACKET_VERSION >= 20160113 \
21129 || PACKET_VERSION >= 20160106 \
21130 || PACKET_VERSION >= 20151230 \
21131 || PACKET_VERSION >= 20151209 \
21132 || PACKET_VERSION >= 20151202 \
21133 || PACKET_VERSION >= 20151125 \
21134 || PACKET_VERSION >= 20151111 \
21135 || PACKET_VERSION >= 20151104 \
21136 || PACKET_VERSION >= 20151021 \
21137 || PACKET_VERSION >= 20151014 \
21138 || PACKET_VERSION >= 20151001 \
21139 || PACKET_VERSION >= 20150916 \
21140 || PACKET_VERSION >= 20150909 \
21141 || PACKET_VERSION >= 20150826 \
21142 || PACKET_VERSION >= 20150805 \
21143 || PACKET_VERSION >= 20150729 \
21144 || PACKET_VERSION >= 20150722 \
21145 || PACKET_VERSION >= 20150715 \
21146 || PACKET_VERSION >= 20150701 \
21147 || PACKET_VERSION >= 20150617 \
21148 || PACKET_VERSION >= 20150610 \
21149 || PACKET_VERSION >= 20150603 \
21150 || PACKET_VERSION >= 20150527 \
21151 || PACKET_VERSION >= 20150520 \
21152 || PACKET_VERSION >= 20150422 \
21153 || PACKET_VERSION >= 20150408 \
21154 || PACKET_VERSION >= 20150401 \
21155 || PACKET_VERSION >= 20150311 \
21156 || PACKET_VERSION >= 20150217 \
21157 || PACKET_VERSION >= 20150211 \
21158 || PACKET_VERSION >= 20150204 \
21159 || PACKET_VERSION >= 20150128 \
21160 || PACKET_VERSION >= 20150107 \
21161 || PACKET_VERSION >= 20141231 \
21162 || PACKET_VERSION >= 20141217 \
21163 || PACKET_VERSION >= 20141210 \
21164 || PACKET_VERSION >= 20141203 \
21165 || PACKET_VERSION >= 20141126 \
21166 || PACKET_VERSION >= 20141105 \
21167 || PACKET_VERSION >= 20141029 \
21168 || PACKET_VERSION >= 20141001 \
21169 || PACKET_VERSION >= 20140917 \
21170 || PACKET_VERSION >= 20140827 \
21171 || PACKET_VERSION >= 20140820 \
21172 || PACKET_VERSION >= 20140806 \
21173 || PACKET_VERSION >= 20140730 \
21174 || PACKET_VERSION >= 20140716 \
21175 || PACKET_VERSION >= 20140709 \
21176 || PACKET_VERSION >= 20140702 \
21177 || PACKET_VERSION >= 20140611 \
21178 || PACKET_VERSION >= 20140605 \
21179 || PACKET_VERSION >= 20140528 \
21180 || PACKET_VERSION >= 20140521 \
21181 || PACKET_VERSION >= 20140514 \
21182 || PACKET_VERSION >= 20140508 \
21183 || PACKET_VERSION >= 20140430 \
21184 || PACKET_VERSION >= 20140423 \
21185 || PACKET_VERSION >= 20140416 \
21186 || PACKET_VERSION >= 20140312 \
21187 || PACKET_VERSION >= 20140226 \
21188 || PACKET_VERSION >= 20140212 \
21189 || PACKET_VERSION >= 20140129 \
21190 || PACKET_VERSION >= 20140122 \
21191 || PACKET_VERSION >= 20140108 \
21192 || PACKET_VERSION >= 20131230 \
21193 || PACKET_VERSION >= 20131223 \
21194 || PACKET_VERSION >= 20131211 \
21195 || PACKET_VERSION >= 20131204 \
21196 || PACKET_VERSION >= 20131127 \
21197 || PACKET_VERSION >= 20131106 \
21198 || PACKET_VERSION >= 20131030 \
21199 || PACKET_VERSION >= 20131008 \
21200 || PACKET_VERSION >= 20131002 \
21201 || PACKET_VERSION >= 20130925 \
21202 || PACKET_VERSION >= 20130917 \
21203 || PACKET_VERSION >= 20130904 \
21204 || PACKET_VERSION >= 20130828 \
21205 || PACKET_VERSION >= 20130821 \
21206 || PACKET_VERSION >= 20130814 \
21207 || PACKET_VERSION >= 20130731 \
21208 || PACKET_VERSION >= 20130724 \
21209 || PACKET_VERSION >= 20130717 \
21210 || PACKET_VERSION >= 20130626 \
21211 || PACKET_VERSION >= 20130618 \
21212 || PACKET_VERSION >= 20130605 \
21213 || PACKET_VERSION >= 20130522 \
21214 || PACKET_VERSION >= 20130417 \
21215 || PACKET_VERSION >= 20130410 \
21216 || PACKET_VERSION >= 20130403 \
21217 || PACKET_VERSION >= 20130320 \
21218 || PACKET_VERSION >= 20130313 \
21219 || PACKET_VERSION >= 20130306 \
21220 || PACKET_VERSION >= 20130206 \
21221 || PACKET_VERSION >= 20130130 \
21222 || PACKET_VERSION >= 20130121 \
21223 || PACKET_VERSION >= 20130115 \
21224 || PACKET_VERSION >= 20130109 \
21225 || PACKET_VERSION >= 20130103 \
21226 || PACKET_VERSION >= 20121227 \
21227 || PACKET_VERSION >= 20121218 \
21228 || PACKET_VERSION >= 20121128 \
21229 || PACKET_VERSION >= 20121114 \
21230 || PACKET_VERSION >= 20121107 \
21231 || PACKET_VERSION >= 20121031 \
21232 || PACKET_VERSION >= 20121024 \
21233 || PACKET_VERSION >= 20121017 \
21234 || PACKET_VERSION >= 20120925 \
21235 || PACKET_VERSION >= 20120919 \
21236 || PACKET_VERSION >= 20120905 \
21237 || PACKET_VERSION >= 20120830 \
21238 || PACKET_VERSION >= 20120822 \
21239 || PACKET_VERSION >= 20120814 \
21240 || PACKET_VERSION >= 20120808 \
21241 || PACKET_VERSION >= 20120724 \
21242 || PACKET_VERSION >= 20120716 \
21243 || PACKET_VERSION >= 20120626 \
21244 || PACKET_VERSION >= 20120612 \
21245 || PACKET_VERSION >= 20120601 \
21246 || PACKET_VERSION >= 20120529 \
21247 || PACKET_VERSION >= 20120515 \
21248 || PACKET_VERSION >= 20120502 \
21249 || PACKET_VERSION >= 20120424 \
21250 || PACKET_VERSION >= 20120404 \
21251 || PACKET_VERSION >= 20120328 \
21252 || PACKET_VERSION >= 20120307 \
21253 || PACKET_VERSION >= 20120228 \
21254 || PACKET_VERSION >= 20120221 \
21255 || PACKET_VERSION >= 20120214 \
21256 || PACKET_VERSION >= 20120131 \
21257 || PACKET_VERSION >= 20120120 \
21258 || PACKET_VERSION >= 20120117 \
21259 || PACKET_VERSION >= 20120103 \
21260 || PACKET_VERSION >= 20111220 \
21261 || PACKET_VERSION >= 20111122 \
21262 || PACKET_VERSION >= 20111108 \
21263 || PACKET_VERSION >= 20111101 \
21264 || PACKET_VERSION >= 20111025 \
21265 || PACKET_VERSION >= 20111010 \
21266 || PACKET_VERSION >= 20110906 \
21267 || PACKET_VERSION >= 20110823 \
21268 || PACKET_VERSION >= 20110816 \
21269 || PACKET_VERSION >= 20110104 \
21270 || (PACKET_VERSION >= 20100000 && PACKET_VERSION < 20110104) \
21271 || (PACKET_VERSION >= 20090000 && PACKET_VERSION < 20100000) \
21272 || PACKET_VERSION >= 20080910)
21273ID_CZ_REQUEST_ACT2 = 0x0437
21274#elif CLIENT_TYPE == 'S' && \
21275 PACKET_VERSION >= 20080910
21276ID_CZ_REQUEST_ACT2 = 0x0437
21277#elif CLIENT_TYPE == 'Z' && ( \
21278 PACKET_VERSION >= 20220000 \
21279 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
21280 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
21281 || (PACKET_VERSION >= 20190000 && PACKET_VERSION < 20200000) \
21282 || PACKET_VERSION >= 20180523 \
21283 || PACKET_VERSION >= 20180511 \
21284 || PACKET_VERSION >= 20180315 \
21285 || PACKET_VERSION >= 20180314 \
21286 || PACKET_VERSION >= 20180228 \
21287 || PACKET_VERSION >= 20180213 \
21288 || PACKET_VERSION >= 20180131 \
21289 || PACKET_VERSION >= 20180103 \
21290 || PACKET_VERSION >= 20171206 \
21291 || PACKET_VERSION >= 20171204 \
21292 || PACKET_VERSION >= 20171130 \
21293 || PACKET_VERSION >= 20171115 \
21294 || PACKET_VERSION >= 20171018)
21295ID_CZ_REQUEST_ACT2 = 0x0437
21296#else
21297ID_CZ_REQUEST_ACT2 = 0x0000 // Disabled
21298#endif
21304class CZ_REQUEST_ACT2 : public Base::NetworkPacket<ZoneSession>
21305{
21306public:
21307 CZ_REQUEST_ACT2(std::shared_ptr<ZoneSession> s)
21309 {}
21310 virtual ~CZ_REQUEST_ACT2() {}
21311
21312 void handle(ByteBuffer &&buf);
21313 void deserialize(ByteBuffer &buf);
21314
21315/* Structure */
21316 uint32_t _target_guid{0};
21317 uint8_t _action{0};
21318};
21319
21320enum {
21321#if CLIENT_TYPE == 'A' && \
21322 PACKET_VERSION >= 20050425
21323ID_CZ_REQUEST_ACTNPC = 0x0233
21324#elif CLIENT_TYPE == 'M' && ( \
21325 PACKET_VERSION >= 20220000 \
21326 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
21327 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
21328 || PACKET_VERSION >= 20050425)
21329ID_CZ_REQUEST_ACTNPC = 0x0233
21330#elif CLIENT_TYPE == 'R' && ( \
21331 PACKET_VERSION >= 20210000 \
21332 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
21333 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
21334ID_CZ_REQUEST_ACTNPC = 0x0233
21335#elif CLIENT_TYPE == 'S' && \
21336 PACKET_VERSION >= 20050425
21337ID_CZ_REQUEST_ACTNPC = 0x0233
21338#elif CLIENT_TYPE == 'Z' && ( \
21339 PACKET_VERSION >= 20220000 \
21340 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
21341 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
21342 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
21343ID_CZ_REQUEST_ACTNPC = 0x0233
21344#else
21345ID_CZ_REQUEST_ACTNPC = 0x0000 // Disabled
21346#endif
21352class CZ_REQUEST_ACTNPC : public Base::NetworkPacket<ZoneSession>
21353{
21354public:
21355 CZ_REQUEST_ACTNPC(std::shared_ptr<ZoneSession> s)
21357 {}
21359
21360 void handle(ByteBuffer &&buf);
21361 void deserialize(ByteBuffer &buf);
21362
21363/* Structure */
21364 int _guid{ 0 };
21365 int _target_id{ 0 };
21366 int8_t _action{ 0 };
21367};
21368
21369enum {
21370#if CLIENT_TYPE == 'A' && \
21371 PACKET_VERSION >= 20041129
21372ID_CZ_REQUEST_CHAT = 0x00f3
21373#elif CLIENT_TYPE == 'M' && ( \
21374 PACKET_VERSION >= 20220000 \
21375 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
21376 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
21377 || (PACKET_VERSION >= 20030000 && PACKET_VERSION < 20200000))
21378ID_CZ_REQUEST_CHAT = 0x008c
21379#elif CLIENT_TYPE == 'M' && ( \
21380 PACKET_VERSION >= 20190000 \
21381 || (PACKET_VERSION >= 20180000 && PACKET_VERSION < 20190000) \
21382 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20180000) \
21383 || (PACKET_VERSION >= 20160000 && PACKET_VERSION < 20170000) \
21384 || (PACKET_VERSION >= 20150000 && PACKET_VERSION < 20160000) \
21385 || (PACKET_VERSION >= 20140000 && PACKET_VERSION < 20150000) \
21386 || (PACKET_VERSION >= 20130000 && PACKET_VERSION < 20140000) \
21387 || (PACKET_VERSION >= 20120000 && PACKET_VERSION < 20130000) \
21388 || (PACKET_VERSION >= 20110000 && PACKET_VERSION < 20120000) \
21389 || (PACKET_VERSION >= 20100000 && PACKET_VERSION < 20110000) \
21390 || (PACKET_VERSION >= 20090000 && PACKET_VERSION < 20100000) \
21391 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20090000) \
21392 || (PACKET_VERSION >= 20070000 && PACKET_VERSION < 20080000) \
21393 || (PACKET_VERSION >= 20060000 && PACKET_VERSION < 20070000) \
21394 || PACKET_VERSION >= 20050110 \
21395 || PACKET_VERSION >= 20050103 \
21396 || PACKET_VERSION >= 20041220 \
21397 || PACKET_VERSION >= 20041216 \
21398 || PACKET_VERSION >= 20041129 \
21399 || PACKET_VERSION >= 20041025 \
21400 || PACKET_VERSION >= 20041005 \
21401 || PACKET_VERSION >= 20040920 \
21402 || PACKET_VERSION >= 20040906 \
21403 || PACKET_VERSION >= 20040726)
21404ID_CZ_REQUEST_CHAT = 0x00f3
21405#elif CLIENT_TYPE == 'R' && ( \
21406 PACKET_VERSION >= 20210000 \
21407 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
21408 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
21409ID_CZ_REQUEST_CHAT = 0x00f3
21410#elif CLIENT_TYPE == 'S' && \
21411 PACKET_VERSION >= 20030000
21412ID_CZ_REQUEST_CHAT = 0x008c
21413#elif CLIENT_TYPE == 'S' && ( \
21414 PACKET_VERSION >= 20090000 \
21415 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20090000) \
21416 || (PACKET_VERSION >= 20070000 && PACKET_VERSION < 20080000) \
21417 || (PACKET_VERSION >= 20060000 && PACKET_VERSION < 20070000) \
21418 || PACKET_VERSION >= 20050110 \
21419 || PACKET_VERSION >= 20050103 \
21420 || PACKET_VERSION >= 20041129 \
21421 || PACKET_VERSION >= 20041025 \
21422 || PACKET_VERSION >= 20041005 \
21423 || PACKET_VERSION >= 20040920 \
21424 || PACKET_VERSION >= 20040906 \
21425 || PACKET_VERSION >= 20040726)
21426ID_CZ_REQUEST_CHAT = 0x00f3
21427#elif CLIENT_TYPE == 'Z' && ( \
21428 PACKET_VERSION >= 20220000 \
21429 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
21430 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
21431 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
21432ID_CZ_REQUEST_CHAT = 0x00f3
21433#else
21434ID_CZ_REQUEST_CHAT = 0x0000 // Disabled
21435#endif
21441class CZ_REQUEST_CHAT : public Base::NetworkPacket<ZoneSession>
21442{
21443public:
21444 CZ_REQUEST_CHAT(std::shared_ptr<ZoneSession> s)
21446 {}
21447 virtual ~CZ_REQUEST_CHAT() {}
21448
21449 void handle(ByteBuffer &&buf);
21450 void deserialize(ByteBuffer &buf);
21451
21452/* Structure */
21454 char *_message{nullptr};
21455};
21456
21457enum {
21458#if CLIENT_TYPE == 'A' && \
21459 PACKET_VERSION >= 20040000
21461#elif CLIENT_TYPE == 'M' && ( \
21462 PACKET_VERSION >= 20220000 \
21463 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
21464 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
21465 || (PACKET_VERSION >= 20030000 && PACKET_VERSION < 20200000))
21467#elif CLIENT_TYPE == 'R' && ( \
21468 PACKET_VERSION >= 20210000 \
21469 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
21470 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
21472#elif CLIENT_TYPE == 'S' && \
21473 PACKET_VERSION >= 20030000
21475#elif CLIENT_TYPE == 'Z' && ( \
21476 PACKET_VERSION >= 20220000 \
21477 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
21478 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
21479 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
21481#else
21482ID_CZ_REQUEST_CHAT_PARTY = 0x0000 // Disabled
21483#endif
21490{
21491public:
21492 CZ_REQUEST_CHAT_PARTY(std::shared_ptr<ZoneSession> s)
21494 {}
21496
21497 void handle(ByteBuffer &&buf);
21498 void deserialize(ByteBuffer &buf);
21499
21500/* Structure */
21501 int16_t _packet_length{ 0 };
21503};
21504
21505enum {
21506#if CLIENT_TYPE == 'A' && \
21507 PACKET_VERSION >= 20041129
21508ID_CZ_REQUEST_MOVE = 0x0085
21509#elif CLIENT_TYPE == 'M' && \
21510 PACKET_VERSION >= 20030000
21511ID_CZ_REQUEST_MOVE = 0x0085
21512#elif CLIENT_TYPE == 'M' && \
21513 PACKET_VERSION >= 20120712
21514ID_CZ_REQUEST_MOVE = 0x087f
21515#elif CLIENT_TYPE == 'M' && ( \
21516 PACKET_VERSION >= 20220000 \
21517 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
21518 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
21519 || PACKET_VERSION >= 20120926)
21520ID_CZ_REQUEST_MOVE = 0x0950
21521#elif CLIENT_TYPE == 'M' && ( \
21522 PACKET_VERSION == 20180131 \
21523 || PACKET_VERSION >= 20160526 \
21524 || PACKET_VERSION >= 20160318 \
21525 || PACKET_VERSION >= 20151029 \
21526 || PACKET_VERSION >= 20151022 \
21527 || PACKET_VERSION >= 20150812 \
21528 || PACKET_VERSION >= 20150618 \
21529 || PACKET_VERSION >= 20150226 \
21530 || PACKET_VERSION >= 20141016 \
21531 || PACKET_VERSION >= 20140814 \
21532 || PACKET_VERSION >= 20130107)
21533ID_CZ_REQUEST_MOVE = 0x0437
21534#elif CLIENT_TYPE == 'M' && \
21535 PACKET_VERSION >= 20130116
21536ID_CZ_REQUEST_MOVE = 0x0817
21537#elif CLIENT_TYPE == 'M' && ( \
21538 PACKET_VERSION == 20131108 \
21539 || PACKET_VERSION == 20131107)
21540ID_CZ_REQUEST_MOVE = 0x0866
21541#elif CLIENT_TYPE == 'M' && ( \
21542 PACKET_VERSION == 20140613 \
21543 || PACKET_VERSION == 20140612)
21544ID_CZ_REQUEST_MOVE = 0x0893
21545#elif CLIENT_TYPE == 'M' && ( \
21546 PACKET_VERSION == 20150130 \
21547 || PACKET_VERSION == 20150129)
21548ID_CZ_REQUEST_MOVE = 0x0870
21549#elif CLIENT_TYPE == 'M' && \
21550 PACKET_VERSION >= 20150702
21551ID_CZ_REQUEST_MOVE = 0x092c
21552#elif CLIENT_TYPE == 'M' && \
21553 PACKET_VERSION >= 20160609
21554ID_CZ_REQUEST_MOVE = 0x0436
21555#elif CLIENT_TYPE == 'M' && \
21556 PACKET_VERSION >= 20160630
21557ID_CZ_REQUEST_MOVE = 0x022d
21558#elif CLIENT_TYPE == 'M' && \
21559 PACKET_VERSION >= 20161103
21560ID_CZ_REQUEST_MOVE = 0x08aa
21561#elif CLIENT_TYPE == 'M' && \
21562 PACKET_VERSION >= 20180309
21563ID_CZ_REQUEST_MOVE = 0x0877
21564#elif CLIENT_TYPE == 'M' && ( \
21565 PACKET_VERSION == 20190821 \
21566 || PACKET_VERSION == 20190807 \
21567 || PACKET_VERSION == 20190802 \
21568 || PACKET_VERSION == 20190731 \
21569 || PACKET_VERSION == 20190724 \
21570 || PACKET_VERSION == 20190717 \
21571 || PACKET_VERSION == 20190703 \
21572 || PACKET_VERSION == 20190605 \
21573 || PACKET_VERSION == 20190530 \
21574 || PACKET_VERSION == 20190523 \
21575 || PACKET_VERSION == 20190522 \
21576 || PACKET_VERSION == 20190508 \
21577 || PACKET_VERSION == 20190418 \
21578 || PACKET_VERSION == 20190417 \
21579 || PACKET_VERSION == 20190327 \
21580 || PACKET_VERSION == 20190322 \
21581 || PACKET_VERSION == 20190320 \
21582 || PACKET_VERSION == 20190313 \
21583 || PACKET_VERSION == 20190306 \
21584 || PACKET_VERSION == 20190228 \
21585 || PACKET_VERSION == 20190123 \
21586 || PACKET_VERSION == 20190116 \
21587 || PACKET_VERSION == 20181226 \
21588 || PACKET_VERSION == 20181219 \
21589 || PACKET_VERSION == 20181212 \
21590 || PACKET_VERSION == 20181205 \
21591 || PACKET_VERSION == 20181128 \
21592 || PACKET_VERSION == 20181114 \
21593 || PACKET_VERSION == 20181107 \
21594 || PACKET_VERSION == 20181024 \
21595 || PACKET_VERSION == 20180919 \
21596 || PACKET_VERSION == 20180831 \
21597 || PACKET_VERSION == 20180822 \
21598 || PACKET_VERSION >= 20180808 \
21599 || PACKET_VERSION >= 20180718 \
21600 || PACKET_VERSION >= 20180704 \
21601 || PACKET_VERSION >= 20180621 \
21602 || PACKET_VERSION >= 20180620 \
21603 || PACKET_VERSION >= 20180530 \
21604 || PACKET_VERSION >= 20180523 \
21605 || PACKET_VERSION >= 20180516 \
21606 || PACKET_VERSION >= 20180509 \
21607 || PACKET_VERSION >= 20180502 \
21608 || PACKET_VERSION >= 20180425 \
21609 || PACKET_VERSION >= 20180404 \
21610 || PACKET_VERSION >= 20180328 \
21611 || PACKET_VERSION >= 20180321)
21612ID_CZ_REQUEST_MOVE = 0x035f
21613#elif CLIENT_TYPE == 'R' && \
21614 PACKET_VERSION >= 20080000
21615ID_CZ_REQUEST_MOVE = 0x0085
21616#elif CLIENT_TYPE == 'R' && \
21617 PACKET_VERSION >= 20120712
21618ID_CZ_REQUEST_MOVE = 0x087f
21619#elif CLIENT_TYPE == 'R' && ( \
21620 PACKET_VERSION >= 20210000 \
21621 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
21622 || PACKET_VERSION >= 20120926)
21623ID_CZ_REQUEST_MOVE = 0x0950
21624#elif CLIENT_TYPE == 'R' && \
21625 PACKET_VERSION >= 20121011
21626ID_CZ_REQUEST_MOVE = 0x0883
21627#elif CLIENT_TYPE == 'R' && \
21628 PACKET_VERSION >= 20130116
21629ID_CZ_REQUEST_MOVE = 0x0817
21630#elif CLIENT_TYPE == 'R' && ( \
21631 PACKET_VERSION == 20151029 \
21632 || PACKET_VERSION == 20151022 \
21633 || PACKET_VERSION == 20150812 \
21634 || PACKET_VERSION == 20150618 \
21635 || PACKET_VERSION == 20150226 \
21636 || PACKET_VERSION >= 20141016)
21637ID_CZ_REQUEST_MOVE = 0x0437
21638#elif CLIENT_TYPE == 'R' && \
21639 PACKET_VERSION >= 20160630
21640ID_CZ_REQUEST_MOVE = 0x022d
21641#elif CLIENT_TYPE == 'R' && \
21642 PACKET_VERSION >= 20161103
21643ID_CZ_REQUEST_MOVE = 0x08aa
21644#elif CLIENT_TYPE == 'R' && ( \
21645 PACKET_VERSION == 20190821 \
21646 || PACKET_VERSION == 20190807 \
21647 || PACKET_VERSION == 20190802 \
21648 || PACKET_VERSION == 20190731 \
21649 || PACKET_VERSION == 20190724 \
21650 || PACKET_VERSION == 20190717 \
21651 || PACKET_VERSION == 20190703 \
21652 || PACKET_VERSION == 20190626 \
21653 || PACKET_VERSION == 20190605 \
21654 || PACKET_VERSION == 20190530 \
21655 || PACKET_VERSION == 20190522 \
21656 || PACKET_VERSION == 20190508 \
21657 || PACKET_VERSION == 20190418 \
21658 || PACKET_VERSION == 20190417 \
21659 || PACKET_VERSION == 20190327 \
21660 || PACKET_VERSION == 20190322 \
21661 || PACKET_VERSION == 20190320 \
21662 || PACKET_VERSION == 20190306 \
21663 || PACKET_VERSION == 20190228 \
21664 || PACKET_VERSION == 20190123 \
21665 || PACKET_VERSION == 20190116 \
21666 || PACKET_VERSION == 20181226 \
21667 || PACKET_VERSION == 20181219 \
21668 || PACKET_VERSION == 20181212 \
21669 || PACKET_VERSION == 20181205 \
21670 || PACKET_VERSION == 20181128 \
21671 || PACKET_VERSION == 20181121 \
21672 || PACKET_VERSION == 20181114 \
21673 || PACKET_VERSION == 20181107 \
21674 || PACKET_VERSION == 20180822 \
21675 || PACKET_VERSION >= 20180808 \
21676 || PACKET_VERSION >= 20180718 \
21677 || PACKET_VERSION >= 20180711 \
21678 || PACKET_VERSION >= 20180621 \
21679 || PACKET_VERSION >= 20180620 \
21680 || PACKET_VERSION >= 20180612 \
21681 || PACKET_VERSION >= 20180530 \
21682 || PACKET_VERSION >= 20180523 \
21683 || PACKET_VERSION >= 20180516 \
21684 || PACKET_VERSION >= 20180502 \
21685 || PACKET_VERSION >= 20180425 \
21686 || PACKET_VERSION >= 20180404 \
21687 || PACKET_VERSION >= 20180328)
21688ID_CZ_REQUEST_MOVE = 0x035f
21689#elif CLIENT_TYPE == 'S' && \
21690 PACKET_VERSION >= 20030000
21691ID_CZ_REQUEST_MOVE = 0x0085
21692#elif CLIENT_TYPE == 'Z' && \
21693 PACKET_VERSION >= 20170000
21694ID_CZ_REQUEST_MOVE = 0x0085
21695#elif CLIENT_TYPE == 'Z' && ( \
21696 PACKET_VERSION == 20190814 \
21697 || PACKET_VERSION == 20190724 \
21698 || PACKET_VERSION == 20190717 \
21699 || PACKET_VERSION == 20190710 \
21700 || PACKET_VERSION == 20190709 \
21701 || PACKET_VERSION == 20190605 \
21702 || PACKET_VERSION == 20190530 \
21703 || PACKET_VERSION == 20190515 \
21704 || PACKET_VERSION == 20190508 \
21705 || PACKET_VERSION == 20190502 \
21706 || PACKET_VERSION == 20190424 \
21707 || PACKET_VERSION == 20190410 \
21708 || PACKET_VERSION == 20190403 \
21709 || PACKET_VERSION == 20190313 \
21710 || PACKET_VERSION == 20190227 \
21711 || PACKET_VERSION == 20190213 \
21712 || PACKET_VERSION == 20190117 \
21713 || PACKET_VERSION == 20181226 \
21714 || PACKET_VERSION == 20181219 \
21715 || PACKET_VERSION == 20181212 \
21716 || PACKET_VERSION == 20181128 \
21717 || PACKET_VERSION == 20181120 \
21718 || PACKET_VERSION == 20180928 \
21719 || PACKET_VERSION == 20180912 \
21720 || PACKET_VERSION == 20180829 \
21721 || PACKET_VERSION >= 20180808 \
21722 || PACKET_VERSION >= 20180801 \
21723 || PACKET_VERSION >= 20180711 \
21724 || PACKET_VERSION >= 20180703 \
21725 || PACKET_VERSION >= 20180627 \
21726 || PACKET_VERSION >= 20180509 \
21727 || PACKET_VERSION >= 20180411 \
21728 || PACKET_VERSION >= 20180321 \
21729 || PACKET_VERSION >= 20171113 \
21730 || PACKET_VERSION >= 20171031 \
21731 || PACKET_VERSION >= 20171030 \
21732 || PACKET_VERSION >= 20171027 \
21733 || PACKET_VERSION >= 20171025 \
21734 || PACKET_VERSION >= 20171024 \
21735 || PACKET_VERSION >= 20171023 \
21736 || PACKET_VERSION >= 20171019)
21737ID_CZ_REQUEST_MOVE = 0x035f
21738#elif CLIENT_TYPE == 'Z' && ( \
21739 PACKET_VERSION == 20180309 \
21740 || PACKET_VERSION == 20180307 \
21741 || PACKET_VERSION == 20171128 \
21742 || PACKET_VERSION == 20171122 \
21743 || PACKET_VERSION == 20171117 \
21744 || PACKET_VERSION == 20171116)
21745ID_CZ_REQUEST_MOVE = 0x0437
21746#elif CLIENT_TYPE == 'Z' && ( \
21747 PACKET_VERSION == 20171213 \
21748 || PACKET_VERSION == 20171212 \
21749 || PACKET_VERSION == 20171211 \
21750 || PACKET_VERSION == 20171210 \
21751 || PACKET_VERSION == 20171209 \
21752 || PACKET_VERSION == 20171208)
21753ID_CZ_REQUEST_MOVE = 0x0864
21754#elif CLIENT_TYPE == 'Z' && \
21755 PACKET_VERSION >= 20171221
21756ID_CZ_REQUEST_MOVE = 0x0899
21757#elif CLIENT_TYPE == 'Z' && ( \
21758 PACKET_VERSION >= 20220000 \
21759 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
21760 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
21761 || PACKET_VERSION >= 20171229)
21762ID_CZ_REQUEST_MOVE = 0x0946
21763#else
21764ID_CZ_REQUEST_MOVE = 0x0000 // Disabled
21765#endif
21771class CZ_REQUEST_MOVE : public Base::NetworkPacket<ZoneSession>
21772{
21773public:
21774 CZ_REQUEST_MOVE(std::shared_ptr<ZoneSession> s)
21776 {}
21777 virtual ~CZ_REQUEST_MOVE() {}
21778
21779 void handle(ByteBuffer &&buf);
21780 void deserialize(ByteBuffer &buf);
21781
21782/* Structure */
21783 uint16_t _x{0}, _y{0};
21784 uint8_t _dir{0};
21785};
21786
21787enum {
21788#if CLIENT_TYPE == 'A' && \
21789 PACKET_VERSION >= 20080624
21790ID_CZ_REQUEST_MOVE2 = 0x035f
21791#elif CLIENT_TYPE == 'M' && ( \
21792 PACKET_VERSION >= 20220000 \
21793 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
21794 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
21795 || (PACKET_VERSION >= 20190000 && PACKET_VERSION < 20200000) \
21796 || PACKET_VERSION >= 20180315 \
21797 || PACKET_VERSION >= 20180314 \
21798 || PACKET_VERSION >= 20180307 \
21799 || PACKET_VERSION >= 20180213 \
21800 || PACKET_VERSION >= 20180117 \
21801 || PACKET_VERSION >= 20180103 \
21802 || PACKET_VERSION >= 20171227 \
21803 || PACKET_VERSION >= 20171220 \
21804 || PACKET_VERSION >= 20171213 \
21805 || PACKET_VERSION >= 20171206 \
21806 || PACKET_VERSION >= 20171129 \
21807 || PACKET_VERSION >= 20171122 \
21808 || PACKET_VERSION >= 20171115 \
21809 || PACKET_VERSION >= 20171101 \
21810 || PACKET_VERSION >= 20170927 \
21811 || PACKET_VERSION >= 20170920 \
21812 || PACKET_VERSION >= 20170913 \
21813 || PACKET_VERSION >= 20170906 \
21814 || PACKET_VERSION >= 20170830 \
21815 || PACKET_VERSION >= 20170823 \
21816 || PACKET_VERSION >= 20170809 \
21817 || PACKET_VERSION >= 20170801 \
21818 || PACKET_VERSION >= 20170719 \
21819 || PACKET_VERSION >= 20170621 \
21820 || PACKET_VERSION >= 20170517 \
21821 || PACKET_VERSION >= 20170426 \
21822 || PACKET_VERSION >= 20170412 \
21823 || PACKET_VERSION >= 20170322 \
21824 || PACKET_VERSION >= 20170315 \
21825 || PACKET_VERSION >= 20170308 \
21826 || PACKET_VERSION >= 20170228 \
21827 || PACKET_VERSION >= 20170222 \
21828 || PACKET_VERSION >= 20170215 \
21829 || PACKET_VERSION >= 20170201 \
21830 || PACKET_VERSION >= 20170125 \
21831 || PACKET_VERSION >= 20170104 \
21832 || PACKET_VERSION >= 20161228 \
21833 || PACKET_VERSION >= 20161207 \
21834 || PACKET_VERSION >= 20161130 \
21835 || PACKET_VERSION >= 20161123 \
21836 || PACKET_VERSION >= 20161026 \
21837 || PACKET_VERSION >= 20161019 \
21838 || PACKET_VERSION >= 20161005 \
21839 || PACKET_VERSION >= 20160921 \
21840 || PACKET_VERSION >= 20160913 \
21841 || PACKET_VERSION >= 20160907 \
21842 || PACKET_VERSION >= 20160831 \
21843 || PACKET_VERSION >= 20160824 \
21844 || PACKET_VERSION >= 20160706 \
21845 || PACKET_VERSION >= 20160629 \
21846 || PACKET_VERSION >= 20160622 \
21847 || PACKET_VERSION >= 20160615 \
21848 || PACKET_VERSION >= 20160608 \
21849 || PACKET_VERSION >= 20160511 \
21850 || PACKET_VERSION >= 20160504 \
21851 || PACKET_VERSION >= 20160427 \
21852 || PACKET_VERSION >= 20160420 \
21853 || PACKET_VERSION >= 20160414 \
21854 || PACKET_VERSION >= 20160406 \
21855 || PACKET_VERSION >= 20160316 \
21856 || PACKET_VERSION >= 20160302 \
21857 || PACKET_VERSION >= 20160224 \
21858 || PACKET_VERSION >= 20160217 \
21859 || PACKET_VERSION >= 20160211 \
21860 || PACKET_VERSION >= 20160203 \
21861 || PACKET_VERSION >= 20160120 \
21862 || PACKET_VERSION >= 20160113 \
21863 || PACKET_VERSION >= 20160106 \
21864 || PACKET_VERSION >= 20151230 \
21865 || PACKET_VERSION >= 20151209 \
21866 || PACKET_VERSION >= 20151202 \
21867 || PACKET_VERSION >= 20151125 \
21868 || PACKET_VERSION >= 20151118 \
21869 || PACKET_VERSION >= 20151111 \
21870 || PACKET_VERSION >= 20151104 \
21871 || PACKET_VERSION >= 20151021 \
21872 || PACKET_VERSION >= 20151014 \
21873 || PACKET_VERSION >= 20151001 \
21874 || PACKET_VERSION >= 20150916 \
21875 || PACKET_VERSION >= 20150909 \
21876 || PACKET_VERSION >= 20150826 \
21877 || PACKET_VERSION >= 20150805 \
21878 || PACKET_VERSION >= 20150715 \
21879 || PACKET_VERSION >= 20150708 \
21880 || PACKET_VERSION >= 20150701 \
21881 || PACKET_VERSION >= 20150617 \
21882 || PACKET_VERSION >= 20150603 \
21883 || PACKET_VERSION >= 20150527 \
21884 || PACKET_VERSION >= 20150520 \
21885 || PACKET_VERSION >= 20150422 \
21886 || PACKET_VERSION >= 20150311 \
21887 || PACKET_VERSION >= 20150225 \
21888 || PACKET_VERSION >= 20150217 \
21889 || PACKET_VERSION >= 20150211 \
21890 || PACKET_VERSION >= 20150107 \
21891 || PACKET_VERSION >= 20141231 \
21892 || PACKET_VERSION >= 20141217 \
21893 || PACKET_VERSION >= 20141210 \
21894 || PACKET_VERSION >= 20141203 \
21895 || PACKET_VERSION >= 20141126 \
21896 || PACKET_VERSION >= 20141112 \
21897 || PACKET_VERSION >= 20141105 \
21898 || PACKET_VERSION >= 20141001 \
21899 || PACKET_VERSION >= 20140917 \
21900 || PACKET_VERSION >= 20140827 \
21901 || PACKET_VERSION >= 20140820 \
21902 || PACKET_VERSION >= 20140806 \
21903 || PACKET_VERSION >= 20140709 \
21904 || PACKET_VERSION >= 20140702 \
21905 || PACKET_VERSION >= 20140611 \
21906 || PACKET_VERSION >= 20140605 \
21907 || PACKET_VERSION >= 20140528 \
21908 || PACKET_VERSION >= 20140521 \
21909 || PACKET_VERSION >= 20140514 \
21910 || PACKET_VERSION >= 20140508 \
21911 || PACKET_VERSION >= 20140430 \
21912 || PACKET_VERSION >= 20140423 \
21913 || PACKET_VERSION >= 20140416 \
21914 || PACKET_VERSION >= 20140312 \
21915 || PACKET_VERSION >= 20140226 \
21916 || PACKET_VERSION >= 20140212 \
21917 || PACKET_VERSION >= 20140129 \
21918 || PACKET_VERSION >= 20140122 \
21919 || PACKET_VERSION >= 20140108 \
21920 || PACKET_VERSION >= 20131230 \
21921 || PACKET_VERSION >= 20131211 \
21922 || PACKET_VERSION >= 20131204 \
21923 || PACKET_VERSION >= 20131127 \
21924 || PACKET_VERSION >= 20131106 \
21925 || PACKET_VERSION >= 20131030 \
21926 || PACKET_VERSION >= 20131008 \
21927 || PACKET_VERSION >= 20131002 \
21928 || PACKET_VERSION >= 20130925 \
21929 || PACKET_VERSION >= 20130917 \
21930 || PACKET_VERSION >= 20130904 \
21931 || PACKET_VERSION >= 20130814 \
21932 || PACKET_VERSION >= 20130807 \
21933 || PACKET_VERSION >= 20130731 \
21934 || PACKET_VERSION >= 20130724 \
21935 || PACKET_VERSION >= 20130717 \
21936 || PACKET_VERSION >= 20130626 \
21937 || PACKET_VERSION >= 20130618 \
21938 || PACKET_VERSION >= 20130605 \
21939 || PACKET_VERSION >= 20130522 \
21940 || PACKET_VERSION >= 20130417 \
21941 || PACKET_VERSION >= 20130410 \
21942 || PACKET_VERSION >= 20130403 \
21943 || PACKET_VERSION >= 20130327 \
21944 || PACKET_VERSION >= 20130313 \
21945 || PACKET_VERSION >= 20130306 \
21946 || PACKET_VERSION >= 20130227 \
21947 || PACKET_VERSION >= 20130206 \
21948 || PACKET_VERSION >= 20130121 \
21949 || PACKET_VERSION >= 20130109 \
21950 || PACKET_VERSION >= 20130103 \
21951 || PACKET_VERSION >= 20121227 \
21952 || PACKET_VERSION >= 20121218 \
21953 || PACKET_VERSION >= 20121212 \
21954 || PACKET_VERSION >= 20121205 \
21955 || PACKET_VERSION >= 20121107 \
21956 || PACKET_VERSION >= 20121031 \
21957 || PACKET_VERSION >= 20121024 \
21958 || PACKET_VERSION >= 20121017 \
21959 || PACKET_VERSION >= 20120925 \
21960 || PACKET_VERSION >= 20120919 \
21961 || PACKET_VERSION >= 20120905 \
21962 || PACKET_VERSION >= 20120830 \
21963 || PACKET_VERSION >= 20120814 \
21964 || PACKET_VERSION >= 20120808 \
21965 || PACKET_VERSION >= 20120801 \
21966 || PACKET_VERSION >= 20120724 \
21967 || PACKET_VERSION >= 20120716 \
21968 || PACKET_VERSION >= 20120626 \
21969 || PACKET_VERSION >= 20120612 \
21970 || PACKET_VERSION >= 20120604 \
21971 || PACKET_VERSION >= 20120529 \
21972 || PACKET_VERSION >= 20120515 \
21973 || PACKET_VERSION >= 20120503 \
21974 || PACKET_VERSION >= 20120424 \
21975 || PACKET_VERSION >= 20120417 \
21976 || PACKET_VERSION >= 20120410 \
21977 || PACKET_VERSION >= 20120404 \
21978 || PACKET_VERSION >= 20120328 \
21979 || PACKET_VERSION >= 20120314 \
21980 || PACKET_VERSION >= 20120228 \
21981 || PACKET_VERSION >= 20120221 \
21982 || PACKET_VERSION >= 20120214 \
21983 || PACKET_VERSION >= 20120131 \
21984 || PACKET_VERSION >= 20120117 \
21985 || PACKET_VERSION >= 20120103 \
21986 || PACKET_VERSION >= 20111227 \
21987 || PACKET_VERSION >= 20111220 \
21988 || PACKET_VERSION >= 20111213 \
21989 || PACKET_VERSION >= 20111207 \
21990 || PACKET_VERSION >= 20111108 \
21991 || PACKET_VERSION >= 20111101 \
21992 || PACKET_VERSION >= 20111025 \
21993 || PACKET_VERSION >= 20111017 \
21994 || PACKET_VERSION >= 20111010 \
21995 || PACKET_VERSION >= 20110928 \
21996 || PACKET_VERSION >= 20110920 \
21997 || PACKET_VERSION >= 20110906 \
21998 || PACKET_VERSION >= 20110823 \
21999 || PACKET_VERSION >= 20110802 \
22000 || PACKET_VERSION >= 20110726 \
22001 || PACKET_VERSION >= 20110718 \
22002 || PACKET_VERSION >= 20110711 \
22003 || PACKET_VERSION >= 20110627 \
22004 || PACKET_VERSION >= 20110620 \
22005 || PACKET_VERSION >= 20110517 \
22006 || PACKET_VERSION >= 20110503 \
22007 || PACKET_VERSION >= 20110419 \
22008 || PACKET_VERSION >= 20110405 \
22009 || PACKET_VERSION >= 20110329 \
22010 || PACKET_VERSION >= 20110322 \
22011 || PACKET_VERSION >= 20110308 \
22012 || PACKET_VERSION >= 20110222 \
22013 || PACKET_VERSION >= 20110208 \
22014 || PACKET_VERSION >= 20110131 \
22015 || PACKET_VERSION >= 20110125 \
22016 || PACKET_VERSION >= 20110118 \
22017 || PACKET_VERSION >= 20110104 \
22018 || PACKET_VERSION >= 20101221 \
22019 || PACKET_VERSION >= 20101214 \
22020 || PACKET_VERSION >= 20101130 \
22021 || PACKET_VERSION >= 20101123 \
22022 || PACKET_VERSION >= 20100105 \
22023 || PACKET_VERSION >= 20090406 \
22024 || PACKET_VERSION >= 20090401 \
22025 || PACKET_VERSION >= 20090325 \
22026 || PACKET_VERSION >= 20090318 \
22027 || PACKET_VERSION >= 20090311 \
22028 || PACKET_VERSION >= 20090225 \
22029 || PACKET_VERSION >= 20090218 \
22030 || PACKET_VERSION >= 20090129 \
22031 || PACKET_VERSION >= 20090120 \
22032 || PACKET_VERSION >= 20090107 \
22033 || PACKET_VERSION >= 20081126 \
22034 || PACKET_VERSION >= 20081119 \
22035 || PACKET_VERSION >= 20081112 \
22036 || PACKET_VERSION >= 20081105 \
22037 || PACKET_VERSION >= 20081029 \
22038 || PACKET_VERSION >= 20081008 \
22039 || PACKET_VERSION >= 20081001 \
22040 || PACKET_VERSION >= 20080924 \
22041 || PACKET_VERSION >= 20080917 \
22042 || PACKET_VERSION >= 20080910 \
22043 || PACKET_VERSION >= 20080730 \
22044 || PACKET_VERSION >= 20080722 \
22045 || PACKET_VERSION >= 20080715 \
22046 || PACKET_VERSION >= 20080708 \
22047 || PACKET_VERSION >= 20080624 \
22048 || PACKET_VERSION >= 20080617 \
22049 || PACKET_VERSION >= 20080528)
22050ID_CZ_REQUEST_MOVE2 = 0x035f
22051#elif CLIENT_TYPE == 'R' && ( \
22052 PACKET_VERSION >= 20210000 \
22053 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
22054 || (PACKET_VERSION >= 20190000 && PACKET_VERSION < 20200000) \
22055 || PACKET_VERSION >= 20180321 \
22056 || PACKET_VERSION >= 20180307 \
22057 || PACKET_VERSION >= 20180213 \
22058 || PACKET_VERSION >= 20180117 \
22059 || PACKET_VERSION >= 20180103 \
22060 || PACKET_VERSION >= 20171227 \
22061 || PACKET_VERSION >= 20171220 \
22062 || PACKET_VERSION >= 20171213 \
22063 || PACKET_VERSION >= 20171206 \
22064 || PACKET_VERSION >= 20171129 \
22065 || PACKET_VERSION >= 20171122 \
22066 || PACKET_VERSION >= 20171115 \
22067 || PACKET_VERSION >= 20171101 \
22068 || PACKET_VERSION >= 20170927 \
22069 || PACKET_VERSION >= 20170920 \
22070 || PACKET_VERSION >= 20170913 \
22071 || PACKET_VERSION >= 20170906 \
22072 || PACKET_VERSION >= 20170830 \
22073 || PACKET_VERSION >= 20170823 \
22074 || PACKET_VERSION >= 20170809 \
22075 || PACKET_VERSION >= 20170801 \
22076 || PACKET_VERSION >= 20170719 \
22077 || PACKET_VERSION >= 20170621 \
22078 || PACKET_VERSION >= 20170517 \
22079 || PACKET_VERSION >= 20170426 \
22080 || PACKET_VERSION >= 20170412 \
22081 || PACKET_VERSION >= 20170322 \
22082 || PACKET_VERSION >= 20170315 \
22083 || PACKET_VERSION >= 20170308 \
22084 || PACKET_VERSION >= 20170228 \
22085 || PACKET_VERSION >= 20170222 \
22086 || PACKET_VERSION >= 20170215 \
22087 || PACKET_VERSION >= 20170201 \
22088 || PACKET_VERSION >= 20170125 \
22089 || PACKET_VERSION >= 20170104 \
22090 || PACKET_VERSION >= 20161228 \
22091 || PACKET_VERSION >= 20161207 \
22092 || PACKET_VERSION >= 20161130 \
22093 || PACKET_VERSION >= 20161123 \
22094 || PACKET_VERSION >= 20161026 \
22095 || PACKET_VERSION >= 20161019 \
22096 || PACKET_VERSION >= 20161005 \
22097 || PACKET_VERSION >= 20160921 \
22098 || PACKET_VERSION >= 20160913 \
22099 || PACKET_VERSION >= 20160907 \
22100 || PACKET_VERSION >= 20160831 \
22101 || PACKET_VERSION >= 20160824 \
22102 || PACKET_VERSION >= 20160706 \
22103 || PACKET_VERSION >= 20160629 \
22104 || PACKET_VERSION >= 20160622 \
22105 || PACKET_VERSION >= 20160615 \
22106 || PACKET_VERSION >= 20160608 \
22107 || PACKET_VERSION >= 20160511 \
22108 || PACKET_VERSION >= 20160504 \
22109 || PACKET_VERSION >= 20160427 \
22110 || PACKET_VERSION >= 20160420 \
22111 || PACKET_VERSION >= 20160414 \
22112 || PACKET_VERSION >= 20160406 \
22113 || PACKET_VERSION >= 20160316 \
22114 || PACKET_VERSION >= 20160302 \
22115 || PACKET_VERSION >= 20160224 \
22116 || PACKET_VERSION >= 20160217 \
22117 || PACKET_VERSION >= 20160211 \
22118 || PACKET_VERSION >= 20160203 \
22119 || PACKET_VERSION >= 20160120 \
22120 || PACKET_VERSION >= 20160113 \
22121 || PACKET_VERSION >= 20160106 \
22122 || PACKET_VERSION >= 20151230 \
22123 || PACKET_VERSION >= 20151209 \
22124 || PACKET_VERSION >= 20151202 \
22125 || PACKET_VERSION >= 20151125 \
22126 || PACKET_VERSION >= 20151118 \
22127 || PACKET_VERSION >= 20151111 \
22128 || PACKET_VERSION >= 20151104 \
22129 || PACKET_VERSION >= 20151021 \
22130 || PACKET_VERSION >= 20151014 \
22131 || PACKET_VERSION >= 20151001 \
22132 || PACKET_VERSION >= 20150916 \
22133 || PACKET_VERSION >= 20150909 \
22134 || PACKET_VERSION >= 20150826 \
22135 || PACKET_VERSION >= 20150805 \
22136 || PACKET_VERSION >= 20150715 \
22137 || PACKET_VERSION >= 20150708 \
22138 || PACKET_VERSION >= 20150701 \
22139 || PACKET_VERSION >= 20150617 \
22140 || PACKET_VERSION >= 20150603 \
22141 || PACKET_VERSION >= 20150527 \
22142 || PACKET_VERSION >= 20150520 \
22143 || PACKET_VERSION >= 20150422 \
22144 || PACKET_VERSION >= 20150311 \
22145 || PACKET_VERSION >= 20150217 \
22146 || PACKET_VERSION >= 20150211 \
22147 || PACKET_VERSION >= 20150107 \
22148 || PACKET_VERSION >= 20141231 \
22149 || PACKET_VERSION >= 20141217 \
22150 || PACKET_VERSION >= 20141210 \
22151 || PACKET_VERSION >= 20141203 \
22152 || PACKET_VERSION >= 20141126 \
22153 || PACKET_VERSION >= 20141112 \
22154 || PACKET_VERSION >= 20141105 \
22155 || PACKET_VERSION >= 20141001 \
22156 || PACKET_VERSION >= 20140917 \
22157 || PACKET_VERSION >= 20140827 \
22158 || PACKET_VERSION >= 20140820 \
22159 || PACKET_VERSION >= 20140806 \
22160 || PACKET_VERSION >= 20140709 \
22161 || PACKET_VERSION >= 20140702 \
22162 || PACKET_VERSION >= 20140611 \
22163 || PACKET_VERSION >= 20140605 \
22164 || PACKET_VERSION >= 20140528 \
22165 || PACKET_VERSION >= 20140521 \
22166 || PACKET_VERSION >= 20140514 \
22167 || PACKET_VERSION >= 20140508 \
22168 || PACKET_VERSION >= 20140430 \
22169 || PACKET_VERSION >= 20140423 \
22170 || PACKET_VERSION >= 20140416 \
22171 || PACKET_VERSION >= 20140312 \
22172 || PACKET_VERSION >= 20140226 \
22173 || PACKET_VERSION >= 20140212 \
22174 || PACKET_VERSION >= 20140129 \
22175 || PACKET_VERSION >= 20140122 \
22176 || PACKET_VERSION >= 20140108 \
22177 || PACKET_VERSION >= 20131230 \
22178 || PACKET_VERSION >= 20131223 \
22179 || PACKET_VERSION >= 20131211 \
22180 || PACKET_VERSION >= 20131204 \
22181 || PACKET_VERSION >= 20131127 \
22182 || PACKET_VERSION >= 20131106 \
22183 || PACKET_VERSION >= 20131030 \
22184 || PACKET_VERSION >= 20131008 \
22185 || PACKET_VERSION >= 20131002 \
22186 || PACKET_VERSION >= 20130925 \
22187 || PACKET_VERSION >= 20130917 \
22188 || PACKET_VERSION >= 20130904 \
22189 || PACKET_VERSION >= 20130814 \
22190 || PACKET_VERSION >= 20130807 \
22191 || PACKET_VERSION >= 20130731 \
22192 || PACKET_VERSION >= 20130724 \
22193 || PACKET_VERSION >= 20130717 \
22194 || PACKET_VERSION >= 20130626 \
22195 || PACKET_VERSION >= 20130618 \
22196 || PACKET_VERSION >= 20130605 \
22197 || PACKET_VERSION >= 20130522 \
22198 || PACKET_VERSION >= 20130417 \
22199 || PACKET_VERSION >= 20130410 \
22200 || PACKET_VERSION >= 20130403 \
22201 || PACKET_VERSION >= 20130327 \
22202 || PACKET_VERSION >= 20130313 \
22203 || PACKET_VERSION >= 20130306 \
22204 || PACKET_VERSION >= 20130227 \
22205 || PACKET_VERSION >= 20130206 \
22206 || PACKET_VERSION >= 20130121 \
22207 || PACKET_VERSION >= 20130109 \
22208 || PACKET_VERSION >= 20130103 \
22209 || PACKET_VERSION >= 20121227 \
22210 || PACKET_VERSION >= 20121218 \
22211 || PACKET_VERSION >= 20121212 \
22212 || PACKET_VERSION >= 20121205 \
22213 || PACKET_VERSION >= 20121107 \
22214 || PACKET_VERSION >= 20121031 \
22215 || PACKET_VERSION >= 20121024 \
22216 || PACKET_VERSION >= 20121017 \
22217 || PACKET_VERSION >= 20120925 \
22218 || PACKET_VERSION >= 20120919 \
22219 || PACKET_VERSION >= 20120905 \
22220 || PACKET_VERSION >= 20120830 \
22221 || PACKET_VERSION >= 20120814 \
22222 || PACKET_VERSION >= 20120808 \
22223 || PACKET_VERSION >= 20120801 \
22224 || PACKET_VERSION >= 20120724 \
22225 || PACKET_VERSION >= 20120716 \
22226 || PACKET_VERSION >= 20120626 \
22227 || PACKET_VERSION >= 20120612 \
22228 || PACKET_VERSION >= 20120601 \
22229 || PACKET_VERSION >= 20120529 \
22230 || PACKET_VERSION >= 20120515 \
22231 || PACKET_VERSION >= 20120502 \
22232 || PACKET_VERSION >= 20120424 \
22233 || PACKET_VERSION >= 20120417 \
22234 || PACKET_VERSION >= 20120410 \
22235 || PACKET_VERSION >= 20120404 \
22236 || PACKET_VERSION >= 20120328 \
22237 || PACKET_VERSION >= 20120314 \
22238 || PACKET_VERSION >= 20120228 \
22239 || PACKET_VERSION >= 20120221 \
22240 || PACKET_VERSION >= 20120214 \
22241 || PACKET_VERSION >= 20120131 \
22242 || PACKET_VERSION >= 20120117 \
22243 || PACKET_VERSION >= 20120103 \
22244 || PACKET_VERSION >= 20111227 \
22245 || PACKET_VERSION >= 20111220 \
22246 || PACKET_VERSION >= 20111213 \
22247 || PACKET_VERSION >= 20111207 \
22248 || PACKET_VERSION >= 20111108 \
22249 || PACKET_VERSION >= 20111101 \
22250 || PACKET_VERSION >= 20111025 \
22251 || PACKET_VERSION >= 20111017 \
22252 || PACKET_VERSION >= 20111010 \
22253 || PACKET_VERSION >= 20110928 \
22254 || PACKET_VERSION >= 20110920 \
22255 || PACKET_VERSION >= 20110906 \
22256 || PACKET_VERSION >= 20110823 \
22257 || PACKET_VERSION >= 20110816 \
22258 || PACKET_VERSION >= 20110104 \
22259 || PACKET_VERSION >= 20101123 \
22260 || PACKET_VERSION >= 20100105 \
22261 || (PACKET_VERSION >= 20090000 && PACKET_VERSION < 20100105) \
22262 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20090000))
22263ID_CZ_REQUEST_MOVE2 = 0x035f
22264#elif CLIENT_TYPE == 'S' && \
22265 PACKET_VERSION >= 20080618
22266ID_CZ_REQUEST_MOVE2 = 0x035f
22267#elif CLIENT_TYPE == 'Z' && ( \
22268 PACKET_VERSION >= 20220000 \
22269 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
22270 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
22271 || (PACKET_VERSION >= 20190000 && PACKET_VERSION < 20200000) \
22272 || PACKET_VERSION >= 20180523 \
22273 || PACKET_VERSION >= 20180511 \
22274 || PACKET_VERSION >= 20180315 \
22275 || PACKET_VERSION >= 20180314 \
22276 || PACKET_VERSION >= 20180228 \
22277 || PACKET_VERSION >= 20180221 \
22278 || PACKET_VERSION >= 20180131 \
22279 || PACKET_VERSION >= 20180117 \
22280 || PACKET_VERSION >= 20180103 \
22281 || PACKET_VERSION >= 20171206 \
22282 || PACKET_VERSION >= 20171204 \
22283 || PACKET_VERSION >= 20171130 \
22284 || PACKET_VERSION >= 20171115 \
22285 || PACKET_VERSION >= 20171018)
22286ID_CZ_REQUEST_MOVE2 = 0x035f
22287#else
22288ID_CZ_REQUEST_MOVE2 = 0x0000 // Disabled
22289#endif
22295class CZ_REQUEST_MOVE2 : public Base::NetworkPacket<ZoneSession>
22296{
22297public:
22298 CZ_REQUEST_MOVE2(std::shared_ptr<ZoneSession> s)
22300 {}
22302
22303 void handle(ByteBuffer &&buf);
22304 void deserialize(ByteBuffer &buf);
22305
22306/* Structure */
22307 uint16_t _x, _y;
22308 uint8_t _dir;
22309};
22310
22311enum {
22312#if CLIENT_TYPE == 'A' && \
22313 PACKET_VERSION >= 20050425
22314ID_CZ_REQUEST_MOVENPC = 0x0232
22315#elif CLIENT_TYPE == 'M' && ( \
22316 PACKET_VERSION >= 20220000 \
22317 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
22318 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
22319 || PACKET_VERSION >= 20050425)
22320ID_CZ_REQUEST_MOVENPC = 0x0232
22321#elif CLIENT_TYPE == 'R' && ( \
22322 PACKET_VERSION >= 20210000 \
22323 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
22324 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
22325ID_CZ_REQUEST_MOVENPC = 0x0232
22326#elif CLIENT_TYPE == 'S' && \
22327 PACKET_VERSION >= 20050425
22328ID_CZ_REQUEST_MOVENPC = 0x0232
22329#elif CLIENT_TYPE == 'Z' && ( \
22330 PACKET_VERSION >= 20220000 \
22331 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
22332 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
22333 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
22334ID_CZ_REQUEST_MOVENPC = 0x0232
22335#else
22336ID_CZ_REQUEST_MOVENPC = 0x0000 // Disabled
22337#endif
22343class CZ_REQUEST_MOVENPC : public Base::NetworkPacket<ZoneSession>
22344{
22345public:
22346 CZ_REQUEST_MOVENPC(std::shared_ptr<ZoneSession> s)
22348 {}
22350
22351 void handle(ByteBuffer &&buf);
22352 void deserialize(ByteBuffer &buf);
22353
22354/* Structure */
22355 int _guid{ 0 };
22356 uint16_t _x, _y;
22357 uint8_t _dir;
22358};
22359
22360enum {
22361#if CLIENT_TYPE == 'A' && \
22362 PACKET_VERSION >= 20050425
22364#elif CLIENT_TYPE == 'M' && ( \
22365 PACKET_VERSION >= 20220000 \
22366 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
22367 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
22368 || PACKET_VERSION >= 20050425)
22370#elif CLIENT_TYPE == 'R' && ( \
22371 PACKET_VERSION >= 20210000 \
22372 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
22373 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
22375#elif CLIENT_TYPE == 'S' && \
22376 PACKET_VERSION >= 20050425
22378#elif CLIENT_TYPE == 'Z' && ( \
22379 PACKET_VERSION >= 20220000 \
22380 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
22381 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
22382 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
22384#else
22385ID_CZ_REQUEST_MOVETOOWNER = 0x0000 // Disabled
22386#endif
22393{
22394public:
22395 CZ_REQUEST_MOVETOOWNER(std::shared_ptr<ZoneSession> s)
22397 {}
22399
22400 void handle(ByteBuffer &&buf);
22401 void deserialize(ByteBuffer &buf);
22402
22403/* Structure */
22404 int _guid{ 0 };
22405};
22406
22407enum {
22408#if CLIENT_TYPE == 'A' && \
22409 PACKET_VERSION >= 20071120
22411#elif CLIENT_TYPE == 'M' && ( \
22412 PACKET_VERSION >= 20220000 \
22413 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
22414 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
22415 || PACKET_VERSION >= 20071120)
22417#elif CLIENT_TYPE == 'R' && ( \
22418 PACKET_VERSION >= 20210000 \
22419 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
22420 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
22422#elif CLIENT_TYPE == 'S' && \
22423 PACKET_VERSION >= 20071120
22425#elif CLIENT_TYPE == 'Z' && ( \
22426 PACKET_VERSION >= 20220000 \
22427 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
22428 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
22429 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
22431#else
22432ID_CZ_REQUEST_MOVE_NEW_JAPEN = 0x0000 // Disabled
22433#endif
22440{
22441public:
22442 CZ_REQUEST_MOVE_NEW_JAPEN(std::shared_ptr<ZoneSession> s)
22444 {}
22446
22447 void handle(ByteBuffer &&buf);
22448 void deserialize(ByteBuffer &buf);
22449
22450/* Structure */
22451};
22452
22453enum {
22454#if CLIENT_TYPE == 'M' && ( \
22455 PACKET_VERSION >= 20220000 \
22456 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
22457 || PACKET_VERSION >= 20201118)
22459#elif CLIENT_TYPE == 'R' && \
22460 PACKET_VERSION >= 20211103
22462#elif CLIENT_TYPE == 'Z' && ( \
22463 PACKET_VERSION >= 20220000 \
22464 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
22465 || PACKET_VERSION >= 20201118)
22467#else
22468ID_CZ_REQUEST_PERFECT_ENCHANT = 0x0000 // Disabled
22469#endif
22476{
22477public:
22478 CZ_REQUEST_PERFECT_ENCHANT(std::shared_ptr<ZoneSession> s)
22480 {}
22482
22483 void handle(ByteBuffer &&buf);
22484 void deserialize(ByteBuffer &buf);
22485
22486/* Structure */
22487};
22488
22489enum {
22490#if CLIENT_TYPE == 'A' && \
22491 PACKET_VERSION >= 20040000
22492ID_CZ_REQUEST_QUIT = 0x0082
22493#elif CLIENT_TYPE == 'M' && ( \
22494 PACKET_VERSION >= 20220000 \
22495 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
22496 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
22497 || (PACKET_VERSION >= 20030000 && PACKET_VERSION < 20200000))
22498ID_CZ_REQUEST_QUIT = 0x0082
22499#elif CLIENT_TYPE == 'R' && ( \
22500 PACKET_VERSION >= 20210000 \
22501 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
22502 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
22503ID_CZ_REQUEST_QUIT = 0x0082
22504#elif CLIENT_TYPE == 'S' && \
22505 PACKET_VERSION >= 20030000
22506ID_CZ_REQUEST_QUIT = 0x0082
22507#elif CLIENT_TYPE == 'Z' && ( \
22508 PACKET_VERSION >= 20220000 \
22509 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
22510 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
22511 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
22512ID_CZ_REQUEST_QUIT = 0x0082
22513#else
22514ID_CZ_REQUEST_QUIT = 0x0000 // Disabled
22515#endif
22521class CZ_REQUEST_QUIT : public Base::NetworkPacket<ZoneSession>
22522{
22523public:
22524 CZ_REQUEST_QUIT(std::shared_ptr<ZoneSession> s)
22526 {}
22527 virtual ~CZ_REQUEST_QUIT() {}
22528
22529 void handle(ByteBuffer &&buf);
22530 void deserialize(ByteBuffer &buf);
22531
22532/* Structure */
22533};
22534
22535enum {
22536#if CLIENT_TYPE == 'M' && ( \
22537 PACKET_VERSION >= 20220000 \
22538 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
22539 || PACKET_VERSION >= 20201118)
22541#elif CLIENT_TYPE == 'R' && \
22542 PACKET_VERSION >= 20211103
22544#elif CLIENT_TYPE == 'Z' && ( \
22545 PACKET_VERSION >= 20220000 \
22546 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
22547 || PACKET_VERSION >= 20201118)
22549#else
22550ID_CZ_REQUEST_RANDOM_ENCHANT = 0x0000 // Disabled
22551#endif
22558{
22559public:
22560 CZ_REQUEST_RANDOM_ENCHANT(std::shared_ptr<ZoneSession> s)
22562 {}
22564
22565 void handle(ByteBuffer &&buf);
22566 void deserialize(ByteBuffer &buf);
22567
22568/* Structure */
22569};
22570
22571enum {
22572#if CLIENT_TYPE == 'M' && ( \
22573 PACKET_VERSION >= 20220000 \
22574 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
22575 || PACKET_VERSION >= 20201118)
22577#elif CLIENT_TYPE == 'R' && \
22578 PACKET_VERSION >= 20211103
22580#elif CLIENT_TYPE == 'Z' && ( \
22581 PACKET_VERSION >= 20220000 \
22582 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
22583 || PACKET_VERSION >= 20201118)
22585#else
22586ID_CZ_REQUEST_RESET_ENCHANT = 0x0000 // Disabled
22587#endif
22594{
22595public:
22596 CZ_REQUEST_RESET_ENCHANT(std::shared_ptr<ZoneSession> s)
22598 {}
22600
22601 void handle(ByteBuffer &&buf);
22602 void deserialize(ByteBuffer &buf);
22603
22604/* Structure */
22605};
22606
22607enum {
22608#if CLIENT_TYPE == 'A' && \
22609 PACKET_VERSION >= 20041129
22610ID_CZ_REQUEST_TIME = 0x00f7
22611#elif CLIENT_TYPE == 'A' && \
22612 PACKET_VERSION >= 20051010
22613ID_CZ_REQUEST_TIME = 0x007e
22614#elif CLIENT_TYPE == 'M' && \
22615 PACKET_VERSION >= 20030000
22616ID_CZ_REQUEST_TIME = 0x007e
22617#elif CLIENT_TYPE == 'M' && ( \
22618 PACKET_VERSION >= 20190000 \
22619 || (PACKET_VERSION >= 20180000 && PACKET_VERSION < 20190000) \
22620 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20180000) \
22621 || (PACKET_VERSION >= 20160000 && PACKET_VERSION < 20170000) \
22622 || (PACKET_VERSION >= 20150000 && PACKET_VERSION < 20160000) \
22623 || (PACKET_VERSION >= 20140000 && PACKET_VERSION < 20150000) \
22624 || (PACKET_VERSION >= 20130000 && PACKET_VERSION < 20140000) \
22625 || (PACKET_VERSION >= 20120000 && PACKET_VERSION < 20130000) \
22626 || (PACKET_VERSION >= 20110000 && PACKET_VERSION < 20120000) \
22627 || (PACKET_VERSION >= 20100000 && PACKET_VERSION < 20110000) \
22628 || (PACKET_VERSION >= 20090000 && PACKET_VERSION < 20100000) \
22629 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20090000) \
22630 || PACKET_VERSION >= 20070212 \
22631 || PACKET_VERSION >= 20070108 \
22632 || PACKET_VERSION >= 20070102 \
22633 || PACKET_VERSION >= 20060327 \
22634 || PACKET_VERSION >= 20060102 \
22635 || PACKET_VERSION >= 20051010 \
22636 || PACKET_VERSION >= 20050719 \
22637 || PACKET_VERSION >= 20050718 \
22638 || PACKET_VERSION >= 20050628 \
22639 || PACKET_VERSION >= 20050509 \
22640 || PACKET_VERSION >= 20050411 \
22641 || PACKET_VERSION >= 20050110 \
22642 || PACKET_VERSION >= 20050103 \
22643 || PACKET_VERSION >= 20041220 \
22644 || PACKET_VERSION >= 20041216 \
22645 || PACKET_VERSION >= 20041129 \
22646 || PACKET_VERSION >= 20040906 \
22647 || PACKET_VERSION >= 20040809 \
22648 || PACKET_VERSION >= 20040726)
22649ID_CZ_REQUEST_TIME = 0x00f7
22650#elif CLIENT_TYPE == 'M' && \
22651 PACKET_VERSION >= 20120712
22652ID_CZ_REQUEST_TIME = 0x07e4
22653#elif CLIENT_TYPE == 'M' && \
22654 PACKET_VERSION >= 20120926
22655ID_CZ_REQUEST_TIME = 0x0932
22656#elif CLIENT_TYPE == 'M' && ( \
22657 PACKET_VERSION == 20180131 \
22658 || PACKET_VERSION >= 20160526 \
22659 || PACKET_VERSION >= 20160318 \
22660 || PACKET_VERSION >= 20151029 \
22661 || PACKET_VERSION >= 20151022 \
22662 || PACKET_VERSION >= 20150812 \
22663 || PACKET_VERSION >= 20150618 \
22664 || PACKET_VERSION >= 20150226 \
22665 || PACKET_VERSION >= 20141016 \
22666 || PACKET_VERSION >= 20140814 \
22667 || PACKET_VERSION >= 20130107)
22668ID_CZ_REQUEST_TIME = 0x035f
22669#elif CLIENT_TYPE == 'M' && \
22670 PACKET_VERSION >= 20130116
22671ID_CZ_REQUEST_TIME = 0x0895
22672#elif CLIENT_TYPE == 'M' && ( \
22673 PACKET_VERSION == 20131108 \
22674 || PACKET_VERSION == 20131107)
22675ID_CZ_REQUEST_TIME = 0x0887
22676#elif CLIENT_TYPE == 'M' && ( \
22677 PACKET_VERSION == 20140613 \
22678 || PACKET_VERSION == 20140612)
22679ID_CZ_REQUEST_TIME = 0x0867
22680#elif CLIENT_TYPE == 'M' && ( \
22681 PACKET_VERSION == 20150130 \
22682 || PACKET_VERSION == 20150129)
22683ID_CZ_REQUEST_TIME = 0x091f
22684#elif CLIENT_TYPE == 'M' && \
22685 PACKET_VERSION >= 20150702
22686ID_CZ_REQUEST_TIME = 0x087d
22687#elif CLIENT_TYPE == 'M' && \
22688 PACKET_VERSION >= 20160609
22689ID_CZ_REQUEST_TIME = 0x0802
22690#elif CLIENT_TYPE == 'M' && \
22691 PACKET_VERSION >= 20160630
22692ID_CZ_REQUEST_TIME = 0x0893
22693#elif CLIENT_TYPE == 'M' && ( \
22694 PACKET_VERSION >= 20220000 \
22695 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
22696 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
22697 || PACKET_VERSION >= 20161103)
22698ID_CZ_REQUEST_TIME = 0x0966
22699#elif CLIENT_TYPE == 'M' && \
22700 PACKET_VERSION >= 20180309
22701ID_CZ_REQUEST_TIME = 0x086c
22702#elif CLIENT_TYPE == 'M' && ( \
22703 PACKET_VERSION == 20190821 \
22704 || PACKET_VERSION == 20190807 \
22705 || PACKET_VERSION == 20190802 \
22706 || PACKET_VERSION == 20190731 \
22707 || PACKET_VERSION == 20190724 \
22708 || PACKET_VERSION == 20190717 \
22709 || PACKET_VERSION == 20190703 \
22710 || PACKET_VERSION == 20190605 \
22711 || PACKET_VERSION == 20190530 \
22712 || PACKET_VERSION == 20190523 \
22713 || PACKET_VERSION == 20190522 \
22714 || PACKET_VERSION == 20190508 \
22715 || PACKET_VERSION == 20190418 \
22716 || PACKET_VERSION == 20190417 \
22717 || PACKET_VERSION == 20190327 \
22718 || PACKET_VERSION == 20190322 \
22719 || PACKET_VERSION == 20190320 \
22720 || PACKET_VERSION == 20190313 \
22721 || PACKET_VERSION == 20190306 \
22722 || PACKET_VERSION == 20190228 \
22723 || PACKET_VERSION == 20190123 \
22724 || PACKET_VERSION == 20190116 \
22725 || PACKET_VERSION == 20181226 \
22726 || PACKET_VERSION == 20181219 \
22727 || PACKET_VERSION == 20181212 \
22728 || PACKET_VERSION == 20181205 \
22729 || PACKET_VERSION == 20181128 \
22730 || PACKET_VERSION == 20181114 \
22731 || PACKET_VERSION == 20181107 \
22732 || PACKET_VERSION == 20181024 \
22733 || PACKET_VERSION == 20180919 \
22734 || PACKET_VERSION == 20180831 \
22735 || PACKET_VERSION == 20180822 \
22736 || PACKET_VERSION >= 20180808 \
22737 || PACKET_VERSION >= 20180718 \
22738 || PACKET_VERSION >= 20180704 \
22739 || PACKET_VERSION >= 20180621 \
22740 || PACKET_VERSION >= 20180620 \
22741 || PACKET_VERSION >= 20180530 \
22742 || PACKET_VERSION >= 20180523 \
22743 || PACKET_VERSION >= 20180516 \
22744 || PACKET_VERSION >= 20180509 \
22745 || PACKET_VERSION >= 20180502 \
22746 || PACKET_VERSION >= 20180425 \
22747 || PACKET_VERSION >= 20180404 \
22748 || PACKET_VERSION >= 20180328 \
22749 || PACKET_VERSION >= 20180321)
22750ID_CZ_REQUEST_TIME = 0x0360
22751#elif CLIENT_TYPE == 'R' && \
22752 PACKET_VERSION >= 20080000
22753ID_CZ_REQUEST_TIME = 0x00f7
22754#elif CLIENT_TYPE == 'R' && \
22755 PACKET_VERSION >= 20090617
22756ID_CZ_REQUEST_TIME = 0x007e
22757#elif CLIENT_TYPE == 'R' && \
22758 PACKET_VERSION >= 20120712
22759ID_CZ_REQUEST_TIME = 0x07e4
22760#elif CLIENT_TYPE == 'R' && \
22761 PACKET_VERSION >= 20120926
22762ID_CZ_REQUEST_TIME = 0x0932
22763#elif CLIENT_TYPE == 'R' && \
22764 PACKET_VERSION >= 20121011
22765ID_CZ_REQUEST_TIME = 0x0934
22766#elif CLIENT_TYPE == 'R' && \
22767 PACKET_VERSION >= 20130116
22768ID_CZ_REQUEST_TIME = 0x0895
22769#elif CLIENT_TYPE == 'R' && ( \
22770 PACKET_VERSION == 20151029 \
22771 || PACKET_VERSION == 20151022 \
22772 || PACKET_VERSION == 20150812 \
22773 || PACKET_VERSION == 20150618 \
22774 || PACKET_VERSION == 20150226 \
22775 || PACKET_VERSION >= 20141016)
22776ID_CZ_REQUEST_TIME = 0x035f
22777#elif CLIENT_TYPE == 'R' && \
22778 PACKET_VERSION >= 20160630
22779ID_CZ_REQUEST_TIME = 0x0893
22780#elif CLIENT_TYPE == 'R' && ( \
22781 PACKET_VERSION >= 20210000 \
22782 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
22783 || PACKET_VERSION >= 20161103)
22784ID_CZ_REQUEST_TIME = 0x0966
22785#elif CLIENT_TYPE == 'R' && ( \
22786 PACKET_VERSION == 20190821 \
22787 || PACKET_VERSION == 20190807 \
22788 || PACKET_VERSION == 20190802 \
22789 || PACKET_VERSION == 20190731 \
22790 || PACKET_VERSION == 20190724 \
22791 || PACKET_VERSION == 20190717 \
22792 || PACKET_VERSION == 20190703 \
22793 || PACKET_VERSION == 20190626 \
22794 || PACKET_VERSION == 20190605 \
22795 || PACKET_VERSION == 20190530 \
22796 || PACKET_VERSION == 20190522 \
22797 || PACKET_VERSION == 20190508 \
22798 || PACKET_VERSION == 20190418 \
22799 || PACKET_VERSION == 20190417 \
22800 || PACKET_VERSION == 20190327 \
22801 || PACKET_VERSION == 20190322 \
22802 || PACKET_VERSION == 20190320 \
22803 || PACKET_VERSION == 20190306 \
22804 || PACKET_VERSION == 20190228 \
22805 || PACKET_VERSION == 20190123 \
22806 || PACKET_VERSION == 20190116 \
22807 || PACKET_VERSION == 20181226 \
22808 || PACKET_VERSION == 20181219 \
22809 || PACKET_VERSION == 20181212 \
22810 || PACKET_VERSION == 20181205 \
22811 || PACKET_VERSION == 20181128 \
22812 || PACKET_VERSION == 20181121 \
22813 || PACKET_VERSION == 20181114 \
22814 || PACKET_VERSION == 20181107 \
22815 || PACKET_VERSION == 20180822 \
22816 || PACKET_VERSION >= 20180808 \
22817 || PACKET_VERSION >= 20180718 \
22818 || PACKET_VERSION >= 20180711 \
22819 || PACKET_VERSION >= 20180621 \
22820 || PACKET_VERSION >= 20180620 \
22821 || PACKET_VERSION >= 20180612 \
22822 || PACKET_VERSION >= 20180530 \
22823 || PACKET_VERSION >= 20180523 \
22824 || PACKET_VERSION >= 20180516 \
22825 || PACKET_VERSION >= 20180502 \
22826 || PACKET_VERSION >= 20180425 \
22827 || PACKET_VERSION >= 20180404 \
22828 || PACKET_VERSION >= 20180328)
22829ID_CZ_REQUEST_TIME = 0x0360
22830#elif CLIENT_TYPE == 'S' && \
22831 PACKET_VERSION >= 20030000
22832ID_CZ_REQUEST_TIME = 0x007e
22833#elif CLIENT_TYPE == 'S' && ( \
22834 PACKET_VERSION >= 20090000 \
22835 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20090000) \
22836 || PACKET_VERSION >= 20070212 \
22837 || PACKET_VERSION >= 20070108 \
22838 || PACKET_VERSION >= 20070102 \
22839 || PACKET_VERSION >= 20060327 \
22840 || PACKET_VERSION >= 20060102 \
22841 || PACKET_VERSION >= 20050719 \
22842 || PACKET_VERSION >= 20050718 \
22843 || PACKET_VERSION >= 20050628 \
22844 || PACKET_VERSION >= 20050509 \
22845 || PACKET_VERSION >= 20050110 \
22846 || PACKET_VERSION >= 20050103 \
22847 || PACKET_VERSION >= 20041129 \
22848 || PACKET_VERSION >= 20040906 \
22849 || PACKET_VERSION >= 20040809 \
22850 || PACKET_VERSION >= 20040726)
22851ID_CZ_REQUEST_TIME = 0x00f7
22852#elif CLIENT_TYPE == 'Z' && \
22853 PACKET_VERSION >= 20170000
22854ID_CZ_REQUEST_TIME = 0x00f7
22855#elif CLIENT_TYPE == 'Z' && ( \
22856 PACKET_VERSION == 20190814 \
22857 || PACKET_VERSION == 20190724 \
22858 || PACKET_VERSION == 20190717 \
22859 || PACKET_VERSION == 20190710 \
22860 || PACKET_VERSION == 20190709 \
22861 || PACKET_VERSION == 20190605 \
22862 || PACKET_VERSION == 20190530 \
22863 || PACKET_VERSION == 20190515 \
22864 || PACKET_VERSION == 20190508 \
22865 || PACKET_VERSION == 20190502 \
22866 || PACKET_VERSION == 20190424 \
22867 || PACKET_VERSION == 20190410 \
22868 || PACKET_VERSION == 20190403 \
22869 || PACKET_VERSION == 20190313 \
22870 || PACKET_VERSION == 20190227 \
22871 || PACKET_VERSION == 20190213 \
22872 || PACKET_VERSION == 20190117 \
22873 || PACKET_VERSION == 20181226 \
22874 || PACKET_VERSION == 20181219 \
22875 || PACKET_VERSION == 20181212 \
22876 || PACKET_VERSION == 20181128 \
22877 || PACKET_VERSION == 20181120 \
22878 || PACKET_VERSION == 20180928 \
22879 || PACKET_VERSION == 20180912 \
22880 || PACKET_VERSION == 20180829 \
22881 || PACKET_VERSION >= 20180808 \
22882 || PACKET_VERSION >= 20180801 \
22883 || PACKET_VERSION >= 20180711 \
22884 || PACKET_VERSION >= 20180703 \
22885 || PACKET_VERSION >= 20180627 \
22886 || PACKET_VERSION >= 20180509 \
22887 || PACKET_VERSION >= 20180411 \
22888 || PACKET_VERSION >= 20180321 \
22889 || PACKET_VERSION >= 20171113 \
22890 || PACKET_VERSION >= 20171031 \
22891 || PACKET_VERSION >= 20171030 \
22892 || PACKET_VERSION >= 20171027 \
22893 || PACKET_VERSION >= 20171025 \
22894 || PACKET_VERSION >= 20171024 \
22895 || PACKET_VERSION >= 20171023 \
22896 || PACKET_VERSION >= 20171019)
22897ID_CZ_REQUEST_TIME = 0x0360
22898#elif CLIENT_TYPE == 'Z' && ( \
22899 PACKET_VERSION == 20180309 \
22900 || PACKET_VERSION == 20180307 \
22901 || PACKET_VERSION == 20171128 \
22902 || PACKET_VERSION == 20171122 \
22903 || PACKET_VERSION == 20171117 \
22904 || PACKET_VERSION == 20171116)
22905ID_CZ_REQUEST_TIME = 0x035f
22906#elif CLIENT_TYPE == 'Z' && ( \
22907 PACKET_VERSION >= 20220000 \
22908 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
22909 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
22910 || PACKET_VERSION >= 20171213 \
22911 || PACKET_VERSION >= 20171212 \
22912 || PACKET_VERSION >= 20171211 \
22913 || PACKET_VERSION >= 20171210 \
22914 || PACKET_VERSION >= 20171209 \
22915 || PACKET_VERSION >= 20171208)
22916ID_CZ_REQUEST_TIME = 0x095f
22917#elif CLIENT_TYPE == 'Z' && \
22918 PACKET_VERSION >= 20171221
22919ID_CZ_REQUEST_TIME = 0x0838
22920#elif CLIENT_TYPE == 'Z' && \
22921 PACKET_VERSION >= 20171229
22922ID_CZ_REQUEST_TIME = 0x0939
22923#elif CLIENT_TYPE == 'Z' && \
22924 PACKET_VERSION >= 20180000
22925ID_CZ_REQUEST_TIME = 0x007e
22926#else
22927ID_CZ_REQUEST_TIME = 0x0000 // Disabled
22928#endif
22934class CZ_REQUEST_TIME : public Base::NetworkPacket<ZoneSession>
22935{
22936public:
22937 CZ_REQUEST_TIME(std::shared_ptr<ZoneSession> s)
22939 {}
22940 virtual ~CZ_REQUEST_TIME() {}
22941
22942 void handle(ByteBuffer &&buf);
22943 void deserialize(ByteBuffer &buf);
22944
22945/* Structure */
22946 uint32_t _timestamp{0};
22947};
22948
22949enum {
22950#if CLIENT_TYPE == 'A' && \
22951 PACKET_VERSION >= 20080701
22952ID_CZ_REQUEST_TIME2 = 0x0360
22953#elif CLIENT_TYPE == 'M' && ( \
22954 PACKET_VERSION >= 20220000 \
22955 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
22956 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
22957 || (PACKET_VERSION >= 20190000 && PACKET_VERSION < 20200000) \
22958 || PACKET_VERSION >= 20180315 \
22959 || PACKET_VERSION >= 20180213 \
22960 || PACKET_VERSION >= 20180207 \
22961 || PACKET_VERSION >= 20180117 \
22962 || PACKET_VERSION >= 20180103 \
22963 || PACKET_VERSION >= 20171227 \
22964 || PACKET_VERSION >= 20171220 \
22965 || PACKET_VERSION >= 20171206 \
22966 || PACKET_VERSION >= 20171122 \
22967 || PACKET_VERSION >= 20171115 \
22968 || PACKET_VERSION >= 20171101 \
22969 || PACKET_VERSION >= 20171002 \
22970 || PACKET_VERSION >= 20170913 \
22971 || PACKET_VERSION >= 20170906 \
22972 || PACKET_VERSION >= 20170830 \
22973 || PACKET_VERSION >= 20170823 \
22974 || PACKET_VERSION >= 20170809 \
22975 || PACKET_VERSION >= 20170801 \
22976 || PACKET_VERSION >= 20170719 \
22977 || PACKET_VERSION >= 20170621 \
22978 || PACKET_VERSION >= 20170517 \
22979 || PACKET_VERSION >= 20170426 \
22980 || PACKET_VERSION >= 20170412 \
22981 || PACKET_VERSION >= 20170322 \
22982 || PACKET_VERSION >= 20170315 \
22983 || PACKET_VERSION >= 20170308 \
22984 || PACKET_VERSION >= 20170228 \
22985 || PACKET_VERSION >= 20170201 \
22986 || PACKET_VERSION >= 20170125 \
22987 || PACKET_VERSION >= 20170104 \
22988 || PACKET_VERSION >= 20161221 \
22989 || PACKET_VERSION >= 20161214 \
22990 || PACKET_VERSION >= 20161130 \
22991 || PACKET_VERSION >= 20161026 \
22992 || PACKET_VERSION >= 20161019 \
22993 || PACKET_VERSION >= 20160928 \
22994 || PACKET_VERSION >= 20160921 \
22995 || PACKET_VERSION >= 20160913 \
22996 || PACKET_VERSION >= 20160907 \
22997 || PACKET_VERSION >= 20160831 \
22998 || PACKET_VERSION >= 20160824 \
22999 || PACKET_VERSION >= 20160615 \
23000 || PACKET_VERSION >= 20160511 \
23001 || PACKET_VERSION >= 20160504 \
23002 || PACKET_VERSION >= 20160414 \
23003 || PACKET_VERSION >= 20160406 \
23004 || PACKET_VERSION >= 20160316 \
23005 || PACKET_VERSION >= 20160217 \
23006 || PACKET_VERSION >= 20160120 \
23007 || PACKET_VERSION >= 20160113 \
23008 || PACKET_VERSION >= 20160106 \
23009 || PACKET_VERSION >= 20151230 \
23010 || PACKET_VERSION >= 20151209 \
23011 || PACKET_VERSION >= 20151202 \
23012 || PACKET_VERSION >= 20151125 \
23013 || PACKET_VERSION >= 20151111 \
23014 || PACKET_VERSION >= 20151104 \
23015 || PACKET_VERSION >= 20151021 \
23016 || PACKET_VERSION >= 20151014 \
23017 || PACKET_VERSION >= 20151001 \
23018 || PACKET_VERSION >= 20150909 \
23019 || PACKET_VERSION >= 20150902 \
23020 || PACKET_VERSION >= 20150826 \
23021 || PACKET_VERSION >= 20150805 \
23022 || PACKET_VERSION >= 20150729 \
23023 || PACKET_VERSION >= 20150722 \
23024 || PACKET_VERSION >= 20150715 \
23025 || PACKET_VERSION >= 20150708 \
23026 || PACKET_VERSION >= 20150701 \
23027 || PACKET_VERSION >= 20150617 \
23028 || PACKET_VERSION >= 20150603 \
23029 || PACKET_VERSION >= 20150527 \
23030 || PACKET_VERSION >= 20150520 \
23031 || PACKET_VERSION >= 20150422 \
23032 || PACKET_VERSION >= 20150311 \
23033 || PACKET_VERSION >= 20150304 \
23034 || PACKET_VERSION >= 20150225 \
23035 || PACKET_VERSION >= 20150217 \
23036 || PACKET_VERSION >= 20150211 \
23037 || PACKET_VERSION >= 20150204 \
23038 || PACKET_VERSION >= 20150128 \
23039 || PACKET_VERSION >= 20150107 \
23040 || PACKET_VERSION >= 20141231 \
23041 || PACKET_VERSION >= 20141224 \
23042 || PACKET_VERSION >= 20141217 \
23043 || PACKET_VERSION >= 20141210 \
23044 || PACKET_VERSION >= 20141203 \
23045 || PACKET_VERSION >= 20141126 \
23046 || PACKET_VERSION >= 20141112 \
23047 || PACKET_VERSION >= 20141105 \
23048 || PACKET_VERSION >= 20141001 \
23049 || PACKET_VERSION >= 20140917 \
23050 || PACKET_VERSION >= 20140827 \
23051 || PACKET_VERSION >= 20140820 \
23052 || PACKET_VERSION >= 20140806 \
23053 || PACKET_VERSION >= 20140709 \
23054 || PACKET_VERSION >= 20140702 \
23055 || PACKET_VERSION >= 20140611 \
23056 || PACKET_VERSION >= 20140605 \
23057 || PACKET_VERSION >= 20140528 \
23058 || PACKET_VERSION >= 20140521 \
23059 || PACKET_VERSION >= 20140514 \
23060 || PACKET_VERSION >= 20140430 \
23061 || PACKET_VERSION >= 20140423 \
23062 || PACKET_VERSION >= 20140416 \
23063 || PACKET_VERSION >= 20140409 \
23064 || PACKET_VERSION >= 20140402 \
23065 || PACKET_VERSION >= 20140312 \
23066 || PACKET_VERSION >= 20140226 \
23067 || PACKET_VERSION >= 20140219 \
23068 || PACKET_VERSION >= 20140212 \
23069 || PACKET_VERSION >= 20140129 \
23070 || PACKET_VERSION >= 20140122 \
23071 || PACKET_VERSION >= 20140108 \
23072 || PACKET_VERSION >= 20131230 \
23073 || PACKET_VERSION >= 20131211 \
23074 || PACKET_VERSION >= 20131106 \
23075 || PACKET_VERSION >= 20131030 \
23076 || PACKET_VERSION >= 20131008 \
23077 || PACKET_VERSION >= 20130925 \
23078 || PACKET_VERSION >= 20130911 \
23079 || PACKET_VERSION >= 20130904 \
23080 || PACKET_VERSION >= 20130828 \
23081 || PACKET_VERSION >= 20130821 \
23082 || PACKET_VERSION >= 20130814 \
23083 || PACKET_VERSION >= 20130807 \
23084 || PACKET_VERSION >= 20130717 \
23085 || PACKET_VERSION >= 20130710 \
23086 || PACKET_VERSION >= 20130703 \
23087 || PACKET_VERSION >= 20130626 \
23088 || PACKET_VERSION >= 20130618 \
23089 || PACKET_VERSION >= 20130605 \
23090 || PACKET_VERSION >= 20130529 \
23091 || PACKET_VERSION >= 20130522 \
23092 || PACKET_VERSION >= 20130417 \
23093 || PACKET_VERSION >= 20130410 \
23094 || PACKET_VERSION >= 20130403 \
23095 || PACKET_VERSION >= 20130320 \
23096 || PACKET_VERSION >= 20130313 \
23097 || PACKET_VERSION >= 20130306 \
23098 || PACKET_VERSION >= 20130227 \
23099 || PACKET_VERSION >= 20130220 \
23100 || PACKET_VERSION >= 20130215 \
23101 || PACKET_VERSION >= 20130206 \
23102 || PACKET_VERSION >= 20130130 \
23103 || PACKET_VERSION >= 20130121 \
23104 || PACKET_VERSION >= 20130109 \
23105 || PACKET_VERSION >= 20130103 \
23106 || PACKET_VERSION >= 20121227 \
23107 || PACKET_VERSION >= 20121218 \
23108 || PACKET_VERSION >= 20121212 \
23109 || PACKET_VERSION >= 20121205 \
23110 || PACKET_VERSION >= 20121114 \
23111 || PACKET_VERSION >= 20121031 \
23112 || PACKET_VERSION >= 20121024 \
23113 || PACKET_VERSION >= 20121017 \
23114 || PACKET_VERSION >= 20120925 \
23115 || PACKET_VERSION >= 20120919 \
23116 || PACKET_VERSION >= 20120905 \
23117 || PACKET_VERSION >= 20120830 \
23118 || PACKET_VERSION >= 20120814 \
23119 || PACKET_VERSION >= 20120808 \
23120 || PACKET_VERSION >= 20120801 \
23121 || PACKET_VERSION >= 20120724 \
23122 || PACKET_VERSION >= 20120716 \
23123 || PACKET_VERSION >= 20120626 \
23124 || PACKET_VERSION >= 20120612 \
23125 || PACKET_VERSION >= 20120604 \
23126 || PACKET_VERSION >= 20120529 \
23127 || PACKET_VERSION >= 20120515 \
23128 || PACKET_VERSION >= 20120503 \
23129 || PACKET_VERSION >= 20120424 \
23130 || PACKET_VERSION >= 20120410 \
23131 || PACKET_VERSION >= 20120328 \
23132 || PACKET_VERSION >= 20120307 \
23133 || PACKET_VERSION >= 20120228 \
23134 || PACKET_VERSION >= 20120221 \
23135 || PACKET_VERSION >= 20120214 \
23136 || PACKET_VERSION >= 20120131 \
23137 || PACKET_VERSION >= 20120120 \
23138 || PACKET_VERSION >= 20120117 \
23139 || PACKET_VERSION >= 20120103 \
23140 || PACKET_VERSION >= 20111227 \
23141 || PACKET_VERSION >= 20111220 \
23142 || PACKET_VERSION >= 20111122 \
23143 || PACKET_VERSION >= 20111108 \
23144 || PACKET_VERSION >= 20111101 \
23145 || PACKET_VERSION >= 20111025 \
23146 || PACKET_VERSION >= 20111017 \
23147 || PACKET_VERSION >= 20111004 \
23148 || PACKET_VERSION >= 20110928 \
23149 || PACKET_VERSION >= 20110920 \
23150 || PACKET_VERSION >= 20110906 \
23151 || PACKET_VERSION >= 20110831 \
23152 || PACKET_VERSION >= 20110823 \
23153 || PACKET_VERSION >= 20110809 \
23154 || PACKET_VERSION >= 20110802 \
23155 || PACKET_VERSION >= 20110711 \
23156 || PACKET_VERSION >= 20110705 \
23157 || PACKET_VERSION >= 20110620 \
23158 || PACKET_VERSION >= 20110614 \
23159 || PACKET_VERSION >= 20110517 \
23160 || PACKET_VERSION >= 20110511 \
23161 || PACKET_VERSION >= 20110503 \
23162 || PACKET_VERSION >= 20110426 \
23163 || PACKET_VERSION >= 20110419 \
23164 || PACKET_VERSION >= 20110405 \
23165 || PACKET_VERSION >= 20110329 \
23166 || PACKET_VERSION >= 20110322 \
23167 || PACKET_VERSION >= 20110315 \
23168 || PACKET_VERSION >= 20110308 \
23169 || PACKET_VERSION >= 20110228 \
23170 || PACKET_VERSION >= 20110222 \
23171 || PACKET_VERSION >= 20110208 \
23172 || PACKET_VERSION >= 20110131 \
23173 || PACKET_VERSION >= 20110125 \
23174 || PACKET_VERSION >= 20110118 \
23175 || PACKET_VERSION >= 20110104 \
23176 || PACKET_VERSION >= 20101214 \
23177 || PACKET_VERSION >= 20101207 \
23178 || PACKET_VERSION >= 20101123 \
23179 || PACKET_VERSION >= 20100105 \
23180 || PACKET_VERSION >= 20090401 \
23181 || PACKET_VERSION >= 20090325 \
23182 || PACKET_VERSION >= 20090318 \
23183 || PACKET_VERSION >= 20090311 \
23184 || PACKET_VERSION >= 20090225 \
23185 || PACKET_VERSION >= 20090211 \
23186 || PACKET_VERSION >= 20090204 \
23187 || PACKET_VERSION >= 20090129 \
23188 || PACKET_VERSION >= 20090120 \
23189 || PACKET_VERSION >= 20090114 \
23190 || PACKET_VERSION >= 20090107 \
23191 || PACKET_VERSION >= 20081217 \
23192 || PACKET_VERSION >= 20081203 \
23193 || PACKET_VERSION >= 20081112 \
23194 || PACKET_VERSION >= 20081105 \
23195 || PACKET_VERSION >= 20081029 \
23196 || PACKET_VERSION >= 20081022 \
23197 || PACKET_VERSION >= 20081001 \
23198 || PACKET_VERSION >= 20080924 \
23199 || PACKET_VERSION >= 20080917 \
23200 || PACKET_VERSION >= 20080910 \
23201 || PACKET_VERSION >= 20080903 \
23202 || PACKET_VERSION >= 20080827 \
23203 || PACKET_VERSION >= 20080820 \
23204 || PACKET_VERSION >= 20080806 \
23205 || PACKET_VERSION >= 20080730 \
23206 || PACKET_VERSION >= 20080722 \
23207 || PACKET_VERSION >= 20080715 \
23208 || PACKET_VERSION >= 20080708 \
23209 || PACKET_VERSION >= 20080701 \
23210 || PACKET_VERSION >= 20080624 \
23211 || PACKET_VERSION >= 20080528)
23212ID_CZ_REQUEST_TIME2 = 0x0360
23213#elif CLIENT_TYPE == 'R' && ( \
23214 PACKET_VERSION >= 20210000 \
23215 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
23216 || (PACKET_VERSION >= 20190000 && PACKET_VERSION < 20200000) \
23217 || PACKET_VERSION >= 20180321 \
23218 || PACKET_VERSION >= 20180213 \
23219 || PACKET_VERSION >= 20180207 \
23220 || PACKET_VERSION >= 20180117 \
23221 || PACKET_VERSION >= 20180103 \
23222 || PACKET_VERSION >= 20171227 \
23223 || PACKET_VERSION >= 20171220 \
23224 || PACKET_VERSION >= 20171206 \
23225 || PACKET_VERSION >= 20171122 \
23226 || PACKET_VERSION >= 20171115 \
23227 || PACKET_VERSION >= 20171101 \
23228 || PACKET_VERSION >= 20171002 \
23229 || PACKET_VERSION >= 20170913 \
23230 || PACKET_VERSION >= 20170906 \
23231 || PACKET_VERSION >= 20170830 \
23232 || PACKET_VERSION >= 20170823 \
23233 || PACKET_VERSION >= 20170809 \
23234 || PACKET_VERSION >= 20170801 \
23235 || PACKET_VERSION >= 20170719 \
23236 || PACKET_VERSION >= 20170621 \
23237 || PACKET_VERSION >= 20170517 \
23238 || PACKET_VERSION >= 20170426 \
23239 || PACKET_VERSION >= 20170412 \
23240 || PACKET_VERSION >= 20170322 \
23241 || PACKET_VERSION >= 20170315 \
23242 || PACKET_VERSION >= 20170308 \
23243 || PACKET_VERSION >= 20170228 \
23244 || PACKET_VERSION >= 20170201 \
23245 || PACKET_VERSION >= 20170125 \
23246 || PACKET_VERSION >= 20170104 \
23247 || PACKET_VERSION >= 20161221 \
23248 || PACKET_VERSION >= 20161214 \
23249 || PACKET_VERSION >= 20161130 \
23250 || PACKET_VERSION >= 20161026 \
23251 || PACKET_VERSION >= 20161019 \
23252 || PACKET_VERSION >= 20160928 \
23253 || PACKET_VERSION >= 20160921 \
23254 || PACKET_VERSION >= 20160913 \
23255 || PACKET_VERSION >= 20160907 \
23256 || PACKET_VERSION >= 20160831 \
23257 || PACKET_VERSION >= 20160824 \
23258 || PACKET_VERSION >= 20160615 \
23259 || PACKET_VERSION >= 20160511 \
23260 || PACKET_VERSION >= 20160504 \
23261 || PACKET_VERSION >= 20160414 \
23262 || PACKET_VERSION >= 20160406 \
23263 || PACKET_VERSION >= 20160316 \
23264 || PACKET_VERSION >= 20160217 \
23265 || PACKET_VERSION >= 20160120 \
23266 || PACKET_VERSION >= 20160113 \
23267 || PACKET_VERSION >= 20160106 \
23268 || PACKET_VERSION >= 20151230 \
23269 || PACKET_VERSION >= 20151209 \
23270 || PACKET_VERSION >= 20151202 \
23271 || PACKET_VERSION >= 20151125 \
23272 || PACKET_VERSION >= 20151111 \
23273 || PACKET_VERSION >= 20151104 \
23274 || PACKET_VERSION >= 20151021 \
23275 || PACKET_VERSION >= 20151014 \
23276 || PACKET_VERSION >= 20151001 \
23277 || PACKET_VERSION >= 20150909 \
23278 || PACKET_VERSION >= 20150902 \
23279 || PACKET_VERSION >= 20150826 \
23280 || PACKET_VERSION >= 20150805 \
23281 || PACKET_VERSION >= 20150729 \
23282 || PACKET_VERSION >= 20150722 \
23283 || PACKET_VERSION >= 20150715 \
23284 || PACKET_VERSION >= 20150708 \
23285 || PACKET_VERSION >= 20150701 \
23286 || PACKET_VERSION >= 20150617 \
23287 || PACKET_VERSION >= 20150603 \
23288 || PACKET_VERSION >= 20150527 \
23289 || PACKET_VERSION >= 20150520 \
23290 || PACKET_VERSION >= 20150422 \
23291 || PACKET_VERSION >= 20150311 \
23292 || PACKET_VERSION >= 20150304 \
23293 || PACKET_VERSION >= 20150225 \
23294 || PACKET_VERSION >= 20150217 \
23295 || PACKET_VERSION >= 20150211 \
23296 || PACKET_VERSION >= 20150204 \
23297 || PACKET_VERSION >= 20150128 \
23298 || PACKET_VERSION >= 20150107 \
23299 || PACKET_VERSION >= 20141231 \
23300 || PACKET_VERSION >= 20141223 \
23301 || PACKET_VERSION >= 20141217 \
23302 || PACKET_VERSION >= 20141210 \
23303 || PACKET_VERSION >= 20141203 \
23304 || PACKET_VERSION >= 20141126 \
23305 || PACKET_VERSION >= 20141112 \
23306 || PACKET_VERSION >= 20141105 \
23307 || PACKET_VERSION >= 20141001 \
23308 || PACKET_VERSION >= 20140917 \
23309 || PACKET_VERSION >= 20140827 \
23310 || PACKET_VERSION >= 20140820 \
23311 || PACKET_VERSION >= 20140806 \
23312 || PACKET_VERSION >= 20140709 \
23313 || PACKET_VERSION >= 20140702 \
23314 || PACKET_VERSION >= 20140611 \
23315 || PACKET_VERSION >= 20140605 \
23316 || PACKET_VERSION >= 20140528 \
23317 || PACKET_VERSION >= 20140521 \
23318 || PACKET_VERSION >= 20140514 \
23319 || PACKET_VERSION >= 20140430 \
23320 || PACKET_VERSION >= 20140423 \
23321 || PACKET_VERSION >= 20140416 \
23322 || PACKET_VERSION >= 20140409 \
23323 || PACKET_VERSION >= 20140402 \
23324 || PACKET_VERSION >= 20140312 \
23325 || PACKET_VERSION >= 20140226 \
23326 || PACKET_VERSION >= 20140219 \
23327 || PACKET_VERSION >= 20140212 \
23328 || PACKET_VERSION >= 20140129 \
23329 || PACKET_VERSION >= 20140122 \
23330 || PACKET_VERSION >= 20140108 \
23331 || PACKET_VERSION >= 20131230 \
23332 || PACKET_VERSION >= 20131211 \
23333 || PACKET_VERSION >= 20131106 \
23334 || PACKET_VERSION >= 20131030 \
23335 || PACKET_VERSION >= 20131008 \
23336 || PACKET_VERSION >= 20130925 \
23337 || PACKET_VERSION >= 20130911 \
23338 || PACKET_VERSION >= 20130904 \
23339 || PACKET_VERSION >= 20130828 \
23340 || PACKET_VERSION >= 20130821 \
23341 || PACKET_VERSION >= 20130814 \
23342 || PACKET_VERSION >= 20130807 \
23343 || PACKET_VERSION >= 20130717 \
23344 || PACKET_VERSION >= 20130710 \
23345 || PACKET_VERSION >= 20130703 \
23346 || PACKET_VERSION >= 20130626 \
23347 || PACKET_VERSION >= 20130618 \
23348 || PACKET_VERSION >= 20130605 \
23349 || PACKET_VERSION >= 20130529 \
23350 || PACKET_VERSION >= 20130522 \
23351 || PACKET_VERSION >= 20130417 \
23352 || PACKET_VERSION >= 20130410 \
23353 || PACKET_VERSION >= 20130403 \
23354 || PACKET_VERSION >= 20130320 \
23355 || PACKET_VERSION >= 20130313 \
23356 || PACKET_VERSION >= 20130306 \
23357 || PACKET_VERSION >= 20130227 \
23358 || PACKET_VERSION >= 20130220 \
23359 || PACKET_VERSION >= 20130215 \
23360 || PACKET_VERSION >= 20130206 \
23361 || PACKET_VERSION >= 20130130 \
23362 || PACKET_VERSION >= 20130121 \
23363 || PACKET_VERSION >= 20130109 \
23364 || PACKET_VERSION >= 20130103 \
23365 || PACKET_VERSION >= 20121227 \
23366 || PACKET_VERSION >= 20121218 \
23367 || PACKET_VERSION >= 20121212 \
23368 || PACKET_VERSION >= 20121205 \
23369 || PACKET_VERSION >= 20121114 \
23370 || PACKET_VERSION >= 20121031 \
23371 || PACKET_VERSION >= 20121024 \
23372 || PACKET_VERSION >= 20121017 \
23373 || PACKET_VERSION >= 20120925 \
23374 || PACKET_VERSION >= 20120919 \
23375 || PACKET_VERSION >= 20120905 \
23376 || PACKET_VERSION >= 20120830 \
23377 || PACKET_VERSION >= 20120814 \
23378 || PACKET_VERSION >= 20120808 \
23379 || PACKET_VERSION >= 20120801 \
23380 || PACKET_VERSION >= 20120724 \
23381 || PACKET_VERSION >= 20120716 \
23382 || PACKET_VERSION >= 20120626 \
23383 || PACKET_VERSION >= 20120612 \
23384 || PACKET_VERSION >= 20120601 \
23385 || PACKET_VERSION >= 20120529 \
23386 || PACKET_VERSION >= 20120515 \
23387 || PACKET_VERSION >= 20120502 \
23388 || PACKET_VERSION >= 20120424 \
23389 || PACKET_VERSION >= 20120410 \
23390 || PACKET_VERSION >= 20120328 \
23391 || PACKET_VERSION >= 20120307 \
23392 || PACKET_VERSION >= 20120228 \
23393 || PACKET_VERSION >= 20120221 \
23394 || PACKET_VERSION >= 20120214 \
23395 || PACKET_VERSION >= 20120131 \
23396 || PACKET_VERSION >= 20120120 \
23397 || PACKET_VERSION >= 20120117 \
23398 || PACKET_VERSION >= 20120103 \
23399 || PACKET_VERSION >= 20111227 \
23400 || PACKET_VERSION >= 20111220 \
23401 || PACKET_VERSION >= 20111122 \
23402 || PACKET_VERSION >= 20111108 \
23403 || PACKET_VERSION >= 20111101 \
23404 || PACKET_VERSION >= 20111025 \
23405 || PACKET_VERSION >= 20111017 \
23406 || PACKET_VERSION >= 20111004 \
23407 || PACKET_VERSION >= 20110928 \
23408 || PACKET_VERSION >= 20110920 \
23409 || PACKET_VERSION >= 20110906 \
23410 || PACKET_VERSION >= 20110831 \
23411 || PACKET_VERSION >= 20110823 \
23412 || PACKET_VERSION >= 20110104 \
23413 || PACKET_VERSION >= 20101123 \
23414 || PACKET_VERSION >= 20100105 \
23415 || (PACKET_VERSION >= 20090000 && PACKET_VERSION < 20100105) \
23416 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20090000))
23417ID_CZ_REQUEST_TIME2 = 0x0360
23418#elif CLIENT_TYPE == 'S' && \
23419 PACKET_VERSION >= 20080618
23420ID_CZ_REQUEST_TIME2 = 0x0360
23421#elif CLIENT_TYPE == 'Z' && ( \
23422 PACKET_VERSION >= 20220000 \
23423 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
23424 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
23425 || (PACKET_VERSION >= 20190000 && PACKET_VERSION < 20200000) \
23426 || PACKET_VERSION >= 20180523 \
23427 || PACKET_VERSION >= 20180511 \
23428 || PACKET_VERSION >= 20180315 \
23429 || PACKET_VERSION >= 20180314 \
23430 || PACKET_VERSION >= 20180228 \
23431 || PACKET_VERSION >= 20180213 \
23432 || PACKET_VERSION >= 20180131 \
23433 || PACKET_VERSION >= 20180117 \
23434 || PACKET_VERSION >= 20180103 \
23435 || PACKET_VERSION >= 20171206 \
23436 || PACKET_VERSION >= 20171204 \
23437 || PACKET_VERSION >= 20171130 \
23438 || PACKET_VERSION >= 20171018)
23439ID_CZ_REQUEST_TIME2 = 0x0360
23440#else
23441ID_CZ_REQUEST_TIME2 = 0x0000 // Disabled
23442#endif
23448class CZ_REQUEST_TIME2 : public Base::NetworkPacket<ZoneSession>
23449{
23450public:
23451 CZ_REQUEST_TIME2(std::shared_ptr<ZoneSession> s)
23453 {}
23455
23456 void handle(ByteBuffer &&buf);
23457 void deserialize(ByteBuffer &buf);
23458
23459/* Structure */
23460 uint32_t _timestamp{0};
23461};
23462
23463enum {
23464#if CLIENT_TYPE == 'M' && ( \
23465 PACKET_VERSION >= 20220000 \
23466 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
23467 || PACKET_VERSION >= 20201118)
23469#elif CLIENT_TYPE == 'R' && \
23470 PACKET_VERSION >= 20211103
23472#elif CLIENT_TYPE == 'Z' && ( \
23473 PACKET_VERSION >= 20220000 \
23474 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
23475 || PACKET_VERSION >= 20201118)
23477#else
23478ID_CZ_REQUEST_UPGRADE_ENCHANT = 0x0000 // Disabled
23479#endif
23486{
23487public:
23488 CZ_REQUEST_UPGRADE_ENCHANT(std::shared_ptr<ZoneSession> s)
23490 {}
23492
23493 void handle(ByteBuffer &&buf);
23494 void deserialize(ByteBuffer &buf);
23495
23496/* Structure */
23497};
23498
23499enum {
23500#if CLIENT_TYPE == 'A' && \
23501 PACKET_VERSION >= 20040000
23502ID_CZ_REQ_ACCOUNTNAME = 0x01df
23503#elif CLIENT_TYPE == 'M' && ( \
23504 PACKET_VERSION >= 20220000 \
23505 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
23506 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
23507 || (PACKET_VERSION >= 20030000 && PACKET_VERSION < 20200000))
23508ID_CZ_REQ_ACCOUNTNAME = 0x01df
23509#elif CLIENT_TYPE == 'R' && ( \
23510 PACKET_VERSION >= 20210000 \
23511 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
23512 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
23513ID_CZ_REQ_ACCOUNTNAME = 0x01df
23514#elif CLIENT_TYPE == 'S' && \
23515 PACKET_VERSION >= 20030000
23516ID_CZ_REQ_ACCOUNTNAME = 0x01df
23517#elif CLIENT_TYPE == 'Z' && ( \
23518 PACKET_VERSION >= 20220000 \
23519 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
23520 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
23521 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
23522ID_CZ_REQ_ACCOUNTNAME = 0x01df
23523#else
23524ID_CZ_REQ_ACCOUNTNAME = 0x0000 // Disabled
23525#endif
23531class CZ_REQ_ACCOUNTNAME : public Base::NetworkPacket<ZoneSession>
23532{
23533public:
23534 CZ_REQ_ACCOUNTNAME(std::shared_ptr<ZoneSession> s)
23536 {}
23538
23539 void handle(ByteBuffer &&buf);
23540 void deserialize(ByteBuffer &buf);
23541
23542/* Structure */
23543 int _account_id{ 0 };
23544};
23545
23546enum {
23547#if CLIENT_TYPE == 'M' && ( \
23548 PACKET_VERSION >= 20220000 \
23549 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
23550 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
23551 || PACKET_VERSION >= 20140611)
23552ID_CZ_REQ_ACH_REWARD = 0x0a25
23553#elif CLIENT_TYPE == 'R' && ( \
23554 PACKET_VERSION >= 20210000 \
23555 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
23556 || PACKET_VERSION >= 20140611)
23557ID_CZ_REQ_ACH_REWARD = 0x0a25
23558#elif CLIENT_TYPE == 'Z' && ( \
23559 PACKET_VERSION >= 20220000 \
23560 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
23561 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
23562 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
23563ID_CZ_REQ_ACH_REWARD = 0x0a25
23564#else
23565ID_CZ_REQ_ACH_REWARD = 0x0000 // Disabled
23566#endif
23572class CZ_REQ_ACH_REWARD : public Base::NetworkPacket<ZoneSession>
23573{
23574public:
23575 CZ_REQ_ACH_REWARD(std::shared_ptr<ZoneSession> s)
23577 {}
23579
23580 void handle(ByteBuffer &&buf);
23581 void deserialize(ByteBuffer &buf);
23582
23583/* Structure */
23584};
23585
23586enum {
23587#if CLIENT_TYPE == 'M' && ( \
23588 PACKET_VERSION >= 20220000 \
23589 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
23590 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
23591 || PACKET_VERSION >= 20140416)
23593#elif CLIENT_TYPE == 'R' && ( \
23594 PACKET_VERSION >= 20210000 \
23595 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
23596 || PACKET_VERSION >= 20140416)
23598#elif CLIENT_TYPE == 'Z' && ( \
23599 PACKET_VERSION >= 20220000 \
23600 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
23601 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
23602 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
23604#else
23605ID_CZ_REQ_ADD_ITEM_RODEX = 0x0000 // Disabled
23606#endif
23613{
23614public:
23615 CZ_REQ_ADD_ITEM_RODEX(std::shared_ptr<ZoneSession> s)
23617 {}
23619
23620 void handle(ByteBuffer &&buf);
23621 void deserialize(ByteBuffer &buf);
23622
23623/* Structure */
23624};
23625
23626enum {
23627#if CLIENT_TYPE == 'M' && ( \
23628 PACKET_VERSION >= 20220000 \
23629 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
23630 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000))
23632#elif CLIENT_TYPE == 'R' && ( \
23633 PACKET_VERSION >= 20210000 \
23634 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000))
23636#elif CLIENT_TYPE == 'Z' && ( \
23637 PACKET_VERSION >= 20220000 \
23638 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
23639 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000))
23641#else
23642ID_CZ_REQ_AGIT_INVESTMENT = 0x0000 // Disabled
23643#endif
23650{
23651public:
23652 CZ_REQ_AGIT_INVESTMENT(std::shared_ptr<ZoneSession> s)
23654 {}
23656
23657 void handle(ByteBuffer &&buf);
23658 void deserialize(ByteBuffer &buf);
23659
23660/* Structure */
23661};
23662
23663enum {
23664#if CLIENT_TYPE == 'A' && \
23665 PACKET_VERSION >= 20040000
23666ID_CZ_REQ_ALLY_GUILD = 0x0170
23667#elif CLIENT_TYPE == 'M' && ( \
23668 PACKET_VERSION >= 20220000 \
23669 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
23670 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
23671 || (PACKET_VERSION >= 20030000 && PACKET_VERSION < 20200000))
23672ID_CZ_REQ_ALLY_GUILD = 0x0170
23673#elif CLIENT_TYPE == 'R' && ( \
23674 PACKET_VERSION >= 20210000 \
23675 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
23676 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
23677ID_CZ_REQ_ALLY_GUILD = 0x0170
23678#elif CLIENT_TYPE == 'S' && \
23679 PACKET_VERSION >= 20030000
23680ID_CZ_REQ_ALLY_GUILD = 0x0170
23681#elif CLIENT_TYPE == 'Z' && ( \
23682 PACKET_VERSION >= 20220000 \
23683 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
23684 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
23685 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
23686ID_CZ_REQ_ALLY_GUILD = 0x0170
23687#else
23688ID_CZ_REQ_ALLY_GUILD = 0x0000 // Disabled
23689#endif
23695class CZ_REQ_ALLY_GUILD : public Base::NetworkPacket<ZoneSession>
23696{
23697public:
23698 CZ_REQ_ALLY_GUILD(std::shared_ptr<ZoneSession> s)
23700 {}
23702
23703 void handle(ByteBuffer &&buf);
23704 void deserialize(ByteBuffer &buf);
23705
23706/* Structure */
23707 int _account_id{ 0 };
23710};
23711
23712enum {
23713#if CLIENT_TYPE == 'M' && ( \
23714 PACKET_VERSION >= 20220000 \
23715 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
23716 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
23717 || PACKET_VERSION >= 20130327)
23719#elif CLIENT_TYPE == 'R' && ( \
23720 PACKET_VERSION >= 20210000 \
23721 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
23722 || PACKET_VERSION >= 20130327)
23724#elif CLIENT_TYPE == 'Z' && ( \
23725 PACKET_VERSION >= 20220000 \
23726 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
23727 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
23728 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
23730#else
23731ID_CZ_REQ_APPLY_BARGAIN_SALE_ITEM = 0x0000 // Disabled
23732#endif
23739{
23740public:
23741 CZ_REQ_APPLY_BARGAIN_SALE_ITEM(std::shared_ptr<ZoneSession> s)
23743 {}
23745
23746 void handle(ByteBuffer &&buf);
23747 void deserialize(ByteBuffer &buf);
23748
23749/* Structure */
23750};
23751
23752enum {
23753#if CLIENT_TYPE == 'M' && ( \
23754 PACKET_VERSION >= 20220000 \
23755 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
23756 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000))
23758#elif CLIENT_TYPE == 'R' && ( \
23759 PACKET_VERSION >= 20210000 \
23760 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000))
23762#elif CLIENT_TYPE == 'Z' && ( \
23763 PACKET_VERSION >= 20220000 \
23764 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
23765 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000))
23767#else
23768ID_CZ_REQ_APPLY_MACRO_DETECTOR = 0x0000 // Disabled
23769#endif
23776{
23777public:
23778 CZ_REQ_APPLY_MACRO_DETECTOR(std::shared_ptr<ZoneSession> s)
23780 {}
23782
23783 void handle(ByteBuffer &&buf);
23784 void deserialize(ByteBuffer &buf);
23785
23786/* Structure */
23787};
23788
23789enum {
23790#if CLIENT_TYPE == 'M' && ( \
23791 PACKET_VERSION >= 20220000 \
23792 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
23793 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
23794 || PACKET_VERSION >= 20130320)
23796#elif CLIENT_TYPE == 'R' && ( \
23797 PACKET_VERSION >= 20210000 \
23798 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
23799 || PACKET_VERSION >= 20130320)
23801#elif CLIENT_TYPE == 'Z' && ( \
23802 PACKET_VERSION >= 20220000 \
23803 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
23804 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
23805 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
23807#else
23808ID_CZ_REQ_BANKING_CHECK = 0x0000 // Disabled
23809#endif
23816{
23817public:
23818 CZ_REQ_BANKING_CHECK(std::shared_ptr<ZoneSession> s)
23820 {}
23822
23823 void handle(ByteBuffer &&buf);
23824 void deserialize(ByteBuffer &buf);
23825
23826/* Structure */
23827};
23828
23829enum {
23830#if CLIENT_TYPE == 'M' && ( \
23831 PACKET_VERSION >= 20220000 \
23832 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
23833 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
23834 || PACKET_VERSION >= 20130320)
23836#elif CLIENT_TYPE == 'R' && ( \
23837 PACKET_VERSION >= 20210000 \
23838 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
23839 || PACKET_VERSION >= 20130320)
23841#elif CLIENT_TYPE == 'Z' && ( \
23842 PACKET_VERSION >= 20220000 \
23843 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
23844 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
23845 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
23847#else
23848ID_CZ_REQ_BANKING_DEPOSIT = 0x0000 // Disabled
23849#endif
23856{
23857public:
23858 CZ_REQ_BANKING_DEPOSIT(std::shared_ptr<ZoneSession> s)
23860 {}
23862
23863 void handle(ByteBuffer &&buf);
23864 void deserialize(ByteBuffer &buf);
23865
23866/* Structure */
23867};
23868
23869enum {
23870#if CLIENT_TYPE == 'M' && ( \
23871 PACKET_VERSION >= 20220000 \
23872 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
23873 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
23874 || PACKET_VERSION >= 20130320)
23876#elif CLIENT_TYPE == 'R' && ( \
23877 PACKET_VERSION >= 20210000 \
23878 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
23879 || PACKET_VERSION >= 20130320)
23881#elif CLIENT_TYPE == 'Z' && ( \
23882 PACKET_VERSION >= 20220000 \
23883 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
23884 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
23885 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
23887#else
23888ID_CZ_REQ_BANKING_WITHDRAW = 0x0000 // Disabled
23889#endif
23896{
23897public:
23898 CZ_REQ_BANKING_WITHDRAW(std::shared_ptr<ZoneSession> s)
23900 {}
23902
23903 void handle(ByteBuffer &&buf);
23904 void deserialize(ByteBuffer &buf);
23905
23906/* Structure */
23907};
23908
23909enum {
23910#if CLIENT_TYPE == 'A' && \
23911 PACKET_VERSION >= 20040000
23912ID_CZ_REQ_BAN_GUILD = 0x015b
23913#elif CLIENT_TYPE == 'M' && ( \
23914 PACKET_VERSION >= 20220000 \
23915 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
23916 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
23917 || (PACKET_VERSION >= 20030000 && PACKET_VERSION < 20200000))
23918ID_CZ_REQ_BAN_GUILD = 0x015b
23919#elif CLIENT_TYPE == 'R' && ( \
23920 PACKET_VERSION >= 20210000 \
23921 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
23922 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
23923ID_CZ_REQ_BAN_GUILD = 0x015b
23924#elif CLIENT_TYPE == 'S' && \
23925 PACKET_VERSION >= 20030000
23926ID_CZ_REQ_BAN_GUILD = 0x015b
23927#elif CLIENT_TYPE == 'Z' && ( \
23928 PACKET_VERSION >= 20220000 \
23929 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
23930 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
23931 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
23932ID_CZ_REQ_BAN_GUILD = 0x015b
23933#else
23934ID_CZ_REQ_BAN_GUILD = 0x0000 // Disabled
23935#endif
23941class CZ_REQ_BAN_GUILD : public Base::NetworkPacket<ZoneSession>
23942{
23943public:
23944 CZ_REQ_BAN_GUILD(std::shared_ptr<ZoneSession> s)
23946 {}
23948
23949 void handle(ByteBuffer &&buf);
23950 void deserialize(ByteBuffer &buf);
23951
23952/* Structure */
23953 int _guild_id{ 0 };
23954 int _account_id{ 0 };
23955 int _char_id{ 0 };
23957};
23958
23959enum {
23960#if CLIENT_TYPE == 'M' && ( \
23961 PACKET_VERSION >= 20220000 \
23962 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
23963 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
23964 || PACKET_VERSION >= 20090929)
23966#elif CLIENT_TYPE == 'R' && ( \
23967 PACKET_VERSION >= 20210000 \
23968 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
23969 || PACKET_VERSION >= 20090929)
23971#elif CLIENT_TYPE == 'Z' && ( \
23972 PACKET_VERSION >= 20220000 \
23973 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
23974 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
23975 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
23977#else
23978ID_CZ_REQ_BATTLE_STATE_MONITOR = 0x0000 // Disabled
23979#endif
23986{
23987public:
23988 CZ_REQ_BATTLE_STATE_MONITOR(std::shared_ptr<ZoneSession> s)
23990 {}
23992
23993 void handle(ByteBuffer &&buf);
23994 void deserialize(ByteBuffer &buf);
23995
23996/* Structure */
23997};
23998
23999enum {
24000#if CLIENT_TYPE == 'M' && ( \
24001 PACKET_VERSION >= 20220000 \
24002 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
24003 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
24004 || PACKET_VERSION >= 20120328)
24006#elif CLIENT_TYPE == 'R' && ( \
24007 PACKET_VERSION >= 20210000 \
24008 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
24009 || PACKET_VERSION >= 20120328)
24011#elif CLIENT_TYPE == 'Z' && ( \
24012 PACKET_VERSION >= 20220000 \
24013 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
24014 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
24015 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
24017#else
24018ID_CZ_REQ_BEFORE_WORLD_INFO = 0x0000 // Disabled
24019#endif
24026{
24027public:
24028 CZ_REQ_BEFORE_WORLD_INFO(std::shared_ptr<ZoneSession> s)
24030 {}
24032
24033 void handle(ByteBuffer &&buf);
24034 void deserialize(ByteBuffer &buf);
24035
24036/* Structure */
24037};
24038
24039enum {
24040#if CLIENT_TYPE == 'A' && \
24041 PACKET_VERSION >= 20040000
24042ID_CZ_REQ_BUY_FROMMC = 0x0130
24043#elif CLIENT_TYPE == 'M' && ( \
24044 PACKET_VERSION >= 20220000 \
24045 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
24046 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
24047 || (PACKET_VERSION >= 20030000 && PACKET_VERSION < 20200000))
24048ID_CZ_REQ_BUY_FROMMC = 0x0130
24049#elif CLIENT_TYPE == 'R' && ( \
24050 PACKET_VERSION >= 20210000 \
24051 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
24052 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
24053ID_CZ_REQ_BUY_FROMMC = 0x0130
24054#elif CLIENT_TYPE == 'S' && \
24055 PACKET_VERSION >= 20030000
24056ID_CZ_REQ_BUY_FROMMC = 0x0130
24057#elif CLIENT_TYPE == 'Z' && ( \
24058 PACKET_VERSION >= 20220000 \
24059 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
24060 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
24061 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
24062ID_CZ_REQ_BUY_FROMMC = 0x0130
24063#else
24064ID_CZ_REQ_BUY_FROMMC = 0x0000 // Disabled
24065#endif
24071class CZ_REQ_BUY_FROMMC : public Base::NetworkPacket<ZoneSession>
24072{
24073public:
24074 CZ_REQ_BUY_FROMMC(std::shared_ptr<ZoneSession> s)
24076 {}
24078
24079 void handle(ByteBuffer &&buf);
24080 void deserialize(ByteBuffer &buf);
24081
24082/* Structure */
24083 int _account_id{ 0 };
24084};
24085
24086enum {
24087#if CLIENT_TYPE == 'M' && ( \
24088 PACKET_VERSION >= 20220000 \
24089 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
24090 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
24091 || PACKET_VERSION >= 20140326)
24093#elif CLIENT_TYPE == 'R' && ( \
24094 PACKET_VERSION >= 20210000 \
24095 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
24096 || PACKET_VERSION >= 20140326)
24098#elif CLIENT_TYPE == 'Z' && ( \
24099 PACKET_VERSION >= 20220000 \
24100 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
24101 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
24102 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
24104#else
24105ID_CZ_REQ_CANCEL_WRITE_RODEX = 0x0000 // Disabled
24106#endif
24113{
24114public:
24115 CZ_REQ_CANCEL_WRITE_RODEX(std::shared_ptr<ZoneSession> s)
24117 {}
24119
24120 void handle(ByteBuffer &&buf);
24121 void deserialize(ByteBuffer &buf);
24122
24123/* Structure */
24124};
24125
24126enum {
24127#if CLIENT_TYPE == 'A' && \
24128 PACKET_VERSION >= 20040000
24129ID_CZ_REQ_CARTOFF = 0x012a
24130#elif CLIENT_TYPE == 'M' && ( \
24131 PACKET_VERSION >= 20220000 \
24132 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
24133 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
24134 || (PACKET_VERSION >= 20030000 && PACKET_VERSION < 20200000))
24135ID_CZ_REQ_CARTOFF = 0x012a
24136#elif CLIENT_TYPE == 'R' && ( \
24137 PACKET_VERSION >= 20210000 \
24138 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
24139 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
24140ID_CZ_REQ_CARTOFF = 0x012a
24141#elif CLIENT_TYPE == 'S' && \
24142 PACKET_VERSION >= 20030000
24143ID_CZ_REQ_CARTOFF = 0x012a
24144#elif CLIENT_TYPE == 'Z' && ( \
24145 PACKET_VERSION >= 20220000 \
24146 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
24147 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
24148 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
24149ID_CZ_REQ_CARTOFF = 0x012a
24150#else
24151ID_CZ_REQ_CARTOFF = 0x0000 // Disabled
24152#endif
24158class CZ_REQ_CARTOFF : public Base::NetworkPacket<ZoneSession>
24159{
24160public:
24161 CZ_REQ_CARTOFF(std::shared_ptr<ZoneSession> s)
24163 {}
24164 virtual ~CZ_REQ_CARTOFF() {}
24165
24166 void handle(ByteBuffer &&buf);
24167 void deserialize(ByteBuffer &buf);
24168
24169/* Structure */
24170};
24171
24172enum {
24173#if CLIENT_TYPE == 'M' && ( \
24174 PACKET_VERSION >= 20220000 \
24175 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
24176 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
24177 || PACKET_VERSION >= 20130327)
24179#elif CLIENT_TYPE == 'R' && ( \
24180 PACKET_VERSION >= 20210000 \
24181 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
24182 || PACKET_VERSION >= 20130327)
24184#elif CLIENT_TYPE == 'Z' && ( \
24185 PACKET_VERSION >= 20220000 \
24186 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
24187 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
24188 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
24190#else
24191ID_CZ_REQ_CASH_BARGAIN_SALE_ITEM_INFO = 0x0000 // Disabled
24192#endif
24199{
24200public:
24201 CZ_REQ_CASH_BARGAIN_SALE_ITEM_INFO(std::shared_ptr<ZoneSession> s)
24203 {}
24205
24206 void handle(ByteBuffer &&buf);
24207 void deserialize(ByteBuffer &buf);
24208
24209/* Structure */
24210};
24211
24212enum {
24213#if CLIENT_TYPE == 'A' && \
24214 PACKET_VERSION >= 20040000
24215ID_CZ_REQ_CHANGECART = 0x01af
24216#elif CLIENT_TYPE == 'M' && ( \
24217 PACKET_VERSION >= 20220000 \
24218 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
24219 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
24220 || (PACKET_VERSION >= 20030000 && PACKET_VERSION < 20200000))
24221ID_CZ_REQ_CHANGECART = 0x01af
24222#elif CLIENT_TYPE == 'R' && ( \
24223 PACKET_VERSION >= 20210000 \
24224 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
24225 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
24226ID_CZ_REQ_CHANGECART = 0x01af
24227#elif CLIENT_TYPE == 'S' && \
24228 PACKET_VERSION >= 20030000
24229ID_CZ_REQ_CHANGECART = 0x01af
24230#elif CLIENT_TYPE == 'Z' && ( \
24231 PACKET_VERSION >= 20220000 \
24232 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
24233 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
24234 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
24235ID_CZ_REQ_CHANGECART = 0x01af
24236#else
24237ID_CZ_REQ_CHANGECART = 0x0000 // Disabled
24238#endif
24244class CZ_REQ_CHANGECART : public Base::NetworkPacket<ZoneSession>
24245{
24246public:
24247 CZ_REQ_CHANGECART(std::shared_ptr<ZoneSession> s)
24249 {}
24251
24252 void handle(ByteBuffer &&buf);
24253 void deserialize(ByteBuffer &buf);
24254
24255/* Structure */
24256 int16_t _cart_num;
24257};
24258
24259enum {
24260#if CLIENT_TYPE == 'A' && \
24261 PACKET_VERSION >= 20040000
24263#elif CLIENT_TYPE == 'M' && ( \
24264 PACKET_VERSION >= 20220000 \
24265 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
24266 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
24267 || (PACKET_VERSION >= 20030000 && PACKET_VERSION < 20200000))
24269#elif CLIENT_TYPE == 'R' && ( \
24270 PACKET_VERSION >= 20210000 \
24271 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
24272 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
24274#elif CLIENT_TYPE == 'S' && \
24275 PACKET_VERSION >= 20030000
24277#elif CLIENT_TYPE == 'Z' && ( \
24278 PACKET_VERSION >= 20220000 \
24279 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
24280 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
24281 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
24283#else
24284ID_CZ_REQ_CHANGE_MEMBERPOS = 0x0000 // Disabled
24285#endif
24292{
24293public:
24294 CZ_REQ_CHANGE_MEMBERPOS(std::shared_ptr<ZoneSession> s)
24296 {}
24298
24299 void handle(ByteBuffer &&buf);
24300 void deserialize(ByteBuffer &buf);
24301
24302/* Structure */
24303 int16_t _packet_length{ 0 };
24304 std::vector<s_cz_req_change_memberpos> _members;
24305};
24306
24307enum {
24308#if CLIENT_TYPE == 'M' && ( \
24309 PACKET_VERSION >= 20220000 \
24310 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
24311 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
24312 || PACKET_VERSION >= 20140827)
24314#elif CLIENT_TYPE == 'R' && ( \
24315 PACKET_VERSION >= 20210000 \
24316 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
24317 || PACKET_VERSION >= 20140827)
24319#elif CLIENT_TYPE == 'Z' && ( \
24320 PACKET_VERSION >= 20220000 \
24321 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
24322 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
24323 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
24325#else
24326ID_CZ_REQ_CHANGE_TITLE = 0x0000 // Disabled
24327#endif
24333class CZ_REQ_CHANGE_TITLE : public Base::NetworkPacket<ZoneSession>
24334{
24335public:
24336 CZ_REQ_CHANGE_TITLE(std::shared_ptr<ZoneSession> s)
24338 {}
24340
24341 void handle(ByteBuffer &&buf);
24342 void deserialize(ByteBuffer &buf);
24343
24344/* Structure */
24345};
24346
24347enum {
24348#if CLIENT_TYPE == 'M' && \
24349 PACKET_VERSION >= 20120712
24351#elif CLIENT_TYPE == 'M' && ( \
24352 PACKET_VERSION == 20190821 \
24353 || PACKET_VERSION == 20190807 \
24354 || PACKET_VERSION == 20190802 \
24355 || PACKET_VERSION == 20190731 \
24356 || PACKET_VERSION == 20190724 \
24357 || PACKET_VERSION == 20190717 \
24358 || PACKET_VERSION == 20190703 \
24359 || PACKET_VERSION == 20190605 \
24360 || PACKET_VERSION == 20190530 \
24361 || PACKET_VERSION == 20190523 \
24362 || PACKET_VERSION == 20190522 \
24363 || PACKET_VERSION == 20190508 \
24364 || PACKET_VERSION == 20190418 \
24365 || PACKET_VERSION == 20190417 \
24366 || PACKET_VERSION == 20190327 \
24367 || PACKET_VERSION == 20190322 \
24368 || PACKET_VERSION == 20190320 \
24369 || PACKET_VERSION == 20190313 \
24370 || PACKET_VERSION == 20190306 \
24371 || PACKET_VERSION == 20190228 \
24372 || PACKET_VERSION == 20190123 \
24373 || PACKET_VERSION == 20190116 \
24374 || (PACKET_VERSION >= 20190000 && PACKET_VERSION < 20190116) \
24375 || PACKET_VERSION == 20181226 \
24376 || PACKET_VERSION == 20181219 \
24377 || PACKET_VERSION == 20181212 \
24378 || PACKET_VERSION == 20181205 \
24379 || PACKET_VERSION == 20181128 \
24380 || PACKET_VERSION == 20181114 \
24381 || PACKET_VERSION == 20181107 \
24382 || PACKET_VERSION == 20181024 \
24383 || PACKET_VERSION == 20180919 \
24384 || PACKET_VERSION == 20180831 \
24385 || PACKET_VERSION == 20180822 \
24386 || PACKET_VERSION >= 20180808 \
24387 || PACKET_VERSION >= 20180718 \
24388 || PACKET_VERSION >= 20180704 \
24389 || PACKET_VERSION >= 20180621 \
24390 || PACKET_VERSION >= 20180620 \
24391 || PACKET_VERSION >= 20180530 \
24392 || PACKET_VERSION >= 20180523 \
24393 || PACKET_VERSION >= 20180516 \
24394 || PACKET_VERSION >= 20180509 \
24395 || PACKET_VERSION >= 20180502 \
24396 || PACKET_VERSION >= 20180425 \
24397 || PACKET_VERSION >= 20180404 \
24398 || PACKET_VERSION >= 20180328 \
24399 || PACKET_VERSION >= 20180321 \
24400 || PACKET_VERSION >= 20180315 \
24401 || PACKET_VERSION >= 20180221 \
24402 || PACKET_VERSION >= 20180213 \
24403 || PACKET_VERSION >= 20180103 \
24404 || PACKET_VERSION >= 20170920 \
24405 || PACKET_VERSION >= 20170913 \
24406 || PACKET_VERSION >= 20170524 \
24407 || PACKET_VERSION >= 20170517 \
24408 || PACKET_VERSION >= 20170104 \
24409 || PACKET_VERSION >= 20161228 \
24410 || PACKET_VERSION >= 20161221 \
24411 || PACKET_VERSION >= 20160921 \
24412 || PACKET_VERSION >= 20160913 \
24413 || PACKET_VERSION >= 20160608 \
24414 || PACKET_VERSION >= 20160601 \
24415 || PACKET_VERSION >= 20160106 \
24416 || PACKET_VERSION >= 20151021 \
24417 || PACKET_VERSION >= 20151014 \
24418 || PACKET_VERSION >= 20151001 \
24419 || PACKET_VERSION >= 20150923 \
24420 || PACKET_VERSION >= 20150729 \
24421 || PACKET_VERSION >= 20150722 \
24422 || PACKET_VERSION >= 20150520 \
24423 || PACKET_VERSION >= 20150513 \
24424 || PACKET_VERSION >= 20150507 \
24425 || PACKET_VERSION >= 20150422 \
24426 || PACKET_VERSION >= 20150415 \
24427 || PACKET_VERSION >= 20150304 \
24428 || PACKET_VERSION >= 20150225 \
24429 || PACKET_VERSION >= 20150217 \
24430 || PACKET_VERSION >= 20150211 \
24431 || PACKET_VERSION >= 20150107 \
24432 || PACKET_VERSION >= 20140806 \
24433 || PACKET_VERSION >= 20140730 \
24434 || PACKET_VERSION >= 20140702 \
24435 || PACKET_VERSION >= 20140625 \
24436 || PACKET_VERSION >= 20140611 \
24437 || PACKET_VERSION >= 20140605 \
24438 || PACKET_VERSION >= 20140521 \
24439 || PACKET_VERSION >= 20140514 \
24440 || PACKET_VERSION >= 20140508 \
24441 || PACKET_VERSION >= 20140108 \
24442 || PACKET_VERSION >= 20131127 \
24443 || PACKET_VERSION >= 20131120 \
24444 || PACKET_VERSION >= 20131113 \
24445 || PACKET_VERSION >= 20131106 \
24446 || PACKET_VERSION >= 20130904 \
24447 || PACKET_VERSION >= 20130828 \
24448 || PACKET_VERSION >= 20130703 \
24449 || PACKET_VERSION >= 20130626 \
24450 || PACKET_VERSION >= 20130313 \
24451 || PACKET_VERSION >= 20130306 \
24452 || PACKET_VERSION >= 20130227 \
24453 || PACKET_VERSION >= 20130130 \
24454 || PACKET_VERSION >= 20130121 \
24455 || PACKET_VERSION >= 20130115 \
24456 || PACKET_VERSION >= 20130103 \
24457 || PACKET_VERSION >= 20121218 \
24458 || PACKET_VERSION >= 20121212 \
24459 || PACKET_VERSION >= 20121031 \
24460 || PACKET_VERSION >= 20121024 \
24461 || PACKET_VERSION >= 20121017 \
24462 || PACKET_VERSION >= 20121010 \
24463 || PACKET_VERSION >= 20120911 \
24464 || PACKET_VERSION >= 20120905 \
24465 || PACKET_VERSION >= 20120522 \
24466 || PACKET_VERSION >= 20120515 \
24467 || PACKET_VERSION >= 20120508 \
24468 || PACKET_VERSION >= 20120503 \
24469 || PACKET_VERSION >= 20120424 \
24470 || PACKET_VERSION >= 20120214 \
24471 || PACKET_VERSION >= 20120207 \
24472 || PACKET_VERSION >= 20120103 \
24473 || PACKET_VERSION >= 20111220 \
24474 || PACKET_VERSION >= 20111213 \
24475 || PACKET_VERSION >= 20111108 \
24476 || PACKET_VERSION >= 20111101 \
24477 || PACKET_VERSION >= 20111025 \
24478 || PACKET_VERSION >= 20111017 \
24479 || PACKET_VERSION >= 20110906 \
24480 || PACKET_VERSION >= 20110831 \
24481 || PACKET_VERSION >= 20110718 \
24482 || PACKET_VERSION >= 20110711 \
24483 || PACKET_VERSION >= 20110705 \
24484 || PACKET_VERSION >= 20110627 \
24485 || PACKET_VERSION >= 20110419 \
24486 || PACKET_VERSION >= 20110412 \
24487 || PACKET_VERSION >= 20110329 \
24488 || PACKET_VERSION >= 20110322 \
24489 || PACKET_VERSION >= 20110104 \
24490 || PACKET_VERSION >= 20101228 \
24491 || PACKET_VERSION >= 20101221 \
24492 || PACKET_VERSION >= 20101130 \
24493 || PACKET_VERSION >= 20101123 \
24494 || PACKET_VERSION >= 20100420 \
24495 || PACKET_VERSION >= 20100303)
24497#elif CLIENT_TYPE == 'M' && ( \
24498 PACKET_VERSION >= 20220000 \
24499 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
24500 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
24501 || PACKET_VERSION >= 20120926)
24503#elif CLIENT_TYPE == 'M' && ( \
24504 PACKET_VERSION == 20180131 \
24505 || PACKET_VERSION >= 20160609 \
24506 || PACKET_VERSION >= 20160526 \
24507 || PACKET_VERSION >= 20160318 \
24508 || PACKET_VERSION >= 20151029 \
24509 || PACKET_VERSION >= 20151022 \
24510 || PACKET_VERSION >= 20150812 \
24511 || PACKET_VERSION >= 20141016 \
24512 || PACKET_VERSION >= 20140814 \
24513 || PACKET_VERSION >= 20130107)
24515#elif CLIENT_TYPE == 'M' && \
24516 PACKET_VERSION >= 20130116
24518#elif CLIENT_TYPE == 'M' && ( \
24519 PACKET_VERSION == 20131108 \
24520 || PACKET_VERSION == 20131107)
24522#elif CLIENT_TYPE == 'M' && ( \
24523 PACKET_VERSION == 20140613 \
24524 || PACKET_VERSION == 20140612)
24526#elif CLIENT_TYPE == 'M' && ( \
24527 PACKET_VERSION == 20150130 \
24528 || PACKET_VERSION == 20150129)
24530#elif CLIENT_TYPE == 'M' && \
24531 PACKET_VERSION >= 20150226
24533#elif CLIENT_TYPE == 'M' && \
24534 PACKET_VERSION >= 20150618
24536#elif CLIENT_TYPE == 'M' && \
24537 PACKET_VERSION >= 20150702
24539#elif CLIENT_TYPE == 'M' && \
24540 PACKET_VERSION >= 20160630
24542#elif CLIENT_TYPE == 'M' && \
24543 PACKET_VERSION >= 20161103
24545#elif CLIENT_TYPE == 'M' && \
24546 PACKET_VERSION >= 20180309
24548#elif CLIENT_TYPE == 'R' && \
24549 PACKET_VERSION >= 20120712
24551#elif CLIENT_TYPE == 'R' && ( \
24552 PACKET_VERSION == 20190821 \
24553 || PACKET_VERSION == 20190807 \
24554 || PACKET_VERSION == 20190802 \
24555 || PACKET_VERSION == 20190731 \
24556 || PACKET_VERSION == 20190724 \
24557 || PACKET_VERSION == 20190717 \
24558 || PACKET_VERSION == 20190703 \
24559 || PACKET_VERSION == 20190626 \
24560 || PACKET_VERSION == 20190605 \
24561 || PACKET_VERSION == 20190530 \
24562 || PACKET_VERSION == 20190522 \
24563 || PACKET_VERSION == 20190508 \
24564 || PACKET_VERSION == 20190418 \
24565 || PACKET_VERSION == 20190417 \
24566 || PACKET_VERSION == 20190327 \
24567 || PACKET_VERSION == 20190322 \
24568 || PACKET_VERSION == 20190320 \
24569 || PACKET_VERSION == 20190306 \
24570 || PACKET_VERSION == 20190228 \
24571 || PACKET_VERSION == 20190123 \
24572 || PACKET_VERSION == 20190116 \
24573 || (PACKET_VERSION >= 20190000 && PACKET_VERSION < 20190116) \
24574 || PACKET_VERSION == 20181226 \
24575 || PACKET_VERSION == 20181219 \
24576 || PACKET_VERSION == 20181212 \
24577 || PACKET_VERSION == 20181205 \
24578 || PACKET_VERSION == 20181128 \
24579 || PACKET_VERSION == 20181121 \
24580 || PACKET_VERSION == 20181114 \
24581 || PACKET_VERSION == 20181107 \
24582 || PACKET_VERSION == 20180822 \
24583 || PACKET_VERSION >= 20180808 \
24584 || PACKET_VERSION >= 20180718 \
24585 || PACKET_VERSION >= 20180711 \
24586 || PACKET_VERSION >= 20180621 \
24587 || PACKET_VERSION >= 20180620 \
24588 || PACKET_VERSION >= 20180612 \
24589 || PACKET_VERSION >= 20180530 \
24590 || PACKET_VERSION >= 20180523 \
24591 || PACKET_VERSION >= 20180516 \
24592 || PACKET_VERSION >= 20180502 \
24593 || PACKET_VERSION >= 20180425 \
24594 || PACKET_VERSION >= 20180404 \
24595 || PACKET_VERSION >= 20180328 \
24596 || PACKET_VERSION >= 20180321 \
24597 || PACKET_VERSION >= 20180221 \
24598 || PACKET_VERSION >= 20180213 \
24599 || PACKET_VERSION >= 20180103 \
24600 || PACKET_VERSION >= 20170920 \
24601 || PACKET_VERSION >= 20170913 \
24602 || PACKET_VERSION >= 20170524 \
24603 || PACKET_VERSION >= 20170517 \
24604 || PACKET_VERSION >= 20170104 \
24605 || PACKET_VERSION >= 20161228 \
24606 || PACKET_VERSION >= 20161221 \
24607 || PACKET_VERSION >= 20160921 \
24608 || PACKET_VERSION >= 20160913 \
24609 || PACKET_VERSION >= 20160608 \
24610 || PACKET_VERSION >= 20160601 \
24611 || PACKET_VERSION >= 20160106 \
24612 || PACKET_VERSION >= 20151021 \
24613 || PACKET_VERSION >= 20151014 \
24614 || PACKET_VERSION >= 20151001 \
24615 || PACKET_VERSION >= 20150923 \
24616 || PACKET_VERSION >= 20150729 \
24617 || PACKET_VERSION >= 20150722 \
24618 || PACKET_VERSION >= 20150520 \
24619 || PACKET_VERSION >= 20150513 \
24620 || PACKET_VERSION >= 20150507 \
24621 || PACKET_VERSION >= 20150422 \
24622 || PACKET_VERSION >= 20150415 \
24623 || PACKET_VERSION >= 20150304 \
24624 || PACKET_VERSION >= 20150225 \
24625 || PACKET_VERSION >= 20150217 \
24626 || PACKET_VERSION >= 20150211 \
24627 || PACKET_VERSION >= 20150107 \
24628 || PACKET_VERSION >= 20140806 \
24629 || PACKET_VERSION >= 20140730 \
24630 || PACKET_VERSION >= 20140702 \
24631 || PACKET_VERSION >= 20140625 \
24632 || PACKET_VERSION >= 20140611 \
24633 || PACKET_VERSION >= 20140605 \
24634 || PACKET_VERSION >= 20140521 \
24635 || PACKET_VERSION >= 20140514 \
24636 || PACKET_VERSION >= 20140508 \
24637 || PACKET_VERSION >= 20140108 \
24638 || PACKET_VERSION >= 20131223 \
24639 || PACKET_VERSION >= 20131127 \
24640 || PACKET_VERSION >= 20131120 \
24641 || PACKET_VERSION >= 20131113 \
24642 || PACKET_VERSION >= 20131106 \
24643 || PACKET_VERSION >= 20130904 \
24644 || PACKET_VERSION >= 20130828 \
24645 || PACKET_VERSION >= 20130703 \
24646 || PACKET_VERSION >= 20130626 \
24647 || PACKET_VERSION >= 20130313 \
24648 || PACKET_VERSION >= 20130306 \
24649 || PACKET_VERSION >= 20130227 \
24650 || PACKET_VERSION >= 20130130 \
24651 || PACKET_VERSION >= 20130121 \
24652 || PACKET_VERSION >= 20130115 \
24653 || PACKET_VERSION >= 20130103 \
24654 || PACKET_VERSION >= 20121218 \
24655 || PACKET_VERSION >= 20121212 \
24656 || PACKET_VERSION >= 20121031 \
24657 || PACKET_VERSION >= 20121024 \
24658 || PACKET_VERSION >= 20121017 \
24659 || PACKET_VERSION >= 20121010 \
24660 || PACKET_VERSION >= 20120911 \
24661 || PACKET_VERSION >= 20120905 \
24662 || PACKET_VERSION >= 20120523 \
24663 || PACKET_VERSION >= 20120515 \
24664 || PACKET_VERSION >= 20120508 \
24665 || PACKET_VERSION >= 20120502 \
24666 || PACKET_VERSION >= 20120424 \
24667 || PACKET_VERSION >= 20120214 \
24668 || PACKET_VERSION >= 20120207 \
24669 || PACKET_VERSION >= 20120103 \
24670 || PACKET_VERSION >= 20111220 \
24671 || PACKET_VERSION >= 20111213 \
24672 || PACKET_VERSION >= 20111108 \
24673 || PACKET_VERSION >= 20111101 \
24674 || PACKET_VERSION >= 20111025 \
24675 || PACKET_VERSION >= 20111017 \
24676 || PACKET_VERSION >= 20110906 \
24677 || PACKET_VERSION >= 20110831 \
24678 || PACKET_VERSION >= 20110816 \
24679 || PACKET_VERSION >= 20110104 \
24680 || PACKET_VERSION >= 20100420 \
24681 || PACKET_VERSION >= 20100303)
24683#elif CLIENT_TYPE == 'R' && ( \
24684 PACKET_VERSION >= 20210000 \
24685 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
24686 || PACKET_VERSION >= 20120926)
24688#elif CLIENT_TYPE == 'R' && \
24689 PACKET_VERSION >= 20121011
24691#elif CLIENT_TYPE == 'R' && \
24692 PACKET_VERSION >= 20130116
24694#elif CLIENT_TYPE == 'R' && ( \
24695 PACKET_VERSION == 20151029 \
24696 || PACKET_VERSION == 20151022 \
24697 || PACKET_VERSION == 20150812 \
24698 || PACKET_VERSION >= 20141016)
24700#elif CLIENT_TYPE == 'R' && \
24701 PACKET_VERSION >= 20150226
24703#elif CLIENT_TYPE == 'R' && \
24704 PACKET_VERSION >= 20150618
24706#elif CLIENT_TYPE == 'R' && \
24707 PACKET_VERSION >= 20160630
24709#elif CLIENT_TYPE == 'R' && \
24710 PACKET_VERSION >= 20161103
24712#elif CLIENT_TYPE == 'Z' && ( \
24713 PACKET_VERSION == 20190814 \
24714 || PACKET_VERSION == 20190724 \
24715 || PACKET_VERSION == 20190717 \
24716 || PACKET_VERSION == 20190710 \
24717 || PACKET_VERSION == 20190709 \
24718 || PACKET_VERSION == 20190605 \
24719 || PACKET_VERSION == 20190530 \
24720 || PACKET_VERSION == 20190515 \
24721 || PACKET_VERSION == 20190508 \
24722 || PACKET_VERSION == 20190502 \
24723 || PACKET_VERSION == 20190424 \
24724 || PACKET_VERSION == 20190410 \
24725 || PACKET_VERSION == 20190403 \
24726 || PACKET_VERSION == 20190313 \
24727 || PACKET_VERSION == 20190227 \
24728 || PACKET_VERSION == 20190213 \
24729 || PACKET_VERSION == 20190117 \
24730 || PACKET_VERSION == 20181226 \
24731 || PACKET_VERSION == 20181219 \
24732 || PACKET_VERSION == 20181212 \
24733 || PACKET_VERSION == 20181128 \
24734 || PACKET_VERSION == 20181120 \
24735 || PACKET_VERSION == 20180928 \
24736 || PACKET_VERSION == 20180912 \
24737 || PACKET_VERSION == 20180829 \
24738 || PACKET_VERSION >= 20180808 \
24739 || PACKET_VERSION >= 20180801 \
24740 || PACKET_VERSION >= 20180711 \
24741 || PACKET_VERSION >= 20180703 \
24742 || PACKET_VERSION >= 20180627 \
24743 || PACKET_VERSION >= 20180509 \
24744 || PACKET_VERSION >= 20180411 \
24745 || PACKET_VERSION >= 20180321 \
24746 || PACKET_VERSION >= 20171113 \
24747 || PACKET_VERSION >= 20171031 \
24748 || PACKET_VERSION >= 20171030 \
24749 || PACKET_VERSION >= 20171027 \
24750 || PACKET_VERSION >= 20171025 \
24751 || PACKET_VERSION >= 20171024 \
24752 || PACKET_VERSION >= 20171023 \
24753 || PACKET_VERSION >= 20171019)
24755#elif CLIENT_TYPE == 'Z' && ( \
24756 PACKET_VERSION == 20180309 \
24757 || PACKET_VERSION == 20180307 \
24758 || PACKET_VERSION == 20171128 \
24759 || PACKET_VERSION == 20171122 \
24760 || PACKET_VERSION == 20171117 \
24761 || PACKET_VERSION == 20171116)
24763#elif CLIENT_TYPE == 'Z' && ( \
24764 PACKET_VERSION == 20171213 \
24765 || PACKET_VERSION == 20171212 \
24766 || PACKET_VERSION == 20171211 \
24767 || PACKET_VERSION == 20171210 \
24768 || PACKET_VERSION == 20171209 \
24769 || PACKET_VERSION == 20171208)
24771#elif CLIENT_TYPE == 'Z' && \
24772 PACKET_VERSION >= 20171221
24774#elif CLIENT_TYPE == 'Z' && ( \
24775 PACKET_VERSION >= 20220000 \
24776 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
24777 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
24778 || PACKET_VERSION >= 20171229)
24780#else
24781ID_CZ_REQ_CLICK_TO_BUYING_STORE = 0x0000 // Disabled
24782#endif
24789{
24790public:
24791 CZ_REQ_CLICK_TO_BUYING_STORE(std::shared_ptr<ZoneSession> s)
24793 {}
24795
24796 void handle(ByteBuffer &&buf);
24797 void deserialize(ByteBuffer &buf);
24798
24799/* Structure */
24800 int _account_id{ 0 };
24801};
24802
24803enum {
24804#if CLIENT_TYPE == 'A' && \
24805 PACKET_VERSION >= 20040000
24806ID_CZ_REQ_CLOSESTORE = 0x012e
24807#elif CLIENT_TYPE == 'M' && ( \
24808 PACKET_VERSION >= 20220000 \
24809 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
24810 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
24811 || (PACKET_VERSION >= 20030000 && PACKET_VERSION < 20200000))
24812ID_CZ_REQ_CLOSESTORE = 0x012e
24813#elif CLIENT_TYPE == 'R' && ( \
24814 PACKET_VERSION >= 20210000 \
24815 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
24816 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
24817ID_CZ_REQ_CLOSESTORE = 0x012e
24818#elif CLIENT_TYPE == 'S' && \
24819 PACKET_VERSION >= 20030000
24820ID_CZ_REQ_CLOSESTORE = 0x012e
24821#elif CLIENT_TYPE == 'Z' && ( \
24822 PACKET_VERSION >= 20220000 \
24823 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
24824 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
24825 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
24826ID_CZ_REQ_CLOSESTORE = 0x012e
24827#else
24828ID_CZ_REQ_CLOSESTORE = 0x0000 // Disabled
24829#endif
24835class CZ_REQ_CLOSESTORE : public Base::NetworkPacket<ZoneSession>
24836{
24837public:
24838 CZ_REQ_CLOSESTORE(std::shared_ptr<ZoneSession> s)
24840 {}
24842
24843 void handle(ByteBuffer &&buf);
24844 void deserialize(ByteBuffer &buf);
24845
24846/* Structure */
24847};
24848
24849enum {
24850#if CLIENT_TYPE == 'M' && ( \
24851 PACKET_VERSION >= 20220000 \
24852 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
24853 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
24854 || PACKET_VERSION >= 20130417)
24856#elif CLIENT_TYPE == 'R' && ( \
24857 PACKET_VERSION >= 20210000 \
24858 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
24859 || PACKET_VERSION >= 20130417)
24861#elif CLIENT_TYPE == 'Z' && ( \
24862 PACKET_VERSION >= 20220000 \
24863 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
24864 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
24865 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
24867#else
24868ID_CZ_REQ_CLOSE_BANKING = 0x0000 // Disabled
24869#endif
24876{
24877public:
24878 CZ_REQ_CLOSE_BANKING(std::shared_ptr<ZoneSession> s)
24880 {}
24882
24883 void handle(ByteBuffer &&buf);
24884 void deserialize(ByteBuffer &buf);
24885
24886/* Structure */
24887};
24888
24889enum {
24890#if CLIENT_TYPE == 'M' && ( \
24891 PACKET_VERSION == 20190821 \
24892 || PACKET_VERSION == 20190807 \
24893 || PACKET_VERSION == 20190802 \
24894 || PACKET_VERSION == 20190731 \
24895 || PACKET_VERSION == 20190724 \
24896 || PACKET_VERSION == 20190717 \
24897 || PACKET_VERSION == 20190703 \
24898 || PACKET_VERSION == 20190605 \
24899 || PACKET_VERSION == 20190530 \
24900 || PACKET_VERSION == 20190523 \
24901 || PACKET_VERSION == 20190522 \
24902 || PACKET_VERSION == 20190508 \
24903 || PACKET_VERSION == 20190418 \
24904 || PACKET_VERSION == 20190417 \
24905 || PACKET_VERSION == 20190327 \
24906 || PACKET_VERSION == 20190322 \
24907 || PACKET_VERSION == 20190320 \
24908 || PACKET_VERSION == 20190313 \
24909 || PACKET_VERSION == 20190306 \
24910 || PACKET_VERSION == 20190228 \
24911 || PACKET_VERSION == 20190123 \
24912 || PACKET_VERSION == 20190116 \
24913 || (PACKET_VERSION >= 20190000 && PACKET_VERSION < 20190116) \
24914 || PACKET_VERSION == 20181226 \
24915 || PACKET_VERSION == 20181219 \
24916 || PACKET_VERSION == 20181212 \
24917 || PACKET_VERSION == 20181205 \
24918 || PACKET_VERSION == 20181128 \
24919 || PACKET_VERSION == 20181114 \
24920 || PACKET_VERSION == 20181107 \
24921 || PACKET_VERSION == 20181024 \
24922 || PACKET_VERSION == 20180919 \
24923 || PACKET_VERSION == 20180831 \
24924 || PACKET_VERSION == 20180822 \
24925 || PACKET_VERSION >= 20180808 \
24926 || PACKET_VERSION >= 20180718 \
24927 || PACKET_VERSION >= 20180704 \
24928 || PACKET_VERSION >= 20180621 \
24929 || PACKET_VERSION >= 20180620 \
24930 || PACKET_VERSION >= 20180530 \
24931 || PACKET_VERSION >= 20180523 \
24932 || PACKET_VERSION >= 20180516 \
24933 || PACKET_VERSION >= 20180509 \
24934 || PACKET_VERSION >= 20180502 \
24935 || PACKET_VERSION >= 20180425 \
24936 || PACKET_VERSION >= 20180404 \
24937 || PACKET_VERSION >= 20180328 \
24938 || PACKET_VERSION >= 20180321 \
24939 || PACKET_VERSION >= 20180213 \
24940 || PACKET_VERSION >= 20180117 \
24941 || PACKET_VERSION >= 20180103 \
24942 || PACKET_VERSION >= 20171227 \
24943 || PACKET_VERSION >= 20171220 \
24944 || PACKET_VERSION >= 20171129 \
24945 || PACKET_VERSION >= 20171122 \
24946 || PACKET_VERSION >= 20171115 \
24947 || PACKET_VERSION >= 20171108 \
24948 || PACKET_VERSION >= 20171101 \
24949 || PACKET_VERSION >= 20171002 \
24950 || PACKET_VERSION >= 20170913 \
24951 || PACKET_VERSION >= 20170906 \
24952 || PACKET_VERSION >= 20170830 \
24953 || PACKET_VERSION >= 20170823 \
24954 || PACKET_VERSION >= 20170809 \
24955 || PACKET_VERSION >= 20170801 \
24956 || PACKET_VERSION >= 20170719 \
24957 || PACKET_VERSION >= 20170621 \
24958 || PACKET_VERSION >= 20170524 \
24959 || PACKET_VERSION >= 20170517 \
24960 || PACKET_VERSION >= 20170426 \
24961 || PACKET_VERSION >= 20170412 \
24962 || PACKET_VERSION >= 20170322 \
24963 || PACKET_VERSION >= 20170315 \
24964 || PACKET_VERSION >= 20170308 \
24965 || PACKET_VERSION >= 20170228 \
24966 || PACKET_VERSION >= 20170222 \
24967 || PACKET_VERSION >= 20170215 \
24968 || PACKET_VERSION >= 20170201 \
24969 || PACKET_VERSION >= 20170125 \
24970 || PACKET_VERSION >= 20170104 \
24971 || PACKET_VERSION >= 20161221 \
24972 || PACKET_VERSION >= 20161130 \
24973 || PACKET_VERSION >= 20161026 \
24974 || PACKET_VERSION >= 20161019 \
24975 || PACKET_VERSION >= 20160928 \
24976 || PACKET_VERSION >= 20160921 \
24977 || PACKET_VERSION >= 20160913 \
24978 || PACKET_VERSION >= 20160907 \
24979 || PACKET_VERSION >= 20160831 \
24980 || PACKET_VERSION >= 20160824 \
24981 || PACKET_VERSION >= 20160615 \
24982 || PACKET_VERSION >= 20160511 \
24983 || PACKET_VERSION >= 20160504 \
24984 || PACKET_VERSION >= 20160414 \
24985 || PACKET_VERSION >= 20160406 \
24986 || PACKET_VERSION >= 20160316 \
24987 || PACKET_VERSION >= 20160302 \
24988 || PACKET_VERSION >= 20160224 \
24989 || PACKET_VERSION >= 20160217 \
24990 || PACKET_VERSION >= 20160120 \
24991 || PACKET_VERSION >= 20160113 \
24992 || PACKET_VERSION >= 20160106 \
24993 || PACKET_VERSION >= 20151230 \
24994 || PACKET_VERSION >= 20151223 \
24995 || PACKET_VERSION >= 20151209 \
24996 || PACKET_VERSION >= 20151202 \
24997 || PACKET_VERSION >= 20151125 \
24998 || PACKET_VERSION >= 20151118 \
24999 || PACKET_VERSION >= 20151111 \
25000 || PACKET_VERSION >= 20151021 \
25001 || PACKET_VERSION >= 20151014 \
25002 || PACKET_VERSION >= 20151001 \
25003 || PACKET_VERSION >= 20150916 \
25004 || PACKET_VERSION >= 20150909 \
25005 || PACKET_VERSION >= 20150826 \
25006 || PACKET_VERSION >= 20150805 \
25007 || PACKET_VERSION >= 20150715 \
25008 || PACKET_VERSION >= 20150708 \
25009 || PACKET_VERSION >= 20150701 \
25010 || PACKET_VERSION >= 20150617 \
25011 || PACKET_VERSION >= 20150603 \
25012 || PACKET_VERSION >= 20150527 \
25013 || PACKET_VERSION >= 20150520 \
25014 || PACKET_VERSION >= 20150422 \
25015 || PACKET_VERSION >= 20150318 \
25016 || PACKET_VERSION >= 20150311 \
25017 || PACKET_VERSION >= 20150225 \
25018 || PACKET_VERSION >= 20150217 \
25019 || PACKET_VERSION >= 20150211 \
25020 || PACKET_VERSION >= 20150204 \
25021 || PACKET_VERSION >= 20150128 \
25022 || PACKET_VERSION >= 20150107 \
25023 || PACKET_VERSION >= 20141231 \
25024 || PACKET_VERSION >= 20141217 \
25025 || PACKET_VERSION >= 20141210 \
25026 || PACKET_VERSION >= 20141203 \
25027 || PACKET_VERSION >= 20141126 \
25028 || PACKET_VERSION >= 20141105 \
25029 || PACKET_VERSION >= 20141001 \
25030 || PACKET_VERSION >= 20140924 \
25031 || PACKET_VERSION >= 20140917 \
25032 || PACKET_VERSION >= 20140827 \
25033 || PACKET_VERSION >= 20140820 \
25034 || PACKET_VERSION >= 20140806 \
25035 || PACKET_VERSION >= 20140730 \
25036 || PACKET_VERSION >= 20140709 \
25037 || PACKET_VERSION >= 20140702 \
25038 || PACKET_VERSION >= 20140625 \
25039 || PACKET_VERSION >= 20140611 \
25040 || PACKET_VERSION >= 20140605 \
25041 || PACKET_VERSION >= 20140528 \
25042 || PACKET_VERSION >= 20140521 \
25043 || PACKET_VERSION >= 20140514 \
25044 || PACKET_VERSION >= 20140508 \
25045 || PACKET_VERSION >= 20140430 \
25046 || PACKET_VERSION >= 20140423 \
25047 || PACKET_VERSION >= 20140416 \
25048 || PACKET_VERSION >= 20140326 \
25049 || PACKET_VERSION >= 20140319 \
25050 || PACKET_VERSION >= 20140312 \
25051 || PACKET_VERSION >= 20140305 \
25052 || PACKET_VERSION >= 20140226 \
25053 || PACKET_VERSION >= 20140212 \
25054 || PACKET_VERSION >= 20140129 \
25055 || PACKET_VERSION >= 20140122 \
25056 || PACKET_VERSION >= 20140108 \
25057 || PACKET_VERSION >= 20131230 \
25058 || PACKET_VERSION >= 20131211 \
25059 || PACKET_VERSION >= 20131204 \
25060 || PACKET_VERSION >= 20131127 \
25061 || PACKET_VERSION >= 20131106 \
25062 || PACKET_VERSION >= 20131030 \
25063 || PACKET_VERSION >= 20131008 \
25064 || PACKET_VERSION >= 20130925 \
25065 || PACKET_VERSION >= 20130917 \
25066 || PACKET_VERSION >= 20130911 \
25067 || PACKET_VERSION >= 20130904 \
25068 || PACKET_VERSION >= 20130828 \
25069 || PACKET_VERSION >= 20130821 \
25070 || PACKET_VERSION >= 20130814 \
25071 || PACKET_VERSION >= 20130807 \
25072 || PACKET_VERSION >= 20130717 \
25073 || PACKET_VERSION >= 20130626 \
25074 || PACKET_VERSION >= 20130618 \
25075 || PACKET_VERSION >= 20130605 \
25076 || PACKET_VERSION >= 20130522 \
25077 || PACKET_VERSION >= 20130417 \
25078 || PACKET_VERSION >= 20130410 \
25079 || PACKET_VERSION >= 20130403 \
25080 || PACKET_VERSION >= 20130320 \
25081 || PACKET_VERSION >= 20130313 \
25082 || PACKET_VERSION >= 20130306 \
25083 || PACKET_VERSION >= 20130227 \
25084 || PACKET_VERSION >= 20130206 \
25085 || PACKET_VERSION >= 20130130 \
25086 || PACKET_VERSION >= 20130121 \
25087 || PACKET_VERSION >= 20130109 \
25088 || PACKET_VERSION >= 20130103 \
25089 || PACKET_VERSION >= 20121227 \
25090 || PACKET_VERSION >= 20121218 \
25091 || PACKET_VERSION >= 20121212 \
25092 || PACKET_VERSION >= 20121205 \
25093 || PACKET_VERSION >= 20121121 \
25094 || PACKET_VERSION >= 20121114 \
25095 || PACKET_VERSION >= 20121107 \
25096 || PACKET_VERSION >= 20121031 \
25097 || PACKET_VERSION >= 20121024 \
25098 || PACKET_VERSION >= 20121017 \
25099 || PACKET_VERSION >= 20121010 \
25100 || PACKET_VERSION >= 20120925 \
25101 || PACKET_VERSION >= 20120919 \
25102 || PACKET_VERSION >= 20120905 \
25103 || PACKET_VERSION >= 20120830 \
25104 || PACKET_VERSION >= 20120822 \
25105 || PACKET_VERSION >= 20120814 \
25106 || PACKET_VERSION >= 20120808 \
25107 || PACKET_VERSION >= 20120801 \
25108 || PACKET_VERSION >= 20120716 \
25109 || PACKET_VERSION >= 20120710 \
25110 || PACKET_VERSION >= 20120702 \
25111 || PACKET_VERSION >= 20120626 \
25112 || PACKET_VERSION >= 20120612 \
25113 || PACKET_VERSION >= 20120604 \
25114 || PACKET_VERSION >= 20120529 \
25115 || PACKET_VERSION >= 20120515 \
25116 || PACKET_VERSION >= 20120503 \
25117 || PACKET_VERSION >= 20120424 \
25118 || PACKET_VERSION >= 20120404 \
25119 || PACKET_VERSION >= 20120328 \
25120 || PACKET_VERSION >= 20120307 \
25121 || PACKET_VERSION >= 20120228 \
25122 || PACKET_VERSION >= 20120221 \
25123 || PACKET_VERSION >= 20120214 \
25124 || PACKET_VERSION >= 20120207 \
25125 || PACKET_VERSION >= 20120131 \
25126 || PACKET_VERSION >= 20120117 \
25127 || PACKET_VERSION >= 20120103 \
25128 || PACKET_VERSION >= 20111227 \
25129 || PACKET_VERSION >= 20111220 \
25130 || PACKET_VERSION >= 20111114 \
25131 || PACKET_VERSION >= 20111108 \
25132 || PACKET_VERSION >= 20111101 \
25133 || PACKET_VERSION >= 20111025 \
25134 || PACKET_VERSION >= 20111010 \
25135 || PACKET_VERSION >= 20111004 \
25136 || PACKET_VERSION >= 20110928 \
25137 || PACKET_VERSION >= 20110920 \
25138 || PACKET_VERSION >= 20110831 \
25139 || PACKET_VERSION >= 20110823 \
25140 || PACKET_VERSION >= 20110809 \
25141 || PACKET_VERSION >= 20110802 \
25142 || PACKET_VERSION >= 20110726 \
25143 || PACKET_VERSION >= 20110718 \
25144 || PACKET_VERSION >= 20110711 \
25145 || PACKET_VERSION >= 20110620 \
25146 || PACKET_VERSION >= 20110614 \
25147 || PACKET_VERSION >= 20110607 \
25148 || PACKET_VERSION >= 20110523 \
25149 || PACKET_VERSION >= 20110503 \
25150 || PACKET_VERSION >= 20110426 \
25151 || PACKET_VERSION >= 20110419 \
25152 || PACKET_VERSION >= 20110405 \
25153 || PACKET_VERSION >= 20110329 \
25154 || PACKET_VERSION >= 20110322 \
25155 || PACKET_VERSION >= 20110315 \
25156 || PACKET_VERSION >= 20110308 \
25157 || PACKET_VERSION >= 20110228 \
25158 || PACKET_VERSION >= 20110222 \
25159 || PACKET_VERSION >= 20110215 \
25160 || PACKET_VERSION >= 20110131 \
25161 || PACKET_VERSION >= 20110125 \
25162 || PACKET_VERSION >= 20110118 \
25163 || PACKET_VERSION >= 20110104 \
25164 || PACKET_VERSION >= 20101228 \
25165 || PACKET_VERSION >= 20101221 \
25166 || PACKET_VERSION >= 20101214 \
25167 || PACKET_VERSION >= 20101207 \
25168 || PACKET_VERSION >= 20101130 \
25169 || PACKET_VERSION >= 20100420 \
25170 || PACKET_VERSION >= 20100309 \
25171 || PACKET_VERSION >= 20100303)
25173#elif CLIENT_TYPE == 'M' && \
25174 PACKET_VERSION >= 20120712
25176#elif CLIENT_TYPE == 'M' && \
25177 PACKET_VERSION >= 20120926
25179#elif CLIENT_TYPE == 'M' && ( \
25180 PACKET_VERSION == 20180131 \
25181 || PACKET_VERSION >= 20160609 \
25182 || PACKET_VERSION >= 20160526 \
25183 || PACKET_VERSION >= 20160318 \
25184 || PACKET_VERSION >= 20151029 \
25185 || PACKET_VERSION >= 20151022 \
25186 || PACKET_VERSION >= 20150812 \
25187 || PACKET_VERSION >= 20150618 \
25188 || PACKET_VERSION >= 20141016 \
25189 || PACKET_VERSION >= 20140814 \
25190 || PACKET_VERSION >= 20130107)
25192#elif CLIENT_TYPE == 'M' && \
25193 PACKET_VERSION >= 20130116
25195#elif CLIENT_TYPE == 'M' && ( \
25196 PACKET_VERSION == 20131108 \
25197 || PACKET_VERSION == 20131107)
25199#elif CLIENT_TYPE == 'M' && ( \
25200 PACKET_VERSION == 20140613 \
25201 || PACKET_VERSION == 20140612)
25203#elif CLIENT_TYPE == 'M' && ( \
25204 PACKET_VERSION >= 20220000 \
25205 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
25206 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
25207 || PACKET_VERSION >= 20150130 \
25208 || PACKET_VERSION >= 20150129)
25210#elif CLIENT_TYPE == 'M' && \
25211 PACKET_VERSION >= 20150226
25213#elif CLIENT_TYPE == 'M' && \
25214 PACKET_VERSION >= 20150702
25216#elif CLIENT_TYPE == 'M' && \
25217 PACKET_VERSION >= 20160630
25219#elif CLIENT_TYPE == 'M' && \
25220 PACKET_VERSION >= 20161103
25222#elif CLIENT_TYPE == 'M' && \
25223 PACKET_VERSION >= 20180309
25225#elif CLIENT_TYPE == 'R' && ( \
25226 PACKET_VERSION == 20190821 \
25227 || PACKET_VERSION == 20190807 \
25228 || PACKET_VERSION == 20190802 \
25229 || PACKET_VERSION == 20190731 \
25230 || PACKET_VERSION == 20190724 \
25231 || PACKET_VERSION == 20190717 \
25232 || PACKET_VERSION == 20190703 \
25233 || PACKET_VERSION == 20190626 \
25234 || PACKET_VERSION == 20190605 \
25235 || PACKET_VERSION == 20190530 \
25236 || PACKET_VERSION == 20190522 \
25237 || PACKET_VERSION == 20190508 \
25238 || PACKET_VERSION == 20190418 \
25239 || PACKET_VERSION == 20190417 \
25240 || PACKET_VERSION == 20190327 \
25241 || PACKET_VERSION == 20190322 \
25242 || PACKET_VERSION == 20190320 \
25243 || PACKET_VERSION == 20190306 \
25244 || PACKET_VERSION == 20190228 \
25245 || PACKET_VERSION == 20190123 \
25246 || PACKET_VERSION == 20190116 \
25247 || (PACKET_VERSION >= 20190000 && PACKET_VERSION < 20190116) \
25248 || PACKET_VERSION == 20181226 \
25249 || PACKET_VERSION == 20181219 \
25250 || PACKET_VERSION == 20181212 \
25251 || PACKET_VERSION == 20181205 \
25252 || PACKET_VERSION == 20181128 \
25253 || PACKET_VERSION == 20181121 \
25254 || PACKET_VERSION == 20181114 \
25255 || PACKET_VERSION == 20181107 \
25256 || PACKET_VERSION == 20180822 \
25257 || PACKET_VERSION >= 20180808 \
25258 || PACKET_VERSION >= 20180718 \
25259 || PACKET_VERSION >= 20180711 \
25260 || PACKET_VERSION >= 20180621 \
25261 || PACKET_VERSION >= 20180620 \
25262 || PACKET_VERSION >= 20180612 \
25263 || PACKET_VERSION >= 20180530 \
25264 || PACKET_VERSION >= 20180523 \
25265 || PACKET_VERSION >= 20180516 \
25266 || PACKET_VERSION >= 20180502 \
25267 || PACKET_VERSION >= 20180425 \
25268 || PACKET_VERSION >= 20180404 \
25269 || PACKET_VERSION >= 20180328 \
25270 || PACKET_VERSION >= 20180213 \
25271 || PACKET_VERSION >= 20180117 \
25272 || PACKET_VERSION >= 20180103 \
25273 || PACKET_VERSION >= 20171227 \
25274 || PACKET_VERSION >= 20171220 \
25275 || PACKET_VERSION >= 20171129 \
25276 || PACKET_VERSION >= 20171122 \
25277 || PACKET_VERSION >= 20171115 \
25278 || PACKET_VERSION >= 20171108 \
25279 || PACKET_VERSION >= 20171101 \
25280 || PACKET_VERSION >= 20171002 \
25281 || PACKET_VERSION >= 20170913 \
25282 || PACKET_VERSION >= 20170906 \
25283 || PACKET_VERSION >= 20170830 \
25284 || PACKET_VERSION >= 20170823 \
25285 || PACKET_VERSION >= 20170809 \
25286 || PACKET_VERSION >= 20170801 \
25287 || PACKET_VERSION >= 20170719 \
25288 || PACKET_VERSION >= 20170621 \
25289 || PACKET_VERSION >= 20170524 \
25290 || PACKET_VERSION >= 20170517 \
25291 || PACKET_VERSION >= 20170426 \
25292 || PACKET_VERSION >= 20170412 \
25293 || PACKET_VERSION >= 20170322 \
25294 || PACKET_VERSION >= 20170315 \
25295 || PACKET_VERSION >= 20170308 \
25296 || PACKET_VERSION >= 20170228 \
25297 || PACKET_VERSION >= 20170222 \
25298 || PACKET_VERSION >= 20170215 \
25299 || PACKET_VERSION >= 20170201 \
25300 || PACKET_VERSION >= 20170125 \
25301 || PACKET_VERSION >= 20170104 \
25302 || PACKET_VERSION >= 20161221 \
25303 || PACKET_VERSION >= 20161130 \
25304 || PACKET_VERSION >= 20161026 \
25305 || PACKET_VERSION >= 20161019 \
25306 || PACKET_VERSION >= 20160928 \
25307 || PACKET_VERSION >= 20160921 \
25308 || PACKET_VERSION >= 20160913 \
25309 || PACKET_VERSION >= 20160907 \
25310 || PACKET_VERSION >= 20160831 \
25311 || PACKET_VERSION >= 20160824 \
25312 || PACKET_VERSION >= 20160615 \
25313 || PACKET_VERSION >= 20160511 \
25314 || PACKET_VERSION >= 20160504 \
25315 || PACKET_VERSION >= 20160414 \
25316 || PACKET_VERSION >= 20160406 \
25317 || PACKET_VERSION >= 20160316 \
25318 || PACKET_VERSION >= 20160302 \
25319 || PACKET_VERSION >= 20160224 \
25320 || PACKET_VERSION >= 20160217 \
25321 || PACKET_VERSION >= 20160120 \
25322 || PACKET_VERSION >= 20160113 \
25323 || PACKET_VERSION >= 20160106 \
25324 || PACKET_VERSION >= 20151230 \
25325 || PACKET_VERSION >= 20151223 \
25326 || PACKET_VERSION >= 20151209 \
25327 || PACKET_VERSION >= 20151202 \
25328 || PACKET_VERSION >= 20151125 \
25329 || PACKET_VERSION >= 20151118 \
25330 || PACKET_VERSION >= 20151111 \
25331 || PACKET_VERSION >= 20151021 \
25332 || PACKET_VERSION >= 20151014 \
25333 || PACKET_VERSION >= 20151001 \
25334 || PACKET_VERSION >= 20150916 \
25335 || PACKET_VERSION >= 20150909 \
25336 || PACKET_VERSION >= 20150826 \
25337 || PACKET_VERSION >= 20150805 \
25338 || PACKET_VERSION >= 20150715 \
25339 || PACKET_VERSION >= 20150708 \
25340 || PACKET_VERSION >= 20150701 \
25341 || PACKET_VERSION >= 20150617 \
25342 || PACKET_VERSION >= 20150603 \
25343 || PACKET_VERSION >= 20150527 \
25344 || PACKET_VERSION >= 20150520 \
25345 || PACKET_VERSION >= 20150422 \
25346 || PACKET_VERSION >= 20150318 \
25347 || PACKET_VERSION >= 20150311 \
25348 || PACKET_VERSION >= 20150217 \
25349 || PACKET_VERSION >= 20150211 \
25350 || PACKET_VERSION >= 20150204 \
25351 || PACKET_VERSION >= 20150128 \
25352 || PACKET_VERSION >= 20150107 \
25353 || PACKET_VERSION >= 20141231 \
25354 || PACKET_VERSION >= 20141217 \
25355 || PACKET_VERSION >= 20141210 \
25356 || PACKET_VERSION >= 20141203 \
25357 || PACKET_VERSION >= 20141126 \
25358 || PACKET_VERSION >= 20141105 \
25359 || PACKET_VERSION >= 20141001 \
25360 || PACKET_VERSION >= 20140924 \
25361 || PACKET_VERSION >= 20140917 \
25362 || PACKET_VERSION >= 20140827 \
25363 || PACKET_VERSION >= 20140820 \
25364 || PACKET_VERSION >= 20140806 \
25365 || PACKET_VERSION >= 20140730 \
25366 || PACKET_VERSION >= 20140709 \
25367 || PACKET_VERSION >= 20140702 \
25368 || PACKET_VERSION >= 20140625 \
25369 || PACKET_VERSION >= 20140611 \
25370 || PACKET_VERSION >= 20140605 \
25371 || PACKET_VERSION >= 20140528 \
25372 || PACKET_VERSION >= 20140521 \
25373 || PACKET_VERSION >= 20140514 \
25374 || PACKET_VERSION >= 20140508 \
25375 || PACKET_VERSION >= 20140430 \
25376 || PACKET_VERSION >= 20140423 \
25377 || PACKET_VERSION >= 20140416 \
25378 || PACKET_VERSION >= 20140326 \
25379 || PACKET_VERSION >= 20140319 \
25380 || PACKET_VERSION >= 20140312 \
25381 || PACKET_VERSION >= 20140305 \
25382 || PACKET_VERSION >= 20140226 \
25383 || PACKET_VERSION >= 20140212 \
25384 || PACKET_VERSION >= 20140129 \
25385 || PACKET_VERSION >= 20140122 \
25386 || PACKET_VERSION >= 20140108 \
25387 || PACKET_VERSION >= 20131230 \
25388 || PACKET_VERSION >= 20131223 \
25389 || PACKET_VERSION >= 20131211 \
25390 || PACKET_VERSION >= 20131204 \
25391 || PACKET_VERSION >= 20131127 \
25392 || PACKET_VERSION >= 20131106 \
25393 || PACKET_VERSION >= 20131030 \
25394 || PACKET_VERSION >= 20131008 \
25395 || PACKET_VERSION >= 20130925 \
25396 || PACKET_VERSION >= 20130917 \
25397 || PACKET_VERSION >= 20130911 \
25398 || PACKET_VERSION >= 20130904 \
25399 || PACKET_VERSION >= 20130828 \
25400 || PACKET_VERSION >= 20130821 \
25401 || PACKET_VERSION >= 20130814 \
25402 || PACKET_VERSION >= 20130807 \
25403 || PACKET_VERSION >= 20130717 \
25404 || PACKET_VERSION >= 20130626 \
25405 || PACKET_VERSION >= 20130618 \
25406 || PACKET_VERSION >= 20130605 \
25407 || PACKET_VERSION >= 20130522 \
25408 || PACKET_VERSION >= 20130417 \
25409 || PACKET_VERSION >= 20130410 \
25410 || PACKET_VERSION >= 20130403 \
25411 || PACKET_VERSION >= 20130320 \
25412 || PACKET_VERSION >= 20130313 \
25413 || PACKET_VERSION >= 20130306 \
25414 || PACKET_VERSION >= 20130227 \
25415 || PACKET_VERSION >= 20130206 \
25416 || PACKET_VERSION >= 20130130 \
25417 || PACKET_VERSION >= 20130121 \
25418 || PACKET_VERSION >= 20130109 \
25419 || PACKET_VERSION >= 20130103 \
25420 || PACKET_VERSION >= 20121227 \
25421 || PACKET_VERSION >= 20121218 \
25422 || PACKET_VERSION >= 20121212 \
25423 || PACKET_VERSION >= 20121205 \
25424 || PACKET_VERSION >= 20121121 \
25425 || PACKET_VERSION >= 20121114 \
25426 || PACKET_VERSION >= 20121107 \
25427 || PACKET_VERSION >= 20121031 \
25428 || PACKET_VERSION >= 20121024 \
25429 || PACKET_VERSION >= 20121017 \
25430 || PACKET_VERSION >= 20121010 \
25431 || PACKET_VERSION >= 20120925 \
25432 || PACKET_VERSION >= 20120919 \
25433 || PACKET_VERSION >= 20120905 \
25434 || PACKET_VERSION >= 20120830 \
25435 || PACKET_VERSION >= 20120822 \
25436 || PACKET_VERSION >= 20120814 \
25437 || PACKET_VERSION >= 20120808 \
25438 || PACKET_VERSION >= 20120801 \
25439 || PACKET_VERSION >= 20120716 \
25440 || PACKET_VERSION >= 20120710 \
25441 || PACKET_VERSION >= 20120702 \
25442 || PACKET_VERSION >= 20120626 \
25443 || PACKET_VERSION >= 20120612 \
25444 || PACKET_VERSION >= 20120601 \
25445 || PACKET_VERSION >= 20120529 \
25446 || PACKET_VERSION >= 20120515 \
25447 || PACKET_VERSION >= 20120502 \
25448 || PACKET_VERSION >= 20120424 \
25449 || PACKET_VERSION >= 20120404 \
25450 || PACKET_VERSION >= 20120328 \
25451 || PACKET_VERSION >= 20120307 \
25452 || PACKET_VERSION >= 20120228 \
25453 || PACKET_VERSION >= 20120221 \
25454 || PACKET_VERSION >= 20120214 \
25455 || PACKET_VERSION >= 20120207 \
25456 || PACKET_VERSION >= 20120131 \
25457 || PACKET_VERSION >= 20120117 \
25458 || PACKET_VERSION >= 20120103 \
25459 || PACKET_VERSION >= 20111227 \
25460 || PACKET_VERSION >= 20111220 \
25461 || PACKET_VERSION >= 20111114 \
25462 || PACKET_VERSION >= 20111108 \
25463 || PACKET_VERSION >= 20111101 \
25464 || PACKET_VERSION >= 20111025 \
25465 || PACKET_VERSION >= 20111010 \
25466 || PACKET_VERSION >= 20111004 \
25467 || PACKET_VERSION >= 20110928 \
25468 || PACKET_VERSION >= 20110920 \
25469 || PACKET_VERSION >= 20110831 \
25470 || PACKET_VERSION >= 20110823 \
25471 || PACKET_VERSION >= 20110816 \
25472 || PACKET_VERSION >= 20110104 \
25473 || PACKET_VERSION >= 20100420 \
25474 || PACKET_VERSION >= 20100309 \
25475 || PACKET_VERSION >= 20100303)
25477#elif CLIENT_TYPE == 'R' && ( \
25478 PACKET_VERSION >= 20210000 \
25479 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
25480 || PACKET_VERSION >= 20120712)
25482#elif CLIENT_TYPE == 'R' && \
25483 PACKET_VERSION >= 20120926
25485#elif CLIENT_TYPE == 'R' && \
25486 PACKET_VERSION >= 20121011
25488#elif CLIENT_TYPE == 'R' && \
25489 PACKET_VERSION >= 20130116
25491#elif CLIENT_TYPE == 'R' && ( \
25492 PACKET_VERSION == 20151029 \
25493 || PACKET_VERSION == 20151022 \
25494 || PACKET_VERSION == 20150812 \
25495 || PACKET_VERSION == 20150618 \
25496 || PACKET_VERSION >= 20141016)
25498#elif CLIENT_TYPE == 'R' && \
25499 PACKET_VERSION >= 20150226
25501#elif CLIENT_TYPE == 'R' && \
25502 PACKET_VERSION >= 20160630
25504#elif CLIENT_TYPE == 'R' && \
25505 PACKET_VERSION >= 20161103
25507#elif CLIENT_TYPE == 'Z' && ( \
25508 PACKET_VERSION == 20190814 \
25509 || PACKET_VERSION == 20190724 \
25510 || PACKET_VERSION == 20190717 \
25511 || PACKET_VERSION == 20190710 \
25512 || PACKET_VERSION == 20190709 \
25513 || PACKET_VERSION == 20190605 \
25514 || PACKET_VERSION == 20190530 \
25515 || PACKET_VERSION == 20190515 \
25516 || PACKET_VERSION == 20190508 \
25517 || PACKET_VERSION == 20190502 \
25518 || PACKET_VERSION == 20190424 \
25519 || PACKET_VERSION == 20190410 \
25520 || PACKET_VERSION == 20190403 \
25521 || PACKET_VERSION == 20190313 \
25522 || PACKET_VERSION == 20190227 \
25523 || PACKET_VERSION == 20190213 \
25524 || PACKET_VERSION == 20190117 \
25525 || PACKET_VERSION == 20181226 \
25526 || PACKET_VERSION == 20181219 \
25527 || PACKET_VERSION == 20181212 \
25528 || PACKET_VERSION == 20181128 \
25529 || PACKET_VERSION == 20181120 \
25530 || PACKET_VERSION == 20180928 \
25531 || PACKET_VERSION == 20180912 \
25532 || PACKET_VERSION == 20180829 \
25533 || PACKET_VERSION >= 20180808 \
25534 || PACKET_VERSION >= 20180801 \
25535 || PACKET_VERSION >= 20180711 \
25536 || PACKET_VERSION >= 20180703 \
25537 || PACKET_VERSION >= 20180627 \
25538 || PACKET_VERSION >= 20180509 \
25539 || PACKET_VERSION >= 20180411 \
25540 || PACKET_VERSION >= 20180321 \
25541 || PACKET_VERSION >= 20171113 \
25542 || PACKET_VERSION >= 20171031 \
25543 || PACKET_VERSION >= 20171030 \
25544 || PACKET_VERSION >= 20171027 \
25545 || PACKET_VERSION >= 20171025 \
25546 || PACKET_VERSION >= 20171024 \
25547 || PACKET_VERSION >= 20171023 \
25548 || PACKET_VERSION >= 20171019)
25550#elif CLIENT_TYPE == 'Z' && ( \
25551 PACKET_VERSION == 20180309 \
25552 || PACKET_VERSION == 20180307 \
25553 || PACKET_VERSION == 20171128 \
25554 || PACKET_VERSION == 20171122 \
25555 || PACKET_VERSION == 20171117 \
25556 || PACKET_VERSION == 20171116)
25558#elif CLIENT_TYPE == 'Z' && ( \
25559 PACKET_VERSION >= 20220000 \
25560 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
25561 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
25562 || PACKET_VERSION >= 20171213 \
25563 || PACKET_VERSION >= 20171212 \
25564 || PACKET_VERSION >= 20171211 \
25565 || PACKET_VERSION >= 20171210 \
25566 || PACKET_VERSION >= 20171209 \
25567 || PACKET_VERSION >= 20171208)
25569#elif CLIENT_TYPE == 'Z' && \
25570 PACKET_VERSION >= 20171221
25572#elif CLIENT_TYPE == 'Z' && \
25573 PACKET_VERSION >= 20171229
25575#else
25576ID_CZ_REQ_CLOSE_BUYING_STORE = 0x0000 // Disabled
25577#endif
25584{
25585public:
25586 CZ_REQ_CLOSE_BUYING_STORE(std::shared_ptr<ZoneSession> s)
25588 {}
25590
25591 void handle(ByteBuffer &&buf);
25592 void deserialize(ByteBuffer &buf);
25593
25594/* Structure */
25595};
25596
25597enum {
25598#if CLIENT_TYPE == 'M' && ( \
25599 PACKET_VERSION >= 20220000 \
25600 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
25601 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
25602 || PACKET_VERSION >= 20130828)
25604#elif CLIENT_TYPE == 'R' && ( \
25605 PACKET_VERSION >= 20210000 \
25606 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
25607 || PACKET_VERSION >= 20130828)
25609#elif CLIENT_TYPE == 'Z' && ( \
25610 PACKET_VERSION >= 20220000 \
25611 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
25612 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
25613 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
25615#else
25616ID_CZ_REQ_CLOSE_GUILD_STORAGE = 0x0000 // Disabled
25617#endif
25624{
25625public:
25626 CZ_REQ_CLOSE_GUILD_STORAGE(std::shared_ptr<ZoneSession> s)
25628 {}
25630
25631 void handle(ByteBuffer &&buf);
25632 void deserialize(ByteBuffer &buf);
25633
25634/* Structure */
25635};
25636
25637enum {
25638#if CLIENT_TYPE == 'M' && ( \
25639 PACKET_VERSION >= 20220000 \
25640 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
25641 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
25642 || PACKET_VERSION >= 20140611)
25644#elif CLIENT_TYPE == 'R' && ( \
25645 PACKET_VERSION >= 20210000 \
25646 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
25647 || PACKET_VERSION >= 20140611)
25649#elif CLIENT_TYPE == 'Z' && ( \
25650 PACKET_VERSION >= 20220000 \
25651 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
25652 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
25653 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
25655#else
25656ID_CZ_REQ_CLOSE_ROULETTE = 0x0000 // Disabled
25657#endif
25664{
25665public:
25666 CZ_REQ_CLOSE_ROULETTE(std::shared_ptr<ZoneSession> s)
25668 {}
25670
25671 void handle(ByteBuffer &&buf);
25672 void deserialize(ByteBuffer &buf);
25673
25674/* Structure */
25675};
25676
25677enum {
25678#if CLIENT_TYPE == 'M' && ( \
25679 PACKET_VERSION >= 20220000 \
25680 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
25681 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
25682 || PACKET_VERSION >= 20130529)
25684#elif CLIENT_TYPE == 'R' && ( \
25685 PACKET_VERSION >= 20210000 \
25686 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
25687 || PACKET_VERSION >= 20130529)
25689#elif CLIENT_TYPE == 'Z' && ( \
25690 PACKET_VERSION >= 20220000 \
25691 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
25692 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
25693 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
25695#else
25696ID_CZ_REQ_COUNT_BARGAIN_SALE_ITEM = 0x0000 // Disabled
25697#endif
25704{
25705public:
25706 CZ_REQ_COUNT_BARGAIN_SALE_ITEM(std::shared_ptr<ZoneSession> s)
25708 {}
25710
25711 void handle(ByteBuffer &&buf);
25712 void deserialize(ByteBuffer &buf);
25713
25714/* Structure */
25715};
25716
25717enum {
25718#if CLIENT_TYPE == 'A' && \
25719 PACKET_VERSION >= 20040000
25721#elif CLIENT_TYPE == 'M' && ( \
25722 PACKET_VERSION >= 20220000 \
25723 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
25724 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
25725 || (PACKET_VERSION >= 20030000 && PACKET_VERSION < 20200000))
25727#elif CLIENT_TYPE == 'R' && ( \
25728 PACKET_VERSION >= 20210000 \
25729 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
25730 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
25732#elif CLIENT_TYPE == 'S' && \
25733 PACKET_VERSION >= 20030000
25735#elif CLIENT_TYPE == 'Z' && ( \
25736 PACKET_VERSION >= 20220000 \
25737 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
25738 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
25739 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
25741#else
25742ID_CZ_REQ_DELETE_RELATED_GUILD = 0x0000 // Disabled
25743#endif
25750{
25751public:
25752 CZ_REQ_DELETE_RELATED_GUILD(std::shared_ptr<ZoneSession> s)
25754 {}
25756
25757 void handle(ByteBuffer &&buf);
25758 void deserialize(ByteBuffer &buf);
25759
25760/* Structure */
25761 int _guild_id{ 0 };
25762 int _relation{ 0 };
25763};
25764
25765enum {
25766#if CLIENT_TYPE == 'M' && ( \
25767 PACKET_VERSION >= 20220000 \
25768 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
25769 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
25770 || PACKET_VERSION >= 20131218)
25772#elif CLIENT_TYPE == 'R' && ( \
25773 PACKET_VERSION >= 20210000 \
25774 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
25775 || PACKET_VERSION >= 20131218)
25777#elif CLIENT_TYPE == 'Z' && ( \
25778 PACKET_VERSION >= 20220000 \
25779 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
25780 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
25781 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
25783#else
25784ID_CZ_REQ_DELETE_RODEX = 0x0000 // Disabled
25785#endif
25791class CZ_REQ_DELETE_RODEX : public Base::NetworkPacket<ZoneSession>
25792{
25793public:
25794 CZ_REQ_DELETE_RODEX(std::shared_ptr<ZoneSession> s)
25796 {}
25798
25799 void handle(ByteBuffer &&buf);
25800 void deserialize(ByteBuffer &buf);
25801
25802/* Structure */
25803};
25804
25805enum {
25806#if CLIENT_TYPE == 'A' && \
25807 PACKET_VERSION >= 20040000
25808ID_CZ_REQ_DISCONNECT = 0x018a
25809#elif CLIENT_TYPE == 'M' && ( \
25810 PACKET_VERSION >= 20220000 \
25811 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
25812 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
25813 || (PACKET_VERSION >= 20030000 && PACKET_VERSION < 20200000))
25814ID_CZ_REQ_DISCONNECT = 0x018a
25815#elif CLIENT_TYPE == 'R' && ( \
25816 PACKET_VERSION >= 20210000 \
25817 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
25818 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
25819ID_CZ_REQ_DISCONNECT = 0x018a
25820#elif CLIENT_TYPE == 'S' && \
25821 PACKET_VERSION >= 20030000
25822ID_CZ_REQ_DISCONNECT = 0x018a
25823#elif CLIENT_TYPE == 'Z' && ( \
25824 PACKET_VERSION >= 20220000 \
25825 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
25826 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
25827 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
25828ID_CZ_REQ_DISCONNECT = 0x018a
25829#else
25830ID_CZ_REQ_DISCONNECT = 0x0000 // Disabled
25831#endif
25837class CZ_REQ_DISCONNECT : public Base::NetworkPacket<ZoneSession>
25838{
25839public:
25840 CZ_REQ_DISCONNECT(std::shared_ptr<ZoneSession> s)
25842 {}
25844
25845 void handle(ByteBuffer &&buf);
25846 void deserialize(ByteBuffer &buf);
25847
25848/* Structure */
25849 uint16_t _type;
25850};
25851
25852enum {
25853#if CLIENT_TYPE == 'A' && \
25854 PACKET_VERSION >= 20040000
25856#elif CLIENT_TYPE == 'M' && ( \
25857 PACKET_VERSION >= 20220000 \
25858 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
25859 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
25860 || (PACKET_VERSION >= 20030000 && PACKET_VERSION < 20200000))
25862#elif CLIENT_TYPE == 'R' && ( \
25863 PACKET_VERSION >= 20210000 \
25864 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
25865 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
25867#elif CLIENT_TYPE == 'S' && \
25868 PACKET_VERSION >= 20030000
25870#elif CLIENT_TYPE == 'Z' && ( \
25871 PACKET_VERSION >= 20220000 \
25872 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
25873 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
25874 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
25876#else
25877ID_CZ_REQ_DISORGANIZE_GUILD = 0x0000 // Disabled
25878#endif
25885{
25886public:
25887 CZ_REQ_DISORGANIZE_GUILD(std::shared_ptr<ZoneSession> s)
25889 {}
25891
25892 void handle(ByteBuffer &&buf);
25893 void deserialize(ByteBuffer &buf);
25894
25895/* Structure */
25897};
25898
25899enum {
25900#if CLIENT_TYPE == 'A' && \
25901 PACKET_VERSION >= 20040000
25902ID_CZ_REQ_EMOTION = 0x00bf
25903#elif CLIENT_TYPE == 'M' && ( \
25904 PACKET_VERSION >= 20220000 \
25905 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
25906 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
25907 || (PACKET_VERSION >= 20030000 && PACKET_VERSION < 20200000))
25908ID_CZ_REQ_EMOTION = 0x00bf
25909#elif CLIENT_TYPE == 'R' && ( \
25910 PACKET_VERSION >= 20210000 \
25911 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
25912 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
25913ID_CZ_REQ_EMOTION = 0x00bf
25914#elif CLIENT_TYPE == 'S' && \
25915 PACKET_VERSION >= 20030000
25916ID_CZ_REQ_EMOTION = 0x00bf
25917#elif CLIENT_TYPE == 'Z' && ( \
25918 PACKET_VERSION >= 20220000 \
25919 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
25920 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
25921 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
25922ID_CZ_REQ_EMOTION = 0x00bf
25923#else
25924ID_CZ_REQ_EMOTION = 0x0000 // Disabled
25925#endif
25931class CZ_REQ_EMOTION : public Base::NetworkPacket<ZoneSession>
25932{
25933public:
25934 CZ_REQ_EMOTION(std::shared_ptr<ZoneSession> s)
25936 {}
25937 virtual ~CZ_REQ_EMOTION() {}
25938
25939 void handle(ByteBuffer &&buf);
25940 void deserialize(ByteBuffer &buf);
25941
25942/* Structure */
25943 int8_t _type;
25944};
25945
25946enum {
25947#if CLIENT_TYPE == 'A' && \
25948 PACKET_VERSION >= 20040000
25949ID_CZ_REQ_ENTER_ROOM = 0x00d9
25950#elif CLIENT_TYPE == 'M' && ( \
25951 PACKET_VERSION >= 20220000 \
25952 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
25953 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
25954 || (PACKET_VERSION >= 20030000 && PACKET_VERSION < 20200000))
25955ID_CZ_REQ_ENTER_ROOM = 0x00d9
25956#elif CLIENT_TYPE == 'R' && ( \
25957 PACKET_VERSION >= 20210000 \
25958 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
25959 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
25960ID_CZ_REQ_ENTER_ROOM = 0x00d9
25961#elif CLIENT_TYPE == 'S' && \
25962 PACKET_VERSION >= 20030000
25963ID_CZ_REQ_ENTER_ROOM = 0x00d9
25964#elif CLIENT_TYPE == 'Z' && ( \
25965 PACKET_VERSION >= 20220000 \
25966 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
25967 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
25968 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
25969ID_CZ_REQ_ENTER_ROOM = 0x00d9
25970#else
25971ID_CZ_REQ_ENTER_ROOM = 0x0000 // Disabled
25972#endif
25978class CZ_REQ_ENTER_ROOM : public Base::NetworkPacket<ZoneSession>
25979{
25980public:
25981 CZ_REQ_ENTER_ROOM(std::shared_ptr<ZoneSession> s)
25983 {}
25985
25986 void handle(ByteBuffer &&buf);
25987 void deserialize(ByteBuffer &buf);
25988
25989/* Structure */
25990 int _chat_id{ 0 };
25992};
25993
25994enum {
25995#if CLIENT_TYPE == 'M' && ( \
25996 PACKET_VERSION >= 20220000 \
25997 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
25998 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
25999 || PACKET_VERSION >= 20111004)
26001#elif CLIENT_TYPE == 'R' && ( \
26002 PACKET_VERSION >= 20210000 \
26003 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
26004 || PACKET_VERSION >= 20111004)
26006#elif CLIENT_TYPE == 'Z' && ( \
26007 PACKET_VERSION >= 20220000 \
26008 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
26009 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
26010 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
26012#else
26013ID_CZ_REQ_ENTRY_QUEUE_APPLY = 0x0000 // Disabled
26014#endif
26021{
26022public:
26023 CZ_REQ_ENTRY_QUEUE_APPLY(std::shared_ptr<ZoneSession> s)
26025 {}
26027
26028 void handle(ByteBuffer &&buf);
26029 void deserialize(ByteBuffer &buf);
26030
26031/* Structure */
26032};
26033
26034enum {
26035#if CLIENT_TYPE == 'M' && ( \
26036 PACKET_VERSION >= 20220000 \
26037 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
26038 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
26039 || PACKET_VERSION >= 20111004)
26041#elif CLIENT_TYPE == 'R' && ( \
26042 PACKET_VERSION >= 20210000 \
26043 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
26044 || PACKET_VERSION >= 20111004)
26046#elif CLIENT_TYPE == 'Z' && ( \
26047 PACKET_VERSION >= 20220000 \
26048 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
26049 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
26050 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
26052#else
26053ID_CZ_REQ_ENTRY_QUEUE_CANCEL = 0x0000 // Disabled
26054#endif
26061{
26062public:
26063 CZ_REQ_ENTRY_QUEUE_CANCEL(std::shared_ptr<ZoneSession> s)
26065 {}
26067
26068 void handle(ByteBuffer &&buf);
26069 void deserialize(ByteBuffer &buf);
26070
26071/* Structure */
26072};
26073
26074enum {
26075#if CLIENT_TYPE == 'M' && ( \
26076 PACKET_VERSION >= 20220000 \
26077 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
26078 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
26079 || PACKET_VERSION >= 20111207)
26081#elif CLIENT_TYPE == 'R' && ( \
26082 PACKET_VERSION >= 20210000 \
26083 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
26084 || PACKET_VERSION >= 20111207)
26086#elif CLIENT_TYPE == 'Z' && ( \
26087 PACKET_VERSION >= 20220000 \
26088 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
26089 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
26090 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
26092#else
26093ID_CZ_REQ_ENTRY_QUEUE_RANKING = 0x0000 // Disabled
26094#endif
26101{
26102public:
26103 CZ_REQ_ENTRY_QUEUE_RANKING(std::shared_ptr<ZoneSession> s)
26105 {}
26107
26108 void handle(ByteBuffer &&buf);
26109 void deserialize(ByteBuffer &buf);
26110
26111/* Structure */
26112};
26113
26114enum {
26115#if CLIENT_TYPE == 'A' && \
26116 PACKET_VERSION >= 20040000
26118#elif CLIENT_TYPE == 'M' && ( \
26119 PACKET_VERSION >= 20220000 \
26120 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
26121 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
26122 || (PACKET_VERSION >= 20030000 && PACKET_VERSION < 20200000))
26124#elif CLIENT_TYPE == 'R' && ( \
26125 PACKET_VERSION >= 20210000 \
26126 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
26127 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
26129#elif CLIENT_TYPE == 'S' && \
26130 PACKET_VERSION >= 20030000
26132#elif CLIENT_TYPE == 'Z' && ( \
26133 PACKET_VERSION >= 20220000 \
26134 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
26135 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
26136 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
26138#else
26139ID_CZ_REQ_EXCHANGE_ITEM = 0x0000 // Disabled
26140#endif
26147{
26148public:
26149 CZ_REQ_EXCHANGE_ITEM(std::shared_ptr<ZoneSession> s)
26151 {}
26153
26154 void handle(ByteBuffer &&buf);
26155 void deserialize(ByteBuffer &buf);
26156
26157/* Structure */
26159};
26160
26161enum {
26162#if CLIENT_TYPE == 'A' && \
26163 PACKET_VERSION >= 20040000
26165#elif CLIENT_TYPE == 'M' && ( \
26166 PACKET_VERSION >= 20220000 \
26167 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
26168 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
26169 || (PACKET_VERSION >= 20030000 && PACKET_VERSION < 20200000))
26171#elif CLIENT_TYPE == 'R' && ( \
26172 PACKET_VERSION >= 20210000 \
26173 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
26174 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
26176#elif CLIENT_TYPE == 'S' && \
26177 PACKET_VERSION >= 20030000
26179#elif CLIENT_TYPE == 'Z' && ( \
26180 PACKET_VERSION >= 20220000 \
26181 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
26182 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
26183 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
26185#else
26186ID_CZ_REQ_EXPEL_GROUP_MEMBER = 0x0000 // Disabled
26187#endif
26194{
26195public:
26196 CZ_REQ_EXPEL_GROUP_MEMBER(std::shared_ptr<ZoneSession> s)
26198 {}
26200
26201 void handle(ByteBuffer &&buf);
26202 void deserialize(ByteBuffer &buf);
26203
26204/* Structure */
26205 int _account_id{ 0 };
26207};
26208
26209enum {
26210#if CLIENT_TYPE == 'A' && \
26211 PACKET_VERSION >= 20040000
26213#elif CLIENT_TYPE == 'M' && ( \
26214 PACKET_VERSION >= 20220000 \
26215 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
26216 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
26217 || (PACKET_VERSION >= 20030000 && PACKET_VERSION < 20200000))
26219#elif CLIENT_TYPE == 'R' && ( \
26220 PACKET_VERSION >= 20210000 \
26221 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
26222 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
26224#elif CLIENT_TYPE == 'S' && \
26225 PACKET_VERSION >= 20030000
26227#elif CLIENT_TYPE == 'Z' && ( \
26228 PACKET_VERSION >= 20220000 \
26229 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
26230 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
26231 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
26233#else
26234ID_CZ_REQ_EXPEL_MEMBER = 0x0000 // Disabled
26235#endif
26241class CZ_REQ_EXPEL_MEMBER : public Base::NetworkPacket<ZoneSession>
26242{
26243public:
26244 CZ_REQ_EXPEL_MEMBER(std::shared_ptr<ZoneSession> s)
26246 {}
26248
26249 void handle(ByteBuffer &&buf);
26250 void deserialize(ByteBuffer &buf);
26251
26252/* Structure */
26254};
26255
26256enum {
26257#if CLIENT_TYPE == 'M' && ( \
26258 PACKET_VERSION >= 20220000 \
26259 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
26260 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
26261 || PACKET_VERSION >= 20140611)
26263#elif CLIENT_TYPE == 'R' && ( \
26264 PACKET_VERSION >= 20210000 \
26265 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
26266 || PACKET_VERSION >= 20140611)
26268#elif CLIENT_TYPE == 'Z' && ( \
26269 PACKET_VERSION >= 20220000 \
26270 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
26271 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
26272 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
26274#else
26275ID_CZ_REQ_GENERATE_ROULETTE = 0x0000 // Disabled
26276#endif
26283{
26284public:
26285 CZ_REQ_GENERATE_ROULETTE(std::shared_ptr<ZoneSession> s)
26287 {}
26289
26290 void handle(ByteBuffer &&buf);
26291 void deserialize(ByteBuffer &buf);
26292
26293/* Structure */
26294};
26295
26296enum {
26297#if CLIENT_TYPE == 'A' && \
26298 PACKET_VERSION >= 20040816
26300#elif CLIENT_TYPE == 'M' && ( \
26301 PACKET_VERSION >= 20220000 \
26302 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
26303 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
26304 || PACKET_VERSION >= 20040816)
26306#elif CLIENT_TYPE == 'R' && ( \
26307 PACKET_VERSION >= 20210000 \
26308 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
26309 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
26311#elif CLIENT_TYPE == 'S' && \
26312 PACKET_VERSION >= 20040816
26314#elif CLIENT_TYPE == 'Z' && ( \
26315 PACKET_VERSION >= 20220000 \
26316 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
26317 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
26318 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
26320#else
26321ID_CZ_REQ_GIVE_MANNER_BYNAME = 0x0000 // Disabled
26322#endif
26329{
26330public:
26331 CZ_REQ_GIVE_MANNER_BYNAME(std::shared_ptr<ZoneSession> s)
26333 {}
26335
26336 void handle(ByteBuffer &&buf);
26337 void deserialize(ByteBuffer &buf);
26338
26339/* Structure */
26341};
26342
26343enum {
26344#if CLIENT_TYPE == 'A' && \
26345 PACKET_VERSION >= 20040000
26347#elif CLIENT_TYPE == 'M' && ( \
26348 PACKET_VERSION >= 20220000 \
26349 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
26350 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
26351 || (PACKET_VERSION >= 20030000 && PACKET_VERSION < 20200000))
26353#elif CLIENT_TYPE == 'R' && ( \
26354 PACKET_VERSION >= 20210000 \
26355 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
26356 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
26358#elif CLIENT_TYPE == 'S' && \
26359 PACKET_VERSION >= 20030000
26361#elif CLIENT_TYPE == 'Z' && ( \
26362 PACKET_VERSION >= 20220000 \
26363 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
26364 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
26365 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
26367#else
26368ID_CZ_REQ_GIVE_MANNER_POINT = 0x0000 // Disabled
26369#endif
26376{
26377public:
26378 CZ_REQ_GIVE_MANNER_POINT(std::shared_ptr<ZoneSession> s)
26380 {}
26382
26383 void handle(ByteBuffer &&buf);
26384 void deserialize(ByteBuffer &buf);
26385
26386/* Structure */
26388 int8_t _type;
26389 int16_t _value;
26390};
26391
26392enum {
26393#if CLIENT_TYPE == 'M' && ( \
26394 PACKET_VERSION >= 20220000 \
26395 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
26396 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
26397 || PACKET_VERSION >= 20131023)
26399#elif CLIENT_TYPE == 'R' && ( \
26400 PACKET_VERSION >= 20210000 \
26401 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
26402 || PACKET_VERSION >= 20131023)
26404#elif CLIENT_TYPE == 'Z' && ( \
26405 PACKET_VERSION >= 20220000 \
26406 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
26407 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
26408 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
26410#else
26411ID_CZ_REQ_GUILDSTORAGE_LOG = 0x0000 // Disabled
26412#endif
26419{
26420public:
26421 CZ_REQ_GUILDSTORAGE_LOG(std::shared_ptr<ZoneSession> s)
26423 {}
26425
26426 void handle(ByteBuffer &&buf);
26427 void deserialize(ByteBuffer &buf);
26428
26429/* Structure */
26430};
26431
26432enum {
26433#if CLIENT_TYPE == 'A' && \
26434 PACKET_VERSION >= 20040000
26436#elif CLIENT_TYPE == 'M' && ( \
26437 PACKET_VERSION >= 20220000 \
26438 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
26439 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
26440 || (PACKET_VERSION >= 20030000 && PACKET_VERSION < 20200000))
26442#elif CLIENT_TYPE == 'R' && ( \
26443 PACKET_VERSION >= 20210000 \
26444 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
26445 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
26447#elif CLIENT_TYPE == 'S' && \
26448 PACKET_VERSION >= 20030000
26450#elif CLIENT_TYPE == 'Z' && ( \
26451 PACKET_VERSION >= 20220000 \
26452 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
26453 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
26454 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
26456#else
26457ID_CZ_REQ_GUILD_EMBLEM_IMG = 0x0000 // Disabled
26458#endif
26465{
26466public:
26467 CZ_REQ_GUILD_EMBLEM_IMG(std::shared_ptr<ZoneSession> s)
26469 {}
26471
26472 void handle(ByteBuffer &&buf);
26473 void deserialize(ByteBuffer &buf);
26474
26475/* Structure */
26476};
26477
26478enum {
26479#if CLIENT_TYPE == 'M' && ( \
26480 PACKET_VERSION >= 20220000 \
26481 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
26482 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000))
26484#elif CLIENT_TYPE == 'R' && ( \
26485 PACKET_VERSION >= 20210000 \
26486 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000))
26488#elif CLIENT_TYPE == 'Z' && ( \
26489 PACKET_VERSION >= 20220000 \
26490 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
26491 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000))
26493#else
26494ID_CZ_REQ_GUILD_EMBLEM_IMG2 = 0x0000 // Disabled
26495#endif
26502{
26503public:
26504 CZ_REQ_GUILD_EMBLEM_IMG2(std::shared_ptr<ZoneSession> s)
26506 {}
26508
26509 void handle(ByteBuffer &&buf);
26510 void deserialize(ByteBuffer &buf);
26511
26512/* Structure */
26513};
26514
26515enum {
26516#if CLIENT_TYPE == 'M' && ( \
26517 PACKET_VERSION >= 20220000 \
26518 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
26519 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000))
26521#elif CLIENT_TYPE == 'R' && ( \
26522 PACKET_VERSION >= 20210000 \
26523 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000))
26525#elif CLIENT_TYPE == 'Z' && ( \
26526 PACKET_VERSION >= 20220000 \
26527 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
26528 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000))
26530#else
26531ID_CZ_REQ_GUILD_EMBLEM_IMG3 = 0x0000 // Disabled
26532#endif
26539{
26540public:
26541 CZ_REQ_GUILD_EMBLEM_IMG3(std::shared_ptr<ZoneSession> s)
26543 {}
26545
26546 void handle(ByteBuffer &&buf);
26547 void deserialize(ByteBuffer &buf);
26548
26549/* Structure */
26550};
26551
26552enum {
26553#if CLIENT_TYPE == 'A' && \
26554 PACKET_VERSION >= 20040000
26556#elif CLIENT_TYPE == 'M' && ( \
26557 PACKET_VERSION >= 20220000 \
26558 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
26559 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
26560 || (PACKET_VERSION >= 20030000 && PACKET_VERSION < 20200000))
26562#elif CLIENT_TYPE == 'R' && ( \
26563 PACKET_VERSION >= 20210000 \
26564 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
26565 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
26567#elif CLIENT_TYPE == 'S' && \
26568 PACKET_VERSION >= 20030000
26570#elif CLIENT_TYPE == 'Z' && ( \
26571 PACKET_VERSION >= 20220000 \
26572 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
26573 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
26574 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
26576#else
26577ID_CZ_REQ_GUILD_MEMBER_INFO = 0x0000 // Disabled
26578#endif
26585{
26586public:
26587 CZ_REQ_GUILD_MEMBER_INFO(std::shared_ptr<ZoneSession> s)
26589 {}
26591
26592 void handle(ByteBuffer &&buf);
26593 void deserialize(ByteBuffer &buf);
26594
26595/* Structure */
26596};
26597
26598enum {
26599#if CLIENT_TYPE == 'A' && \
26600 PACKET_VERSION >= 20040000
26601ID_CZ_REQ_GUILD_MENU = 0x014f
26602#elif CLIENT_TYPE == 'M' && ( \
26603 PACKET_VERSION >= 20220000 \
26604 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
26605 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
26606 || (PACKET_VERSION >= 20030000 && PACKET_VERSION < 20200000))
26607ID_CZ_REQ_GUILD_MENU = 0x014f
26608#elif CLIENT_TYPE == 'R' && ( \
26609 PACKET_VERSION >= 20210000 \
26610 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
26611 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
26612ID_CZ_REQ_GUILD_MENU = 0x014f
26613#elif CLIENT_TYPE == 'S' && \
26614 PACKET_VERSION >= 20030000
26615ID_CZ_REQ_GUILD_MENU = 0x014f
26616#elif CLIENT_TYPE == 'Z' && ( \
26617 PACKET_VERSION >= 20220000 \
26618 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
26619 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
26620 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
26621ID_CZ_REQ_GUILD_MENU = 0x014f
26622#else
26623ID_CZ_REQ_GUILD_MENU = 0x0000 // Disabled
26624#endif
26630class CZ_REQ_GUILD_MENU : public Base::NetworkPacket<ZoneSession>
26631{
26632public:
26633 CZ_REQ_GUILD_MENU(std::shared_ptr<ZoneSession> s)
26635 {}
26637
26638 void handle(ByteBuffer &&buf);
26639 void deserialize(ByteBuffer &buf);
26640
26641/* Structure */
26642 int _type{ 0 };
26643};
26644
26645enum {
26646#if CLIENT_TYPE == 'A' && \
26647 PACKET_VERSION >= 20040000
26649#elif CLIENT_TYPE == 'M' && ( \
26650 PACKET_VERSION >= 20220000 \
26651 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
26652 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
26653 || (PACKET_VERSION >= 20030000 && PACKET_VERSION < 20200000))
26655#elif CLIENT_TYPE == 'R' && ( \
26656 PACKET_VERSION >= 20210000 \
26657 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
26658 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
26660#elif CLIENT_TYPE == 'S' && \
26661 PACKET_VERSION >= 20030000
26663#elif CLIENT_TYPE == 'Z' && ( \
26664 PACKET_VERSION >= 20220000 \
26665 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
26666 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
26667 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
26669#else
26670ID_CZ_REQ_GUILD_MENUINTERFACE = 0x0000 // Disabled
26671#endif
26678{
26679public:
26680 CZ_REQ_GUILD_MENUINTERFACE(std::shared_ptr<ZoneSession> s)
26682 {}
26684
26685 void handle(ByteBuffer &&buf);
26686 void deserialize(ByteBuffer &buf);
26687
26688/* Structure */
26689};
26690
26691enum {
26692#if CLIENT_TYPE == 'M' && ( \
26693 PACKET_VERSION >= 20220000 \
26694 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
26695 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
26696 || PACKET_VERSION >= 20120120)
26697ID_CZ_REQ_GUILD_NAME = 0x0912
26698#elif CLIENT_TYPE == 'R' && ( \
26699 PACKET_VERSION >= 20210000 \
26700 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
26701 || PACKET_VERSION >= 20120120)
26702ID_CZ_REQ_GUILD_NAME = 0x0912
26703#elif CLIENT_TYPE == 'Z' && ( \
26704 PACKET_VERSION >= 20220000 \
26705 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
26706 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
26707 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
26708ID_CZ_REQ_GUILD_NAME = 0x0912
26709#else
26710ID_CZ_REQ_GUILD_NAME = 0x0000 // Disabled
26711#endif
26717class CZ_REQ_GUILD_NAME : public Base::NetworkPacket<ZoneSession>
26718{
26719public:
26720 CZ_REQ_GUILD_NAME(std::shared_ptr<ZoneSession> s)
26722 {}
26724
26725 void handle(ByteBuffer &&buf);
26726 void deserialize(ByteBuffer &buf);
26727
26728/* Structure */
26729};
26730
26731enum {
26732#if CLIENT_TYPE == 'A' && \
26733 PACKET_VERSION >= 20040000
26735#elif CLIENT_TYPE == 'M' && ( \
26736 PACKET_VERSION >= 20220000 \
26737 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
26738 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
26739 || (PACKET_VERSION >= 20030000 && PACKET_VERSION < 20200000))
26741#elif CLIENT_TYPE == 'R' && ( \
26742 PACKET_VERSION >= 20210000 \
26743 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
26744 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
26746#elif CLIENT_TYPE == 'S' && \
26747 PACKET_VERSION >= 20030000
26749#elif CLIENT_TYPE == 'Z' && ( \
26750 PACKET_VERSION >= 20220000 \
26751 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
26752 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
26753 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
26755#else
26756ID_CZ_REQ_HOSTILE_GUILD = 0x0000 // Disabled
26757#endif
26764{
26765public:
26766 CZ_REQ_HOSTILE_GUILD(std::shared_ptr<ZoneSession> s)
26768 {}
26770
26771 void handle(ByteBuffer &&buf);
26772 void deserialize(ByteBuffer &buf);
26773
26774/* Structure */
26775 int _account_id{ 0 };
26776};
26777
26778enum {
26779#if CLIENT_TYPE == 'A' && \
26780 PACKET_VERSION >= 20040000
26782#elif CLIENT_TYPE == 'M' && ( \
26783 PACKET_VERSION >= 20220000 \
26784 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
26785 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
26786 || (PACKET_VERSION >= 20030000 && PACKET_VERSION < 20200000))
26788#elif CLIENT_TYPE == 'R' && ( \
26789 PACKET_VERSION >= 20210000 \
26790 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
26791 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
26793#elif CLIENT_TYPE == 'S' && \
26794 PACKET_VERSION >= 20030000
26796#elif CLIENT_TYPE == 'Z' && ( \
26797 PACKET_VERSION >= 20220000 \
26798 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
26799 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
26800 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
26802#else
26803ID_CZ_REQ_ITEMCOMPOSITION = 0x0000 // Disabled
26804#endif
26811{
26812public:
26813 CZ_REQ_ITEMCOMPOSITION(std::shared_ptr<ZoneSession> s)
26815 {}
26817
26818 void handle(ByteBuffer &&buf);
26819 void deserialize(ByteBuffer &buf);
26820
26821/* Structure */
26822 int16_t _card_index{ 0 };
26823 int16_t _equip_index{ 0 };
26824};
26825
26826enum {
26827#if CLIENT_TYPE == 'A' && \
26828 PACKET_VERSION >= 20040000
26830#elif CLIENT_TYPE == 'M' && ( \
26831 PACKET_VERSION >= 20220000 \
26832 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
26833 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
26834 || (PACKET_VERSION >= 20030000 && PACKET_VERSION < 20200000))
26836#elif CLIENT_TYPE == 'R' && ( \
26837 PACKET_VERSION >= 20210000 \
26838 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
26839 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
26841#elif CLIENT_TYPE == 'S' && \
26842 PACKET_VERSION >= 20030000
26844#elif CLIENT_TYPE == 'Z' && ( \
26845 PACKET_VERSION >= 20220000 \
26846 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
26847 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
26848 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
26850#else
26851ID_CZ_REQ_ITEMCOMPOSITION_LIST = 0x0000 // Disabled
26852#endif
26859{
26860public:
26861 CZ_REQ_ITEMCOMPOSITION_LIST(std::shared_ptr<ZoneSession> s)
26863 {}
26865
26866 void handle(ByteBuffer &&buf);
26867 void deserialize(ByteBuffer &buf);
26868
26869/* Structure */
26870 int16_t _card_index{ 0 };
26871};
26872
26873enum {
26874#if CLIENT_TYPE == 'A' && \
26875 PACKET_VERSION >= 20040000
26877#elif CLIENT_TYPE == 'M' && ( \
26878 PACKET_VERSION >= 20220000 \
26879 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
26880 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
26881 || (PACKET_VERSION >= 20030000 && PACKET_VERSION < 20200000))
26883#elif CLIENT_TYPE == 'R' && ( \
26884 PACKET_VERSION >= 20210000 \
26885 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
26886 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
26888#elif CLIENT_TYPE == 'S' && \
26889 PACKET_VERSION >= 20030000
26891#elif CLIENT_TYPE == 'Z' && ( \
26892 PACKET_VERSION >= 20220000 \
26893 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
26894 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
26895 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
26897#else
26898ID_CZ_REQ_ITEMIDENTIFY = 0x0000 // Disabled
26899#endif
26905class CZ_REQ_ITEMIDENTIFY : public Base::NetworkPacket<ZoneSession>
26906{
26907public:
26908 CZ_REQ_ITEMIDENTIFY(std::shared_ptr<ZoneSession> s)
26910 {}
26912
26913 void handle(ByteBuffer &&buf);
26914 void deserialize(ByteBuffer &buf);
26915
26916/* Structure */
26917 int16_t _inventory_index{ 0 };
26918};
26919
26920enum {
26921#if CLIENT_TYPE == 'A' && \
26922 PACKET_VERSION >= 20040000
26923ID_CZ_REQ_ITEMREPAIR = 0x01fd
26924#elif CLIENT_TYPE == 'M' && ( \
26925 PACKET_VERSION >= 20220000 \
26926 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
26927 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
26928 || PACKET_VERSION >= 20040423)
26929ID_CZ_REQ_ITEMREPAIR = 0x01fd
26930#elif CLIENT_TYPE == 'R' && ( \
26931 PACKET_VERSION >= 20210000 \
26932 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
26933 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
26934ID_CZ_REQ_ITEMREPAIR = 0x01fd
26935#elif CLIENT_TYPE == 'S' && \
26936 PACKET_VERSION >= 20040423
26937ID_CZ_REQ_ITEMREPAIR = 0x01fd
26938#elif CLIENT_TYPE == 'Z' && ( \
26939 PACKET_VERSION >= 20220000 \
26940 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
26941 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
26942 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
26943ID_CZ_REQ_ITEMREPAIR = 0x01fd
26944#else
26945ID_CZ_REQ_ITEMREPAIR = 0x0000 // Disabled
26946#endif
26952class CZ_REQ_ITEMREPAIR : public Base::NetworkPacket<ZoneSession>
26953{
26954public:
26955 CZ_REQ_ITEMREPAIR(std::shared_ptr<ZoneSession> s)
26957 {}
26959
26960 void handle(ByteBuffer &&buf);
26961 void deserialize(ByteBuffer &buf);
26962
26963/* Structure */
26964 int16_t _inventory_index{ 0 };
26965 int16_t _item_id{ 0 };
26966 int8_t _refine{ 0 };
26968};
26969
26970enum {
26971#if CLIENT_TYPE == 'M' && ( \
26972 PACKET_VERSION >= 20220000 \
26973 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
26974 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000))
26975ID_CZ_REQ_ITEMREPAIR2 = 0x0b66
26976#elif CLIENT_TYPE == 'R' && ( \
26977 PACKET_VERSION >= 20210000 \
26978 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000))
26979ID_CZ_REQ_ITEMREPAIR2 = 0x0b66
26980#elif CLIENT_TYPE == 'Z' && ( \
26981 PACKET_VERSION >= 20220000 \
26982 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
26983 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000))
26984ID_CZ_REQ_ITEMREPAIR2 = 0x0b66
26985#else
26986ID_CZ_REQ_ITEMREPAIR2 = 0x0000 // Disabled
26987#endif
26993class CZ_REQ_ITEMREPAIR2 : public Base::NetworkPacket<ZoneSession>
26994{
26995public:
26996 CZ_REQ_ITEMREPAIR2(std::shared_ptr<ZoneSession> s)
26998 {}
27000
27001 void handle(ByteBuffer &&buf);
27002 void deserialize(ByteBuffer &buf);
27003
27004/* Structure */
27005};
27006
27007enum {
27008#if CLIENT_TYPE == 'M' && ( \
27009 PACKET_VERSION >= 20220000 \
27010 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
27011 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
27012 || PACKET_VERSION >= 20140326)
27014#elif CLIENT_TYPE == 'R' && ( \
27015 PACKET_VERSION >= 20210000 \
27016 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
27017 || PACKET_VERSION >= 20140326)
27019#elif CLIENT_TYPE == 'Z' && ( \
27020 PACKET_VERSION >= 20220000 \
27021 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
27022 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
27023 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
27025#else
27026ID_CZ_REQ_ITEM_FROM_RODEX = 0x0000 // Disabled
27027#endif
27034{
27035public:
27036 CZ_REQ_ITEM_FROM_RODEX(std::shared_ptr<ZoneSession> s)
27038 {}
27040
27041 void handle(ByteBuffer &&buf);
27042 void deserialize(ByteBuffer &buf);
27043
27044/* Structure */
27045};
27046
27047enum {
27048#if CLIENT_TYPE == 'A' && \
27049 PACKET_VERSION >= 20040000
27050ID_CZ_REQ_JOIN_BABY = 0x01f9
27051#elif CLIENT_TYPE == 'M' && ( \
27052 PACKET_VERSION >= 20220000 \
27053 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
27054 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
27055 || PACKET_VERSION >= 20040308)
27056ID_CZ_REQ_JOIN_BABY = 0x01f9
27057#elif CLIENT_TYPE == 'R' && ( \
27058 PACKET_VERSION >= 20210000 \
27059 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
27060 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
27061ID_CZ_REQ_JOIN_BABY = 0x01f9
27062#elif CLIENT_TYPE == 'S' && \
27063 PACKET_VERSION >= 20040308
27064ID_CZ_REQ_JOIN_BABY = 0x01f9
27065#elif CLIENT_TYPE == 'Z' && ( \
27066 PACKET_VERSION >= 20220000 \
27067 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
27068 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
27069 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
27070ID_CZ_REQ_JOIN_BABY = 0x01f9
27071#else
27072ID_CZ_REQ_JOIN_BABY = 0x0000 // Disabled
27073#endif
27079class CZ_REQ_JOIN_BABY : public Base::NetworkPacket<ZoneSession>
27080{
27081public:
27082 CZ_REQ_JOIN_BABY(std::shared_ptr<ZoneSession> s)
27084 {}
27086
27087 void handle(ByteBuffer &&buf);
27088 void deserialize(ByteBuffer &buf);
27089
27090/* Structure */
27091 int _account_id{ 0 };
27092};
27093
27094enum {
27095#if CLIENT_TYPE == 'A' && \
27096 PACKET_VERSION >= 20040000
27097ID_CZ_REQ_JOIN_COUPLE = 0x01e5
27098#elif CLIENT_TYPE == 'M' && ( \
27099 PACKET_VERSION >= 20220000 \
27100 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
27101 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
27102 || (PACKET_VERSION >= 20030000 && PACKET_VERSION < 20200000))
27103ID_CZ_REQ_JOIN_COUPLE = 0x01e5
27104#elif CLIENT_TYPE == 'R' && ( \
27105 PACKET_VERSION >= 20210000 \
27106 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
27107 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
27108ID_CZ_REQ_JOIN_COUPLE = 0x01e5
27109#elif CLIENT_TYPE == 'S' && \
27110 PACKET_VERSION >= 20030000
27111ID_CZ_REQ_JOIN_COUPLE = 0x01e5
27112#elif CLIENT_TYPE == 'Z' && ( \
27113 PACKET_VERSION >= 20220000 \
27114 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
27115 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
27116 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
27117ID_CZ_REQ_JOIN_COUPLE = 0x01e5
27118#else
27119ID_CZ_REQ_JOIN_COUPLE = 0x0000 // Disabled
27120#endif
27126class CZ_REQ_JOIN_COUPLE : public Base::NetworkPacket<ZoneSession>
27127{
27128public:
27129 CZ_REQ_JOIN_COUPLE(std::shared_ptr<ZoneSession> s)
27131 {}
27133
27134 void handle(ByteBuffer &&buf);
27135 void deserialize(ByteBuffer &buf);
27136
27137/* Structure */
27138};
27139
27140enum {
27141#if CLIENT_TYPE == 'A' && \
27142 PACKET_VERSION >= 20040000
27143ID_CZ_REQ_JOIN_GROUP = 0x00fc
27144#elif CLIENT_TYPE == 'M' && ( \
27145 PACKET_VERSION >= 20220000 \
27146 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
27147 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
27148 || (PACKET_VERSION >= 20030000 && PACKET_VERSION < 20200000))
27149ID_CZ_REQ_JOIN_GROUP = 0x00fc
27150#elif CLIENT_TYPE == 'R' && ( \
27151 PACKET_VERSION >= 20210000 \
27152 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
27153 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
27154ID_CZ_REQ_JOIN_GROUP = 0x00fc
27155#elif CLIENT_TYPE == 'S' && \
27156 PACKET_VERSION >= 20030000
27157ID_CZ_REQ_JOIN_GROUP = 0x00fc
27158#elif CLIENT_TYPE == 'Z' && ( \
27159 PACKET_VERSION >= 20220000 \
27160 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
27161 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
27162 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
27163ID_CZ_REQ_JOIN_GROUP = 0x00fc
27164#else
27165ID_CZ_REQ_JOIN_GROUP = 0x0000 // Disabled
27166#endif
27172class CZ_REQ_JOIN_GROUP : public Base::NetworkPacket<ZoneSession>
27173{
27174public:
27175 CZ_REQ_JOIN_GROUP(std::shared_ptr<ZoneSession> s)
27177 {}
27179
27180 void handle(ByteBuffer &&buf);
27181 void deserialize(ByteBuffer &buf);
27182
27183/* Structure */
27184 int _account_id{ 0 };
27185};
27186
27187enum {
27188#if CLIENT_TYPE == 'A' && \
27189 PACKET_VERSION >= 20040000
27190ID_CZ_REQ_JOIN_GUILD = 0x0168
27191#elif CLIENT_TYPE == 'M' && ( \
27192 PACKET_VERSION >= 20220000 \
27193 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
27194 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
27195 || (PACKET_VERSION >= 20030000 && PACKET_VERSION < 20200000))
27196ID_CZ_REQ_JOIN_GUILD = 0x0168
27197#elif CLIENT_TYPE == 'R' && ( \
27198 PACKET_VERSION >= 20210000 \
27199 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
27200 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
27201ID_CZ_REQ_JOIN_GUILD = 0x0168
27202#elif CLIENT_TYPE == 'S' && \
27203 PACKET_VERSION >= 20030000
27204ID_CZ_REQ_JOIN_GUILD = 0x0168
27205#elif CLIENT_TYPE == 'Z' && ( \
27206 PACKET_VERSION >= 20220000 \
27207 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
27208 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
27209 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
27210ID_CZ_REQ_JOIN_GUILD = 0x0168
27211#else
27212ID_CZ_REQ_JOIN_GUILD = 0x0000 // Disabled
27213#endif
27219class CZ_REQ_JOIN_GUILD : public Base::NetworkPacket<ZoneSession>
27220{
27221public:
27222 CZ_REQ_JOIN_GUILD(std::shared_ptr<ZoneSession> s)
27224 {}
27226
27227 void handle(ByteBuffer &&buf);
27228 void deserialize(ByteBuffer &buf);
27229
27230/* Structure */
27232};
27233
27234enum {
27235#if CLIENT_TYPE == 'M' && ( \
27236 PACKET_VERSION >= 20220000 \
27237 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
27238 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
27239 || PACKET_VERSION >= 20120131)
27240ID_CZ_REQ_JOIN_GUILD2 = 0x0916
27241#elif CLIENT_TYPE == 'R' && ( \
27242 PACKET_VERSION >= 20210000 \
27243 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
27244 || PACKET_VERSION >= 20120131)
27245ID_CZ_REQ_JOIN_GUILD2 = 0x0916
27246#elif CLIENT_TYPE == 'Z' && ( \
27247 PACKET_VERSION >= 20220000 \
27248 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
27249 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
27250 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
27251ID_CZ_REQ_JOIN_GUILD2 = 0x0916
27252#else
27253ID_CZ_REQ_JOIN_GUILD2 = 0x0000 // Disabled
27254#endif
27260class CZ_REQ_JOIN_GUILD2 : public Base::NetworkPacket<ZoneSession>
27261{
27262public:
27263 CZ_REQ_JOIN_GUILD2(std::shared_ptr<ZoneSession> s)
27265 {}
27267
27268 void handle(ByteBuffer &&buf);
27269 void deserialize(ByteBuffer &buf);
27270
27271/* Structure */
27273};
27274
27275enum {
27276#if CLIENT_TYPE == 'A' && \
27277 PACKET_VERSION >= 20040000
27278ID_CZ_REQ_LEAVE_GROUP = 0x0100
27279#elif CLIENT_TYPE == 'M' && ( \
27280 PACKET_VERSION >= 20220000 \
27281 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
27282 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
27283 || (PACKET_VERSION >= 20030000 && PACKET_VERSION < 20200000))
27284ID_CZ_REQ_LEAVE_GROUP = 0x0100
27285#elif CLIENT_TYPE == 'R' && ( \
27286 PACKET_VERSION >= 20210000 \
27287 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
27288 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
27289ID_CZ_REQ_LEAVE_GROUP = 0x0100
27290#elif CLIENT_TYPE == 'S' && \
27291 PACKET_VERSION >= 20030000
27292ID_CZ_REQ_LEAVE_GROUP = 0x0100
27293#elif CLIENT_TYPE == 'Z' && ( \
27294 PACKET_VERSION >= 20220000 \
27295 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
27296 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
27297 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
27298ID_CZ_REQ_LEAVE_GROUP = 0x0100
27299#else
27300ID_CZ_REQ_LEAVE_GROUP = 0x0000 // Disabled
27301#endif
27307class CZ_REQ_LEAVE_GROUP : public Base::NetworkPacket<ZoneSession>
27308{
27309public:
27310 CZ_REQ_LEAVE_GROUP(std::shared_ptr<ZoneSession> s)
27312 {}
27314
27315 void handle(ByteBuffer &&buf);
27316 void deserialize(ByteBuffer &buf);
27317
27318/* Structure */
27319};
27320
27321enum {
27322#if CLIENT_TYPE == 'A' && \
27323 PACKET_VERSION >= 20040000
27324ID_CZ_REQ_LEAVE_GUILD = 0x0159
27325#elif CLIENT_TYPE == 'M' && ( \
27326 PACKET_VERSION >= 20220000 \
27327 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
27328 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
27329 || (PACKET_VERSION >= 20030000 && PACKET_VERSION < 20200000))
27330ID_CZ_REQ_LEAVE_GUILD = 0x0159
27331#elif CLIENT_TYPE == 'R' && ( \
27332 PACKET_VERSION >= 20210000 \
27333 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
27334 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
27335ID_CZ_REQ_LEAVE_GUILD = 0x0159
27336#elif CLIENT_TYPE == 'S' && \
27337 PACKET_VERSION >= 20030000
27338ID_CZ_REQ_LEAVE_GUILD = 0x0159
27339#elif CLIENT_TYPE == 'Z' && ( \
27340 PACKET_VERSION >= 20220000 \
27341 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
27342 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
27343 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
27344ID_CZ_REQ_LEAVE_GUILD = 0x0159
27345#else
27346ID_CZ_REQ_LEAVE_GUILD = 0x0000 // Disabled
27347#endif
27353class CZ_REQ_LEAVE_GUILD : public Base::NetworkPacket<ZoneSession>
27354{
27355public:
27356 CZ_REQ_LEAVE_GUILD(std::shared_ptr<ZoneSession> s)
27358 {}
27360
27361 void handle(ByteBuffer &&buf);
27362 void deserialize(ByteBuffer &buf);
27363
27364/* Structure */
27365 int _guild_id{ 0 };
27366 int _account_id{ 0 };
27367 int _char_id{ 0 };
27369};
27370
27371enum {
27372#if CLIENT_TYPE == 'A' && \
27373 PACKET_VERSION >= 20060313
27374ID_CZ_REQ_MAIL_RETURN = 0x0273
27375#elif CLIENT_TYPE == 'M' && ( \
27376 PACKET_VERSION >= 20220000 \
27377 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
27378 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
27379 || PACKET_VERSION >= 20060313)
27380ID_CZ_REQ_MAIL_RETURN = 0x0273
27381#elif CLIENT_TYPE == 'R' && ( \
27382 PACKET_VERSION >= 20210000 \
27383 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
27384 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
27385ID_CZ_REQ_MAIL_RETURN = 0x0273
27386#elif CLIENT_TYPE == 'S' && \
27387 PACKET_VERSION >= 20060313
27388ID_CZ_REQ_MAIL_RETURN = 0x0273
27389#elif CLIENT_TYPE == 'Z' && ( \
27390 PACKET_VERSION >= 20220000 \
27391 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
27392 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
27393 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
27394ID_CZ_REQ_MAIL_RETURN = 0x0273
27395#else
27396ID_CZ_REQ_MAIL_RETURN = 0x0000 // Disabled
27397#endif
27403class CZ_REQ_MAIL_RETURN : public Base::NetworkPacket<ZoneSession>
27404{
27405public:
27406 CZ_REQ_MAIL_RETURN(std::shared_ptr<ZoneSession> s)
27408 {}
27410
27411 void handle(ByteBuffer &&buf);
27412 void deserialize(ByteBuffer &buf);
27413
27414/* Structure */
27415 int _mail_id{ 0 };
27417};
27418
27419enum {
27420#if CLIENT_TYPE == 'A' && \
27421 PACKET_VERSION >= 20040000
27422ID_CZ_REQ_MAKE_GUILD = 0x0165
27423#elif CLIENT_TYPE == 'M' && ( \
27424 PACKET_VERSION >= 20220000 \
27425 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
27426 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
27427 || (PACKET_VERSION >= 20030000 && PACKET_VERSION < 20200000))
27428ID_CZ_REQ_MAKE_GUILD = 0x0165
27429#elif CLIENT_TYPE == 'R' && ( \
27430 PACKET_VERSION >= 20210000 \
27431 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
27432 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
27433ID_CZ_REQ_MAKE_GUILD = 0x0165
27434#elif CLIENT_TYPE == 'S' && \
27435 PACKET_VERSION >= 20030000
27436ID_CZ_REQ_MAKE_GUILD = 0x0165
27437#elif CLIENT_TYPE == 'Z' && ( \
27438 PACKET_VERSION >= 20220000 \
27439 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
27440 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
27441 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
27442ID_CZ_REQ_MAKE_GUILD = 0x0165
27443#else
27444ID_CZ_REQ_MAKE_GUILD = 0x0000 // Disabled
27445#endif
27451class CZ_REQ_MAKE_GUILD : public Base::NetworkPacket<ZoneSession>
27452{
27453public:
27454 CZ_REQ_MAKE_GUILD(std::shared_ptr<ZoneSession> s)
27456 {}
27458
27459 void handle(ByteBuffer &&buf);
27460 void deserialize(ByteBuffer &buf);
27461
27462/* Structure */
27463 int _char_id{ 0 };
27465};
27466
27467enum {
27468#if CLIENT_TYPE == 'A' && \
27469 PACKET_VERSION >= 20040000
27470ID_CZ_REQ_MAKINGARROW = 0x01ae
27471#elif CLIENT_TYPE == 'M' && ( \
27472 PACKET_VERSION >= 20220000 \
27473 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
27474 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
27475 || (PACKET_VERSION >= 20030000 && PACKET_VERSION < 20200000))
27476ID_CZ_REQ_MAKINGARROW = 0x01ae
27477#elif CLIENT_TYPE == 'R' && ( \
27478 PACKET_VERSION >= 20210000 \
27479 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
27480 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
27481ID_CZ_REQ_MAKINGARROW = 0x01ae
27482#elif CLIENT_TYPE == 'S' && \
27483 PACKET_VERSION >= 20030000
27484ID_CZ_REQ_MAKINGARROW = 0x01ae
27485#elif CLIENT_TYPE == 'Z' && ( \
27486 PACKET_VERSION >= 20220000 \
27487 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
27488 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
27489 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
27490ID_CZ_REQ_MAKINGARROW = 0x01ae
27491#else
27492ID_CZ_REQ_MAKINGARROW = 0x0000 // Disabled
27493#endif
27499class CZ_REQ_MAKINGARROW : public Base::NetworkPacket<ZoneSession>
27500{
27501public:
27502 CZ_REQ_MAKINGARROW(std::shared_ptr<ZoneSession> s)
27504 {}
27506
27507 void handle(ByteBuffer &&buf);
27508 void deserialize(ByteBuffer &buf);
27509
27510/* Structure */
27511 int16_t _item_id{ 0 };
27512};
27513
27514enum {
27515#if CLIENT_TYPE == 'A' && \
27516 PACKET_VERSION >= 20051010
27517ID_CZ_REQ_MAKINGITEM = 0x025b
27518#elif CLIENT_TYPE == 'M' && ( \
27519 PACKET_VERSION >= 20220000 \
27520 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
27521 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
27522 || PACKET_VERSION >= 20051010)
27523ID_CZ_REQ_MAKINGITEM = 0x025b
27524#elif CLIENT_TYPE == 'R' && ( \
27525 PACKET_VERSION >= 20210000 \
27526 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
27527 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
27528ID_CZ_REQ_MAKINGITEM = 0x025b
27529#elif CLIENT_TYPE == 'S' && \
27530 PACKET_VERSION >= 20051010
27531ID_CZ_REQ_MAKINGITEM = 0x025b
27532#elif CLIENT_TYPE == 'Z' && ( \
27533 PACKET_VERSION >= 20220000 \
27534 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
27535 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
27536 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
27537ID_CZ_REQ_MAKINGITEM = 0x025b
27538#else
27539ID_CZ_REQ_MAKINGITEM = 0x0000 // Disabled
27540#endif
27546class CZ_REQ_MAKINGITEM : public Base::NetworkPacket<ZoneSession>
27547{
27548public:
27549 CZ_REQ_MAKINGITEM(std::shared_ptr<ZoneSession> s)
27551 {}
27553
27554 void handle(ByteBuffer &&buf);
27555 void deserialize(ByteBuffer &buf);
27556
27557/* Structure */
27558 int16_t _type{ 0 };
27559 int16_t _item_id{ 0 };
27560};
27561
27562enum {
27563#if CLIENT_TYPE == 'M' && ( \
27564 PACKET_VERSION >= 20220000 \
27565 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
27566 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
27567 || PACKET_VERSION >= 20120228)
27568ID_CZ_REQ_MERGE_ITEM = 0x096e
27569#elif CLIENT_TYPE == 'R' && ( \
27570 PACKET_VERSION >= 20210000 \
27571 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
27572 || PACKET_VERSION >= 20120228)
27573ID_CZ_REQ_MERGE_ITEM = 0x096e
27574#elif CLIENT_TYPE == 'Z' && ( \
27575 PACKET_VERSION >= 20220000 \
27576 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
27577 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
27578 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
27579ID_CZ_REQ_MERGE_ITEM = 0x096e
27580#else
27581ID_CZ_REQ_MERGE_ITEM = 0x0000 // Disabled
27582#endif
27588class CZ_REQ_MERGE_ITEM : public Base::NetworkPacket<ZoneSession>
27589{
27590public:
27591 CZ_REQ_MERGE_ITEM(std::shared_ptr<ZoneSession> s)
27593 {}
27595
27596 void handle(ByteBuffer &&buf);
27597 void deserialize(ByteBuffer &buf);
27598
27599/* Structure */
27600};
27601
27602enum {
27603#if CLIENT_TYPE == 'M' && ( \
27604 PACKET_VERSION >= 20220000 \
27605 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
27606 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000))
27608#elif CLIENT_TYPE == 'R' && ( \
27609 PACKET_VERSION >= 20210000 \
27610 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000))
27612#elif CLIENT_TYPE == 'Z' && ( \
27613 PACKET_VERSION >= 20220000 \
27614 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
27615 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000))
27617#else
27618ID_CZ_REQ_MOVE_GUILD_AGIT = 0x0000 // Disabled
27619#endif
27626{
27627public:
27628 CZ_REQ_MOVE_GUILD_AGIT(std::shared_ptr<ZoneSession> s)
27630 {}
27632
27633 void handle(ByteBuffer &&buf);
27634 void deserialize(ByteBuffer &buf);
27635
27636/* Structure */
27637};
27638
27639enum {
27640#if CLIENT_TYPE == 'M' && ( \
27641 PACKET_VERSION >= 20220000 \
27642 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
27643 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
27644 || PACKET_VERSION >= 20131218)
27645ID_CZ_REQ_NEXT_RODEX = 0x09ee
27646#elif CLIENT_TYPE == 'R' && ( \
27647 PACKET_VERSION >= 20210000 \
27648 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
27649 || PACKET_VERSION >= 20131218)
27650ID_CZ_REQ_NEXT_RODEX = 0x09ee
27651#elif CLIENT_TYPE == 'Z' && ( \
27652 PACKET_VERSION >= 20220000 \
27653 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
27654 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
27655 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
27656ID_CZ_REQ_NEXT_RODEX = 0x09ee
27657#else
27658ID_CZ_REQ_NEXT_RODEX = 0x0000 // Disabled
27659#endif
27665class CZ_REQ_NEXT_RODEX : public Base::NetworkPacket<ZoneSession>
27666{
27667public:
27668 CZ_REQ_NEXT_RODEX(std::shared_ptr<ZoneSession> s)
27670 {}
27672
27673 void handle(ByteBuffer &&buf);
27674 void deserialize(ByteBuffer &buf);
27675
27676/* Structure */
27677};
27678
27679enum {
27680#if CLIENT_TYPE == 'A' && \
27681 PACKET_VERSION >= 20040000
27682ID_CZ_REQ_NEXT_SCRIPT = 0x00b9
27683#elif CLIENT_TYPE == 'M' && ( \
27684 PACKET_VERSION >= 20220000 \
27685 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
27686 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
27687 || (PACKET_VERSION >= 20030000 && PACKET_VERSION < 20200000))
27688ID_CZ_REQ_NEXT_SCRIPT = 0x00b9
27689#elif CLIENT_TYPE == 'R' && ( \
27690 PACKET_VERSION >= 20210000 \
27691 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
27692 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
27693ID_CZ_REQ_NEXT_SCRIPT = 0x00b9
27694#elif CLIENT_TYPE == 'S' && \
27695 PACKET_VERSION >= 20030000
27696ID_CZ_REQ_NEXT_SCRIPT = 0x00b9
27697#elif CLIENT_TYPE == 'Z' && ( \
27698 PACKET_VERSION >= 20220000 \
27699 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
27700 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
27701 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
27702ID_CZ_REQ_NEXT_SCRIPT = 0x00b9
27703#else
27704ID_CZ_REQ_NEXT_SCRIPT = 0x0000 // Disabled
27705#endif
27711class CZ_REQ_NEXT_SCRIPT : public Base::NetworkPacket<ZoneSession>
27712{
27713public:
27714 CZ_REQ_NEXT_SCRIPT(std::shared_ptr<ZoneSession> s)
27716 {}
27718
27719 void handle(ByteBuffer &&buf);
27720 void deserialize(ByteBuffer &buf);
27721
27722/* Structure */
27723 int _npc_guid{ 0 };
27724};
27725
27726enum {
27727#if CLIENT_TYPE == 'M' && ( \
27728 PACKET_VERSION >= 20220000 \
27729 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
27730 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
27731 || PACKET_VERSION >= 20141119)
27733#elif CLIENT_TYPE == 'R' && ( \
27734 PACKET_VERSION >= 20210000 \
27735 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
27736 || PACKET_VERSION >= 20141119)
27738#elif CLIENT_TYPE == 'Z' && ( \
27739 PACKET_VERSION >= 20220000 \
27740 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
27741 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
27742 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
27744#else
27745ID_CZ_REQ_ONECLICK_ITEMIDENTIFY = 0x0000 // Disabled
27746#endif
27753{
27754public:
27755 CZ_REQ_ONECLICK_ITEMIDENTIFY(std::shared_ptr<ZoneSession> s)
27757 {}
27759
27760 void handle(ByteBuffer &&buf);
27761 void deserialize(ByteBuffer &buf);
27762
27763/* Structure */
27764 int16_t _inventory_index{ 0 };
27765};
27766
27767enum {
27768#if CLIENT_TYPE == 'A' && \
27769 PACKET_VERSION >= 20040000
27770ID_CZ_REQ_OPENSTORE = 0x012f
27771#elif CLIENT_TYPE == 'M' && ( \
27772 PACKET_VERSION >= 20220000 \
27773 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
27774 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
27775 || (PACKET_VERSION >= 20030000 && PACKET_VERSION < 20200000))
27776ID_CZ_REQ_OPENSTORE = 0x012f
27777#elif CLIENT_TYPE == 'R' && ( \
27778 PACKET_VERSION >= 20210000 \
27779 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
27780 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
27781ID_CZ_REQ_OPENSTORE = 0x012f
27782#elif CLIENT_TYPE == 'S' && \
27783 PACKET_VERSION >= 20030000
27784ID_CZ_REQ_OPENSTORE = 0x012f
27785#elif CLIENT_TYPE == 'Z' && ( \
27786 PACKET_VERSION >= 20220000 \
27787 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
27788 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
27789 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
27790ID_CZ_REQ_OPENSTORE = 0x012f
27791#else
27792ID_CZ_REQ_OPENSTORE = 0x0000 // Disabled
27793#endif
27799class CZ_REQ_OPENSTORE : public Base::NetworkPacket<ZoneSession>
27800{
27801public:
27802 CZ_REQ_OPENSTORE(std::shared_ptr<ZoneSession> s)
27804 {}
27806
27807 void handle(ByteBuffer &&buf);
27808 void deserialize(ByteBuffer &buf);
27809
27810/* Structure */
27811 int16_t _packet_length{ 0 };
27813 std::vector<cz_req_openstore_itemlist> _items;
27814};
27815
27816enum {
27817#if CLIENT_TYPE == 'A' && \
27818 PACKET_VERSION >= 20040000
27819ID_CZ_REQ_OPENSTORE2 = 0x01b2
27820#elif CLIENT_TYPE == 'M' && ( \
27821 PACKET_VERSION >= 20220000 \
27822 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
27823 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
27824 || (PACKET_VERSION >= 20030000 && PACKET_VERSION < 20200000))
27825ID_CZ_REQ_OPENSTORE2 = 0x01b2
27826#elif CLIENT_TYPE == 'R' && ( \
27827 PACKET_VERSION >= 20210000 \
27828 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
27829 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
27830ID_CZ_REQ_OPENSTORE2 = 0x01b2
27831#elif CLIENT_TYPE == 'S' && \
27832 PACKET_VERSION >= 20030000
27833ID_CZ_REQ_OPENSTORE2 = 0x01b2
27834#elif CLIENT_TYPE == 'Z' && ( \
27835 PACKET_VERSION >= 20220000 \
27836 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
27837 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
27838 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
27839ID_CZ_REQ_OPENSTORE2 = 0x01b2
27840#else
27841ID_CZ_REQ_OPENSTORE2 = 0x0000 // Disabled
27842#endif
27848class CZ_REQ_OPENSTORE2 : public Base::NetworkPacket<ZoneSession>
27849{
27850public:
27851 CZ_REQ_OPENSTORE2(std::shared_ptr<ZoneSession> s)
27853 {}
27855
27856 void handle(ByteBuffer &&buf);
27857 void deserialize(ByteBuffer &buf);
27858
27859/* Structure */
27860 int16_t _packet_length{ 0 };
27862 int8_t _result{ 0 };
27863 std::vector<cz_req_openstore_itemlist> _items;
27864};
27865
27866enum {
27867#if CLIENT_TYPE == 'M' && ( \
27868 PACKET_VERSION >= 20220000 \
27869 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
27870 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
27871 || PACKET_VERSION >= 20130417)
27873#elif CLIENT_TYPE == 'R' && ( \
27874 PACKET_VERSION >= 20210000 \
27875 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
27876 || PACKET_VERSION >= 20130417)
27878#elif CLIENT_TYPE == 'Z' && ( \
27879 PACKET_VERSION >= 20220000 \
27880 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
27881 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
27882 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
27884#else
27885ID_CZ_REQ_OPEN_BANKING = 0x0000 // Disabled
27886#endif
27892class CZ_REQ_OPEN_BANKING : public Base::NetworkPacket<ZoneSession>
27893{
27894public:
27895 CZ_REQ_OPEN_BANKING(std::shared_ptr<ZoneSession> s)
27897 {}
27899
27900 void handle(ByteBuffer &&buf);
27901 void deserialize(ByteBuffer &buf);
27902
27903/* Structure */
27904};
27905
27906enum {
27907#if CLIENT_TYPE == 'M' && ( \
27908 PACKET_VERSION == 20190821 \
27909 || PACKET_VERSION == 20190807 \
27910 || PACKET_VERSION == 20190802 \
27911 || PACKET_VERSION == 20190731 \
27912 || PACKET_VERSION == 20190724 \
27913 || PACKET_VERSION == 20190717 \
27914 || PACKET_VERSION == 20190703 \
27915 || PACKET_VERSION == 20190605 \
27916 || PACKET_VERSION == 20190530 \
27917 || PACKET_VERSION == 20190523 \
27918 || PACKET_VERSION == 20190522 \
27919 || PACKET_VERSION == 20190508 \
27920 || PACKET_VERSION == 20190418 \
27921 || PACKET_VERSION == 20190417 \
27922 || PACKET_VERSION == 20190327 \
27923 || PACKET_VERSION == 20190322 \
27924 || PACKET_VERSION == 20190320 \
27925 || PACKET_VERSION == 20190313 \
27926 || PACKET_VERSION == 20190306 \
27927 || PACKET_VERSION == 20190228 \
27928 || PACKET_VERSION == 20190123 \
27929 || PACKET_VERSION == 20190116 \
27930 || (PACKET_VERSION >= 20190000 && PACKET_VERSION < 20190116) \
27931 || PACKET_VERSION == 20181226 \
27932 || PACKET_VERSION == 20181219 \
27933 || PACKET_VERSION == 20181212 \
27934 || PACKET_VERSION == 20181205 \
27935 || PACKET_VERSION == 20181128 \
27936 || PACKET_VERSION == 20181114 \
27937 || PACKET_VERSION == 20181107 \
27938 || PACKET_VERSION == 20181024 \
27939 || PACKET_VERSION == 20180919 \
27940 || PACKET_VERSION == 20180831 \
27941 || PACKET_VERSION == 20180822 \
27942 || PACKET_VERSION >= 20180808 \
27943 || PACKET_VERSION >= 20180718 \
27944 || PACKET_VERSION >= 20180704 \
27945 || PACKET_VERSION >= 20180621 \
27946 || PACKET_VERSION >= 20180620 \
27947 || PACKET_VERSION >= 20180530 \
27948 || PACKET_VERSION >= 20180523 \
27949 || PACKET_VERSION >= 20180516 \
27950 || PACKET_VERSION >= 20180509 \
27951 || PACKET_VERSION >= 20180502 \
27952 || PACKET_VERSION >= 20180425 \
27953 || PACKET_VERSION >= 20180404 \
27954 || PACKET_VERSION >= 20180328 \
27955 || PACKET_VERSION >= 20180321 \
27956 || PACKET_VERSION >= 20180315 \
27957 || PACKET_VERSION >= 20180213 \
27958 || PACKET_VERSION >= 20180117 \
27959 || PACKET_VERSION >= 20180103 \
27960 || PACKET_VERSION >= 20171227 \
27961 || PACKET_VERSION >= 20171220 \
27962 || PACKET_VERSION >= 20171129 \
27963 || PACKET_VERSION >= 20171122 \
27964 || PACKET_VERSION >= 20171115 \
27965 || PACKET_VERSION >= 20171101 \
27966 || PACKET_VERSION >= 20171002 \
27967 || PACKET_VERSION >= 20170913 \
27968 || PACKET_VERSION >= 20170906 \
27969 || PACKET_VERSION >= 20170830 \
27970 || PACKET_VERSION >= 20170823 \
27971 || PACKET_VERSION >= 20170809 \
27972 || PACKET_VERSION >= 20170801 \
27973 || PACKET_VERSION >= 20170719 \
27974 || PACKET_VERSION >= 20170621 \
27975 || PACKET_VERSION >= 20170517 \
27976 || PACKET_VERSION >= 20170426 \
27977 || PACKET_VERSION >= 20170419 \
27978 || PACKET_VERSION >= 20170412 \
27979 || PACKET_VERSION >= 20170322 \
27980 || PACKET_VERSION >= 20170315 \
27981 || PACKET_VERSION >= 20170308 \
27982 || PACKET_VERSION >= 20170228 \
27983 || PACKET_VERSION >= 20170222 \
27984 || PACKET_VERSION >= 20170215 \
27985 || PACKET_VERSION >= 20170208 \
27986 || PACKET_VERSION >= 20170201 \
27987 || PACKET_VERSION >= 20170125 \
27988 || PACKET_VERSION >= 20170104 \
27989 || PACKET_VERSION >= 20161221 \
27990 || PACKET_VERSION >= 20161130 \
27991 || PACKET_VERSION >= 20161026 \
27992 || PACKET_VERSION >= 20161019 \
27993 || PACKET_VERSION >= 20161005 \
27994 || PACKET_VERSION >= 20160928 \
27995 || PACKET_VERSION >= 20160921 \
27996 || PACKET_VERSION >= 20160913 \
27997 || PACKET_VERSION >= 20160907 \
27998 || PACKET_VERSION >= 20160831 \
27999 || PACKET_VERSION >= 20160824 \
28000 || PACKET_VERSION >= 20160817 \
28001 || PACKET_VERSION >= 20160608 \
28002 || PACKET_VERSION >= 20160511 \
28003 || PACKET_VERSION >= 20160504 \
28004 || PACKET_VERSION >= 20160414 \
28005 || PACKET_VERSION >= 20160406 \
28006 || PACKET_VERSION >= 20160316 \
28007 || PACKET_VERSION >= 20160302 \
28008 || PACKET_VERSION >= 20160224 \
28009 || PACKET_VERSION >= 20160217 \
28010 || PACKET_VERSION >= 20160211 \
28011 || PACKET_VERSION >= 20160203 \
28012 || PACKET_VERSION >= 20160120 \
28013 || PACKET_VERSION >= 20160113 \
28014 || PACKET_VERSION >= 20160106 \
28015 || PACKET_VERSION >= 20151230 \
28016 || PACKET_VERSION >= 20151216 \
28017 || PACKET_VERSION >= 20151209 \
28018 || PACKET_VERSION >= 20151202 \
28019 || PACKET_VERSION >= 20151125 \
28020 || PACKET_VERSION >= 20151111 \
28021 || PACKET_VERSION >= 20151104 \
28022 || PACKET_VERSION >= 20151021 \
28023 || PACKET_VERSION >= 20151014 \
28024 || PACKET_VERSION >= 20151007 \
28025 || PACKET_VERSION >= 20151001 \
28026 || PACKET_VERSION >= 20150916 \
28027 || PACKET_VERSION >= 20150909 \
28028 || PACKET_VERSION >= 20150826 \
28029 || PACKET_VERSION >= 20150805 \
28030 || PACKET_VERSION >= 20150715 \
28031 || PACKET_VERSION >= 20150708 \
28032 || PACKET_VERSION >= 20150701 \
28033 || PACKET_VERSION >= 20150624 \
28034 || PACKET_VERSION >= 20150617 \
28035 || PACKET_VERSION >= 20150610 \
28036 || PACKET_VERSION >= 20150603 \
28037 || PACKET_VERSION >= 20150527 \
28038 || PACKET_VERSION >= 20150520 \
28039 || PACKET_VERSION >= 20150422 \
28040 || PACKET_VERSION >= 20150325 \
28041 || PACKET_VERSION >= 20150318 \
28042 || PACKET_VERSION >= 20150311 \
28043 || PACKET_VERSION >= 20150217 \
28044 || PACKET_VERSION >= 20150211 \
28045 || PACKET_VERSION >= 20150204 \
28046 || PACKET_VERSION >= 20150128 \
28047 || PACKET_VERSION >= 20150107 \
28048 || PACKET_VERSION >= 20141231 \
28049 || PACKET_VERSION >= 20141203 \
28050 || PACKET_VERSION >= 20141126 \
28051 || PACKET_VERSION >= 20141105 \
28052 || PACKET_VERSION >= 20141001 \
28053 || PACKET_VERSION >= 20140917 \
28054 || PACKET_VERSION >= 20140827 \
28055 || PACKET_VERSION >= 20140820 \
28056 || PACKET_VERSION >= 20140806 \
28057 || PACKET_VERSION >= 20140723 \
28058 || PACKET_VERSION >= 20140716 \
28059 || PACKET_VERSION >= 20140709 \
28060 || PACKET_VERSION >= 20140702 \
28061 || PACKET_VERSION >= 20140611 \
28062 || PACKET_VERSION >= 20140605 \
28063 || PACKET_VERSION >= 20140528 \
28064 || PACKET_VERSION >= 20140521 \
28065 || PACKET_VERSION >= 20140514 \
28066 || PACKET_VERSION >= 20140430 \
28067 || PACKET_VERSION >= 20140423 \
28068 || PACKET_VERSION >= 20140416 \
28069 || PACKET_VERSION >= 20140326 \
28070 || PACKET_VERSION >= 20140319 \
28071 || PACKET_VERSION >= 20140312 \
28072 || PACKET_VERSION >= 20140305 \
28073 || PACKET_VERSION >= 20140226 \
28074 || PACKET_VERSION >= 20140212 \
28075 || PACKET_VERSION >= 20140129 \
28076 || PACKET_VERSION >= 20140115 \
28077 || PACKET_VERSION >= 20140108 \
28078 || PACKET_VERSION >= 20131230 \
28079 || PACKET_VERSION >= 20131223 \
28080 || PACKET_VERSION >= 20131218 \
28081 || PACKET_VERSION >= 20131211 \
28082 || PACKET_VERSION >= 20131204 \
28083 || PACKET_VERSION >= 20131127 \
28084 || PACKET_VERSION >= 20131120 \
28085 || PACKET_VERSION >= 20131106 \
28086 || PACKET_VERSION >= 20131030 \
28087 || PACKET_VERSION >= 20131023 \
28088 || PACKET_VERSION >= 20131008 \
28089 || PACKET_VERSION >= 20130925 \
28090 || PACKET_VERSION >= 20130917 \
28091 || PACKET_VERSION >= 20130904 \
28092 || PACKET_VERSION >= 20130814 \
28093 || PACKET_VERSION >= 20130807 \
28094 || PACKET_VERSION >= 20130717 \
28095 || PACKET_VERSION >= 20130626 \
28096 || PACKET_VERSION >= 20130618 \
28097 || PACKET_VERSION >= 20130605 \
28098 || PACKET_VERSION >= 20130529 \
28099 || PACKET_VERSION >= 20130522 \
28100 || PACKET_VERSION >= 20130424 \
28101 || PACKET_VERSION >= 20130417 \
28102 || PACKET_VERSION >= 20130410 \
28103 || PACKET_VERSION >= 20130403 \
28104 || PACKET_VERSION >= 20130320 \
28105 || PACKET_VERSION >= 20130313 \
28106 || PACKET_VERSION >= 20130306 \
28107 || PACKET_VERSION >= 20130227 \
28108 || PACKET_VERSION >= 20130215 \
28109 || PACKET_VERSION >= 20130206 \
28110 || PACKET_VERSION >= 20130109 \
28111 || PACKET_VERSION >= 20130103 \
28112 || PACKET_VERSION >= 20121227 \
28113 || PACKET_VERSION >= 20121218 \
28114 || PACKET_VERSION >= 20121107 \
28115 || PACKET_VERSION >= 20121031 \
28116 || PACKET_VERSION >= 20121024 \
28117 || PACKET_VERSION >= 20121017 \
28118 || PACKET_VERSION >= 20120925 \
28119 || PACKET_VERSION >= 20120919 \
28120 || PACKET_VERSION >= 20120905 \
28121 || PACKET_VERSION >= 20120830 \
28122 || PACKET_VERSION >= 20120814 \
28123 || PACKET_VERSION >= 20120808 \
28124 || PACKET_VERSION >= 20120724 \
28125 || PACKET_VERSION >= 20120716 \
28126 || PACKET_VERSION >= 20120710 \
28127 || PACKET_VERSION >= 20120626 \
28128 || PACKET_VERSION >= 20120612 \
28129 || PACKET_VERSION >= 20120604 \
28130 || PACKET_VERSION >= 20120522 \
28131 || PACKET_VERSION >= 20120515 \
28132 || PACKET_VERSION >= 20120503 \
28133 || PACKET_VERSION >= 20120424 \
28134 || PACKET_VERSION >= 20120404 \
28135 || PACKET_VERSION >= 20120328 \
28136 || PACKET_VERSION >= 20120307 \
28137 || PACKET_VERSION >= 20120228 \
28138 || PACKET_VERSION >= 20120221 \
28139 || PACKET_VERSION >= 20120214 \
28140 || PACKET_VERSION >= 20120207 \
28141 || PACKET_VERSION >= 20120131 \
28142 || PACKET_VERSION >= 20120120 \
28143 || PACKET_VERSION >= 20120117 \
28144 || PACKET_VERSION >= 20120103 \
28145 || PACKET_VERSION >= 20111227 \
28146 || PACKET_VERSION >= 20111220 \
28147 || PACKET_VERSION >= 20111122 \
28148 || PACKET_VERSION >= 20111101 \
28149 || PACKET_VERSION >= 20111010 \
28150 || PACKET_VERSION >= 20110928 \
28151 || PACKET_VERSION >= 20110920 \
28152 || PACKET_VERSION >= 20110906 \
28153 || PACKET_VERSION >= 20110823 \
28154 || PACKET_VERSION >= 20110809 \
28155 || PACKET_VERSION >= 20110802 \
28156 || PACKET_VERSION >= 20110726 \
28157 || PACKET_VERSION >= 20110718 \
28158 || PACKET_VERSION >= 20110711 \
28159 || PACKET_VERSION >= 20110627 \
28160 || PACKET_VERSION >= 20110620 \
28161 || PACKET_VERSION >= 20110517 \
28162 || PACKET_VERSION >= 20110511 \
28163 || PACKET_VERSION >= 20110426 \
28164 || PACKET_VERSION >= 20110419 \
28165 || PACKET_VERSION >= 20110412 \
28166 || PACKET_VERSION >= 20110405 \
28167 || PACKET_VERSION >= 20110329 \
28168 || PACKET_VERSION >= 20110322 \
28169 || PACKET_VERSION >= 20110308 \
28170 || PACKET_VERSION >= 20110228 \
28171 || PACKET_VERSION >= 20110215 \
28172 || PACKET_VERSION >= 20110208 \
28173 || PACKET_VERSION >= 20110131 \
28174 || PACKET_VERSION >= 20110125 \
28175 || PACKET_VERSION >= 20110118 \
28176 || PACKET_VERSION >= 20110104 \
28177 || PACKET_VERSION >= 20101228 \
28178 || PACKET_VERSION >= 20101221 \
28179 || PACKET_VERSION >= 20101207 \
28180 || PACKET_VERSION >= 20101130 \
28181 || PACKET_VERSION >= 20101123 \
28182 || PACKET_VERSION >= 20100303)
28184#elif CLIENT_TYPE == 'M' && \
28185 PACKET_VERSION >= 20120712
28187#elif CLIENT_TYPE == 'M' && \
28188 PACKET_VERSION >= 20120926
28190#elif CLIENT_TYPE == 'M' && ( \
28191 PACKET_VERSION == 20180131 \
28192 || PACKET_VERSION >= 20160609 \
28193 || PACKET_VERSION >= 20160526 \
28194 || PACKET_VERSION >= 20160318 \
28195 || PACKET_VERSION >= 20151029 \
28196 || PACKET_VERSION >= 20151022 \
28197 || PACKET_VERSION >= 20150812 \
28198 || PACKET_VERSION >= 20150618 \
28199 || PACKET_VERSION >= 20150226 \
28200 || PACKET_VERSION >= 20141016 \
28201 || PACKET_VERSION >= 20140814 \
28202 || PACKET_VERSION >= 20130107)
28204#elif CLIENT_TYPE == 'M' && \
28205 PACKET_VERSION >= 20130116
28207#elif CLIENT_TYPE == 'M' && ( \
28208 PACKET_VERSION == 20131108 \
28209 || PACKET_VERSION == 20131107)
28211#elif CLIENT_TYPE == 'M' && ( \
28212 PACKET_VERSION == 20140613 \
28213 || PACKET_VERSION == 20140612)
28215#elif CLIENT_TYPE == 'M' && ( \
28216 PACKET_VERSION == 20150130 \
28217 || PACKET_VERSION == 20150129)
28219#elif CLIENT_TYPE == 'M' && ( \
28220 PACKET_VERSION >= 20220000 \
28221 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
28222 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
28223 || PACKET_VERSION >= 20150702)
28225#elif CLIENT_TYPE == 'M' && \
28226 PACKET_VERSION >= 20160630
28228#elif CLIENT_TYPE == 'M' && \
28229 PACKET_VERSION >= 20161103
28231#elif CLIENT_TYPE == 'M' && \
28232 PACKET_VERSION >= 20180309
28234#elif CLIENT_TYPE == 'R' && ( \
28235 PACKET_VERSION == 20190821 \
28236 || PACKET_VERSION == 20190807 \
28237 || PACKET_VERSION == 20190802 \
28238 || PACKET_VERSION == 20190731 \
28239 || PACKET_VERSION == 20190724 \
28240 || PACKET_VERSION == 20190717 \
28241 || PACKET_VERSION == 20190703 \
28242 || PACKET_VERSION == 20190626 \
28243 || PACKET_VERSION == 20190605 \
28244 || PACKET_VERSION == 20190530 \
28245 || PACKET_VERSION == 20190522 \
28246 || PACKET_VERSION == 20190508 \
28247 || PACKET_VERSION == 20190418 \
28248 || PACKET_VERSION == 20190417 \
28249 || PACKET_VERSION == 20190327 \
28250 || PACKET_VERSION == 20190322 \
28251 || PACKET_VERSION == 20190320 \
28252 || PACKET_VERSION == 20190306 \
28253 || PACKET_VERSION == 20190228 \
28254 || PACKET_VERSION == 20190123 \
28255 || PACKET_VERSION == 20190116 \
28256 || (PACKET_VERSION >= 20190000 && PACKET_VERSION < 20190116) \
28257 || PACKET_VERSION == 20181226 \
28258 || PACKET_VERSION == 20181219 \
28259 || PACKET_VERSION == 20181212 \
28260 || PACKET_VERSION == 20181205 \
28261 || PACKET_VERSION == 20181128 \
28262 || PACKET_VERSION == 20181121 \
28263 || PACKET_VERSION == 20181114 \
28264 || PACKET_VERSION == 20181107 \
28265 || PACKET_VERSION == 20180822 \
28266 || PACKET_VERSION >= 20180808 \
28267 || PACKET_VERSION >= 20180718 \
28268 || PACKET_VERSION >= 20180711 \
28269 || PACKET_VERSION >= 20180621 \
28270 || PACKET_VERSION >= 20180620 \
28271 || PACKET_VERSION >= 20180612 \
28272 || PACKET_VERSION >= 20180530 \
28273 || PACKET_VERSION >= 20180523 \
28274 || PACKET_VERSION >= 20180516 \
28275 || PACKET_VERSION >= 20180502 \
28276 || PACKET_VERSION >= 20180425 \
28277 || PACKET_VERSION >= 20180404 \
28278 || PACKET_VERSION >= 20180328 \
28279 || PACKET_VERSION >= 20180321 \
28280 || PACKET_VERSION >= 20180213 \
28281 || PACKET_VERSION >= 20180117 \
28282 || PACKET_VERSION >= 20180103 \
28283 || PACKET_VERSION >= 20171227 \
28284 || PACKET_VERSION >= 20171220 \
28285 || PACKET_VERSION >= 20171129 \
28286 || PACKET_VERSION >= 20171122 \
28287 || PACKET_VERSION >= 20171115 \
28288 || PACKET_VERSION >= 20171101 \
28289 || PACKET_VERSION >= 20171002 \
28290 || PACKET_VERSION >= 20170913 \
28291 || PACKET_VERSION >= 20170906 \
28292 || PACKET_VERSION >= 20170830 \
28293 || PACKET_VERSION >= 20170823 \
28294 || PACKET_VERSION >= 20170809 \
28295 || PACKET_VERSION >= 20170801 \
28296 || PACKET_VERSION >= 20170719 \
28297 || PACKET_VERSION >= 20170621 \
28298 || PACKET_VERSION >= 20170517 \
28299 || PACKET_VERSION >= 20170426 \
28300 || PACKET_VERSION >= 20170419 \
28301 || PACKET_VERSION >= 20170412 \
28302 || PACKET_VERSION >= 20170322 \
28303 || PACKET_VERSION >= 20170315 \
28304 || PACKET_VERSION >= 20170308 \
28305 || PACKET_VERSION >= 20170228 \
28306 || PACKET_VERSION >= 20170222 \
28307 || PACKET_VERSION >= 20170215 \
28308 || PACKET_VERSION >= 20170208 \
28309 || PACKET_VERSION >= 20170201 \
28310 || PACKET_VERSION >= 20170125 \
28311 || PACKET_VERSION >= 20170104 \
28312 || PACKET_VERSION >= 20161221 \
28313 || PACKET_VERSION >= 20161130 \
28314 || PACKET_VERSION >= 20161026 \
28315 || PACKET_VERSION >= 20161019 \
28316 || PACKET_VERSION >= 20161005 \
28317 || PACKET_VERSION >= 20160928 \
28318 || PACKET_VERSION >= 20160921 \
28319 || PACKET_VERSION >= 20160913 \
28320 || PACKET_VERSION >= 20160907 \
28321 || PACKET_VERSION >= 20160831 \
28322 || PACKET_VERSION >= 20160824 \
28323 || PACKET_VERSION >= 20160817 \
28324 || PACKET_VERSION >= 20160608 \
28325 || PACKET_VERSION >= 20160511 \
28326 || PACKET_VERSION >= 20160504 \
28327 || PACKET_VERSION >= 20160414 \
28328 || PACKET_VERSION >= 20160406 \
28329 || PACKET_VERSION >= 20160316 \
28330 || PACKET_VERSION >= 20160302 \
28331 || PACKET_VERSION >= 20160224 \
28332 || PACKET_VERSION >= 20160217 \
28333 || PACKET_VERSION >= 20160211 \
28334 || PACKET_VERSION >= 20160203 \
28335 || PACKET_VERSION >= 20160120 \
28336 || PACKET_VERSION >= 20160113 \
28337 || PACKET_VERSION >= 20160106 \
28338 || PACKET_VERSION >= 20151230 \
28339 || PACKET_VERSION >= 20151216 \
28340 || PACKET_VERSION >= 20151209 \
28341 || PACKET_VERSION >= 20151202 \
28342 || PACKET_VERSION >= 20151125 \
28343 || PACKET_VERSION >= 20151111 \
28344 || PACKET_VERSION >= 20151104 \
28345 || PACKET_VERSION >= 20151021 \
28346 || PACKET_VERSION >= 20151014 \
28347 || PACKET_VERSION >= 20151007 \
28348 || PACKET_VERSION >= 20151001 \
28349 || PACKET_VERSION >= 20150916 \
28350 || PACKET_VERSION >= 20150909 \
28351 || PACKET_VERSION >= 20150826 \
28352 || PACKET_VERSION >= 20150805 \
28353 || PACKET_VERSION >= 20150715 \
28354 || PACKET_VERSION >= 20150708 \
28355 || PACKET_VERSION >= 20150701 \
28356 || PACKET_VERSION >= 20150624 \
28357 || PACKET_VERSION >= 20150617 \
28358 || PACKET_VERSION >= 20150610 \
28359 || PACKET_VERSION >= 20150603 \
28360 || PACKET_VERSION >= 20150527 \
28361 || PACKET_VERSION >= 20150520 \
28362 || PACKET_VERSION >= 20150422 \
28363 || PACKET_VERSION >= 20150325 \
28364 || PACKET_VERSION >= 20150318 \
28365 || PACKET_VERSION >= 20150311 \
28366 || PACKET_VERSION >= 20150217 \
28367 || PACKET_VERSION >= 20150211 \
28368 || PACKET_VERSION >= 20150204 \
28369 || PACKET_VERSION >= 20150128 \
28370 || PACKET_VERSION >= 20150107 \
28371 || PACKET_VERSION >= 20141231 \
28372 || PACKET_VERSION >= 20141203 \
28373 || PACKET_VERSION >= 20141126 \
28374 || PACKET_VERSION >= 20141105 \
28375 || PACKET_VERSION >= 20141001 \
28376 || PACKET_VERSION >= 20140917 \
28377 || PACKET_VERSION >= 20140827 \
28378 || PACKET_VERSION >= 20140820 \
28379 || PACKET_VERSION >= 20140806 \
28380 || PACKET_VERSION >= 20140723 \
28381 || PACKET_VERSION >= 20140716 \
28382 || PACKET_VERSION >= 20140709 \
28383 || PACKET_VERSION >= 20140702 \
28384 || PACKET_VERSION >= 20140611 \
28385 || PACKET_VERSION >= 20140605 \
28386 || PACKET_VERSION >= 20140528 \
28387 || PACKET_VERSION >= 20140521 \
28388 || PACKET_VERSION >= 20140514 \
28389 || PACKET_VERSION >= 20140430 \
28390 || PACKET_VERSION >= 20140423 \
28391 || PACKET_VERSION >= 20140416 \
28392 || PACKET_VERSION >= 20140326 \
28393 || PACKET_VERSION >= 20140319 \
28394 || PACKET_VERSION >= 20140312 \
28395 || PACKET_VERSION >= 20140305 \
28396 || PACKET_VERSION >= 20140226 \
28397 || PACKET_VERSION >= 20140212 \
28398 || PACKET_VERSION >= 20140129 \
28399 || PACKET_VERSION >= 20140115 \
28400 || PACKET_VERSION >= 20140108 \
28401 || PACKET_VERSION >= 20131230 \
28402 || PACKET_VERSION >= 20131223 \
28403 || PACKET_VERSION >= 20131218 \
28404 || PACKET_VERSION >= 20131211 \
28405 || PACKET_VERSION >= 20131204 \
28406 || PACKET_VERSION >= 20131127 \
28407 || PACKET_VERSION >= 20131120 \
28408 || PACKET_VERSION >= 20131106 \
28409 || PACKET_VERSION >= 20131030 \
28410 || PACKET_VERSION >= 20131023 \
28411 || PACKET_VERSION >= 20131008 \
28412 || PACKET_VERSION >= 20130925 \
28413 || PACKET_VERSION >= 20130917 \
28414 || PACKET_VERSION >= 20130904 \
28415 || PACKET_VERSION >= 20130814 \
28416 || PACKET_VERSION >= 20130807 \
28417 || PACKET_VERSION >= 20130717 \
28418 || PACKET_VERSION >= 20130626 \
28419 || PACKET_VERSION >= 20130618 \
28420 || PACKET_VERSION >= 20130605 \
28421 || PACKET_VERSION >= 20130529 \
28422 || PACKET_VERSION >= 20130522 \
28423 || PACKET_VERSION >= 20130424 \
28424 || PACKET_VERSION >= 20130417 \
28425 || PACKET_VERSION >= 20130410 \
28426 || PACKET_VERSION >= 20130403 \
28427 || PACKET_VERSION >= 20130320 \
28428 || PACKET_VERSION >= 20130313 \
28429 || PACKET_VERSION >= 20130306 \
28430 || PACKET_VERSION >= 20130227 \
28431 || PACKET_VERSION >= 20130215 \
28432 || PACKET_VERSION >= 20130206 \
28433 || PACKET_VERSION >= 20130109 \
28434 || PACKET_VERSION >= 20130103 \
28435 || PACKET_VERSION >= 20121227 \
28436 || PACKET_VERSION >= 20121218 \
28437 || PACKET_VERSION >= 20121107 \
28438 || PACKET_VERSION >= 20121031 \
28439 || PACKET_VERSION >= 20121024 \
28440 || PACKET_VERSION >= 20121017 \
28441 || PACKET_VERSION >= 20120925 \
28442 || PACKET_VERSION >= 20120919 \
28443 || PACKET_VERSION >= 20120905 \
28444 || PACKET_VERSION >= 20120830 \
28445 || PACKET_VERSION >= 20120814 \
28446 || PACKET_VERSION >= 20120808 \
28447 || PACKET_VERSION >= 20120724 \
28448 || PACKET_VERSION >= 20120716 \
28449 || PACKET_VERSION >= 20120710 \
28450 || PACKET_VERSION >= 20120626 \
28451 || PACKET_VERSION >= 20120612 \
28452 || PACKET_VERSION >= 20120601 \
28453 || PACKET_VERSION >= 20120523 \
28454 || PACKET_VERSION >= 20120515 \
28455 || PACKET_VERSION >= 20120502 \
28456 || PACKET_VERSION >= 20120424 \
28457 || PACKET_VERSION >= 20120404 \
28458 || PACKET_VERSION >= 20120328 \
28459 || PACKET_VERSION >= 20120307 \
28460 || PACKET_VERSION >= 20120228 \
28461 || PACKET_VERSION >= 20120221 \
28462 || PACKET_VERSION >= 20120214 \
28463 || PACKET_VERSION >= 20120207 \
28464 || PACKET_VERSION >= 20120131 \
28465 || PACKET_VERSION >= 20120120 \
28466 || PACKET_VERSION >= 20120117 \
28467 || PACKET_VERSION >= 20120103 \
28468 || PACKET_VERSION >= 20111227 \
28469 || PACKET_VERSION >= 20111220 \
28470 || PACKET_VERSION >= 20111122 \
28471 || PACKET_VERSION >= 20111101 \
28472 || PACKET_VERSION >= 20111010 \
28473 || PACKET_VERSION >= 20110928 \
28474 || PACKET_VERSION >= 20110920 \
28475 || PACKET_VERSION >= 20110906 \
28476 || PACKET_VERSION >= 20110823 \
28477 || PACKET_VERSION >= 20110104 \
28478 || PACKET_VERSION >= 20100303)
28480#elif CLIENT_TYPE == 'R' && \
28481 PACKET_VERSION >= 20120712
28483#elif CLIENT_TYPE == 'R' && \
28484 PACKET_VERSION >= 20120926
28486#elif CLIENT_TYPE == 'R' && \
28487 PACKET_VERSION >= 20121011
28489#elif CLIENT_TYPE == 'R' && ( \
28490 PACKET_VERSION >= 20210000 \
28491 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
28492 || PACKET_VERSION >= 20130116)
28494#elif CLIENT_TYPE == 'R' && ( \
28495 PACKET_VERSION == 20151029 \
28496 || PACKET_VERSION == 20151022 \
28497 || PACKET_VERSION == 20150812 \
28498 || PACKET_VERSION == 20150618 \
28499 || PACKET_VERSION == 20150226 \
28500 || PACKET_VERSION >= 20141016)
28502#elif CLIENT_TYPE == 'R' && \
28503 PACKET_VERSION >= 20160630
28505#elif CLIENT_TYPE == 'R' && \
28506 PACKET_VERSION >= 20161103
28508#elif CLIENT_TYPE == 'Z' && ( \
28509 PACKET_VERSION == 20190814 \
28510 || PACKET_VERSION == 20190724 \
28511 || PACKET_VERSION == 20190717 \
28512 || PACKET_VERSION == 20190710 \
28513 || PACKET_VERSION == 20190709 \
28514 || PACKET_VERSION == 20190605 \
28515 || PACKET_VERSION == 20190530 \
28516 || PACKET_VERSION == 20190515 \
28517 || PACKET_VERSION == 20190508 \
28518 || PACKET_VERSION == 20190502 \
28519 || PACKET_VERSION == 20190424 \
28520 || PACKET_VERSION == 20190410 \
28521 || PACKET_VERSION == 20190403 \
28522 || PACKET_VERSION == 20190313 \
28523 || PACKET_VERSION == 20190227 \
28524 || PACKET_VERSION == 20190213 \
28525 || PACKET_VERSION == 20190117 \
28526 || PACKET_VERSION == 20181226 \
28527 || PACKET_VERSION == 20181219 \
28528 || PACKET_VERSION == 20181212 \
28529 || PACKET_VERSION == 20181128 \
28530 || PACKET_VERSION == 20181120 \
28531 || PACKET_VERSION == 20180928 \
28532 || PACKET_VERSION == 20180912 \
28533 || PACKET_VERSION == 20180829 \
28534 || PACKET_VERSION >= 20180808 \
28535 || PACKET_VERSION >= 20180801 \
28536 || PACKET_VERSION >= 20180711 \
28537 || PACKET_VERSION >= 20180703 \
28538 || PACKET_VERSION >= 20180627 \
28539 || PACKET_VERSION >= 20180509 \
28540 || PACKET_VERSION >= 20180411 \
28541 || PACKET_VERSION >= 20180321 \
28542 || PACKET_VERSION >= 20171113 \
28543 || PACKET_VERSION >= 20171031 \
28544 || PACKET_VERSION >= 20171030 \
28545 || PACKET_VERSION >= 20171027 \
28546 || PACKET_VERSION >= 20171025 \
28547 || PACKET_VERSION >= 20171024 \
28548 || PACKET_VERSION >= 20171023 \
28549 || PACKET_VERSION >= 20171019)
28551#elif CLIENT_TYPE == 'Z' && ( \
28552 PACKET_VERSION == 20180309 \
28553 || PACKET_VERSION == 20180307 \
28554 || PACKET_VERSION == 20171128 \
28555 || PACKET_VERSION == 20171122 \
28556 || PACKET_VERSION == 20171117 \
28557 || PACKET_VERSION == 20171116)
28559#elif CLIENT_TYPE == 'Z' && ( \
28560 PACKET_VERSION == 20171213 \
28561 || PACKET_VERSION == 20171212 \
28562 || PACKET_VERSION == 20171211 \
28563 || PACKET_VERSION == 20171210 \
28564 || PACKET_VERSION == 20171209 \
28565 || PACKET_VERSION == 20171208)
28567#elif CLIENT_TYPE == 'Z' && \
28568 PACKET_VERSION >= 20171221
28570#elif CLIENT_TYPE == 'Z' && ( \
28571 PACKET_VERSION >= 20220000 \
28572 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
28573 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
28574 || PACKET_VERSION >= 20171229)
28576#else
28577ID_CZ_REQ_OPEN_BUYING_STORE = 0x0000 // Disabled
28578#endif
28585{
28586public:
28587 CZ_REQ_OPEN_BUYING_STORE(std::shared_ptr<ZoneSession> s)
28589 {}
28591
28592 void handle(ByteBuffer &&buf);
28593 void deserialize(ByteBuffer &buf);
28594
28595/* Structure */
28596 int16_t _packet_length{ 0 };
28597 int _zeny_limit{ 0 };
28598 int8_t _result{ 0 };
28600 std::vector<cz_req_open_buying_store_itemlist> _items;
28601};
28602
28603enum {
28604#if CLIENT_TYPE == 'M' && ( \
28605 PACKET_VERSION >= 20220000 \
28606 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
28607 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
28608 || PACKET_VERSION >= 20130828)
28610#elif CLIENT_TYPE == 'R' && ( \
28611 PACKET_VERSION >= 20210000 \
28612 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
28613 || PACKET_VERSION >= 20130828)
28615#elif CLIENT_TYPE == 'Z' && ( \
28616 PACKET_VERSION >= 20220000 \
28617 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
28618 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
28619 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
28621#else
28622ID_CZ_REQ_OPEN_GUILD_STORAGE = 0x0000 // Disabled
28623#endif
28630{
28631public:
28632 CZ_REQ_OPEN_GUILD_STORAGE(std::shared_ptr<ZoneSession> s)
28634 {}
28636
28637 void handle(ByteBuffer &&buf);
28638 void deserialize(ByteBuffer &buf);
28639
28640/* Structure */
28641};
28642
28643enum {
28644#if CLIENT_TYPE == 'A' && \
28645 PACKET_VERSION >= 20040000
28647#elif CLIENT_TYPE == 'M' && ( \
28648 PACKET_VERSION >= 20220000 \
28649 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
28650 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
28651 || (PACKET_VERSION >= 20030000 && PACKET_VERSION < 20200000))
28653#elif CLIENT_TYPE == 'R' && ( \
28654 PACKET_VERSION >= 20210000 \
28655 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
28656 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
28658#elif CLIENT_TYPE == 'S' && \
28659 PACKET_VERSION >= 20030000
28661#elif CLIENT_TYPE == 'Z' && ( \
28662 PACKET_VERSION >= 20220000 \
28663 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
28664 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
28665 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
28667#else
28668ID_CZ_REQ_OPEN_MEMBER_INFO = 0x0000 // Disabled
28669#endif
28676{
28677public:
28678 CZ_REQ_OPEN_MEMBER_INFO(std::shared_ptr<ZoneSession> s)
28680 {}
28682
28683 void handle(ByteBuffer &&buf);
28684 void deserialize(ByteBuffer &buf);
28685
28686/* Structure */
28687};
28688
28689enum {
28690#if CLIENT_TYPE == 'M' && ( \
28691 PACKET_VERSION >= 20220000 \
28692 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
28693 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
28694 || PACKET_VERSION >= 20140611)
28696#elif CLIENT_TYPE == 'R' && ( \
28697 PACKET_VERSION >= 20210000 \
28698 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
28699 || PACKET_VERSION >= 20140611)
28701#elif CLIENT_TYPE == 'Z' && ( \
28702 PACKET_VERSION >= 20220000 \
28703 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
28704 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
28705 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
28707#else
28708ID_CZ_REQ_OPEN_ROULETTE = 0x0000 // Disabled
28709#endif
28716{
28717public:
28718 CZ_REQ_OPEN_ROULETTE(std::shared_ptr<ZoneSession> s)
28720 {}
28722
28723 void handle(ByteBuffer &&buf);
28724 void deserialize(ByteBuffer &buf);
28725
28726/* Structure */
28727};
28728
28729enum {
28730#if CLIENT_TYPE == 'M' && ( \
28731 PACKET_VERSION >= 20220000 \
28732 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
28733 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
28734 || PACKET_VERSION >= 20160323)
28735ID_CZ_REQ_OPEN_UI = 0x0a68
28736#elif CLIENT_TYPE == 'R' && ( \
28737 PACKET_VERSION >= 20210000 \
28738 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
28739 || PACKET_VERSION >= 20160323)
28740ID_CZ_REQ_OPEN_UI = 0x0a68
28741#elif CLIENT_TYPE == 'Z' && ( \
28742 PACKET_VERSION >= 20220000 \
28743 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
28744 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
28745 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
28746ID_CZ_REQ_OPEN_UI = 0x0a68
28747#else
28748ID_CZ_REQ_OPEN_UI = 0x0000 // Disabled
28749#endif
28755class CZ_REQ_OPEN_UI : public Base::NetworkPacket<ZoneSession>
28756{
28757public:
28758 CZ_REQ_OPEN_UI(std::shared_ptr<ZoneSession> s)
28760 {}
28761 virtual ~CZ_REQ_OPEN_UI() {}
28762
28763 void handle(ByteBuffer &&buf);
28764 void deserialize(ByteBuffer &buf);
28765
28766/* Structure */
28767};
28768
28769enum {
28770#if CLIENT_TYPE == 'M' && ( \
28771 PACKET_VERSION >= 20220000 \
28772 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
28773 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
28774 || PACKET_VERSION >= 20140416)
28776#elif CLIENT_TYPE == 'R' && ( \
28777 PACKET_VERSION >= 20210000 \
28778 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
28779 || PACKET_VERSION >= 20140416)
28781#elif CLIENT_TYPE == 'Z' && ( \
28782 PACKET_VERSION >= 20220000 \
28783 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
28784 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
28785 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
28787#else
28788ID_CZ_REQ_OPEN_WRITE_RODEX = 0x0000 // Disabled
28789#endif
28796{
28797public:
28798 CZ_REQ_OPEN_WRITE_RODEX(std::shared_ptr<ZoneSession> s)
28800 {}
28802
28803 void handle(ByteBuffer &&buf);
28804 void deserialize(ByteBuffer &buf);
28805
28806/* Structure */
28807};
28808
28809enum {
28810#if CLIENT_TYPE == 'M' && ( \
28811 PACKET_VERSION >= 20220000 \
28812 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
28813 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
28814 || PACKET_VERSION >= 20120120)
28815ID_CZ_REQ_PARTY_NAME = 0x0910
28816#elif CLIENT_TYPE == 'R' && ( \
28817 PACKET_VERSION >= 20210000 \
28818 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
28819 || PACKET_VERSION >= 20120120)
28820ID_CZ_REQ_PARTY_NAME = 0x0910
28821#elif CLIENT_TYPE == 'Z' && ( \
28822 PACKET_VERSION >= 20220000 \
28823 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
28824 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
28825 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
28826ID_CZ_REQ_PARTY_NAME = 0x0910
28827#else
28828ID_CZ_REQ_PARTY_NAME = 0x0000 // Disabled
28829#endif
28835class CZ_REQ_PARTY_NAME : public Base::NetworkPacket<ZoneSession>
28836{
28837public:
28838 CZ_REQ_PARTY_NAME(std::shared_ptr<ZoneSession> s)
28840 {}
28842
28843 void handle(ByteBuffer &&buf);
28844 void deserialize(ByteBuffer &buf);
28845
28846/* Structure */
28847};
28848
28849enum {
28850#if CLIENT_TYPE == 'M' && ( \
28851 PACKET_VERSION >= 20220000 \
28852 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
28853 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000))
28855#elif CLIENT_TYPE == 'R' && ( \
28856 PACKET_VERSION >= 20210000 \
28857 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000))
28859#elif CLIENT_TYPE == 'Z' && ( \
28860 PACKET_VERSION >= 20220000 \
28861 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
28862 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000))
28864#else
28865ID_CZ_REQ_PLAYER_AID_IN_RANGE = 0x0000 // Disabled
28866#endif
28873{
28874public:
28875 CZ_REQ_PLAYER_AID_IN_RANGE(std::shared_ptr<ZoneSession> s)
28877 {}
28879
28880 void handle(ByteBuffer &&buf);
28881 void deserialize(ByteBuffer &buf);
28882
28883/* Structure */
28884};
28885
28886enum {
28887#if CLIENT_TYPE == 'M' && ( \
28888 PACKET_VERSION >= 20220000 \
28889 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
28890 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000))
28892#elif CLIENT_TYPE == 'R' && ( \
28893 PACKET_VERSION >= 20210000 \
28894 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000))
28896#elif CLIENT_TYPE == 'Z' && ( \
28897 PACKET_VERSION >= 20220000 \
28898 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
28899 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000))
28901#else
28902ID_CZ_REQ_PREVIEW_MACRO_DETECTOR = 0x0000 // Disabled
28903#endif
28910{
28911public:
28912 CZ_REQ_PREVIEW_MACRO_DETECTOR(std::shared_ptr<ZoneSession> s)
28914 {}
28916
28917 void handle(ByteBuffer &&buf);
28918 void deserialize(ByteBuffer &buf);
28919
28920/* Structure */
28921};
28922
28923enum {
28924#if CLIENT_TYPE == 'A' && \
28925 PACKET_VERSION >= 20040817
28926ID_CZ_REQ_PVPPOINT = 0x020f
28927#elif CLIENT_TYPE == 'M' && ( \
28928 PACKET_VERSION == 20211117 \
28929 || PACKET_VERSION == 20211105 \
28930 || PACKET_VERSION == 20211103 \
28931 || PACKET_VERSION >= 20041220)
28932ID_CZ_REQ_PVPPOINT = 0x020f
28933#elif CLIENT_TYPE == 'R' && ( \
28934 PACKET_VERSION >= 20210000 \
28935 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
28936 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
28937ID_CZ_REQ_PVPPOINT = 0x020f
28938#elif CLIENT_TYPE == 'S' && \
28939 PACKET_VERSION >= 20040817
28940ID_CZ_REQ_PVPPOINT = 0x020f
28941#else
28942ID_CZ_REQ_PVPPOINT = 0x0000 // Disabled
28943#endif
28949class CZ_REQ_PVPPOINT : public Base::NetworkPacket<ZoneSession>
28950{
28951public:
28952 CZ_REQ_PVPPOINT(std::shared_ptr<ZoneSession> s)
28954 {}
28955 virtual ~CZ_REQ_PVPPOINT() {}
28956
28957 void handle(ByteBuffer &&buf);
28958 void deserialize(ByteBuffer &buf);
28959
28960/* Structure */
28962 int _account_id{ 0 };
28963};
28964
28965enum {
28966#if CLIENT_TYPE == 'M' && ( \
28967 PACKET_VERSION >= 20220000 \
28968 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
28969 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000))
28971#elif CLIENT_TYPE == 'R' && ( \
28972 PACKET_VERSION >= 20210000 \
28973 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000))
28975#elif CLIENT_TYPE == 'Z' && ( \
28976 PACKET_VERSION >= 20220000 \
28977 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
28978 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000))
28980#else
28981ID_CZ_REQ_RANDOM_COMBINE_ITEM = 0x0000 // Disabled
28982#endif
28989{
28990public:
28991 CZ_REQ_RANDOM_COMBINE_ITEM(std::shared_ptr<ZoneSession> s)
28993 {}
28995
28996 void handle(ByteBuffer &&buf);
28997 void deserialize(ByteBuffer &buf);
28998
28999/* Structure */
29000};
29001
29002enum {
29003#if CLIENT_TYPE == 'M' && ( \
29004 PACKET_VERSION >= 20220000 \
29005 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
29006 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000))
29008#elif CLIENT_TYPE == 'R' && ( \
29009 PACKET_VERSION >= 20210000 \
29010 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000))
29012#elif CLIENT_TYPE == 'Z' && ( \
29013 PACKET_VERSION >= 20220000 \
29014 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
29015 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000))
29017#else
29018ID_CZ_REQ_RANDOM_UPGRADE_ITEM = 0x0000 // Disabled
29019#endif
29026{
29027public:
29028 CZ_REQ_RANDOM_UPGRADE_ITEM(std::shared_ptr<ZoneSession> s)
29030 {}
29032
29033 void handle(ByteBuffer &&buf);
29034 void deserialize(ByteBuffer &buf);
29035
29036/* Structure */
29037};
29038
29039enum {
29040#if CLIENT_TYPE == 'M' && ( \
29041 PACKET_VERSION >= 20220000 \
29042 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
29043 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
29044 || PACKET_VERSION >= 20120503)
29045ID_CZ_REQ_RANKING = 0x097c
29046#elif CLIENT_TYPE == 'R' && ( \
29047 PACKET_VERSION >= 20210000 \
29048 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
29049 || PACKET_VERSION >= 20120502)
29050ID_CZ_REQ_RANKING = 0x097c
29051#elif CLIENT_TYPE == 'Z' && ( \
29052 PACKET_VERSION >= 20220000 \
29053 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
29054 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
29055 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
29056ID_CZ_REQ_RANKING = 0x097c
29057#else
29058ID_CZ_REQ_RANKING = 0x0000 // Disabled
29059#endif
29065class CZ_REQ_RANKING : public Base::NetworkPacket<ZoneSession>
29066{
29067public:
29068 CZ_REQ_RANKING(std::shared_ptr<ZoneSession> s)
29070 {}
29071 virtual ~CZ_REQ_RANKING() {}
29072
29073 void handle(ByteBuffer &&buf);
29074 void deserialize(ByteBuffer &buf);
29075
29076/* Structure */
29077 int16_t _type{ 0 };
29078};
29079
29080enum {
29081#if CLIENT_TYPE == 'M' && ( \
29082 PACKET_VERSION >= 20220000 \
29083 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
29084 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
29085 || PACKET_VERSION >= 20131223)
29086ID_CZ_REQ_READ_RODEX = 0x09ea
29087#elif CLIENT_TYPE == 'R' && ( \
29088 PACKET_VERSION >= 20210000 \
29089 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
29090 || PACKET_VERSION >= 20131223)
29091ID_CZ_REQ_READ_RODEX = 0x09ea
29092#elif CLIENT_TYPE == 'Z' && ( \
29093 PACKET_VERSION >= 20220000 \
29094 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
29095 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
29096 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
29097ID_CZ_REQ_READ_RODEX = 0x09ea
29098#else
29099ID_CZ_REQ_READ_RODEX = 0x0000 // Disabled
29100#endif
29106class CZ_REQ_READ_RODEX : public Base::NetworkPacket<ZoneSession>
29107{
29108public:
29109 CZ_REQ_READ_RODEX(std::shared_ptr<ZoneSession> s)
29111 {}
29113
29114 void handle(ByteBuffer &&buf);
29115 void deserialize(ByteBuffer &buf);
29116
29117/* Structure */
29118};
29119
29120enum {
29121#if CLIENT_TYPE == 'M' && \
29122 PACKET_VERSION >= 20131218
29124#elif CLIENT_TYPE == 'M' && ( \
29125 PACKET_VERSION >= 20220000 \
29126 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
29127 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
29128 || PACKET_VERSION >= 20170228)
29130#elif CLIENT_TYPE == 'R' && \
29131 PACKET_VERSION >= 20131218
29133#elif CLIENT_TYPE == 'R' && ( \
29134 PACKET_VERSION >= 20210000 \
29135 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
29136 || PACKET_VERSION >= 20170228)
29138#elif CLIENT_TYPE == 'Z' && ( \
29139 PACKET_VERSION >= 20220000 \
29140 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
29141 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
29142 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
29144#elif CLIENT_TYPE == 'Z' && \
29145 PACKET_VERSION >= 20180000
29147#else
29148ID_CZ_REQ_REFRESH_RODEX = 0x0000 // Disabled
29149#endif
29156{
29157public:
29158 CZ_REQ_REFRESH_RODEX(std::shared_ptr<ZoneSession> s)
29160 {}
29162
29163 void handle(ByteBuffer &&buf);
29164 void deserialize(ByteBuffer &buf);
29165
29166/* Structure */
29167};
29168
29169enum {
29170#if CLIENT_TYPE == 'A' && \
29171 PACKET_VERSION >= 20040000
29172ID_CZ_REQ_REMAINTIME = 0x01c0
29173#elif CLIENT_TYPE == 'M' && ( \
29174 PACKET_VERSION >= 20220000 \
29175 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
29176 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
29177 || (PACKET_VERSION >= 20030000 && PACKET_VERSION < 20200000))
29178ID_CZ_REQ_REMAINTIME = 0x01c0
29179#elif CLIENT_TYPE == 'R' && ( \
29180 PACKET_VERSION >= 20210000 \
29181 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
29182 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
29183ID_CZ_REQ_REMAINTIME = 0x01c0
29184#elif CLIENT_TYPE == 'S' && \
29185 PACKET_VERSION >= 20030000
29186ID_CZ_REQ_REMAINTIME = 0x01c0
29187#elif CLIENT_TYPE == 'Z' && ( \
29188 PACKET_VERSION >= 20220000 \
29189 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
29190 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
29191 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
29192ID_CZ_REQ_REMAINTIME = 0x01c0
29193#else
29194ID_CZ_REQ_REMAINTIME = 0x0000 // Disabled
29195#endif
29201class CZ_REQ_REMAINTIME : public Base::NetworkPacket<ZoneSession>
29202{
29203public:
29204 CZ_REQ_REMAINTIME(std::shared_ptr<ZoneSession> s)
29206 {}
29208
29209 void handle(ByteBuffer &&buf);
29210 void deserialize(ByteBuffer &buf);
29211
29212/* Structure */
29213};
29214
29215enum {
29216#if CLIENT_TYPE == 'M' && ( \
29217 PACKET_VERSION >= 20220000 \
29218 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
29219 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
29220 || PACKET_VERSION >= 20130327)
29222#elif CLIENT_TYPE == 'R' && ( \
29223 PACKET_VERSION >= 20210000 \
29224 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
29225 || PACKET_VERSION >= 20130327)
29227#elif CLIENT_TYPE == 'Z' && ( \
29228 PACKET_VERSION >= 20220000 \
29229 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
29230 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
29231 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
29233#else
29234ID_CZ_REQ_REMOVE_BARGAIN_SALE_ITEM = 0x0000 // Disabled
29235#endif
29242{
29243public:
29244 CZ_REQ_REMOVE_BARGAIN_SALE_ITEM(std::shared_ptr<ZoneSession> s)
29246 {}
29248
29249 void handle(ByteBuffer &&buf);
29250 void deserialize(ByteBuffer &buf);
29251
29252/* Structure */
29253};
29254
29255enum {
29256#if CLIENT_TYPE == 'M' && ( \
29257 PACKET_VERSION >= 20220000 \
29258 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
29259 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
29260 || PACKET_VERSION >= 20140416)
29262#elif CLIENT_TYPE == 'R' && ( \
29263 PACKET_VERSION >= 20210000 \
29264 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
29265 || PACKET_VERSION >= 20140416)
29267#elif CLIENT_TYPE == 'Z' && ( \
29268 PACKET_VERSION >= 20220000 \
29269 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
29270 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
29271 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
29273#else
29274ID_CZ_REQ_REMOVE_RODEX_ITEM = 0x0000 // Disabled
29275#endif
29282{
29283public:
29284 CZ_REQ_REMOVE_RODEX_ITEM(std::shared_ptr<ZoneSession> s)
29286 {}
29288
29289 void handle(ByteBuffer &&buf);
29290 void deserialize(ByteBuffer &buf);
29291
29292/* Structure */
29293};
29294
29295enum {
29296#if CLIENT_TYPE == 'A' && \
29297 PACKET_VERSION >= 20040000
29298ID_CZ_REQ_ROLE_CHANGE = 0x00e0
29299#elif CLIENT_TYPE == 'M' && ( \
29300 PACKET_VERSION >= 20220000 \
29301 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
29302 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
29303 || (PACKET_VERSION >= 20030000 && PACKET_VERSION < 20200000))
29304ID_CZ_REQ_ROLE_CHANGE = 0x00e0
29305#elif CLIENT_TYPE == 'R' && ( \
29306 PACKET_VERSION >= 20210000 \
29307 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
29308 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
29309ID_CZ_REQ_ROLE_CHANGE = 0x00e0
29310#elif CLIENT_TYPE == 'S' && \
29311 PACKET_VERSION >= 20030000
29312ID_CZ_REQ_ROLE_CHANGE = 0x00e0
29313#elif CLIENT_TYPE == 'Z' && ( \
29314 PACKET_VERSION >= 20220000 \
29315 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
29316 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
29317 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
29318ID_CZ_REQ_ROLE_CHANGE = 0x00e0
29319#else
29320ID_CZ_REQ_ROLE_CHANGE = 0x0000 // Disabled
29321#endif
29327class CZ_REQ_ROLE_CHANGE : public Base::NetworkPacket<ZoneSession>
29328{
29329public:
29330 CZ_REQ_ROLE_CHANGE(std::shared_ptr<ZoneSession> s)
29332 {}
29334
29335 void handle(ByteBuffer &&buf);
29336 void deserialize(ByteBuffer &buf);
29337
29338/* Structure */
29339 int _role{ 0 };
29341};
29342
29343enum {
29344#if CLIENT_TYPE == 'M' && ( \
29345 PACKET_VERSION >= 20220000 \
29346 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
29347 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
29348 || PACKET_VERSION >= 20140605)
29350#elif CLIENT_TYPE == 'R' && ( \
29351 PACKET_VERSION >= 20210000 \
29352 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
29353 || PACKET_VERSION >= 20140605)
29355#elif CLIENT_TYPE == 'Z' && ( \
29356 PACKET_VERSION >= 20220000 \
29357 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
29358 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
29359 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
29361#else
29362ID_CZ_REQ_ROULETTE_INFO = 0x0000 // Disabled
29363#endif
29370{
29371public:
29372 CZ_REQ_ROULETTE_INFO(std::shared_ptr<ZoneSession> s)
29374 {}
29376
29377 void handle(ByteBuffer &&buf);
29378 void deserialize(ByteBuffer &buf);
29379
29380/* Structure */
29381};
29382
29383enum {
29384#if CLIENT_TYPE == 'M' && ( \
29385 PACKET_VERSION >= 20220000 \
29386 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
29387 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
29388 || PACKET_VERSION >= 20110614)
29390#elif CLIENT_TYPE == 'R' && ( \
29391 PACKET_VERSION >= 20210000 \
29392 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
29393 || PACKET_VERSION >= 20110614)
29395#elif CLIENT_TYPE == 'Z' && ( \
29396 PACKET_VERSION >= 20220000 \
29397 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
29398 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
29399 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
29401#else
29402ID_CZ_REQ_SCHEDULER_CASHITEM = 0x0000 // Disabled
29403#endif
29410{
29411public:
29412 CZ_REQ_SCHEDULER_CASHITEM(std::shared_ptr<ZoneSession> s)
29414 {}
29416
29417 void handle(ByteBuffer &&buf);
29418 void deserialize(ByteBuffer &buf);
29419
29420/* Structure */
29421};
29422
29423enum {
29424#if CLIENT_TYPE == 'M' && \
29425 PACKET_VERSION >= 20131230
29426ID_CZ_REQ_SEND_RODEX = 0x09ec
29427#elif CLIENT_TYPE == 'M' && ( \
29428 PACKET_VERSION >= 20220000 \
29429 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
29430 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
29431 || PACKET_VERSION >= 20160330)
29432ID_CZ_REQ_SEND_RODEX = 0x0a6e
29433#elif CLIENT_TYPE == 'R' && \
29434 PACKET_VERSION >= 20131230
29435ID_CZ_REQ_SEND_RODEX = 0x09ec
29436#elif CLIENT_TYPE == 'R' && ( \
29437 PACKET_VERSION >= 20210000 \
29438 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
29439 || PACKET_VERSION >= 20160330)
29440ID_CZ_REQ_SEND_RODEX = 0x0a6e
29441#elif CLIENT_TYPE == 'Z' && ( \
29442 PACKET_VERSION >= 20220000 \
29443 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
29444 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
29445 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
29446ID_CZ_REQ_SEND_RODEX = 0x0a6e
29447#elif CLIENT_TYPE == 'Z' && \
29448 PACKET_VERSION >= 20180000
29449ID_CZ_REQ_SEND_RODEX = 0x09ec
29450#else
29451ID_CZ_REQ_SEND_RODEX = 0x0000 // Disabled
29452#endif
29458class CZ_REQ_SEND_RODEX : public Base::NetworkPacket<ZoneSession>
29459{
29460public:
29461 CZ_REQ_SEND_RODEX(std::shared_ptr<ZoneSession> s)
29463 {}
29465
29466 void handle(ByteBuffer &&buf);
29467 void deserialize(ByteBuffer &buf);
29468
29469/* Structure */
29470};
29471
29472enum {
29473#if CLIENT_TYPE == 'M' && ( \
29474 PACKET_VERSION >= 20220000 \
29475 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
29476 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
29477 || PACKET_VERSION >= 20100824)
29479#elif CLIENT_TYPE == 'R' && ( \
29480 PACKET_VERSION >= 20210000 \
29481 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
29482 || PACKET_VERSION >= 20100824)
29484#elif CLIENT_TYPE == 'Z' && ( \
29485 PACKET_VERSION >= 20220000 \
29486 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
29487 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
29488 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
29490#else
29491ID_CZ_REQ_SE_CASH_TAB_CODE = 0x0000 // Disabled
29492#endif
29499{
29500public:
29501 CZ_REQ_SE_CASH_TAB_CODE(std::shared_ptr<ZoneSession> s)
29503 {}
29505
29506 void handle(ByteBuffer &&buf);
29507 void deserialize(ByteBuffer &buf);
29508
29509/* Structure */
29510};
29511
29512enum {
29513#if CLIENT_TYPE == 'A' && \
29514 PACKET_VERSION >= 20040000
29515ID_CZ_REQ_STATUS = 0x00ba
29516#elif CLIENT_TYPE == 'M' && ( \
29517 PACKET_VERSION >= 20220000 \
29518 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
29519 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
29520 || (PACKET_VERSION >= 20030000 && PACKET_VERSION < 20200000))
29521ID_CZ_REQ_STATUS = 0x00ba
29522#elif CLIENT_TYPE == 'R' && ( \
29523 PACKET_VERSION >= 20210000 \
29524 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
29525 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
29526ID_CZ_REQ_STATUS = 0x00ba
29527#elif CLIENT_TYPE == 'S' && \
29528 PACKET_VERSION >= 20030000
29529ID_CZ_REQ_STATUS = 0x00ba
29530#elif CLIENT_TYPE == 'Z' && ( \
29531 PACKET_VERSION >= 20220000 \
29532 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
29533 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
29534 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
29535ID_CZ_REQ_STATUS = 0x00ba
29536#else
29537ID_CZ_REQ_STATUS = 0x0000 // Disabled
29538#endif
29544class CZ_REQ_STATUS : public Base::NetworkPacket<ZoneSession>
29545{
29546public:
29547 CZ_REQ_STATUS(std::shared_ptr<ZoneSession> s)
29549 {}
29550 virtual ~CZ_REQ_STATUS() {}
29551
29552 void handle(ByteBuffer &&buf);
29553 void deserialize(ByteBuffer &buf);
29554
29555/* Structure */
29557};
29558
29559enum {
29560#if CLIENT_TYPE == 'A' && \
29561 PACKET_VERSION >= 20040816
29562ID_CZ_REQ_STATUS_GM = 0x0213
29563#elif CLIENT_TYPE == 'M' && ( \
29564 PACKET_VERSION >= 20220000 \
29565 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
29566 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
29567 || PACKET_VERSION >= 20040816)
29568ID_CZ_REQ_STATUS_GM = 0x0213
29569#elif CLIENT_TYPE == 'R' && ( \
29570 PACKET_VERSION >= 20210000 \
29571 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
29572 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
29573ID_CZ_REQ_STATUS_GM = 0x0213
29574#elif CLIENT_TYPE == 'S' && \
29575 PACKET_VERSION >= 20040816
29576ID_CZ_REQ_STATUS_GM = 0x0213
29577#elif CLIENT_TYPE == 'Z' && ( \
29578 PACKET_VERSION >= 20220000 \
29579 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
29580 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
29581 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
29582ID_CZ_REQ_STATUS_GM = 0x0213
29583#else
29584ID_CZ_REQ_STATUS_GM = 0x0000 // Disabled
29585#endif
29591class CZ_REQ_STATUS_GM : public Base::NetworkPacket<ZoneSession>
29592{
29593public:
29594 CZ_REQ_STATUS_GM(std::shared_ptr<ZoneSession> s)
29596 {}
29598
29599 void handle(ByteBuffer &&buf);
29600 void deserialize(ByteBuffer &buf);
29601
29602/* Structure */
29604};
29605
29606enum {
29607#if CLIENT_TYPE == 'M' && ( \
29608 PACKET_VERSION >= 20220000 \
29609 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
29610 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
29611 || (PACKET_VERSION >= 20190000 && PACKET_VERSION < 20200000))
29613#elif CLIENT_TYPE == 'R' && ( \
29614 PACKET_VERSION >= 20210000 \
29615 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
29616 || (PACKET_VERSION >= 20190000 && PACKET_VERSION < 20200000))
29618#elif CLIENT_TYPE == 'Z' && ( \
29619 PACKET_VERSION >= 20220000 \
29620 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
29621 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
29622 || (PACKET_VERSION >= 20190000 && PACKET_VERSION < 20200000))
29624#else
29625ID_CZ_REQ_STYLE_CHANGE = 0x0000 // Disabled
29626#endif
29632class CZ_REQ_STYLE_CHANGE : public Base::NetworkPacket<ZoneSession>
29633{
29634public:
29635 CZ_REQ_STYLE_CHANGE(std::shared_ptr<ZoneSession> s)
29637 {}
29639
29640 void handle(ByteBuffer &&buf);
29641 void deserialize(ByteBuffer &buf);
29642
29643/* Structure */
29644};
29645
29646enum {
29647#if CLIENT_TYPE == 'M' && ( \
29648 PACKET_VERSION >= 20220000 \
29649 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
29650 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
29651 || (PACKET_VERSION >= 20190000 && PACKET_VERSION < 20200000))
29653#elif CLIENT_TYPE == 'R' && ( \
29654 PACKET_VERSION >= 20210000 \
29655 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
29656 || (PACKET_VERSION >= 20190000 && PACKET_VERSION < 20200000))
29658#elif CLIENT_TYPE == 'Z' && ( \
29659 PACKET_VERSION >= 20220000 \
29660 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
29661 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
29662 || (PACKET_VERSION >= 20190000 && PACKET_VERSION < 20200000))
29664#else
29665ID_CZ_REQ_STYLE_CHANGE2 = 0x0000 // Disabled
29666#endif
29673{
29674public:
29675 CZ_REQ_STYLE_CHANGE2(std::shared_ptr<ZoneSession> s)
29677 {}
29679
29680 void handle(ByteBuffer &&buf);
29681 void deserialize(ByteBuffer &buf);
29682
29683/* Structure */
29684};
29685
29686enum {
29687#if CLIENT_TYPE == 'A' && \
29688 PACKET_VERSION >= 20040000
29690#elif CLIENT_TYPE == 'M' && ( \
29691 PACKET_VERSION >= 20220000 \
29692 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
29693 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
29694 || (PACKET_VERSION >= 20030000 && PACKET_VERSION < 20200000))
29696#elif CLIENT_TYPE == 'R' && ( \
29697 PACKET_VERSION >= 20210000 \
29698 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
29699 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
29701#elif CLIENT_TYPE == 'S' && \
29702 PACKET_VERSION >= 20030000
29704#elif CLIENT_TYPE == 'Z' && ( \
29705 PACKET_VERSION >= 20220000 \
29706 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
29707 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
29708 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
29710#else
29711ID_CZ_REQ_TAKEOFF_EQUIP = 0x0000 // Disabled
29712#endif
29719{
29720public:
29721 CZ_REQ_TAKEOFF_EQUIP(std::shared_ptr<ZoneSession> s)
29723 {}
29725
29726 void handle(ByteBuffer &&buf);
29727 void deserialize(ByteBuffer &buf);
29728
29729/* Structure */
29730 uint16_t _inventory_index{0};
29731};
29732
29733enum {
29734#if CLIENT_TYPE == 'M' && ( \
29735 PACKET_VERSION >= 20220000 \
29736 || PACKET_VERSION == 20210818 \
29737 || PACKET_VERSION == 20210317)
29739#elif CLIENT_TYPE == 'R' && \
29740 PACKET_VERSION >= 20211103
29742#elif CLIENT_TYPE == 'Z' && ( \
29743 PACKET_VERSION >= 20220000 \
29744 || PACKET_VERSION == 20210818 \
29745 || PACKET_VERSION == 20210317)
29747#else
29748ID_CZ_REQ_TAKEOFF_EQUIP_ALL = 0x0000 // Disabled
29749#endif
29756{
29757public:
29758 CZ_REQ_TAKEOFF_EQUIP_ALL(std::shared_ptr<ZoneSession> s)
29760 {}
29762
29763 void handle(ByteBuffer &&buf);
29764 void deserialize(ByteBuffer &buf);
29765
29766/* Structure */
29767};
29768
29769enum {
29770#if CLIENT_TYPE == 'M' && \
29771 PACKET_VERSION >= 20120712
29773#elif CLIENT_TYPE == 'M' && ( \
29774 PACKET_VERSION == 20190821 \
29775 || PACKET_VERSION == 20190807 \
29776 || PACKET_VERSION == 20190802 \
29777 || PACKET_VERSION == 20190731 \
29778 || PACKET_VERSION == 20190724 \
29779 || PACKET_VERSION == 20190717 \
29780 || PACKET_VERSION == 20190703 \
29781 || PACKET_VERSION == 20190605 \
29782 || PACKET_VERSION == 20190530 \
29783 || PACKET_VERSION == 20190523 \
29784 || PACKET_VERSION == 20190522 \
29785 || PACKET_VERSION == 20190508 \
29786 || PACKET_VERSION == 20190418 \
29787 || PACKET_VERSION == 20190417 \
29788 || PACKET_VERSION == 20190327 \
29789 || PACKET_VERSION == 20190322 \
29790 || PACKET_VERSION == 20190320 \
29791 || PACKET_VERSION == 20190313 \
29792 || PACKET_VERSION == 20190306 \
29793 || PACKET_VERSION == 20190228 \
29794 || PACKET_VERSION == 20190123 \
29795 || PACKET_VERSION == 20190116 \
29796 || (PACKET_VERSION >= 20190000 && PACKET_VERSION < 20190116) \
29797 || PACKET_VERSION == 20181226 \
29798 || PACKET_VERSION == 20181219 \
29799 || PACKET_VERSION == 20181212 \
29800 || PACKET_VERSION == 20181205 \
29801 || PACKET_VERSION == 20181128 \
29802 || PACKET_VERSION == 20181114 \
29803 || PACKET_VERSION == 20181107 \
29804 || PACKET_VERSION == 20181024 \
29805 || PACKET_VERSION == 20180919 \
29806 || PACKET_VERSION == 20180831 \
29807 || PACKET_VERSION == 20180822 \
29808 || PACKET_VERSION >= 20180808 \
29809 || PACKET_VERSION >= 20180718 \
29810 || PACKET_VERSION >= 20180704 \
29811 || PACKET_VERSION >= 20180621 \
29812 || PACKET_VERSION >= 20180620 \
29813 || PACKET_VERSION >= 20180530 \
29814 || PACKET_VERSION >= 20180523 \
29815 || PACKET_VERSION >= 20180516 \
29816 || PACKET_VERSION >= 20180509 \
29817 || PACKET_VERSION >= 20180502 \
29818 || PACKET_VERSION >= 20180425 \
29819 || PACKET_VERSION >= 20180404 \
29820 || PACKET_VERSION >= 20180328 \
29821 || PACKET_VERSION >= 20180321 \
29822 || PACKET_VERSION >= 20180315 \
29823 || PACKET_VERSION >= 20180213 \
29824 || PACKET_VERSION >= 20180207 \
29825 || PACKET_VERSION >= 20180124 \
29826 || PACKET_VERSION >= 20180117 \
29827 || PACKET_VERSION >= 20180103 \
29828 || PACKET_VERSION >= 20171227 \
29829 || PACKET_VERSION >= 20171220 \
29830 || PACKET_VERSION >= 20171129 \
29831 || PACKET_VERSION >= 20171122 \
29832 || PACKET_VERSION >= 20171115 \
29833 || PACKET_VERSION >= 20171108 \
29834 || PACKET_VERSION >= 20171101 \
29835 || PACKET_VERSION >= 20171002 \
29836 || PACKET_VERSION >= 20170913 \
29837 || PACKET_VERSION >= 20170906 \
29838 || PACKET_VERSION >= 20170830 \
29839 || PACKET_VERSION >= 20170823 \
29840 || PACKET_VERSION >= 20170809 \
29841 || PACKET_VERSION >= 20170801 \
29842 || PACKET_VERSION >= 20170719 \
29843 || PACKET_VERSION >= 20170621 \
29844 || PACKET_VERSION >= 20170607 \
29845 || PACKET_VERSION >= 20170531 \
29846 || PACKET_VERSION >= 20170517 \
29847 || PACKET_VERSION >= 20170426 \
29848 || PACKET_VERSION >= 20170419 \
29849 || PACKET_VERSION >= 20170412 \
29850 || PACKET_VERSION >= 20170405 \
29851 || PACKET_VERSION >= 20170329 \
29852 || PACKET_VERSION >= 20170322 \
29853 || PACKET_VERSION >= 20170315 \
29854 || PACKET_VERSION >= 20170308 \
29855 || PACKET_VERSION >= 20170228 \
29856 || PACKET_VERSION >= 20170215 \
29857 || PACKET_VERSION >= 20170201 \
29858 || PACKET_VERSION >= 20170125 \
29859 || PACKET_VERSION >= 20170104 \
29860 || PACKET_VERSION >= 20161221 \
29861 || PACKET_VERSION >= 20161214 \
29862 || PACKET_VERSION >= 20161130 \
29863 || PACKET_VERSION >= 20161026 \
29864 || PACKET_VERSION >= 20161019 \
29865 || PACKET_VERSION >= 20161012 \
29866 || PACKET_VERSION >= 20160928 \
29867 || PACKET_VERSION >= 20160921 \
29868 || PACKET_VERSION >= 20160913 \
29869 || PACKET_VERSION >= 20160907 \
29870 || PACKET_VERSION >= 20160831 \
29871 || PACKET_VERSION >= 20160824 \
29872 || PACKET_VERSION >= 20160817 \
29873 || PACKET_VERSION >= 20160810 \
29874 || PACKET_VERSION >= 20160727 \
29875 || PACKET_VERSION >= 20160720 \
29876 || PACKET_VERSION >= 20160615 \
29877 || PACKET_VERSION >= 20160511 \
29878 || PACKET_VERSION >= 20160427 \
29879 || PACKET_VERSION >= 20160420 \
29880 || PACKET_VERSION >= 20160414 \
29881 || PACKET_VERSION >= 20160406 \
29882 || PACKET_VERSION >= 20160316 \
29883 || PACKET_VERSION >= 20160309 \
29884 || PACKET_VERSION >= 20160302 \
29885 || PACKET_VERSION >= 20160224 \
29886 || PACKET_VERSION >= 20160217 \
29887 || PACKET_VERSION >= 20160211 \
29888 || PACKET_VERSION >= 20160203 \
29889 || PACKET_VERSION >= 20160120 \
29890 || PACKET_VERSION >= 20160113 \
29891 || PACKET_VERSION >= 20160106 \
29892 || PACKET_VERSION >= 20151230 \
29893 || PACKET_VERSION >= 20151209 \
29894 || PACKET_VERSION >= 20151202 \
29895 || PACKET_VERSION >= 20151125 \
29896 || PACKET_VERSION >= 20151021 \
29897 || PACKET_VERSION >= 20151014 \
29898 || PACKET_VERSION >= 20151001 \
29899 || PACKET_VERSION >= 20150916 \
29900 || PACKET_VERSION >= 20150909 \
29901 || PACKET_VERSION >= 20150902 \
29902 || PACKET_VERSION >= 20150826 \
29903 || PACKET_VERSION >= 20150805 \
29904 || PACKET_VERSION >= 20150715 \
29905 || PACKET_VERSION >= 20150708 \
29906 || PACKET_VERSION >= 20150701 \
29907 || PACKET_VERSION >= 20150617 \
29908 || PACKET_VERSION >= 20150610 \
29909 || PACKET_VERSION >= 20150603 \
29910 || PACKET_VERSION >= 20150527 \
29911 || PACKET_VERSION >= 20150520 \
29912 || PACKET_VERSION >= 20150422 \
29913 || PACKET_VERSION >= 20150415 \
29914 || PACKET_VERSION >= 20150408 \
29915 || PACKET_VERSION >= 20150401 \
29916 || PACKET_VERSION >= 20150325 \
29917 || PACKET_VERSION >= 20150311 \
29918 || PACKET_VERSION >= 20150304 \
29919 || PACKET_VERSION >= 20150225 \
29920 || PACKET_VERSION >= 20150217 \
29921 || PACKET_VERSION >= 20150211 \
29922 || PACKET_VERSION >= 20150204 \
29923 || PACKET_VERSION >= 20150128 \
29924 || PACKET_VERSION >= 20150107 \
29925 || PACKET_VERSION >= 20141231 \
29926 || PACKET_VERSION >= 20141217 \
29927 || PACKET_VERSION >= 20141210 \
29928 || PACKET_VERSION >= 20141203 \
29929 || PACKET_VERSION >= 20141126 \
29930 || PACKET_VERSION >= 20141105 \
29931 || PACKET_VERSION >= 20141001 \
29932 || PACKET_VERSION >= 20140917 \
29933 || PACKET_VERSION >= 20140827 \
29934 || PACKET_VERSION >= 20140820 \
29935 || PACKET_VERSION >= 20140806 \
29936 || PACKET_VERSION >= 20140730 \
29937 || PACKET_VERSION >= 20140723 \
29938 || PACKET_VERSION >= 20140709 \
29939 || PACKET_VERSION >= 20140702 \
29940 || PACKET_VERSION >= 20140611 \
29941 || PACKET_VERSION >= 20140605 \
29942 || PACKET_VERSION >= 20140528 \
29943 || PACKET_VERSION >= 20140521 \
29944 || PACKET_VERSION >= 20140514 \
29945 || PACKET_VERSION >= 20140430 \
29946 || PACKET_VERSION >= 20140423 \
29947 || PACKET_VERSION >= 20140416 \
29948 || PACKET_VERSION >= 20140409 \
29949 || PACKET_VERSION >= 20140312 \
29950 || PACKET_VERSION >= 20140219 \
29951 || PACKET_VERSION >= 20140212 \
29952 || PACKET_VERSION >= 20140129 \
29953 || PACKET_VERSION >= 20140122 \
29954 || PACKET_VERSION >= 20140108 \
29955 || PACKET_VERSION >= 20131230 \
29956 || PACKET_VERSION >= 20131211 \
29957 || PACKET_VERSION >= 20131204 \
29958 || PACKET_VERSION >= 20131127 \
29959 || PACKET_VERSION >= 20131106 \
29960 || PACKET_VERSION >= 20131030 \
29961 || PACKET_VERSION >= 20131023 \
29962 || PACKET_VERSION >= 20131008 \
29963 || PACKET_VERSION >= 20130925 \
29964 || PACKET_VERSION >= 20130917 \
29965 || PACKET_VERSION >= 20130911 \
29966 || PACKET_VERSION >= 20130904 \
29967 || PACKET_VERSION >= 20130814 \
29968 || PACKET_VERSION >= 20130731 \
29969 || PACKET_VERSION >= 20130717 \
29970 || PACKET_VERSION >= 20130626 \
29971 || PACKET_VERSION >= 20130618 \
29972 || PACKET_VERSION >= 20130605 \
29973 || PACKET_VERSION >= 20130522 \
29974 || PACKET_VERSION >= 20130417 \
29975 || PACKET_VERSION >= 20130410 \
29976 || PACKET_VERSION >= 20130403 \
29977 || PACKET_VERSION >= 20130320 \
29978 || PACKET_VERSION >= 20130313 \
29979 || PACKET_VERSION >= 20130227 \
29980 || PACKET_VERSION >= 20130206 \
29981 || PACKET_VERSION >= 20130109 \
29982 || PACKET_VERSION >= 20130103 \
29983 || PACKET_VERSION >= 20121227 \
29984 || PACKET_VERSION >= 20121218 \
29985 || PACKET_VERSION >= 20121107 \
29986 || PACKET_VERSION >= 20121031 \
29987 || PACKET_VERSION >= 20121024 \
29988 || PACKET_VERSION >= 20121017 \
29989 || PACKET_VERSION >= 20121010 \
29990 || PACKET_VERSION >= 20120925 \
29991 || PACKET_VERSION >= 20120919 \
29992 || PACKET_VERSION >= 20120911 \
29993 || PACKET_VERSION >= 20120905 \
29994 || PACKET_VERSION >= 20120830 \
29995 || PACKET_VERSION >= 20120814 \
29996 || PACKET_VERSION >= 20120808 \
29997 || PACKET_VERSION >= 20120724 \
29998 || PACKET_VERSION >= 20120716 \
29999 || PACKET_VERSION >= 20120702 \
30000 || PACKET_VERSION >= 20120626 \
30001 || PACKET_VERSION >= 20120618 \
30002 || PACKET_VERSION >= 20120612 \
30003 || PACKET_VERSION >= 20120604 \
30004 || PACKET_VERSION >= 20120529 \
30005 || PACKET_VERSION >= 20120515 \
30006 || PACKET_VERSION >= 20120503 \
30007 || PACKET_VERSION >= 20120424 \
30008 || PACKET_VERSION >= 20120404 \
30009 || PACKET_VERSION >= 20120328 \
30010 || PACKET_VERSION >= 20120314 \
30011 || PACKET_VERSION >= 20120228 \
30012 || PACKET_VERSION >= 20120221 \
30013 || PACKET_VERSION >= 20120214 \
30014 || PACKET_VERSION >= 20120131 \
30015 || PACKET_VERSION >= 20120117 \
30016 || PACKET_VERSION >= 20120103 \
30017 || PACKET_VERSION >= 20111227 \
30018 || PACKET_VERSION >= 20111220 \
30019 || PACKET_VERSION >= 20111213 \
30020 || PACKET_VERSION >= 20111207 \
30021 || PACKET_VERSION >= 20111122 \
30022 || PACKET_VERSION >= 20111114 \
30023 || PACKET_VERSION >= 20111108 \
30024 || PACKET_VERSION >= 20111101 \
30025 || PACKET_VERSION >= 20111025 \
30026 || PACKET_VERSION >= 20111017 \
30027 || PACKET_VERSION >= 20111010 \
30028 || PACKET_VERSION >= 20110928 \
30029 || PACKET_VERSION >= 20110920 \
30030 || PACKET_VERSION >= 20110906 \
30031 || PACKET_VERSION >= 20110831 \
30032 || PACKET_VERSION >= 20110823 \
30033 || PACKET_VERSION >= 20110816 \
30034 || PACKET_VERSION >= 20110809 \
30035 || PACKET_VERSION >= 20110802 \
30036 || PACKET_VERSION >= 20110718 \
30037 || PACKET_VERSION >= 20110711 \
30038 || PACKET_VERSION >= 20110705 \
30039 || PACKET_VERSION >= 20110627 \
30040 || PACKET_VERSION >= 20110620 \
30041 || PACKET_VERSION >= 20110531 \
30042 || PACKET_VERSION >= 20110523 \
30043 || PACKET_VERSION >= 20110517 \
30044 || PACKET_VERSION >= 20110503 \
30045 || PACKET_VERSION >= 20110426 \
30046 || PACKET_VERSION >= 20110419 \
30047 || PACKET_VERSION >= 20110412 \
30048 || PACKET_VERSION >= 20110405 \
30049 || PACKET_VERSION >= 20110329 \
30050 || PACKET_VERSION >= 20110322 \
30051 || PACKET_VERSION >= 20110315 \
30052 || PACKET_VERSION >= 20110308 \
30053 || PACKET_VERSION >= 20110228 \
30054 || PACKET_VERSION >= 20110222 \
30055 || PACKET_VERSION >= 20110208 \
30056 || PACKET_VERSION >= 20110131 \
30057 || PACKET_VERSION >= 20110125 \
30058 || PACKET_VERSION >= 20110118 \
30059 || PACKET_VERSION >= 20110104 \
30060 || PACKET_VERSION >= 20101207 \
30061 || PACKET_VERSION >= 20101130 \
30062 || PACKET_VERSION >= 20101123 \
30063 || PACKET_VERSION >= 20100420 \
30064 || PACKET_VERSION >= 20100309 \
30065 || PACKET_VERSION >= 20100303)
30067#elif CLIENT_TYPE == 'M' && \
30068 PACKET_VERSION >= 20120926
30070#elif CLIENT_TYPE == 'M' && ( \
30071 PACKET_VERSION == 20180131 \
30072 || PACKET_VERSION >= 20160526 \
30073 || PACKET_VERSION >= 20160318 \
30074 || PACKET_VERSION >= 20151029 \
30075 || PACKET_VERSION >= 20151022 \
30076 || PACKET_VERSION >= 20150812 \
30077 || PACKET_VERSION >= 20150226 \
30078 || PACKET_VERSION >= 20141016 \
30079 || PACKET_VERSION >= 20140814 \
30080 || PACKET_VERSION >= 20130107)
30082#elif CLIENT_TYPE == 'M' && \
30083 PACKET_VERSION >= 20130116
30085#elif CLIENT_TYPE == 'M' && ( \
30086 PACKET_VERSION >= 20220000 \
30087 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
30088 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
30089 || PACKET_VERSION >= 20131108 \
30090 || PACKET_VERSION >= 20131107)
30092#elif CLIENT_TYPE == 'M' && ( \
30093 PACKET_VERSION == 20140613 \
30094 || PACKET_VERSION == 20140612)
30096#elif CLIENT_TYPE == 'M' && ( \
30097 PACKET_VERSION == 20150130 \
30098 || PACKET_VERSION == 20150129)
30100#elif CLIENT_TYPE == 'M' && \
30101 PACKET_VERSION >= 20150618
30103#elif CLIENT_TYPE == 'M' && \
30104 PACKET_VERSION >= 20150702
30106#elif CLIENT_TYPE == 'M' && \
30107 PACKET_VERSION >= 20160609
30109#elif CLIENT_TYPE == 'M' && \
30110 PACKET_VERSION >= 20160630
30112#elif CLIENT_TYPE == 'M' && \
30113 PACKET_VERSION >= 20161103
30115#elif CLIENT_TYPE == 'M' && \
30116 PACKET_VERSION >= 20180309
30118#elif CLIENT_TYPE == 'R' && \
30119 PACKET_VERSION >= 20120712
30121#elif CLIENT_TYPE == 'R' && ( \
30122 PACKET_VERSION == 20190821 \
30123 || PACKET_VERSION == 20190807 \
30124 || PACKET_VERSION == 20190802 \
30125 || PACKET_VERSION == 20190731 \
30126 || PACKET_VERSION == 20190724 \
30127 || PACKET_VERSION == 20190717 \
30128 || PACKET_VERSION == 20190703 \
30129 || PACKET_VERSION == 20190626 \
30130 || PACKET_VERSION == 20190605 \
30131 || PACKET_VERSION == 20190530 \
30132 || PACKET_VERSION == 20190522 \
30133 || PACKET_VERSION == 20190508 \
30134 || PACKET_VERSION == 20190418 \
30135 || PACKET_VERSION == 20190417 \
30136 || PACKET_VERSION == 20190327 \
30137 || PACKET_VERSION == 20190322 \
30138 || PACKET_VERSION == 20190320 \
30139 || PACKET_VERSION == 20190306 \
30140 || PACKET_VERSION == 20190228 \
30141 || PACKET_VERSION == 20190123 \
30142 || PACKET_VERSION == 20190116 \
30143 || (PACKET_VERSION >= 20190000 && PACKET_VERSION < 20190116) \
30144 || PACKET_VERSION == 20181226 \
30145 || PACKET_VERSION == 20181219 \
30146 || PACKET_VERSION == 20181212 \
30147 || PACKET_VERSION == 20181205 \
30148 || PACKET_VERSION == 20181128 \
30149 || PACKET_VERSION == 20181121 \
30150 || PACKET_VERSION == 20181114 \
30151 || PACKET_VERSION == 20181107 \
30152 || PACKET_VERSION == 20180822 \
30153 || PACKET_VERSION >= 20180808 \
30154 || PACKET_VERSION >= 20180718 \
30155 || PACKET_VERSION >= 20180711 \
30156 || PACKET_VERSION >= 20180621 \
30157 || PACKET_VERSION >= 20180620 \
30158 || PACKET_VERSION >= 20180612 \
30159 || PACKET_VERSION >= 20180530 \
30160 || PACKET_VERSION >= 20180523 \
30161 || PACKET_VERSION >= 20180516 \
30162 || PACKET_VERSION >= 20180502 \
30163 || PACKET_VERSION >= 20180425 \
30164 || PACKET_VERSION >= 20180404 \
30165 || PACKET_VERSION >= 20180328 \
30166 || PACKET_VERSION >= 20180321 \
30167 || PACKET_VERSION >= 20180213 \
30168 || PACKET_VERSION >= 20180207 \
30169 || PACKET_VERSION >= 20180124 \
30170 || PACKET_VERSION >= 20180117 \
30171 || PACKET_VERSION >= 20180103 \
30172 || PACKET_VERSION >= 20171227 \
30173 || PACKET_VERSION >= 20171220 \
30174 || PACKET_VERSION >= 20171129 \
30175 || PACKET_VERSION >= 20171122 \
30176 || PACKET_VERSION >= 20171115 \
30177 || PACKET_VERSION >= 20171108 \
30178 || PACKET_VERSION >= 20171101 \
30179 || PACKET_VERSION >= 20171002 \
30180 || PACKET_VERSION >= 20170913 \
30181 || PACKET_VERSION >= 20170906 \
30182 || PACKET_VERSION >= 20170830 \
30183 || PACKET_VERSION >= 20170823 \
30184 || PACKET_VERSION >= 20170809 \
30185 || PACKET_VERSION >= 20170801 \
30186 || PACKET_VERSION >= 20170719 \
30187 || PACKET_VERSION >= 20170621 \
30188 || PACKET_VERSION >= 20170607 \
30189 || PACKET_VERSION >= 20170531 \
30190 || PACKET_VERSION >= 20170517 \
30191 || PACKET_VERSION >= 20170426 \
30192 || PACKET_VERSION >= 20170419 \
30193 || PACKET_VERSION >= 20170412 \
30194 || PACKET_VERSION >= 20170405 \
30195 || PACKET_VERSION >= 20170329 \
30196 || PACKET_VERSION >= 20170322 \
30197 || PACKET_VERSION >= 20170315 \
30198 || PACKET_VERSION >= 20170308 \
30199 || PACKET_VERSION >= 20170228 \
30200 || PACKET_VERSION >= 20170215 \
30201 || PACKET_VERSION >= 20170201 \
30202 || PACKET_VERSION >= 20170125 \
30203 || PACKET_VERSION >= 20170104 \
30204 || PACKET_VERSION >= 20161221 \
30205 || PACKET_VERSION >= 20161214 \
30206 || PACKET_VERSION >= 20161130 \
30207 || PACKET_VERSION >= 20161026 \
30208 || PACKET_VERSION >= 20161019 \
30209 || PACKET_VERSION >= 20161012 \
30210 || PACKET_VERSION >= 20160928 \
30211 || PACKET_VERSION >= 20160921 \
30212 || PACKET_VERSION >= 20160913 \
30213 || PACKET_VERSION >= 20160907 \
30214 || PACKET_VERSION >= 20160831 \
30215 || PACKET_VERSION >= 20160824 \
30216 || PACKET_VERSION >= 20160817 \
30217 || PACKET_VERSION >= 20160810 \
30218 || PACKET_VERSION >= 20160727 \
30219 || PACKET_VERSION >= 20160720 \
30220 || PACKET_VERSION >= 20160615 \
30221 || PACKET_VERSION >= 20160511 \
30222 || PACKET_VERSION >= 20160427 \
30223 || PACKET_VERSION >= 20160420 \
30224 || PACKET_VERSION >= 20160414 \
30225 || PACKET_VERSION >= 20160406 \
30226 || PACKET_VERSION >= 20160316 \
30227 || PACKET_VERSION >= 20160309 \
30228 || PACKET_VERSION >= 20160302 \
30229 || PACKET_VERSION >= 20160224 \
30230 || PACKET_VERSION >= 20160217 \
30231 || PACKET_VERSION >= 20160211 \
30232 || PACKET_VERSION >= 20160203 \
30233 || PACKET_VERSION >= 20160120 \
30234 || PACKET_VERSION >= 20160113 \
30235 || PACKET_VERSION >= 20160106 \
30236 || PACKET_VERSION >= 20151230 \
30237 || PACKET_VERSION >= 20151209 \
30238 || PACKET_VERSION >= 20151202 \
30239 || PACKET_VERSION >= 20151125 \
30240 || PACKET_VERSION >= 20151021 \
30241 || PACKET_VERSION >= 20151014 \
30242 || PACKET_VERSION >= 20151001 \
30243 || PACKET_VERSION >= 20150916 \
30244 || PACKET_VERSION >= 20150909 \
30245 || PACKET_VERSION >= 20150902 \
30246 || PACKET_VERSION >= 20150826 \
30247 || PACKET_VERSION >= 20150805 \
30248 || PACKET_VERSION >= 20150715 \
30249 || PACKET_VERSION >= 20150708 \
30250 || PACKET_VERSION >= 20150701 \
30251 || PACKET_VERSION >= 20150617 \
30252 || PACKET_VERSION >= 20150610 \
30253 || PACKET_VERSION >= 20150603 \
30254 || PACKET_VERSION >= 20150527 \
30255 || PACKET_VERSION >= 20150520 \
30256 || PACKET_VERSION >= 20150422 \
30257 || PACKET_VERSION >= 20150415 \
30258 || PACKET_VERSION >= 20150408 \
30259 || PACKET_VERSION >= 20150401 \
30260 || PACKET_VERSION >= 20150325 \
30261 || PACKET_VERSION >= 20150311 \
30262 || PACKET_VERSION >= 20150304 \
30263 || PACKET_VERSION >= 20150225 \
30264 || PACKET_VERSION >= 20150217 \
30265 || PACKET_VERSION >= 20150211 \
30266 || PACKET_VERSION >= 20150204 \
30267 || PACKET_VERSION >= 20150128 \
30268 || PACKET_VERSION >= 20150107 \
30269 || PACKET_VERSION >= 20141231 \
30270 || PACKET_VERSION >= 20141217 \
30271 || PACKET_VERSION >= 20141210 \
30272 || PACKET_VERSION >= 20141203 \
30273 || PACKET_VERSION >= 20141126 \
30274 || PACKET_VERSION >= 20141105 \
30275 || PACKET_VERSION >= 20141001 \
30276 || PACKET_VERSION >= 20140917 \
30277 || PACKET_VERSION >= 20140827 \
30278 || PACKET_VERSION >= 20140820 \
30279 || PACKET_VERSION >= 20140806 \
30280 || PACKET_VERSION >= 20140730 \
30281 || PACKET_VERSION >= 20140723 \
30282 || PACKET_VERSION >= 20140709 \
30283 || PACKET_VERSION >= 20140702 \
30284 || PACKET_VERSION >= 20140611 \
30285 || PACKET_VERSION >= 20140605 \
30286 || PACKET_VERSION >= 20140528 \
30287 || PACKET_VERSION >= 20140521 \
30288 || PACKET_VERSION >= 20140514 \
30289 || PACKET_VERSION >= 20140430 \
30290 || PACKET_VERSION >= 20140423 \
30291 || PACKET_VERSION >= 20140416 \
30292 || PACKET_VERSION >= 20140409 \
30293 || PACKET_VERSION >= 20140312 \
30294 || PACKET_VERSION >= 20140219 \
30295 || PACKET_VERSION >= 20140212 \
30296 || PACKET_VERSION >= 20140129 \
30297 || PACKET_VERSION >= 20140122 \
30298 || PACKET_VERSION >= 20140108 \
30299 || PACKET_VERSION >= 20131230 \
30300 || PACKET_VERSION >= 20131211 \
30301 || PACKET_VERSION >= 20131204 \
30302 || PACKET_VERSION >= 20131127 \
30303 || PACKET_VERSION >= 20131106 \
30304 || PACKET_VERSION >= 20131030 \
30305 || PACKET_VERSION >= 20131023 \
30306 || PACKET_VERSION >= 20131008 \
30307 || PACKET_VERSION >= 20130925 \
30308 || PACKET_VERSION >= 20130917 \
30309 || PACKET_VERSION >= 20130911 \
30310 || PACKET_VERSION >= 20130904 \
30311 || PACKET_VERSION >= 20130814 \
30312 || PACKET_VERSION >= 20130731 \
30313 || PACKET_VERSION >= 20130717 \
30314 || PACKET_VERSION >= 20130626 \
30315 || PACKET_VERSION >= 20130618 \
30316 || PACKET_VERSION >= 20130605 \
30317 || PACKET_VERSION >= 20130522 \
30318 || PACKET_VERSION >= 20130417 \
30319 || PACKET_VERSION >= 20130410 \
30320 || PACKET_VERSION >= 20130403 \
30321 || PACKET_VERSION >= 20130320 \
30322 || PACKET_VERSION >= 20130313 \
30323 || PACKET_VERSION >= 20130227 \
30324 || PACKET_VERSION >= 20130206 \
30325 || PACKET_VERSION >= 20130109 \
30326 || PACKET_VERSION >= 20130103 \
30327 || PACKET_VERSION >= 20121227 \
30328 || PACKET_VERSION >= 20121218 \
30329 || PACKET_VERSION >= 20121107 \
30330 || PACKET_VERSION >= 20121031 \
30331 || PACKET_VERSION >= 20121024 \
30332 || PACKET_VERSION >= 20121017 \
30333 || PACKET_VERSION >= 20121010 \
30334 || PACKET_VERSION >= 20120925 \
30335 || PACKET_VERSION >= 20120919 \
30336 || PACKET_VERSION >= 20120911 \
30337 || PACKET_VERSION >= 20120905 \
30338 || PACKET_VERSION >= 20120830 \
30339 || PACKET_VERSION >= 20120814 \
30340 || PACKET_VERSION >= 20120808 \
30341 || PACKET_VERSION >= 20120724 \
30342 || PACKET_VERSION >= 20120716 \
30343 || PACKET_VERSION >= 20120702 \
30344 || PACKET_VERSION >= 20120626 \
30345 || PACKET_VERSION >= 20120618 \
30346 || PACKET_VERSION >= 20120612 \
30347 || PACKET_VERSION >= 20120601 \
30348 || PACKET_VERSION >= 20120529 \
30349 || PACKET_VERSION >= 20120515 \
30350 || PACKET_VERSION >= 20120502 \
30351 || PACKET_VERSION >= 20120424 \
30352 || PACKET_VERSION >= 20120404 \
30353 || PACKET_VERSION >= 20120328 \
30354 || PACKET_VERSION >= 20120314 \
30355 || PACKET_VERSION >= 20120228 \
30356 || PACKET_VERSION >= 20120221 \
30357 || PACKET_VERSION >= 20120214 \
30358 || PACKET_VERSION >= 20120131 \
30359 || PACKET_VERSION >= 20120117 \
30360 || PACKET_VERSION >= 20120103 \
30361 || PACKET_VERSION >= 20111227 \
30362 || PACKET_VERSION >= 20111220 \
30363 || PACKET_VERSION >= 20111213 \
30364 || PACKET_VERSION >= 20111207 \
30365 || PACKET_VERSION >= 20111122 \
30366 || PACKET_VERSION >= 20111114 \
30367 || PACKET_VERSION >= 20111108 \
30368 || PACKET_VERSION >= 20111101 \
30369 || PACKET_VERSION >= 20111025 \
30370 || PACKET_VERSION >= 20111017 \
30371 || PACKET_VERSION >= 20111010 \
30372 || PACKET_VERSION >= 20110928 \
30373 || PACKET_VERSION >= 20110920 \
30374 || PACKET_VERSION >= 20110906 \
30375 || PACKET_VERSION >= 20110831 \
30376 || PACKET_VERSION >= 20110823 \
30377 || PACKET_VERSION >= 20110104 \
30378 || PACKET_VERSION >= 20100420 \
30379 || PACKET_VERSION >= 20100309 \
30380 || PACKET_VERSION >= 20100303)
30382#elif CLIENT_TYPE == 'R' && \
30383 PACKET_VERSION >= 20120926
30385#elif CLIENT_TYPE == 'R' && ( \
30386 PACKET_VERSION >= 20210000 \
30387 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
30388 || PACKET_VERSION >= 20121011)
30390#elif CLIENT_TYPE == 'R' && \
30391 PACKET_VERSION >= 20130116
30393#elif CLIENT_TYPE == 'R' && ( \
30394 PACKET_VERSION == 20151029 \
30395 || PACKET_VERSION == 20151022 \
30396 || PACKET_VERSION == 20150812 \
30397 || PACKET_VERSION == 20150226 \
30398 || PACKET_VERSION >= 20141016)
30400#elif CLIENT_TYPE == 'R' && \
30401 PACKET_VERSION >= 20150618
30403#elif CLIENT_TYPE == 'R' && \
30404 PACKET_VERSION >= 20160630
30406#elif CLIENT_TYPE == 'R' && \
30407 PACKET_VERSION >= 20161103
30409#elif CLIENT_TYPE == 'Z' && ( \
30410 PACKET_VERSION == 20190814 \
30411 || PACKET_VERSION == 20190724 \
30412 || PACKET_VERSION == 20190717 \
30413 || PACKET_VERSION == 20190710 \
30414 || PACKET_VERSION == 20190709 \
30415 || PACKET_VERSION == 20190605 \
30416 || PACKET_VERSION == 20190530 \
30417 || PACKET_VERSION == 20190515 \
30418 || PACKET_VERSION == 20190508 \
30419 || PACKET_VERSION == 20190502 \
30420 || PACKET_VERSION == 20190424 \
30421 || PACKET_VERSION == 20190410 \
30422 || PACKET_VERSION == 20190403 \
30423 || PACKET_VERSION == 20190313 \
30424 || PACKET_VERSION == 20190227 \
30425 || PACKET_VERSION == 20190213 \
30426 || PACKET_VERSION == 20190117 \
30427 || PACKET_VERSION == 20181226 \
30428 || PACKET_VERSION == 20181219 \
30429 || PACKET_VERSION == 20181212 \
30430 || PACKET_VERSION == 20181128 \
30431 || PACKET_VERSION == 20181120 \
30432 || PACKET_VERSION == 20180928 \
30433 || PACKET_VERSION == 20180912 \
30434 || PACKET_VERSION == 20180829 \
30435 || PACKET_VERSION >= 20180808 \
30436 || PACKET_VERSION >= 20180801 \
30437 || PACKET_VERSION >= 20180711 \
30438 || PACKET_VERSION >= 20180703 \
30439 || PACKET_VERSION >= 20180627 \
30440 || PACKET_VERSION >= 20180509 \
30441 || PACKET_VERSION >= 20180411 \
30442 || PACKET_VERSION >= 20180321 \
30443 || PACKET_VERSION >= 20171113 \
30444 || PACKET_VERSION >= 20171031 \
30445 || PACKET_VERSION >= 20171030 \
30446 || PACKET_VERSION >= 20171027 \
30447 || PACKET_VERSION >= 20171025 \
30448 || PACKET_VERSION >= 20171024 \
30449 || PACKET_VERSION >= 20171023 \
30450 || PACKET_VERSION >= 20171019)
30452#elif CLIENT_TYPE == 'Z' && ( \
30453 PACKET_VERSION == 20180309 \
30454 || PACKET_VERSION == 20180307 \
30455 || PACKET_VERSION == 20171128 \
30456 || PACKET_VERSION == 20171117 \
30457 || PACKET_VERSION == 20171116)
30459#elif CLIENT_TYPE == 'Z' && \
30460 PACKET_VERSION >= 20171122
30462#elif CLIENT_TYPE == 'Z' && ( \
30463 PACKET_VERSION >= 20220000 \
30464 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
30465 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
30466 || PACKET_VERSION >= 20171213 \
30467 || PACKET_VERSION >= 20171212 \
30468 || PACKET_VERSION >= 20171211 \
30469 || PACKET_VERSION >= 20171210 \
30470 || PACKET_VERSION >= 20171209 \
30471 || PACKET_VERSION >= 20171208)
30473#elif CLIENT_TYPE == 'Z' && \
30474 PACKET_VERSION >= 20171221
30476#elif CLIENT_TYPE == 'Z' && \
30477 PACKET_VERSION >= 20171229
30479#else
30480ID_CZ_REQ_TRADE_BUYING_STORE = 0x0000 // Disabled
30481#endif
30488{
30489public:
30490 CZ_REQ_TRADE_BUYING_STORE(std::shared_ptr<ZoneSession> s)
30492 {}
30494
30495 void handle(ByteBuffer &&buf);
30496 void deserialize(ByteBuffer &buf);
30497
30498/* Structure */
30499 int16_t _packet_length{ 0 };
30500 int _account_id{ 0 };
30501 int _store_id{ 0 };
30502 std::vector<cz_req_trade_buying_store_itemlist> _items;
30503};
30504
30505enum {
30506#if CLIENT_TYPE == 'M' && ( \
30507 PACKET_VERSION >= 20220000 \
30508 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
30509 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000))
30511#elif CLIENT_TYPE == 'R' && ( \
30512 PACKET_VERSION >= 20210000 \
30513 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000))
30515#elif CLIENT_TYPE == 'Z' && ( \
30516 PACKET_VERSION >= 20220000 \
30517 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
30518 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000))
30520#else
30521ID_CZ_REQ_UPLOAD_MACRO_DETECTOR = 0x0000 // Disabled
30522#endif
30529{
30530public:
30531 CZ_REQ_UPLOAD_MACRO_DETECTOR(std::shared_ptr<ZoneSession> s)
30533 {}
30535
30536 void handle(ByteBuffer &&buf);
30537 void deserialize(ByteBuffer &buf);
30538
30539/* Structure */
30540};
30541
30542enum {
30543#if CLIENT_TYPE == 'A' && \
30544 PACKET_VERSION >= 20040000
30545ID_CZ_REQ_USER_COUNT = 0x00c1
30546#elif CLIENT_TYPE == 'M' && ( \
30547 PACKET_VERSION >= 20220000 \
30548 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
30549 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
30550 || (PACKET_VERSION >= 20030000 && PACKET_VERSION < 20200000))
30551ID_CZ_REQ_USER_COUNT = 0x00c1
30552#elif CLIENT_TYPE == 'R' && ( \
30553 PACKET_VERSION >= 20210000 \
30554 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
30555 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
30556ID_CZ_REQ_USER_COUNT = 0x00c1
30557#elif CLIENT_TYPE == 'S' && \
30558 PACKET_VERSION >= 20030000
30559ID_CZ_REQ_USER_COUNT = 0x00c1
30560#elif CLIENT_TYPE == 'Z' && ( \
30561 PACKET_VERSION >= 20220000 \
30562 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
30563 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
30564 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
30565ID_CZ_REQ_USER_COUNT = 0x00c1
30566#else
30567ID_CZ_REQ_USER_COUNT = 0x0000 // Disabled
30568#endif
30574class CZ_REQ_USER_COUNT : public Base::NetworkPacket<ZoneSession>
30575{
30576public:
30577 CZ_REQ_USER_COUNT(std::shared_ptr<ZoneSession> s)
30579 {}
30581
30582 void handle(ByteBuffer &&buf);
30583 void deserialize(ByteBuffer &buf);
30584
30585/* Structure */
30586};
30587
30588enum {
30589#if CLIENT_TYPE == 'A' && \
30590 PACKET_VERSION >= 20041129
30592#elif CLIENT_TYPE == 'M' && ( \
30593 PACKET_VERSION >= 20220000 \
30594 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
30595 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
30596 || PACKET_VERSION >= 20041129)
30598#elif CLIENT_TYPE == 'R' && ( \
30599 PACKET_VERSION >= 20210000 \
30600 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
30601 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
30603#elif CLIENT_TYPE == 'S' && \
30604 PACKET_VERSION >= 20041129
30606#elif CLIENT_TYPE == 'Z' && ( \
30607 PACKET_VERSION >= 20220000 \
30608 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
30609 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
30610 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
30612#else
30613ID_CZ_REQ_WEAPONREFINE = 0x0000 // Disabled
30614#endif
30620class CZ_REQ_WEAPONREFINE : public Base::NetworkPacket<ZoneSession>
30621{
30622public:
30623 CZ_REQ_WEAPONREFINE(std::shared_ptr<ZoneSession> s)
30625 {}
30627
30628 void handle(ByteBuffer &&buf);
30629 void deserialize(ByteBuffer &buf);
30630
30631/* Structure */
30633};
30634
30635enum {
30636#if CLIENT_TYPE == 'A' && \
30637 PACKET_VERSION >= 20040000
30638ID_CZ_REQ_WEAR_EQUIP = 0x00a9
30639#elif CLIENT_TYPE == 'M' && ( \
30640 PACKET_VERSION >= 20220000 \
30641 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
30642 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
30643 || (PACKET_VERSION >= 20030000 && PACKET_VERSION < 20200000))
30644ID_CZ_REQ_WEAR_EQUIP = 0x00a9
30645#elif CLIENT_TYPE == 'R' && ( \
30646 PACKET_VERSION >= 20210000 \
30647 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
30648 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
30649ID_CZ_REQ_WEAR_EQUIP = 0x00a9
30650#elif CLIENT_TYPE == 'S' && \
30651 PACKET_VERSION >= 20030000
30652ID_CZ_REQ_WEAR_EQUIP = 0x00a9
30653#elif CLIENT_TYPE == 'Z' && ( \
30654 PACKET_VERSION >= 20220000 \
30655 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
30656 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
30657 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
30658ID_CZ_REQ_WEAR_EQUIP = 0x00a9
30659#else
30660ID_CZ_REQ_WEAR_EQUIP = 0x0000 // Disabled
30661#endif
30667class CZ_REQ_WEAR_EQUIP : public Base::NetworkPacket<ZoneSession>
30668{
30669public:
30670 CZ_REQ_WEAR_EQUIP(std::shared_ptr<ZoneSession> s)
30672 {}
30674
30675 void handle(ByteBuffer &&buf);
30676 void deserialize(ByteBuffer &buf);
30677
30678/* Structure */
30679 uint16_t _inventory_index{0};
30681};
30682
30683enum {
30684#if CLIENT_TYPE == 'M' && ( \
30685 PACKET_VERSION >= 20220000 \
30686 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
30687 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
30688 || PACKET_VERSION >= 20120925)
30690#elif CLIENT_TYPE == 'R' && ( \
30691 PACKET_VERSION >= 20210000 \
30692 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
30693 || PACKET_VERSION >= 20120925)
30695#elif CLIENT_TYPE == 'Z' && ( \
30696 PACKET_VERSION >= 20220000 \
30697 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
30698 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
30699 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
30701#else
30702ID_CZ_REQ_WEAR_EQUIP_V5 = 0x0000 // Disabled
30703#endif
30710{
30711public:
30712 CZ_REQ_WEAR_EQUIP_V5(std::shared_ptr<ZoneSession> s)
30714 {}
30716
30717 void handle(ByteBuffer &&buf);
30718 void deserialize(ByteBuffer &buf);
30719
30720/* Structure */
30723};
30724
30725enum {
30726#if CLIENT_TYPE == 'A' && \
30727 PACKET_VERSION >= 20040000
30729#elif CLIENT_TYPE == 'M' && ( \
30730 PACKET_VERSION >= 20220000 \
30731 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
30732 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
30733 || (PACKET_VERSION >= 20030000 && PACKET_VERSION < 20200000))
30735#elif CLIENT_TYPE == 'R' && ( \
30736 PACKET_VERSION >= 20210000 \
30737 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
30738 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
30740#elif CLIENT_TYPE == 'S' && \
30741 PACKET_VERSION >= 20030000
30743#elif CLIENT_TYPE == 'Z' && ( \
30744 PACKET_VERSION >= 20220000 \
30745 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
30746 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
30747 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
30749#else
30750ID_CZ_REQ_WHISPER_LIST = 0x0000 // Disabled
30751#endif
30757class CZ_REQ_WHISPER_LIST : public Base::NetworkPacket<ZoneSession>
30758{
30759public:
30760 CZ_REQ_WHISPER_LIST(std::shared_ptr<ZoneSession> s)
30762 {}
30764
30765 void handle(ByteBuffer &&buf);
30766 void deserialize(ByteBuffer &buf);
30767
30768/* Structure */
30769};
30770
30771enum {
30772#if CLIENT_TYPE == 'M' && ( \
30773 PACKET_VERSION >= 20220000 \
30774 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
30775 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
30776 || PACKET_VERSION >= 20140326)
30778#elif CLIENT_TYPE == 'R' && ( \
30779 PACKET_VERSION >= 20210000 \
30780 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
30781 || PACKET_VERSION >= 20140326)
30783#elif CLIENT_TYPE == 'Z' && ( \
30784 PACKET_VERSION >= 20220000 \
30785 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
30786 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
30787 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
30789#else
30790ID_CZ_REQ_ZENY_FROM_RODEX = 0x0000 // Disabled
30791#endif
30798{
30799public:
30800 CZ_REQ_ZENY_FROM_RODEX(std::shared_ptr<ZoneSession> s)
30802 {}
30804
30805 void handle(ByteBuffer &&buf);
30806 void deserialize(ByteBuffer &buf);
30807
30808/* Structure */
30809};
30810
30811enum {
30812#if CLIENT_TYPE == 'A' && \
30813 PACKET_VERSION >= 20040000
30814ID_CZ_RESET = 0x0197
30815#elif CLIENT_TYPE == 'M' && ( \
30816 PACKET_VERSION >= 20220000 \
30817 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
30818 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
30819 || (PACKET_VERSION >= 20030000 && PACKET_VERSION < 20200000))
30820ID_CZ_RESET = 0x0197
30821#elif CLIENT_TYPE == 'R' && ( \
30822 PACKET_VERSION >= 20210000 \
30823 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
30824 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
30825ID_CZ_RESET = 0x0197
30826#elif CLIENT_TYPE == 'S' && \
30827 PACKET_VERSION >= 20030000
30828ID_CZ_RESET = 0x0197
30829#elif CLIENT_TYPE == 'Z' && ( \
30830 PACKET_VERSION >= 20220000 \
30831 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
30832 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
30833 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
30834ID_CZ_RESET = 0x0197
30835#else
30836ID_CZ_RESET = 0x0000 // Disabled
30837#endif
30843class CZ_RESET : public Base::NetworkPacket<ZoneSession>
30844{
30845public:
30846 CZ_RESET(std::shared_ptr<ZoneSession> s)
30848 {}
30849 virtual ~CZ_RESET() {}
30850
30851 void handle(ByteBuffer &&buf);
30852 void deserialize(ByteBuffer &buf);
30853
30854/* Structure */
30855};
30856
30857enum {
30858#if CLIENT_TYPE == 'A' && \
30859 PACKET_VERSION >= 20040000
30860ID_CZ_RESTART = 0x00b2
30861#elif CLIENT_TYPE == 'M' && ( \
30862 PACKET_VERSION >= 20220000 \
30863 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
30864 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
30865 || (PACKET_VERSION >= 20030000 && PACKET_VERSION < 20200000))
30866ID_CZ_RESTART = 0x00b2
30867#elif CLIENT_TYPE == 'R' && ( \
30868 PACKET_VERSION >= 20210000 \
30869 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
30870 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
30871ID_CZ_RESTART = 0x00b2
30872#elif CLIENT_TYPE == 'S' && \
30873 PACKET_VERSION >= 20030000
30874ID_CZ_RESTART = 0x00b2
30875#elif CLIENT_TYPE == 'Z' && ( \
30876 PACKET_VERSION >= 20220000 \
30877 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
30878 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
30879 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
30880ID_CZ_RESTART = 0x00b2
30881#else
30882ID_CZ_RESTART = 0x0000 // Disabled
30883#endif
30889class CZ_RESTART : public Base::NetworkPacket<ZoneSession>
30890{
30891public:
30892 CZ_RESTART(std::shared_ptr<ZoneSession> s)
30894 {}
30895 virtual ~CZ_RESTART() {}
30896
30897 void handle(ByteBuffer &&buf);
30898 void deserialize(ByteBuffer &buf);
30899
30900/* Structure */
30901 uint8_t _type{0}; // 0 = Respawn, 1 = Char-select.
30902};
30903
30904enum {
30905#if CLIENT_TYPE == 'M' && \
30906 PACKET_VERSION >= 20120712
30908#elif CLIENT_TYPE == 'M' && ( \
30909 PACKET_VERSION == 20190821 \
30910 || PACKET_VERSION == 20190807 \
30911 || PACKET_VERSION == 20190802 \
30912 || PACKET_VERSION == 20190731 \
30913 || PACKET_VERSION == 20190724 \
30914 || PACKET_VERSION == 20190717 \
30915 || PACKET_VERSION == 20190703 \
30916 || PACKET_VERSION == 20190605 \
30917 || PACKET_VERSION == 20190530 \
30918 || PACKET_VERSION == 20190523 \
30919 || PACKET_VERSION == 20190522 \
30920 || PACKET_VERSION == 20190508 \
30921 || PACKET_VERSION == 20190418 \
30922 || PACKET_VERSION == 20190417 \
30923 || PACKET_VERSION == 20190327 \
30924 || PACKET_VERSION == 20190322 \
30925 || PACKET_VERSION == 20190320 \
30926 || PACKET_VERSION == 20190313 \
30927 || PACKET_VERSION == 20190306 \
30928 || PACKET_VERSION == 20190228 \
30929 || PACKET_VERSION == 20190123 \
30930 || PACKET_VERSION == 20190116 \
30931 || (PACKET_VERSION >= 20190000 && PACKET_VERSION < 20190116) \
30932 || PACKET_VERSION == 20181226 \
30933 || PACKET_VERSION == 20181219 \
30934 || PACKET_VERSION == 20181212 \
30935 || PACKET_VERSION == 20181205 \
30936 || PACKET_VERSION == 20181128 \
30937 || PACKET_VERSION == 20181114 \
30938 || PACKET_VERSION == 20181107 \
30939 || PACKET_VERSION == 20181024 \
30940 || PACKET_VERSION == 20180919 \
30941 || PACKET_VERSION == 20180831 \
30942 || PACKET_VERSION == 20180822 \
30943 || PACKET_VERSION >= 20180808 \
30944 || PACKET_VERSION >= 20180718 \
30945 || PACKET_VERSION >= 20180704 \
30946 || PACKET_VERSION >= 20180621 \
30947 || PACKET_VERSION >= 20180620 \
30948 || PACKET_VERSION >= 20180530 \
30949 || PACKET_VERSION >= 20180523 \
30950 || PACKET_VERSION >= 20180516 \
30951 || PACKET_VERSION >= 20180509 \
30952 || PACKET_VERSION >= 20180502 \
30953 || PACKET_VERSION >= 20180425 \
30954 || PACKET_VERSION >= 20180404 \
30955 || PACKET_VERSION >= 20180328 \
30956 || PACKET_VERSION >= 20180321 \
30957 || PACKET_VERSION >= 20180315 \
30958 || PACKET_VERSION >= 20180103 \
30959 || PACKET_VERSION >= 20171108 \
30960 || PACKET_VERSION >= 20171101 \
30961 || PACKET_VERSION >= 20170920 \
30962 || PACKET_VERSION >= 20170913 \
30963 || PACKET_VERSION >= 20170816 \
30964 || PACKET_VERSION >= 20170809 \
30965 || PACKET_VERSION >= 20170412 \
30966 || PACKET_VERSION >= 20170405 \
30967 || PACKET_VERSION >= 20170104 \
30968 || PACKET_VERSION >= 20161123 \
30969 || PACKET_VERSION >= 20161116 \
30970 || PACKET_VERSION >= 20161109 \
30971 || PACKET_VERSION >= 20160907 \
30972 || PACKET_VERSION >= 20160831 \
30973 || PACKET_VERSION >= 20160504 \
30974 || PACKET_VERSION >= 20160427 \
30975 || PACKET_VERSION >= 20160211 \
30976 || PACKET_VERSION >= 20160203 \
30977 || PACKET_VERSION >= 20160106 \
30978 || PACKET_VERSION >= 20150923 \
30979 || PACKET_VERSION >= 20150916 \
30980 || PACKET_VERSION >= 20150722 \
30981 || PACKET_VERSION >= 20150715 \
30982 || PACKET_VERSION >= 20150617 \
30983 || PACKET_VERSION >= 20150610 \
30984 || PACKET_VERSION >= 20150422 \
30985 || PACKET_VERSION >= 20150415 \
30986 || PACKET_VERSION >= 20150225 \
30987 || PACKET_VERSION >= 20150217 \
30988 || PACKET_VERSION >= 20150211 \
30989 || PACKET_VERSION >= 20150107 \
30990 || PACKET_VERSION >= 20141231 \
30991 || PACKET_VERSION >= 20141224 \
30992 || PACKET_VERSION >= 20141119 \
30993 || PACKET_VERSION >= 20141112 \
30994 || PACKET_VERSION >= 20141029 \
30995 || PACKET_VERSION >= 20141022 \
30996 || PACKET_VERSION >= 20140827 \
30997 || PACKET_VERSION >= 20140820 \
30998 || PACKET_VERSION >= 20140709 \
30999 || PACKET_VERSION >= 20140702 \
31000 || PACKET_VERSION >= 20140625 \
31001 || PACKET_VERSION >= 20140611 \
31002 || PACKET_VERSION >= 20140508 \
31003 || PACKET_VERSION >= 20140108 \
31004 || PACKET_VERSION >= 20131030 \
31005 || PACKET_VERSION >= 20131023 \
31006 || PACKET_VERSION >= 20130911 \
31007 || PACKET_VERSION >= 20130904 \
31008 || PACKET_VERSION >= 20130821 \
31009 || PACKET_VERSION >= 20130814 \
31010 || PACKET_VERSION >= 20130403 \
31011 || PACKET_VERSION >= 20130327 \
31012 || PACKET_VERSION >= 20130103 \
31013 || PACKET_VERSION >= 20121010 \
31014 || PACKET_VERSION >= 20120925 \
31015 || PACKET_VERSION >= 20120905 \
31016 || PACKET_VERSION >= 20120830 \
31017 || PACKET_VERSION >= 20120801 \
31018 || PACKET_VERSION >= 20120724 \
31019 || PACKET_VERSION >= 20120103 \
31020 || PACKET_VERSION >= 20111213 \
31021 || PACKET_VERSION >= 20111207 \
31022 || PACKET_VERSION >= 20111122 \
31023 || PACKET_VERSION >= 20111108 \
31024 || PACKET_VERSION >= 20111101 \
31025 || PACKET_VERSION >= 20111025 \
31026 || PACKET_VERSION >= 20111010 \
31027 || PACKET_VERSION >= 20111004 \
31028 || PACKET_VERSION >= 20110906 \
31029 || PACKET_VERSION >= 20110831 \
31030 || PACKET_VERSION >= 20110823 \
31031 || PACKET_VERSION >= 20110809 \
31032 || PACKET_VERSION >= 20110802 \
31033 || PACKET_VERSION >= 20110726 \
31034 || PACKET_VERSION >= 20110718 \
31035 || PACKET_VERSION >= 20110711 \
31036 || PACKET_VERSION >= 20110705 \
31037 || PACKET_VERSION >= 20110627 \
31038 || PACKET_VERSION >= 20110503 \
31039 || PACKET_VERSION >= 20110426 \
31040 || PACKET_VERSION >= 20110412 \
31041 || PACKET_VERSION >= 20110405 \
31042 || PACKET_VERSION >= 20110315 \
31043 || PACKET_VERSION >= 20110308 \
31044 || PACKET_VERSION >= 20110222 \
31045 || PACKET_VERSION >= 20110215 \
31046 || PACKET_VERSION >= 20110208 \
31047 || PACKET_VERSION >= 20110131 \
31048 || PACKET_VERSION >= 20110125 \
31049 || PACKET_VERSION >= 20110118 \
31050 || PACKET_VERSION >= 20110104 \
31051 || PACKET_VERSION >= 20101228 \
31052 || PACKET_VERSION >= 20101214 \
31053 || PACKET_VERSION >= 20101207 \
31054 || PACKET_VERSION >= 20101130 \
31055 || PACKET_VERSION >= 20101123 \
31056 || PACKET_VERSION >= 20100601)
31058#elif CLIENT_TYPE == 'M' && \
31059 PACKET_VERSION >= 20120926
31061#elif CLIENT_TYPE == 'M' && ( \
31062 PACKET_VERSION == 20160609 \
31063 || PACKET_VERSION == 20160526 \
31064 || PACKET_VERSION == 20160318 \
31065 || PACKET_VERSION == 20151029 \
31066 || PACKET_VERSION == 20151022 \
31067 || PACKET_VERSION == 20150812 \
31068 || PACKET_VERSION == 20150618 \
31069 || PACKET_VERSION >= 20141016 \
31070 || PACKET_VERSION >= 20130107)
31072#elif CLIENT_TYPE == 'M' && \
31073 PACKET_VERSION >= 20130116
31075#elif CLIENT_TYPE == 'M' && ( \
31076 PACKET_VERSION >= 20220000 \
31077 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
31078 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
31079 || PACKET_VERSION >= 20131108 \
31080 || PACKET_VERSION >= 20131107)
31082#elif CLIENT_TYPE == 'M' && ( \
31083 PACKET_VERSION == 20140613 \
31084 || PACKET_VERSION == 20140612)
31086#elif CLIENT_TYPE == 'M' && \
31087 PACKET_VERSION >= 20140814
31089#elif CLIENT_TYPE == 'M' && ( \
31090 PACKET_VERSION == 20150130 \
31091 || PACKET_VERSION == 20150129)
31093#elif CLIENT_TYPE == 'M' && ( \
31094 PACKET_VERSION == 20180131 \
31095 || PACKET_VERSION >= 20150226)
31097#elif CLIENT_TYPE == 'M' && \
31098 PACKET_VERSION >= 20150702
31100#elif CLIENT_TYPE == 'M' && \
31101 PACKET_VERSION >= 20160630
31103#elif CLIENT_TYPE == 'M' && \
31104 PACKET_VERSION >= 20161103
31106#elif CLIENT_TYPE == 'M' && \
31107 PACKET_VERSION >= 20180309
31109#elif CLIENT_TYPE == 'R' && \
31110 PACKET_VERSION >= 20120712
31112#elif CLIENT_TYPE == 'R' && ( \
31113 PACKET_VERSION == 20190821 \
31114 || PACKET_VERSION == 20190807 \
31115 || PACKET_VERSION == 20190802 \
31116 || PACKET_VERSION == 20190731 \
31117 || PACKET_VERSION == 20190724 \
31118 || PACKET_VERSION == 20190717 \
31119 || PACKET_VERSION == 20190703 \
31120 || PACKET_VERSION == 20190626 \
31121 || PACKET_VERSION == 20190605 \
31122 || PACKET_VERSION == 20190530 \
31123 || PACKET_VERSION == 20190522 \
31124 || PACKET_VERSION == 20190508 \
31125 || PACKET_VERSION == 20190418 \
31126 || PACKET_VERSION == 20190417 \
31127 || PACKET_VERSION == 20190327 \
31128 || PACKET_VERSION == 20190322 \
31129 || PACKET_VERSION == 20190320 \
31130 || PACKET_VERSION == 20190306 \
31131 || PACKET_VERSION == 20190228 \
31132 || PACKET_VERSION == 20190123 \
31133 || PACKET_VERSION == 20190116 \
31134 || (PACKET_VERSION >= 20190000 && PACKET_VERSION < 20190116) \
31135 || PACKET_VERSION == 20181226 \
31136 || PACKET_VERSION == 20181219 \
31137 || PACKET_VERSION == 20181212 \
31138 || PACKET_VERSION == 20181205 \
31139 || PACKET_VERSION == 20181128 \
31140 || PACKET_VERSION == 20181121 \
31141 || PACKET_VERSION == 20181114 \
31142 || PACKET_VERSION == 20181107 \
31143 || PACKET_VERSION == 20180822 \
31144 || PACKET_VERSION >= 20180808 \
31145 || PACKET_VERSION >= 20180718 \
31146 || PACKET_VERSION >= 20180711 \
31147 || PACKET_VERSION >= 20180621 \
31148 || PACKET_VERSION >= 20180620 \
31149 || PACKET_VERSION >= 20180612 \
31150 || PACKET_VERSION >= 20180530 \
31151 || PACKET_VERSION >= 20180523 \
31152 || PACKET_VERSION >= 20180516 \
31153 || PACKET_VERSION >= 20180502 \
31154 || PACKET_VERSION >= 20180425 \
31155 || PACKET_VERSION >= 20180404 \
31156 || PACKET_VERSION >= 20180328 \
31157 || PACKET_VERSION >= 20180321 \
31158 || PACKET_VERSION >= 20180103 \
31159 || PACKET_VERSION >= 20171108 \
31160 || PACKET_VERSION >= 20171101 \
31161 || PACKET_VERSION >= 20170920 \
31162 || PACKET_VERSION >= 20170913 \
31163 || PACKET_VERSION >= 20170816 \
31164 || PACKET_VERSION >= 20170809 \
31165 || PACKET_VERSION >= 20170412 \
31166 || PACKET_VERSION >= 20170405 \
31167 || PACKET_VERSION >= 20170104 \
31168 || PACKET_VERSION >= 20161123 \
31169 || PACKET_VERSION >= 20161116 \
31170 || PACKET_VERSION >= 20161109 \
31171 || PACKET_VERSION >= 20160907 \
31172 || PACKET_VERSION >= 20160831 \
31173 || PACKET_VERSION >= 20160504 \
31174 || PACKET_VERSION >= 20160427 \
31175 || PACKET_VERSION >= 20160211 \
31176 || PACKET_VERSION >= 20160203 \
31177 || PACKET_VERSION >= 20160106 \
31178 || PACKET_VERSION >= 20150923 \
31179 || PACKET_VERSION >= 20150916 \
31180 || PACKET_VERSION >= 20150722 \
31181 || PACKET_VERSION >= 20150715 \
31182 || PACKET_VERSION >= 20150617 \
31183 || PACKET_VERSION >= 20150610 \
31184 || PACKET_VERSION >= 20150422 \
31185 || PACKET_VERSION >= 20150415 \
31186 || PACKET_VERSION >= 20150217 \
31187 || PACKET_VERSION >= 20150211 \
31188 || PACKET_VERSION >= 20150107 \
31189 || PACKET_VERSION >= 20141231 \
31190 || PACKET_VERSION >= 20141223 \
31191 || PACKET_VERSION >= 20141119 \
31192 || PACKET_VERSION >= 20141112 \
31193 || PACKET_VERSION >= 20141029 \
31194 || PACKET_VERSION >= 20141022 \
31195 || PACKET_VERSION >= 20140827 \
31196 || PACKET_VERSION >= 20140820 \
31197 || PACKET_VERSION >= 20140709 \
31198 || PACKET_VERSION >= 20140702 \
31199 || PACKET_VERSION >= 20140625 \
31200 || PACKET_VERSION >= 20140508 \
31201 || PACKET_VERSION >= 20140108 \
31202 || PACKET_VERSION >= 20131223 \
31203 || PACKET_VERSION >= 20131030 \
31204 || PACKET_VERSION >= 20131023 \
31205 || PACKET_VERSION >= 20130911 \
31206 || PACKET_VERSION >= 20130904 \
31207 || PACKET_VERSION >= 20130821 \
31208 || PACKET_VERSION >= 20130814 \
31209 || PACKET_VERSION >= 20130403 \
31210 || PACKET_VERSION >= 20130327 \
31211 || PACKET_VERSION >= 20130103 \
31212 || PACKET_VERSION >= 20121010 \
31213 || PACKET_VERSION >= 20120925 \
31214 || PACKET_VERSION >= 20120905 \
31215 || PACKET_VERSION >= 20120830 \
31216 || PACKET_VERSION >= 20120801 \
31217 || PACKET_VERSION >= 20120724 \
31218 || PACKET_VERSION >= 20120103 \
31219 || PACKET_VERSION >= 20111213 \
31220 || PACKET_VERSION >= 20111207 \
31221 || PACKET_VERSION >= 20111122 \
31222 || PACKET_VERSION >= 20111108 \
31223 || PACKET_VERSION >= 20111101 \
31224 || PACKET_VERSION >= 20111025 \
31225 || PACKET_VERSION >= 20111010 \
31226 || PACKET_VERSION >= 20111004 \
31227 || PACKET_VERSION >= 20110906 \
31228 || PACKET_VERSION >= 20110831 \
31229 || PACKET_VERSION >= 20110823 \
31230 || PACKET_VERSION >= 20110816 \
31231 || PACKET_VERSION >= 20110104 \
31232 || PACKET_VERSION >= 20100601)
31234#elif CLIENT_TYPE == 'R' && \
31235 PACKET_VERSION >= 20120926
31237#elif CLIENT_TYPE == 'R' && \
31238 PACKET_VERSION >= 20121011
31240#elif CLIENT_TYPE == 'R' && \
31241 PACKET_VERSION >= 20130116
31243#elif CLIENT_TYPE == 'R' && ( \
31244 PACKET_VERSION == 20151029 \
31245 || PACKET_VERSION == 20151022 \
31246 || PACKET_VERSION == 20150812 \
31247 || PACKET_VERSION == 20150618 \
31248 || PACKET_VERSION >= 20141016)
31250#elif CLIENT_TYPE == 'R' && ( \
31251 PACKET_VERSION >= 20210000 \
31252 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
31253 || PACKET_VERSION >= 20150226)
31255#elif CLIENT_TYPE == 'R' && \
31256 PACKET_VERSION >= 20160630
31258#elif CLIENT_TYPE == 'R' && \
31259 PACKET_VERSION >= 20161103
31261#elif CLIENT_TYPE == 'Z' && ( \
31262 PACKET_VERSION == 20190814 \
31263 || PACKET_VERSION == 20190724 \
31264 || PACKET_VERSION == 20190717 \
31265 || PACKET_VERSION == 20190710 \
31266 || PACKET_VERSION == 20190709 \
31267 || PACKET_VERSION == 20190605 \
31268 || PACKET_VERSION == 20190530 \
31269 || PACKET_VERSION == 20190515 \
31270 || PACKET_VERSION == 20190508 \
31271 || PACKET_VERSION == 20190502 \
31272 || PACKET_VERSION == 20190424 \
31273 || PACKET_VERSION == 20190410 \
31274 || PACKET_VERSION == 20190403 \
31275 || PACKET_VERSION == 20190313 \
31276 || PACKET_VERSION == 20190227 \
31277 || PACKET_VERSION == 20190213 \
31278 || PACKET_VERSION == 20190117 \
31279 || PACKET_VERSION == 20181226 \
31280 || PACKET_VERSION == 20181219 \
31281 || PACKET_VERSION == 20181212 \
31282 || PACKET_VERSION == 20181128 \
31283 || PACKET_VERSION == 20181120 \
31284 || PACKET_VERSION == 20180928 \
31285 || PACKET_VERSION == 20180912 \
31286 || PACKET_VERSION == 20180829 \
31287 || PACKET_VERSION >= 20180808 \
31288 || PACKET_VERSION >= 20180801 \
31289 || PACKET_VERSION >= 20180711 \
31290 || PACKET_VERSION >= 20180703 \
31291 || PACKET_VERSION >= 20180627 \
31292 || PACKET_VERSION >= 20180509 \
31293 || PACKET_VERSION >= 20180411 \
31294 || PACKET_VERSION >= 20180321 \
31295 || PACKET_VERSION >= 20171221 \
31296 || PACKET_VERSION >= 20171113 \
31297 || PACKET_VERSION >= 20171031 \
31298 || PACKET_VERSION >= 20171030 \
31299 || PACKET_VERSION >= 20171027 \
31300 || PACKET_VERSION >= 20171025 \
31301 || PACKET_VERSION >= 20171024 \
31302 || PACKET_VERSION >= 20171023 \
31303 || PACKET_VERSION >= 20171019)
31305#elif CLIENT_TYPE == 'Z' && ( \
31306 PACKET_VERSION == 20180309 \
31307 || PACKET_VERSION == 20180307 \
31308 || PACKET_VERSION == 20171128 \
31309 || PACKET_VERSION == 20171122 \
31310 || PACKET_VERSION == 20171117 \
31311 || PACKET_VERSION == 20171116)
31313#elif CLIENT_TYPE == 'Z' && ( \
31314 PACKET_VERSION >= 20220000 \
31315 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
31316 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
31317 || PACKET_VERSION >= 20171213 \
31318 || PACKET_VERSION >= 20171212 \
31319 || PACKET_VERSION >= 20171211 \
31320 || PACKET_VERSION >= 20171210 \
31321 || PACKET_VERSION >= 20171209 \
31322 || PACKET_VERSION >= 20171208)
31324#elif CLIENT_TYPE == 'Z' && \
31325 PACKET_VERSION >= 20171229
31327#else
31328ID_CZ_SEARCH_STORE_INFO = 0x0000 // Disabled
31329#endif
31336{
31337public:
31338 CZ_SEARCH_STORE_INFO(std::shared_ptr<ZoneSession> s)
31340 {}
31342
31343 void handle(ByteBuffer &&buf);
31344 void deserialize(ByteBuffer &buf);
31345
31346/* Structure */
31347};
31348
31349enum {
31350#if CLIENT_TYPE == 'M' && \
31351 PACKET_VERSION >= 20120712
31353#elif CLIENT_TYPE == 'M' && ( \
31354 PACKET_VERSION == 20190821 \
31355 || PACKET_VERSION == 20190807 \
31356 || PACKET_VERSION == 20190802 \
31357 || PACKET_VERSION == 20190731 \
31358 || PACKET_VERSION == 20190724 \
31359 || PACKET_VERSION == 20190717 \
31360 || PACKET_VERSION == 20190703 \
31361 || PACKET_VERSION == 20190605 \
31362 || PACKET_VERSION == 20190530 \
31363 || PACKET_VERSION == 20190523 \
31364 || PACKET_VERSION == 20190522 \
31365 || PACKET_VERSION == 20190508 \
31366 || PACKET_VERSION == 20190418 \
31367 || PACKET_VERSION == 20190417 \
31368 || PACKET_VERSION == 20190327 \
31369 || PACKET_VERSION == 20190322 \
31370 || PACKET_VERSION == 20190320 \
31371 || PACKET_VERSION == 20190313 \
31372 || PACKET_VERSION == 20190306 \
31373 || PACKET_VERSION == 20190228 \
31374 || PACKET_VERSION == 20190123 \
31375 || PACKET_VERSION == 20190116 \
31376 || (PACKET_VERSION >= 20190000 && PACKET_VERSION < 20190116) \
31377 || PACKET_VERSION == 20181226 \
31378 || PACKET_VERSION == 20181219 \
31379 || PACKET_VERSION == 20181212 \
31380 || PACKET_VERSION == 20181205 \
31381 || PACKET_VERSION == 20181128 \
31382 || PACKET_VERSION == 20181114 \
31383 || PACKET_VERSION == 20181107 \
31384 || PACKET_VERSION == 20181024 \
31385 || PACKET_VERSION == 20180919 \
31386 || PACKET_VERSION == 20180831 \
31387 || PACKET_VERSION == 20180822 \
31388 || PACKET_VERSION >= 20180808 \
31389 || PACKET_VERSION >= 20180718 \
31390 || PACKET_VERSION >= 20180704 \
31391 || PACKET_VERSION >= 20180621 \
31392 || PACKET_VERSION >= 20180620 \
31393 || PACKET_VERSION >= 20180530 \
31394 || PACKET_VERSION >= 20180523 \
31395 || PACKET_VERSION >= 20180516 \
31396 || PACKET_VERSION >= 20180509 \
31397 || PACKET_VERSION >= 20180502 \
31398 || PACKET_VERSION >= 20180425 \
31399 || PACKET_VERSION >= 20180404 \
31400 || PACKET_VERSION >= 20180328 \
31401 || PACKET_VERSION >= 20180321 \
31402 || PACKET_VERSION >= 20180307 \
31403 || PACKET_VERSION >= 20180221 \
31404 || PACKET_VERSION >= 20180213 \
31405 || PACKET_VERSION >= 20180117 \
31406 || PACKET_VERSION >= 20180103 \
31407 || PACKET_VERSION >= 20171227 \
31408 || PACKET_VERSION >= 20171220 \
31409 || PACKET_VERSION >= 20171206 \
31410 || PACKET_VERSION >= 20171129 \
31411 || PACKET_VERSION >= 20171122 \
31412 || PACKET_VERSION >= 20171115 \
31413 || PACKET_VERSION >= 20171108 \
31414 || PACKET_VERSION >= 20171101 \
31415 || PACKET_VERSION >= 20171002 \
31416 || PACKET_VERSION >= 20170913 \
31417 || PACKET_VERSION >= 20170906 \
31418 || PACKET_VERSION >= 20170830 \
31419 || PACKET_VERSION >= 20170823 \
31420 || PACKET_VERSION >= 20170809 \
31421 || PACKET_VERSION >= 20170801 \
31422 || PACKET_VERSION >= 20170719 \
31423 || PACKET_VERSION >= 20170628 \
31424 || PACKET_VERSION >= 20170621 \
31425 || PACKET_VERSION >= 20170614 \
31426 || PACKET_VERSION >= 20170517 \
31427 || PACKET_VERSION >= 20170426 \
31428 || PACKET_VERSION >= 20170419 \
31429 || PACKET_VERSION >= 20170412 \
31430 || PACKET_VERSION >= 20170322 \
31431 || PACKET_VERSION >= 20170315 \
31432 || PACKET_VERSION >= 20170308 \
31433 || PACKET_VERSION >= 20170228 \
31434 || PACKET_VERSION >= 20170222 \
31435 || PACKET_VERSION >= 20170215 \
31436 || PACKET_VERSION >= 20170201 \
31437 || PACKET_VERSION >= 20170125 \
31438 || PACKET_VERSION >= 20170104 \
31439 || PACKET_VERSION >= 20161221 \
31440 || PACKET_VERSION >= 20161130 \
31441 || PACKET_VERSION >= 20161109 \
31442 || PACKET_VERSION >= 20161102 \
31443 || PACKET_VERSION >= 20161026 \
31444 || PACKET_VERSION >= 20161019 \
31445 || PACKET_VERSION >= 20161012 \
31446 || PACKET_VERSION >= 20161005 \
31447 || PACKET_VERSION >= 20160928 \
31448 || PACKET_VERSION >= 20160921 \
31449 || PACKET_VERSION >= 20160913 \
31450 || PACKET_VERSION >= 20160907 \
31451 || PACKET_VERSION >= 20160831 \
31452 || PACKET_VERSION >= 20160824 \
31453 || PACKET_VERSION >= 20160817 \
31454 || PACKET_VERSION >= 20160810 \
31455 || PACKET_VERSION >= 20160727 \
31456 || PACKET_VERSION >= 20160720 \
31457 || PACKET_VERSION >= 20160713 \
31458 || PACKET_VERSION >= 20160615 \
31459 || PACKET_VERSION >= 20160511 \
31460 || PACKET_VERSION >= 20160504 \
31461 || PACKET_VERSION >= 20160414 \
31462 || PACKET_VERSION >= 20160406 \
31463 || PACKET_VERSION >= 20160316 \
31464 || PACKET_VERSION >= 20160309 \
31465 || PACKET_VERSION >= 20160302 \
31466 || PACKET_VERSION >= 20160224 \
31467 || PACKET_VERSION >= 20160217 \
31468 || PACKET_VERSION >= 20160120 \
31469 || PACKET_VERSION >= 20160113 \
31470 || PACKET_VERSION >= 20160106 \
31471 || PACKET_VERSION >= 20151230 \
31472 || PACKET_VERSION >= 20151209 \
31473 || PACKET_VERSION >= 20151202 \
31474 || PACKET_VERSION >= 20151125 \
31475 || PACKET_VERSION >= 20151021 \
31476 || PACKET_VERSION >= 20151014 \
31477 || PACKET_VERSION >= 20151001 \
31478 || PACKET_VERSION >= 20150916 \
31479 || PACKET_VERSION >= 20150909 \
31480 || PACKET_VERSION >= 20150826 \
31481 || PACKET_VERSION >= 20150805 \
31482 || PACKET_VERSION >= 20150715 \
31483 || PACKET_VERSION >= 20150708 \
31484 || PACKET_VERSION >= 20150701 \
31485 || PACKET_VERSION >= 20150617 \
31486 || PACKET_VERSION >= 20150603 \
31487 || PACKET_VERSION >= 20150527 \
31488 || PACKET_VERSION >= 20150520 \
31489 || PACKET_VERSION >= 20150422 \
31490 || PACKET_VERSION >= 20150318 \
31491 || PACKET_VERSION >= 20150311 \
31492 || PACKET_VERSION >= 20150225 \
31493 || PACKET_VERSION >= 20150217 \
31494 || PACKET_VERSION >= 20150211 \
31495 || PACKET_VERSION >= 20150204 \
31496 || PACKET_VERSION >= 20150128 \
31497 || PACKET_VERSION >= 20150107 \
31498 || PACKET_VERSION >= 20141231 \
31499 || PACKET_VERSION >= 20141217 \
31500 || PACKET_VERSION >= 20141210 \
31501 || PACKET_VERSION >= 20141203 \
31502 || PACKET_VERSION >= 20141126 \
31503 || PACKET_VERSION >= 20141105 \
31504 || PACKET_VERSION >= 20141029 \
31505 || PACKET_VERSION >= 20141022 \
31506 || PACKET_VERSION >= 20141008 \
31507 || PACKET_VERSION >= 20141001 \
31508 || PACKET_VERSION >= 20140924 \
31509 || PACKET_VERSION >= 20140917 \
31510 || PACKET_VERSION >= 20140827 \
31511 || PACKET_VERSION >= 20140820 \
31512 || PACKET_VERSION >= 20140806 \
31513 || PACKET_VERSION >= 20140730 \
31514 || PACKET_VERSION >= 20140723 \
31515 || PACKET_VERSION >= 20140618 \
31516 || PACKET_VERSION >= 20140611 \
31517 || PACKET_VERSION >= 20140605 \
31518 || PACKET_VERSION >= 20140528 \
31519 || PACKET_VERSION >= 20140521 \
31520 || PACKET_VERSION >= 20140514 \
31521 || PACKET_VERSION >= 20140508 \
31522 || PACKET_VERSION >= 20140430 \
31523 || PACKET_VERSION >= 20140423 \
31524 || PACKET_VERSION >= 20140416 \
31525 || PACKET_VERSION >= 20140312 \
31526 || PACKET_VERSION >= 20140305 \
31527 || PACKET_VERSION >= 20140226 \
31528 || PACKET_VERSION >= 20140219 \
31529 || PACKET_VERSION >= 20140212 \
31530 || PACKET_VERSION >= 20140129 \
31531 || PACKET_VERSION >= 20140122 \
31532 || PACKET_VERSION >= 20140108 \
31533 || PACKET_VERSION >= 20131230 \
31534 || PACKET_VERSION >= 20131211 \
31535 || PACKET_VERSION >= 20131204 \
31536 || PACKET_VERSION >= 20131127 \
31537 || PACKET_VERSION >= 20131106 \
31538 || PACKET_VERSION >= 20131030 \
31539 || PACKET_VERSION >= 20131008 \
31540 || PACKET_VERSION >= 20130925 \
31541 || PACKET_VERSION >= 20130917 \
31542 || PACKET_VERSION >= 20130911 \
31543 || PACKET_VERSION >= 20130904 \
31544 || PACKET_VERSION >= 20130814 \
31545 || PACKET_VERSION >= 20130807 \
31546 || PACKET_VERSION >= 20130717 \
31547 || PACKET_VERSION >= 20130626 \
31548 || PACKET_VERSION >= 20130618 \
31549 || PACKET_VERSION >= 20130605 \
31550 || PACKET_VERSION >= 20130522 \
31551 || PACKET_VERSION >= 20130417 \
31552 || PACKET_VERSION >= 20130410 \
31553 || PACKET_VERSION >= 20130403 \
31554 || PACKET_VERSION >= 20130320 \
31555 || PACKET_VERSION >= 20130313 \
31556 || PACKET_VERSION >= 20130227 \
31557 || PACKET_VERSION >= 20130206 \
31558 || PACKET_VERSION >= 20130130 \
31559 || PACKET_VERSION >= 20130121 \
31560 || PACKET_VERSION >= 20130115 \
31561 || PACKET_VERSION >= 20130109 \
31562 || PACKET_VERSION >= 20130103 \
31563 || PACKET_VERSION >= 20121227 \
31564 || PACKET_VERSION >= 20121218 \
31565 || PACKET_VERSION >= 20121121 \
31566 || PACKET_VERSION >= 20121114 \
31567 || PACKET_VERSION >= 20121107 \
31568 || PACKET_VERSION >= 20121031 \
31569 || PACKET_VERSION >= 20121024 \
31570 || PACKET_VERSION >= 20121017 \
31571 || PACKET_VERSION >= 20121010 \
31572 || PACKET_VERSION >= 20120925 \
31573 || PACKET_VERSION >= 20120919 \
31574 || PACKET_VERSION >= 20120905 \
31575 || PACKET_VERSION >= 20120830 \
31576 || PACKET_VERSION >= 20120814 \
31577 || PACKET_VERSION >= 20120808 \
31578 || PACKET_VERSION >= 20120724 \
31579 || PACKET_VERSION >= 20120716 \
31580 || PACKET_VERSION >= 20120702 \
31581 || PACKET_VERSION >= 20120626 \
31582 || PACKET_VERSION >= 20120612 \
31583 || PACKET_VERSION >= 20120604 \
31584 || PACKET_VERSION >= 20120529 \
31585 || PACKET_VERSION >= 20120515 \
31586 || PACKET_VERSION >= 20120503 \
31587 || PACKET_VERSION >= 20120424 \
31588 || PACKET_VERSION >= 20120404 \
31589 || PACKET_VERSION >= 20120328 \
31590 || PACKET_VERSION >= 20120307 \
31591 || PACKET_VERSION >= 20120228 \
31592 || PACKET_VERSION >= 20120221 \
31593 || PACKET_VERSION >= 20120214 \
31594 || PACKET_VERSION >= 20120207 \
31595 || PACKET_VERSION >= 20120131 \
31596 || PACKET_VERSION >= 20120120 \
31597 || PACKET_VERSION >= 20120117 \
31598 || PACKET_VERSION >= 20120110 \
31599 || PACKET_VERSION >= 20120103 \
31600 || PACKET_VERSION >= 20111227 \
31601 || PACKET_VERSION >= 20111220 \
31602 || PACKET_VERSION >= 20111213 \
31603 || PACKET_VERSION >= 20111122 \
31604 || PACKET_VERSION >= 20111108 \
31605 || PACKET_VERSION >= 20111101 \
31606 || PACKET_VERSION >= 20111025 \
31607 || PACKET_VERSION >= 20111010 \
31608 || PACKET_VERSION >= 20110928 \
31609 || PACKET_VERSION >= 20110920 \
31610 || PACKET_VERSION >= 20110906 \
31611 || PACKET_VERSION >= 20110823 \
31612 || PACKET_VERSION >= 20110809 \
31613 || PACKET_VERSION >= 20110802 \
31614 || PACKET_VERSION >= 20110726 \
31615 || PACKET_VERSION >= 20110718 \
31616 || PACKET_VERSION >= 20110711 \
31617 || PACKET_VERSION >= 20110705 \
31618 || PACKET_VERSION >= 20110620 \
31619 || PACKET_VERSION >= 20110517 \
31620 || PACKET_VERSION >= 20110511 \
31621 || PACKET_VERSION >= 20110503 \
31622 || PACKET_VERSION >= 20110426 \
31623 || PACKET_VERSION >= 20110419 \
31624 || PACKET_VERSION >= 20110412 \
31625 || PACKET_VERSION >= 20110405 \
31626 || PACKET_VERSION >= 20110329 \
31627 || PACKET_VERSION >= 20110315 \
31628 || PACKET_VERSION >= 20110308 \
31629 || PACKET_VERSION >= 20110228 \
31630 || PACKET_VERSION >= 20110208 \
31631 || PACKET_VERSION >= 20110131 \
31632 || PACKET_VERSION >= 20110125 \
31633 || PACKET_VERSION >= 20110118 \
31634 || PACKET_VERSION >= 20110104 \
31635 || PACKET_VERSION >= 20101228 \
31636 || PACKET_VERSION >= 20101214 \
31637 || PACKET_VERSION >= 20101207 \
31638 || PACKET_VERSION >= 20101130 \
31639 || PACKET_VERSION >= 20100608 \
31640 || PACKET_VERSION >= 20100601)
31642#elif CLIENT_TYPE == 'M' && \
31643 PACKET_VERSION >= 20120926
31645#elif CLIENT_TYPE == 'M' && ( \
31646 PACKET_VERSION == 20160609 \
31647 || PACKET_VERSION == 20160526 \
31648 || PACKET_VERSION == 20160318 \
31649 || PACKET_VERSION == 20151029 \
31650 || PACKET_VERSION == 20151022 \
31651 || PACKET_VERSION == 20150812 \
31652 || PACKET_VERSION == 20150618 \
31653 || PACKET_VERSION >= 20141016 \
31654 || PACKET_VERSION >= 20140814 \
31655 || PACKET_VERSION >= 20130107)
31657#elif CLIENT_TYPE == 'M' && ( \
31658 PACKET_VERSION == 20160630 \
31659 || PACKET_VERSION >= 20130116)
31661#elif CLIENT_TYPE == 'M' && ( \
31662 PACKET_VERSION == 20131108 \
31663 || PACKET_VERSION == 20131107)
31665#elif CLIENT_TYPE == 'M' && ( \
31666 PACKET_VERSION >= 20220000 \
31667 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
31668 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
31669 || PACKET_VERSION >= 20140613 \
31670 || PACKET_VERSION >= 20140612)
31672#elif CLIENT_TYPE == 'M' && ( \
31673 PACKET_VERSION == 20150130 \
31674 || PACKET_VERSION == 20150129)
31676#elif CLIENT_TYPE == 'M' && ( \
31677 PACKET_VERSION == 20180131 \
31678 || PACKET_VERSION >= 20150226)
31680#elif CLIENT_TYPE == 'M' && \
31681 PACKET_VERSION >= 20150702
31683#elif CLIENT_TYPE == 'M' && \
31684 PACKET_VERSION >= 20161103
31686#elif CLIENT_TYPE == 'M' && \
31687 PACKET_VERSION >= 20180309
31689#elif CLIENT_TYPE == 'R' && ( \
31690 PACKET_VERSION >= 20210000 \
31691 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
31692 || PACKET_VERSION >= 20121011 \
31693 || PACKET_VERSION >= 20120712)
31695#elif CLIENT_TYPE == 'R' && ( \
31696 PACKET_VERSION == 20190821 \
31697 || PACKET_VERSION == 20190807 \
31698 || PACKET_VERSION == 20190802 \
31699 || PACKET_VERSION == 20190731 \
31700 || PACKET_VERSION == 20190724 \
31701 || PACKET_VERSION == 20190717 \
31702 || PACKET_VERSION == 20190703 \
31703 || PACKET_VERSION == 20190626 \
31704 || PACKET_VERSION == 20190605 \
31705 || PACKET_VERSION == 20190530 \
31706 || PACKET_VERSION == 20190522 \
31707 || PACKET_VERSION == 20190508 \
31708 || PACKET_VERSION == 20190418 \
31709 || PACKET_VERSION == 20190417 \
31710 || PACKET_VERSION == 20190327 \
31711 || PACKET_VERSION == 20190322 \
31712 || PACKET_VERSION == 20190320 \
31713 || PACKET_VERSION == 20190306 \
31714 || PACKET_VERSION == 20190228 \
31715 || PACKET_VERSION == 20190123 \
31716 || PACKET_VERSION == 20190116 \
31717 || (PACKET_VERSION >= 20190000 && PACKET_VERSION < 20190116) \
31718 || PACKET_VERSION == 20181226 \
31719 || PACKET_VERSION == 20181219 \
31720 || PACKET_VERSION == 20181212 \
31721 || PACKET_VERSION == 20181205 \
31722 || PACKET_VERSION == 20181128 \
31723 || PACKET_VERSION == 20181121 \
31724 || PACKET_VERSION == 20181114 \
31725 || PACKET_VERSION == 20181107 \
31726 || PACKET_VERSION == 20180822 \
31727 || PACKET_VERSION >= 20180808 \
31728 || PACKET_VERSION >= 20180718 \
31729 || PACKET_VERSION >= 20180711 \
31730 || PACKET_VERSION >= 20180621 \
31731 || PACKET_VERSION >= 20180620 \
31732 || PACKET_VERSION >= 20180612 \
31733 || PACKET_VERSION >= 20180530 \
31734 || PACKET_VERSION >= 20180523 \
31735 || PACKET_VERSION >= 20180516 \
31736 || PACKET_VERSION >= 20180502 \
31737 || PACKET_VERSION >= 20180425 \
31738 || PACKET_VERSION >= 20180404 \
31739 || PACKET_VERSION >= 20180328 \
31740 || PACKET_VERSION >= 20180307 \
31741 || PACKET_VERSION >= 20180221 \
31742 || PACKET_VERSION >= 20180213 \
31743 || PACKET_VERSION >= 20180117 \
31744 || PACKET_VERSION >= 20180103 \
31745 || PACKET_VERSION >= 20171227 \
31746 || PACKET_VERSION >= 20171220 \
31747 || PACKET_VERSION >= 20171206 \
31748 || PACKET_VERSION >= 20171129 \
31749 || PACKET_VERSION >= 20171122 \
31750 || PACKET_VERSION >= 20171115 \
31751 || PACKET_VERSION >= 20171108 \
31752 || PACKET_VERSION >= 20171101 \
31753 || PACKET_VERSION >= 20171002 \
31754 || PACKET_VERSION >= 20170913 \
31755 || PACKET_VERSION >= 20170906 \
31756 || PACKET_VERSION >= 20170830 \
31757 || PACKET_VERSION >= 20170823 \
31758 || PACKET_VERSION >= 20170809 \
31759 || PACKET_VERSION >= 20170801 \
31760 || PACKET_VERSION >= 20170719 \
31761 || PACKET_VERSION >= 20170628 \
31762 || PACKET_VERSION >= 20170621 \
31763 || PACKET_VERSION >= 20170614 \
31764 || PACKET_VERSION >= 20170517 \
31765 || PACKET_VERSION >= 20170426 \
31766 || PACKET_VERSION >= 20170419 \
31767 || PACKET_VERSION >= 20170412 \
31768 || PACKET_VERSION >= 20170322 \
31769 || PACKET_VERSION >= 20170315 \
31770 || PACKET_VERSION >= 20170308 \
31771 || PACKET_VERSION >= 20170228 \
31772 || PACKET_VERSION >= 20170222 \
31773 || PACKET_VERSION >= 20170215 \
31774 || PACKET_VERSION >= 20170201 \
31775 || PACKET_VERSION >= 20170125 \
31776 || PACKET_VERSION >= 20170104 \
31777 || PACKET_VERSION >= 20161221 \
31778 || PACKET_VERSION >= 20161130 \
31779 || PACKET_VERSION >= 20161109 \
31780 || PACKET_VERSION >= 20161102 \
31781 || PACKET_VERSION >= 20161026 \
31782 || PACKET_VERSION >= 20161019 \
31783 || PACKET_VERSION >= 20161012 \
31784 || PACKET_VERSION >= 20161005 \
31785 || PACKET_VERSION >= 20160928 \
31786 || PACKET_VERSION >= 20160921 \
31787 || PACKET_VERSION >= 20160913 \
31788 || PACKET_VERSION >= 20160907 \
31789 || PACKET_VERSION >= 20160831 \
31790 || PACKET_VERSION >= 20160824 \
31791 || PACKET_VERSION >= 20160817 \
31792 || PACKET_VERSION >= 20160810 \
31793 || PACKET_VERSION >= 20160727 \
31794 || PACKET_VERSION >= 20160720 \
31795 || PACKET_VERSION >= 20160713 \
31796 || PACKET_VERSION >= 20160615 \
31797 || PACKET_VERSION >= 20160511 \
31798 || PACKET_VERSION >= 20160504 \
31799 || PACKET_VERSION >= 20160414 \
31800 || PACKET_VERSION >= 20160406 \
31801 || PACKET_VERSION >= 20160316 \
31802 || PACKET_VERSION >= 20160309 \
31803 || PACKET_VERSION >= 20160302 \
31804 || PACKET_VERSION >= 20160224 \
31805 || PACKET_VERSION >= 20160217 \
31806 || PACKET_VERSION >= 20160120 \
31807 || PACKET_VERSION >= 20160113 \
31808 || PACKET_VERSION >= 20160106 \
31809 || PACKET_VERSION >= 20151230 \
31810 || PACKET_VERSION >= 20151209 \
31811 || PACKET_VERSION >= 20151202 \
31812 || PACKET_VERSION >= 20151125 \
31813 || PACKET_VERSION >= 20151021 \
31814 || PACKET_VERSION >= 20151014 \
31815 || PACKET_VERSION >= 20151001 \
31816 || PACKET_VERSION >= 20150916 \
31817 || PACKET_VERSION >= 20150909 \
31818 || PACKET_VERSION >= 20150826 \
31819 || PACKET_VERSION >= 20150805 \
31820 || PACKET_VERSION >= 20150715 \
31821 || PACKET_VERSION >= 20150708 \
31822 || PACKET_VERSION >= 20150701 \
31823 || PACKET_VERSION >= 20150617 \
31824 || PACKET_VERSION >= 20150603 \
31825 || PACKET_VERSION >= 20150527 \
31826 || PACKET_VERSION >= 20150520 \
31827 || PACKET_VERSION >= 20150422 \
31828 || PACKET_VERSION >= 20150318 \
31829 || PACKET_VERSION >= 20150311 \
31830 || PACKET_VERSION >= 20150217 \
31831 || PACKET_VERSION >= 20150211 \
31832 || PACKET_VERSION >= 20150204 \
31833 || PACKET_VERSION >= 20150128 \
31834 || PACKET_VERSION >= 20150107 \
31835 || PACKET_VERSION >= 20141231 \
31836 || PACKET_VERSION >= 20141217 \
31837 || PACKET_VERSION >= 20141210 \
31838 || PACKET_VERSION >= 20141203 \
31839 || PACKET_VERSION >= 20141126 \
31840 || PACKET_VERSION >= 20141105 \
31841 || PACKET_VERSION >= 20141029 \
31842 || PACKET_VERSION >= 20141022 \
31843 || PACKET_VERSION >= 20141008 \
31844 || PACKET_VERSION >= 20141001 \
31845 || PACKET_VERSION >= 20140924 \
31846 || PACKET_VERSION >= 20140917 \
31847 || PACKET_VERSION >= 20140827 \
31848 || PACKET_VERSION >= 20140820 \
31849 || PACKET_VERSION >= 20140806 \
31850 || PACKET_VERSION >= 20140730 \
31851 || PACKET_VERSION >= 20140723 \
31852 || PACKET_VERSION >= 20140618 \
31853 || PACKET_VERSION >= 20140611 \
31854 || PACKET_VERSION >= 20140605 \
31855 || PACKET_VERSION >= 20140528 \
31856 || PACKET_VERSION >= 20140521 \
31857 || PACKET_VERSION >= 20140514 \
31858 || PACKET_VERSION >= 20140508 \
31859 || PACKET_VERSION >= 20140430 \
31860 || PACKET_VERSION >= 20140423 \
31861 || PACKET_VERSION >= 20140416 \
31862 || PACKET_VERSION >= 20140312 \
31863 || PACKET_VERSION >= 20140305 \
31864 || PACKET_VERSION >= 20140226 \
31865 || PACKET_VERSION >= 20140219 \
31866 || PACKET_VERSION >= 20140212 \
31867 || PACKET_VERSION >= 20140129 \
31868 || PACKET_VERSION >= 20140122 \
31869 || PACKET_VERSION >= 20140108 \
31870 || PACKET_VERSION >= 20131230 \
31871 || PACKET_VERSION >= 20131223 \
31872 || PACKET_VERSION >= 20131211 \
31873 || PACKET_VERSION >= 20131204 \
31874 || PACKET_VERSION >= 20131127 \
31875 || PACKET_VERSION >= 20131106 \
31876 || PACKET_VERSION >= 20131030 \
31877 || PACKET_VERSION >= 20131008 \
31878 || PACKET_VERSION >= 20130925 \
31879 || PACKET_VERSION >= 20130917 \
31880 || PACKET_VERSION >= 20130911 \
31881 || PACKET_VERSION >= 20130904 \
31882 || PACKET_VERSION >= 20130814 \
31883 || PACKET_VERSION >= 20130807 \
31884 || PACKET_VERSION >= 20130717 \
31885 || PACKET_VERSION >= 20130626 \
31886 || PACKET_VERSION >= 20130618 \
31887 || PACKET_VERSION >= 20130605 \
31888 || PACKET_VERSION >= 20130522 \
31889 || PACKET_VERSION >= 20130417 \
31890 || PACKET_VERSION >= 20130410 \
31891 || PACKET_VERSION >= 20130403 \
31892 || PACKET_VERSION >= 20130320 \
31893 || PACKET_VERSION >= 20130313 \
31894 || PACKET_VERSION >= 20130227 \
31895 || PACKET_VERSION >= 20130206 \
31896 || PACKET_VERSION >= 20130130 \
31897 || PACKET_VERSION >= 20130121 \
31898 || PACKET_VERSION >= 20130115 \
31899 || PACKET_VERSION >= 20130109 \
31900 || PACKET_VERSION >= 20130103 \
31901 || PACKET_VERSION >= 20121227 \
31902 || PACKET_VERSION >= 20121218 \
31903 || PACKET_VERSION >= 20121121 \
31904 || PACKET_VERSION >= 20121114 \
31905 || PACKET_VERSION >= 20121107 \
31906 || PACKET_VERSION >= 20121031 \
31907 || PACKET_VERSION >= 20121024 \
31908 || PACKET_VERSION >= 20121017 \
31909 || PACKET_VERSION >= 20121010 \
31910 || PACKET_VERSION >= 20120925 \
31911 || PACKET_VERSION >= 20120919 \
31912 || PACKET_VERSION >= 20120905 \
31913 || PACKET_VERSION >= 20120830 \
31914 || PACKET_VERSION >= 20120814 \
31915 || PACKET_VERSION >= 20120808 \
31916 || PACKET_VERSION >= 20120724 \
31917 || PACKET_VERSION >= 20120716 \
31918 || PACKET_VERSION >= 20120702 \
31919 || PACKET_VERSION >= 20120626 \
31920 || PACKET_VERSION >= 20120612 \
31921 || PACKET_VERSION >= 20120601 \
31922 || PACKET_VERSION >= 20120529 \
31923 || PACKET_VERSION >= 20120515 \
31924 || PACKET_VERSION >= 20120502 \
31925 || PACKET_VERSION >= 20120424 \
31926 || PACKET_VERSION >= 20120404 \
31927 || PACKET_VERSION >= 20120328 \
31928 || PACKET_VERSION >= 20120307 \
31929 || PACKET_VERSION >= 20120228 \
31930 || PACKET_VERSION >= 20120221 \
31931 || PACKET_VERSION >= 20120214 \
31932 || PACKET_VERSION >= 20120207 \
31933 || PACKET_VERSION >= 20120131 \
31934 || PACKET_VERSION >= 20120120 \
31935 || PACKET_VERSION >= 20120117 \
31936 || PACKET_VERSION >= 20120110 \
31937 || PACKET_VERSION >= 20120103 \
31938 || PACKET_VERSION >= 20111227 \
31939 || PACKET_VERSION >= 20111220 \
31940 || PACKET_VERSION >= 20111213 \
31941 || PACKET_VERSION >= 20111122 \
31942 || PACKET_VERSION >= 20111108 \
31943 || PACKET_VERSION >= 20111101 \
31944 || PACKET_VERSION >= 20111025 \
31945 || PACKET_VERSION >= 20111010 \
31946 || PACKET_VERSION >= 20110928 \
31947 || PACKET_VERSION >= 20110920 \
31948 || PACKET_VERSION >= 20110906 \
31949 || PACKET_VERSION >= 20110823 \
31950 || PACKET_VERSION >= 20110816 \
31951 || PACKET_VERSION >= 20110104 \
31952 || PACKET_VERSION >= 20100608 \
31953 || PACKET_VERSION >= 20100601)
31955#elif CLIENT_TYPE == 'R' && \
31956 PACKET_VERSION >= 20120926
31958#elif CLIENT_TYPE == 'R' && ( \
31959 PACKET_VERSION == 20160630 \
31960 || PACKET_VERSION >= 20130116)
31962#elif CLIENT_TYPE == 'R' && ( \
31963 PACKET_VERSION == 20151029 \
31964 || PACKET_VERSION == 20151022 \
31965 || PACKET_VERSION == 20150812 \
31966 || PACKET_VERSION == 20150618 \
31967 || PACKET_VERSION >= 20141016)
31969#elif CLIENT_TYPE == 'R' && \
31970 PACKET_VERSION >= 20150226
31972#elif CLIENT_TYPE == 'R' && \
31973 PACKET_VERSION >= 20161103
31975#elif CLIENT_TYPE == 'Z' && ( \
31976 PACKET_VERSION == 20190814 \
31977 || PACKET_VERSION == 20190724 \
31978 || PACKET_VERSION == 20190717 \
31979 || PACKET_VERSION == 20190710 \
31980 || PACKET_VERSION == 20190709 \
31981 || PACKET_VERSION == 20190605 \
31982 || PACKET_VERSION == 20190530 \
31983 || PACKET_VERSION == 20190515 \
31984 || PACKET_VERSION == 20190508 \
31985 || PACKET_VERSION == 20190502 \
31986 || PACKET_VERSION == 20190424 \
31987 || PACKET_VERSION == 20190410 \
31988 || PACKET_VERSION == 20190403 \
31989 || PACKET_VERSION == 20190313 \
31990 || PACKET_VERSION == 20190227 \
31991 || PACKET_VERSION == 20190213 \
31992 || PACKET_VERSION == 20190117 \
31993 || PACKET_VERSION == 20181226 \
31994 || PACKET_VERSION == 20181219 \
31995 || PACKET_VERSION == 20181212 \
31996 || PACKET_VERSION == 20181128 \
31997 || PACKET_VERSION == 20181120 \
31998 || PACKET_VERSION == 20180928 \
31999 || PACKET_VERSION == 20180912 \
32000 || PACKET_VERSION == 20180829 \
32001 || PACKET_VERSION >= 20180808 \
32002 || PACKET_VERSION >= 20180801 \
32003 || PACKET_VERSION >= 20180711 \
32004 || PACKET_VERSION >= 20180703 \
32005 || PACKET_VERSION >= 20180627 \
32006 || PACKET_VERSION >= 20180509 \
32007 || PACKET_VERSION >= 20180411 \
32008 || PACKET_VERSION >= 20180321 \
32009 || PACKET_VERSION >= 20171113 \
32010 || PACKET_VERSION >= 20171031 \
32011 || PACKET_VERSION >= 20171030 \
32012 || PACKET_VERSION >= 20171027 \
32013 || PACKET_VERSION >= 20171025 \
32014 || PACKET_VERSION >= 20171024 \
32015 || PACKET_VERSION >= 20171023 \
32016 || PACKET_VERSION >= 20171019)
32018#elif CLIENT_TYPE == 'Z' && ( \
32019 PACKET_VERSION == 20180309 \
32020 || PACKET_VERSION == 20180307 \
32021 || PACKET_VERSION == 20171128 \
32022 || PACKET_VERSION == 20171122 \
32023 || PACKET_VERSION == 20171117 \
32024 || PACKET_VERSION == 20171116)
32026#elif CLIENT_TYPE == 'Z' && ( \
32027 PACKET_VERSION >= 20220000 \
32028 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
32029 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
32030 || PACKET_VERSION >= 20171213 \
32031 || PACKET_VERSION >= 20171212 \
32032 || PACKET_VERSION >= 20171211 \
32033 || PACKET_VERSION >= 20171210 \
32034 || PACKET_VERSION >= 20171209 \
32035 || PACKET_VERSION >= 20171208)
32037#elif CLIENT_TYPE == 'Z' && \
32038 PACKET_VERSION >= 20171221
32040#elif CLIENT_TYPE == 'Z' && \
32041 PACKET_VERSION >= 20171229
32043#else
32044ID_CZ_SEARCH_STORE_INFO_NEXT_PAGE = 0x0000 // Disabled
32045#endif
32052{
32053public:
32054 CZ_SEARCH_STORE_INFO_NEXT_PAGE(std::shared_ptr<ZoneSession> s)
32056 {}
32058
32059 void handle(ByteBuffer &&buf);
32060 void deserialize(ByteBuffer &buf);
32061
32062/* Structure */
32063};
32064
32065enum {
32066#if CLIENT_TYPE == 'M' && ( \
32067 PACKET_VERSION >= 20220000 \
32068 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
32069 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
32070 || PACKET_VERSION >= 20090617)
32071ID_CZ_SEEK_PARTY = 0x07dc
32072#elif CLIENT_TYPE == 'R' && ( \
32073 PACKET_VERSION >= 20210000 \
32074 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
32075 || PACKET_VERSION >= 20090617)
32076ID_CZ_SEEK_PARTY = 0x07dc
32077#elif CLIENT_TYPE == 'S' && \
32078 PACKET_VERSION >= 20090617
32079ID_CZ_SEEK_PARTY = 0x07dc
32080#elif CLIENT_TYPE == 'Z' && ( \
32081 PACKET_VERSION >= 20220000 \
32082 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
32083 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
32084 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
32085ID_CZ_SEEK_PARTY = 0x07dc
32086#else
32087ID_CZ_SEEK_PARTY = 0x0000 // Disabled
32088#endif
32094class CZ_SEEK_PARTY : public Base::NetworkPacket<ZoneSession>
32095{
32096public:
32097 CZ_SEEK_PARTY(std::shared_ptr<ZoneSession> s)
32099 {}
32100 virtual ~CZ_SEEK_PARTY() {}
32101
32102 void handle(ByteBuffer &&buf);
32103 void deserialize(ByteBuffer &buf);
32104
32105/* Structure */
32106};
32107
32108enum {
32109#if CLIENT_TYPE == 'M' && ( \
32110 PACKET_VERSION >= 20220000 \
32111 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
32112 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
32113 || PACKET_VERSION >= 20090617)
32115#elif CLIENT_TYPE == 'R' && ( \
32116 PACKET_VERSION >= 20210000 \
32117 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
32118 || PACKET_VERSION >= 20090617)
32120#elif CLIENT_TYPE == 'S' && \
32121 PACKET_VERSION >= 20090617
32123#elif CLIENT_TYPE == 'Z' && ( \
32124 PACKET_VERSION >= 20220000 \
32125 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
32126 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
32127 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
32129#else
32130ID_CZ_SEEK_PARTY_MEMBER = 0x0000 // Disabled
32131#endif
32138{
32139public:
32140 CZ_SEEK_PARTY_MEMBER(std::shared_ptr<ZoneSession> s)
32142 {}
32144
32145 void handle(ByteBuffer &&buf);
32146 void deserialize(ByteBuffer &buf);
32147
32148/* Structure */
32149};
32150
32151enum {
32152#if CLIENT_TYPE == 'A' && \
32153 PACKET_VERSION >= 20040000
32154ID_CZ_SELECTAUTOSPELL = 0x01ce
32155#elif CLIENT_TYPE == 'M' && ( \
32156 PACKET_VERSION >= 20220000 \
32157 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
32158 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
32159 || (PACKET_VERSION >= 20030000 && PACKET_VERSION < 20200000))
32160ID_CZ_SELECTAUTOSPELL = 0x01ce
32161#elif CLIENT_TYPE == 'R' && ( \
32162 PACKET_VERSION >= 20210000 \
32163 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
32164 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
32165ID_CZ_SELECTAUTOSPELL = 0x01ce
32166#elif CLIENT_TYPE == 'S' && \
32167 PACKET_VERSION >= 20030000
32168ID_CZ_SELECTAUTOSPELL = 0x01ce
32169#elif CLIENT_TYPE == 'Z' && ( \
32170 PACKET_VERSION >= 20220000 \
32171 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
32172 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
32173 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
32174ID_CZ_SELECTAUTOSPELL = 0x01ce
32175#else
32176ID_CZ_SELECTAUTOSPELL = 0x0000 // Disabled
32177#endif
32183class CZ_SELECTAUTOSPELL : public Base::NetworkPacket<ZoneSession>
32184{
32185public:
32186 CZ_SELECTAUTOSPELL(std::shared_ptr<ZoneSession> s)
32188 {}
32190
32191 void handle(ByteBuffer &&buf);
32192 void deserialize(ByteBuffer &buf);
32193
32194/* Structure */
32195};
32196
32197enum {
32198#if CLIENT_TYPE == 'M' && ( \
32199 PACKET_VERSION >= 20220000 \
32200 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
32201 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
32202 || PACKET_VERSION >= 20120503)
32203ID_CZ_SELECTCART = 0x0980
32204#elif CLIENT_TYPE == 'R' && ( \
32205 PACKET_VERSION >= 20210000 \
32206 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
32207 || PACKET_VERSION >= 20120502)
32208ID_CZ_SELECTCART = 0x0980
32209#elif CLIENT_TYPE == 'Z' && ( \
32210 PACKET_VERSION >= 20220000 \
32211 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
32212 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
32213 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
32214ID_CZ_SELECTCART = 0x0980
32215#else
32216ID_CZ_SELECTCART = 0x0000 // Disabled
32217#endif
32223class CZ_SELECTCART : public Base::NetworkPacket<ZoneSession>
32224{
32225public:
32226 CZ_SELECTCART(std::shared_ptr<ZoneSession> s)
32228 {}
32229 virtual ~CZ_SELECTCART() {}
32230
32231 void handle(ByteBuffer &&buf);
32232 void deserialize(ByteBuffer &buf);
32233
32234/* Structure */
32235};
32236
32237enum {
32238#if CLIENT_TYPE == 'A' && \
32239 PACKET_VERSION >= 20040000
32240ID_CZ_SELECT_PETEGG = 0x01a7
32241#elif CLIENT_TYPE == 'M' && ( \
32242 PACKET_VERSION >= 20220000 \
32243 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
32244 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
32245 || (PACKET_VERSION >= 20030000 && PACKET_VERSION < 20200000))
32246ID_CZ_SELECT_PETEGG = 0x01a7
32247#elif CLIENT_TYPE == 'R' && ( \
32248 PACKET_VERSION >= 20210000 \
32249 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
32250 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
32251ID_CZ_SELECT_PETEGG = 0x01a7
32252#elif CLIENT_TYPE == 'S' && \
32253 PACKET_VERSION >= 20030000
32254ID_CZ_SELECT_PETEGG = 0x01a7
32255#elif CLIENT_TYPE == 'Z' && ( \
32256 PACKET_VERSION >= 20220000 \
32257 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
32258 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
32259 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
32260ID_CZ_SELECT_PETEGG = 0x01a7
32261#else
32262ID_CZ_SELECT_PETEGG = 0x0000 // Disabled
32263#endif
32269class CZ_SELECT_PETEGG : public Base::NetworkPacket<ZoneSession>
32270{
32271public:
32272 CZ_SELECT_PETEGG(std::shared_ptr<ZoneSession> s)
32274 {}
32276
32277 void handle(ByteBuffer &&buf);
32278 void deserialize(ByteBuffer &buf);
32279
32280/* Structure */
32281};
32282
32283enum {
32284#if CLIENT_TYPE == 'A' && \
32285 PACKET_VERSION >= 20040000
32287#elif CLIENT_TYPE == 'M' && ( \
32288 PACKET_VERSION >= 20220000 \
32289 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
32290 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
32291 || (PACKET_VERSION >= 20030000 && PACKET_VERSION < 20200000))
32293#elif CLIENT_TYPE == 'R' && ( \
32294 PACKET_VERSION >= 20210000 \
32295 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
32296 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
32298#elif CLIENT_TYPE == 'S' && \
32299 PACKET_VERSION >= 20030000
32301#elif CLIENT_TYPE == 'Z' && ( \
32302 PACKET_VERSION >= 20220000 \
32303 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
32304 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
32305 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
32307#else
32308ID_CZ_SELECT_WARPPOINT = 0x0000 // Disabled
32309#endif
32315class CZ_SELECT_WARPPOINT : public Base::NetworkPacket<ZoneSession>
32316{
32317public:
32318 CZ_SELECT_WARPPOINT(std::shared_ptr<ZoneSession> s)
32320 {}
32322
32323 void handle(ByteBuffer &&buf);
32324 void deserialize(ByteBuffer &buf);
32325
32326/* Structure */
32327};
32328
32329enum {
32330#if CLIENT_TYPE == 'A' && \
32331 PACKET_VERSION >= 20040000
32333#elif CLIENT_TYPE == 'M' && ( \
32334 PACKET_VERSION >= 20220000 \
32335 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
32336 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
32337 || (PACKET_VERSION >= 20030000 && PACKET_VERSION < 20200000))
32339#elif CLIENT_TYPE == 'R' && ( \
32340 PACKET_VERSION >= 20210000 \
32341 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
32342 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
32344#elif CLIENT_TYPE == 'S' && \
32345 PACKET_VERSION >= 20030000
32347#elif CLIENT_TYPE == 'Z' && ( \
32348 PACKET_VERSION >= 20220000 \
32349 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
32350 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
32351 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
32353#else
32354ID_CZ_SETTING_WHISPER_PC = 0x0000 // Disabled
32355#endif
32362{
32363public:
32364 CZ_SETTING_WHISPER_PC(std::shared_ptr<ZoneSession> s)
32366 {}
32368
32369 void handle(ByteBuffer &&buf);
32370 void deserialize(ByteBuffer &buf);
32371
32372/* Structure */
32373};
32374
32375enum {
32376#if CLIENT_TYPE == 'A' && \
32377 PACKET_VERSION >= 20040000
32379#elif CLIENT_TYPE == 'M' && ( \
32380 PACKET_VERSION >= 20220000 \
32381 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
32382 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
32383 || (PACKET_VERSION >= 20030000 && PACKET_VERSION < 20200000))
32385#elif CLIENT_TYPE == 'R' && ( \
32386 PACKET_VERSION >= 20210000 \
32387 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
32388 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
32390#elif CLIENT_TYPE == 'S' && \
32391 PACKET_VERSION >= 20030000
32393#elif CLIENT_TYPE == 'Z' && ( \
32394 PACKET_VERSION >= 20220000 \
32395 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
32396 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
32397 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
32399#else
32400ID_CZ_SETTING_WHISPER_STATE = 0x0000 // Disabled
32401#endif
32408{
32409public:
32410 CZ_SETTING_WHISPER_STATE(std::shared_ptr<ZoneSession> s)
32412 {}
32414
32415 void handle(ByteBuffer &&buf);
32416 void deserialize(ByteBuffer &buf);
32417
32418/* Structure */
32419};
32420
32421enum {
32422#if CLIENT_TYPE == 'M' && ( \
32423 PACKET_VERSION >= 20220000 \
32424 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
32425 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
32426 || PACKET_VERSION >= 20101019)
32428#elif CLIENT_TYPE == 'R' && ( \
32429 PACKET_VERSION >= 20210000 \
32430 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
32431 || PACKET_VERSION >= 20101019)
32433#elif CLIENT_TYPE == 'Z' && ( \
32434 PACKET_VERSION >= 20220000 \
32435 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
32436 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
32437 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
32439#else
32440ID_CZ_SE_CASHSHOP_CLOSE = 0x0000 // Disabled
32441#endif
32448{
32449public:
32450 CZ_SE_CASHSHOP_CLOSE(std::shared_ptr<ZoneSession> s)
32452 {}
32454
32455 void handle(ByteBuffer &&buf);
32456 void deserialize(ByteBuffer &buf);
32457
32458/* Structure */
32459};
32460
32461enum {
32462#if CLIENT_TYPE == 'M' && ( \
32463 PACKET_VERSION >= 20220000 \
32464 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
32465 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
32466 || PACKET_VERSION >= 20100824)
32468#elif CLIENT_TYPE == 'R' && ( \
32469 PACKET_VERSION >= 20210000 \
32470 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
32471 || PACKET_VERSION >= 20100824)
32473#elif CLIENT_TYPE == 'Z' && ( \
32474 PACKET_VERSION >= 20220000 \
32475 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
32476 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
32477 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
32479#else
32480ID_CZ_SE_CASHSHOP_OPEN = 0x0000 // Disabled
32481#endif
32487class CZ_SE_CASHSHOP_OPEN : public Base::NetworkPacket<ZoneSession>
32488{
32489public:
32490 CZ_SE_CASHSHOP_OPEN(std::shared_ptr<ZoneSession> s)
32492 {}
32494
32495 void handle(ByteBuffer &&buf);
32496 void deserialize(ByteBuffer &buf);
32497
32498/* Structure */
32499};
32500
32501enum {
32502#if CLIENT_TYPE == 'M' && ( \
32503 PACKET_VERSION >= 20220000 \
32504 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
32505 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000))
32507#elif CLIENT_TYPE == 'R' && ( \
32508 PACKET_VERSION >= 20210000 \
32509 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000))
32511#elif CLIENT_TYPE == 'Z' && ( \
32512 PACKET_VERSION >= 20220000 \
32513 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
32514 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000))
32516#else
32517ID_CZ_SE_CASHSHOP_OPEN2 = 0x0000 // Disabled
32518#endif
32525{
32526public:
32527 CZ_SE_CASHSHOP_OPEN2(std::shared_ptr<ZoneSession> s)
32529 {}
32531
32532 void handle(ByteBuffer &&buf);
32533 void deserialize(ByteBuffer &buf);
32534
32535/* Structure */
32536};
32537
32538enum {
32539#if CLIENT_TYPE == 'M' && ( \
32540 PACKET_VERSION >= 20220000 \
32541 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
32542 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
32543 || PACKET_VERSION >= 20100824)
32545#elif CLIENT_TYPE == 'R' && ( \
32546 PACKET_VERSION >= 20210000 \
32547 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
32548 || PACKET_VERSION >= 20100824)
32550#elif CLIENT_TYPE == 'Z' && ( \
32551 PACKET_VERSION >= 20220000 \
32552 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
32553 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
32554 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
32556#else
32557ID_CZ_SE_PC_BUY_CASHITEM_LIST = 0x0000 // Disabled
32558#endif
32565{
32566public:
32567 CZ_SE_PC_BUY_CASHITEM_LIST(std::shared_ptr<ZoneSession> s)
32569 {}
32571
32572 void handle(ByteBuffer &&buf);
32573 void deserialize(ByteBuffer &buf);
32574
32575/* Structure */
32576};
32577
32578enum {
32579#if CLIENT_TYPE == 'A' && \
32580 PACKET_VERSION >= 20040000
32581ID_CZ_SHIFT = 0x01bb
32582#elif CLIENT_TYPE == 'M' && ( \
32583 PACKET_VERSION >= 20220000 \
32584 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
32585 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
32586 || (PACKET_VERSION >= 20030000 && PACKET_VERSION < 20200000))
32587ID_CZ_SHIFT = 0x01bb
32588#elif CLIENT_TYPE == 'R' && ( \
32589 PACKET_VERSION >= 20210000 \
32590 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
32591 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
32592ID_CZ_SHIFT = 0x01bb
32593#elif CLIENT_TYPE == 'S' && \
32594 PACKET_VERSION >= 20030000
32595ID_CZ_SHIFT = 0x01bb
32596#elif CLIENT_TYPE == 'Z' && ( \
32597 PACKET_VERSION >= 20220000 \
32598 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
32599 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
32600 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
32601ID_CZ_SHIFT = 0x01bb
32602#else
32603ID_CZ_SHIFT = 0x0000 // Disabled
32604#endif
32610class CZ_SHIFT : public Base::NetworkPacket<ZoneSession>
32611{
32612public:
32613 CZ_SHIFT(std::shared_ptr<ZoneSession> s)
32615 {}
32616 virtual ~CZ_SHIFT() {}
32617
32618 void handle(ByteBuffer &&buf);
32619 void deserialize(ByteBuffer &buf);
32620
32621/* Structure */
32622};
32623
32624enum {
32625#if CLIENT_TYPE == 'M' && \
32626 PACKET_VERSION >= 20140129
32628#elif CLIENT_TYPE == 'M' && ( \
32629 PACKET_VERSION >= 20220000 \
32630 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
32631 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
32632 || PACKET_VERSION >= 20190403)
32634#elif CLIENT_TYPE == 'R' && \
32635 PACKET_VERSION >= 20140129
32637#elif CLIENT_TYPE == 'R' && ( \
32638 PACKET_VERSION >= 20210000 \
32639 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
32640 || PACKET_VERSION >= 20190403)
32642#elif CLIENT_TYPE == 'Z' && \
32643 PACKET_VERSION >= 20170000
32645#elif CLIENT_TYPE == 'Z' && ( \
32646 PACKET_VERSION >= 20220000 \
32647 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
32648 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
32649 || PACKET_VERSION >= 20190327)
32651#else
32652ID_CZ_SHORTCUTKEYBAR_ROTATE = 0x0000 // Disabled
32653#endif
32660{
32661public:
32662 CZ_SHORTCUTKEYBAR_ROTATE(std::shared_ptr<ZoneSession> s)
32664 {}
32666
32667 void handle(ByteBuffer &&buf);
32668 void deserialize(ByteBuffer &buf);
32669
32670/* Structure */
32671};
32672
32673enum {
32674#if CLIENT_TYPE == 'A' && \
32675 PACKET_VERSION >= 20070618
32677#elif CLIENT_TYPE == 'M' && \
32678 PACKET_VERSION >= 20070618
32680#elif CLIENT_TYPE == 'M' && ( \
32681 PACKET_VERSION >= 20220000 \
32682 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
32683 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
32684 || PACKET_VERSION >= 20190403)
32686#elif CLIENT_TYPE == 'R' && \
32687 PACKET_VERSION >= 20080000
32689#elif CLIENT_TYPE == 'R' && ( \
32690 PACKET_VERSION >= 20210000 \
32691 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
32692 || PACKET_VERSION >= 20190403)
32694#elif CLIENT_TYPE == 'S' && \
32695 PACKET_VERSION >= 20070618
32697#elif CLIENT_TYPE == 'Z' && \
32698 PACKET_VERSION >= 20170000
32700#elif CLIENT_TYPE == 'Z' && ( \
32701 PACKET_VERSION >= 20220000 \
32702 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
32703 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
32704 || PACKET_VERSION >= 20190327)
32706#else
32707ID_CZ_SHORTCUT_KEY_CHANGE = 0x0000 // Disabled
32708#endif
32715{
32716public:
32717 CZ_SHORTCUT_KEY_CHANGE(std::shared_ptr<ZoneSession> s)
32719 {}
32721
32722 void handle(ByteBuffer &&buf);
32723 void deserialize(ByteBuffer &buf);
32724
32725/* Structure */
32726};
32727
32728enum {
32729#if CLIENT_TYPE == 'M' && ( \
32730 PACKET_VERSION >= 20220000 \
32731 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
32732 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
32733 || (PACKET_VERSION >= 20090000 && PACKET_VERSION < 20200000))
32735#elif CLIENT_TYPE == 'R' && ( \
32736 PACKET_VERSION >= 20210000 \
32737 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
32738 || PACKET_VERSION >= 20090113)
32740#elif CLIENT_TYPE == 'S' && \
32741 PACKET_VERSION >= 20090114
32743#elif CLIENT_TYPE == 'Z' && ( \
32744 PACKET_VERSION >= 20220000 \
32745 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
32746 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
32747 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
32749#else
32750ID_CZ_SIMPLE_BUY_CASH_POINT_ITEM = 0x0000 // Disabled
32751#endif
32758{
32759public:
32760 CZ_SIMPLE_BUY_CASH_POINT_ITEM(std::shared_ptr<ZoneSession> s)
32762 {}
32764
32765 void handle(ByteBuffer &&buf);
32766 void deserialize(ByteBuffer &buf);
32767
32768/* Structure */
32769};
32770
32771enum {
32772#if CLIENT_TYPE == 'M' && ( \
32773 PACKET_VERSION >= 20220000 \
32774 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
32775 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
32776 || PACKET_VERSION >= 20091222)
32778#elif CLIENT_TYPE == 'R' && ( \
32779 PACKET_VERSION >= 20210000 \
32780 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
32781 || PACKET_VERSION >= 20091222)
32783#elif CLIENT_TYPE == 'Z' && ( \
32784 PACKET_VERSION >= 20220000 \
32785 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
32786 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
32787 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
32789#else
32790ID_CZ_SIMPLE_CASH_BTNSHOW = 0x0000 // Disabled
32791#endif
32798{
32799public:
32800 CZ_SIMPLE_CASH_BTNSHOW(std::shared_ptr<ZoneSession> s)
32802 {}
32804
32805 void handle(ByteBuffer &&buf);
32806 void deserialize(ByteBuffer &buf);
32807
32808/* Structure */
32809};
32810
32811enum {
32812#if CLIENT_TYPE == 'M' && ( \
32813 PACKET_VERSION >= 20220000 \
32814 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
32815 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
32816 || PACKET_VERSION >= 20081210)
32818#elif CLIENT_TYPE == 'R' && ( \
32819 PACKET_VERSION >= 20210000 \
32820 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
32821 || PACKET_VERSION >= 20081217)
32823#elif CLIENT_TYPE == 'S' && \
32824 PACKET_VERSION >= 20081210
32826#elif CLIENT_TYPE == 'Z' && ( \
32827 PACKET_VERSION >= 20220000 \
32828 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
32829 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
32830 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
32832#else
32833ID_CZ_SKILL_SELECT_RESPONSE = 0x0000 // Disabled
32834#endif
32841{
32842public:
32843 CZ_SKILL_SELECT_RESPONSE(std::shared_ptr<ZoneSession> s)
32845 {}
32847
32848 void handle(ByteBuffer &&buf);
32849 void deserialize(ByteBuffer &buf);
32850
32851/* Structure */
32852};
32853
32854enum {
32855#if CLIENT_TYPE == 'A' && \
32856 PACKET_VERSION >= 20070807
32858#elif CLIENT_TYPE == 'M' && \
32859 PACKET_VERSION >= 20070807
32861#elif CLIENT_TYPE == 'S' && \
32862 PACKET_VERSION >= 20070807
32864#else
32865ID_CZ_SRPACKETR2_START = 0x0000 // Disabled
32866#endif
32872class CZ_SRPACKETR2_START : public Base::NetworkPacket<ZoneSession>
32873{
32874public:
32875 CZ_SRPACKETR2_START(std::shared_ptr<ZoneSession> s)
32877 {}
32879
32880 void handle(ByteBuffer &&buf);
32881 void deserialize(ByteBuffer &buf);
32882
32883/* Structure */
32884};
32885
32886enum {
32887#if CLIENT_TYPE == 'A' && \
32888 PACKET_VERSION >= 20070711
32889ID_CZ_SRPACKET_START = 0x02af
32890#elif CLIENT_TYPE == 'M' && \
32891 PACKET_VERSION >= 20070711
32892ID_CZ_SRPACKET_START = 0x02af
32893#elif CLIENT_TYPE == 'S' && \
32894 PACKET_VERSION >= 20070711
32895ID_CZ_SRPACKET_START = 0x02af
32896#else
32897ID_CZ_SRPACKET_START = 0x0000 // Disabled
32898#endif
32904class CZ_SRPACKET_START : public Base::NetworkPacket<ZoneSession>
32905{
32906public:
32907 CZ_SRPACKET_START(std::shared_ptr<ZoneSession> s)
32909 {}
32911
32912 void handle(ByteBuffer &&buf);
32913 void deserialize(ByteBuffer &buf);
32914
32915/* Structure */
32916};
32917
32918enum {
32919#if CLIENT_TYPE == 'M' && \
32920 PACKET_VERSION >= 20120712
32922#elif CLIENT_TYPE == 'M' && ( \
32923 PACKET_VERSION == 20190821 \
32924 || PACKET_VERSION == 20190807 \
32925 || PACKET_VERSION == 20190802 \
32926 || PACKET_VERSION == 20190731 \
32927 || PACKET_VERSION == 20190724 \
32928 || PACKET_VERSION == 20190717 \
32929 || PACKET_VERSION == 20190703 \
32930 || PACKET_VERSION == 20190605 \
32931 || PACKET_VERSION == 20190530 \
32932 || PACKET_VERSION == 20190523 \
32933 || PACKET_VERSION == 20190522 \
32934 || PACKET_VERSION == 20190508 \
32935 || PACKET_VERSION == 20190418 \
32936 || PACKET_VERSION == 20190417 \
32937 || PACKET_VERSION == 20190327 \
32938 || PACKET_VERSION == 20190322 \
32939 || PACKET_VERSION == 20190320 \
32940 || PACKET_VERSION == 20190313 \
32941 || PACKET_VERSION == 20190306 \
32942 || PACKET_VERSION == 20190228 \
32943 || PACKET_VERSION == 20190123 \
32944 || PACKET_VERSION == 20190116 \
32945 || (PACKET_VERSION >= 20190000 && PACKET_VERSION < 20190116) \
32946 || PACKET_VERSION == 20181226 \
32947 || PACKET_VERSION == 20181219 \
32948 || PACKET_VERSION == 20181212 \
32949 || PACKET_VERSION == 20181205 \
32950 || PACKET_VERSION == 20181128 \
32951 || PACKET_VERSION == 20181121 \
32952 || PACKET_VERSION == 20181114 \
32953 || PACKET_VERSION == 20181107 \
32954 || PACKET_VERSION == 20181024 \
32955 || PACKET_VERSION == 20180919 \
32956 || PACKET_VERSION == 20180831 \
32957 || PACKET_VERSION == 20180822 \
32958 || PACKET_VERSION >= 20180808 \
32959 || PACKET_VERSION >= 20180718 \
32960 || PACKET_VERSION >= 20180704 \
32961 || PACKET_VERSION >= 20180621 \
32962 || PACKET_VERSION >= 20180620 \
32963 || PACKET_VERSION >= 20180530 \
32964 || PACKET_VERSION >= 20180523 \
32965 || PACKET_VERSION >= 20180516 \
32966 || PACKET_VERSION >= 20180509 \
32967 || PACKET_VERSION >= 20180502 \
32968 || PACKET_VERSION >= 20180425 \
32969 || PACKET_VERSION >= 20180404 \
32970 || PACKET_VERSION >= 20180328 \
32971 || PACKET_VERSION >= 20180321 \
32972 || PACKET_VERSION >= 20180315 \
32973 || PACKET_VERSION >= 20180213 \
32974 || PACKET_VERSION >= 20180117 \
32975 || PACKET_VERSION >= 20180103 \
32976 || PACKET_VERSION >= 20171227 \
32977 || PACKET_VERSION >= 20171220 \
32978 || PACKET_VERSION >= 20171129 \
32979 || PACKET_VERSION >= 20171122 \
32980 || PACKET_VERSION >= 20171115 \
32981 || PACKET_VERSION >= 20171101 \
32982 || PACKET_VERSION >= 20171002 \
32983 || PACKET_VERSION >= 20170913 \
32984 || PACKET_VERSION >= 20170906 \
32985 || PACKET_VERSION >= 20170830 \
32986 || PACKET_VERSION >= 20170823 \
32987 || PACKET_VERSION >= 20170809 \
32988 || PACKET_VERSION >= 20170801 \
32989 || PACKET_VERSION >= 20170719 \
32990 || PACKET_VERSION >= 20170621 \
32991 || PACKET_VERSION >= 20170614 \
32992 || PACKET_VERSION >= 20170517 \
32993 || PACKET_VERSION >= 20170426 \
32994 || PACKET_VERSION >= 20170412 \
32995 || PACKET_VERSION >= 20170322 \
32996 || PACKET_VERSION >= 20170315 \
32997 || PACKET_VERSION >= 20170308 \
32998 || PACKET_VERSION >= 20170228 \
32999 || PACKET_VERSION >= 20170222 \
33000 || PACKET_VERSION >= 20170215 \
33001 || PACKET_VERSION >= 20170201 \
33002 || PACKET_VERSION >= 20170125 \
33003 || PACKET_VERSION >= 20170104 \
33004 || PACKET_VERSION >= 20161221 \
33005 || PACKET_VERSION >= 20161130 \
33006 || PACKET_VERSION >= 20161109 \
33007 || PACKET_VERSION >= 20161102 \
33008 || PACKET_VERSION >= 20161026 \
33009 || PACKET_VERSION >= 20161019 \
33010 || PACKET_VERSION >= 20160928 \
33011 || PACKET_VERSION >= 20160921 \
33012 || PACKET_VERSION >= 20160913 \
33013 || PACKET_VERSION >= 20160907 \
33014 || PACKET_VERSION >= 20160831 \
33015 || PACKET_VERSION >= 20160824 \
33016 || PACKET_VERSION >= 20160817 \
33017 || PACKET_VERSION >= 20160622 \
33018 || PACKET_VERSION >= 20160615 \
33019 || PACKET_VERSION >= 20160511 \
33020 || PACKET_VERSION >= 20160504 \
33021 || PACKET_VERSION >= 20160414 \
33022 || PACKET_VERSION >= 20160406 \
33023 || PACKET_VERSION >= 20160316 \
33024 || PACKET_VERSION >= 20160309 \
33025 || PACKET_VERSION >= 20160302 \
33026 || PACKET_VERSION >= 20160224 \
33027 || PACKET_VERSION >= 20160217 \
33028 || PACKET_VERSION >= 20160120 \
33029 || PACKET_VERSION >= 20160113 \
33030 || PACKET_VERSION >= 20160106 \
33031 || PACKET_VERSION >= 20151230 \
33032 || PACKET_VERSION >= 20151209 \
33033 || PACKET_VERSION >= 20151202 \
33034 || PACKET_VERSION >= 20151125 \
33035 || PACKET_VERSION >= 20151021 \
33036 || PACKET_VERSION >= 20151014 \
33037 || PACKET_VERSION >= 20151001 \
33038 || PACKET_VERSION >= 20150916 \
33039 || PACKET_VERSION >= 20150909 \
33040 || PACKET_VERSION >= 20150902 \
33041 || PACKET_VERSION >= 20150819 \
33042 || PACKET_VERSION >= 20150805 \
33043 || PACKET_VERSION >= 20150722 \
33044 || PACKET_VERSION >= 20150715 \
33045 || PACKET_VERSION >= 20150708 \
33046 || PACKET_VERSION >= 20150701 \
33047 || PACKET_VERSION >= 20150617 \
33048 || PACKET_VERSION >= 20150603 \
33049 || PACKET_VERSION >= 20150527 \
33050 || PACKET_VERSION >= 20150520 \
33051 || PACKET_VERSION >= 20150422 \
33052 || PACKET_VERSION >= 20150408 \
33053 || PACKET_VERSION >= 20150401 \
33054 || PACKET_VERSION >= 20150311 \
33055 || PACKET_VERSION >= 20150225 \
33056 || PACKET_VERSION >= 20150217 \
33057 || PACKET_VERSION >= 20150211 \
33058 || PACKET_VERSION >= 20150204 \
33059 || PACKET_VERSION >= 20150128 \
33060 || PACKET_VERSION >= 20150121 \
33061 || PACKET_VERSION >= 20150114 \
33062 || PACKET_VERSION >= 20150107 \
33063 || PACKET_VERSION >= 20141231 \
33064 || PACKET_VERSION >= 20141217 \
33065 || PACKET_VERSION >= 20141210 \
33066 || PACKET_VERSION >= 20141203 \
33067 || PACKET_VERSION >= 20141126 \
33068 || PACKET_VERSION >= 20141119 \
33069 || PACKET_VERSION >= 20141112 \
33070 || PACKET_VERSION >= 20141105 \
33071 || PACKET_VERSION >= 20141001 \
33072 || PACKET_VERSION >= 20140917 \
33073 || PACKET_VERSION >= 20140827 \
33074 || PACKET_VERSION >= 20140820 \
33075 || PACKET_VERSION >= 20140806 \
33076 || PACKET_VERSION >= 20140709 \
33077 || PACKET_VERSION >= 20140702 \
33078 || PACKET_VERSION >= 20140611 \
33079 || PACKET_VERSION >= 20140605 \
33080 || PACKET_VERSION >= 20140528 \
33081 || PACKET_VERSION >= 20140521 \
33082 || PACKET_VERSION >= 20140514 \
33083 || PACKET_VERSION >= 20140508 \
33084 || PACKET_VERSION >= 20140430 \
33085 || PACKET_VERSION >= 20140423 \
33086 || PACKET_VERSION >= 20140416 \
33087 || PACKET_VERSION >= 20140402 \
33088 || PACKET_VERSION >= 20140326 \
33089 || PACKET_VERSION >= 20140312 \
33090 || PACKET_VERSION >= 20140226 \
33091 || PACKET_VERSION >= 20140212 \
33092 || PACKET_VERSION >= 20140205 \
33093 || PACKET_VERSION >= 20140129 \
33094 || PACKET_VERSION >= 20140122 \
33095 || PACKET_VERSION >= 20140108 \
33096 || PACKET_VERSION >= 20131230 \
33097 || PACKET_VERSION >= 20131218 \
33098 || PACKET_VERSION >= 20131211 \
33099 || PACKET_VERSION >= 20131204 \
33100 || PACKET_VERSION >= 20131127 \
33101 || PACKET_VERSION >= 20131106 \
33102 || PACKET_VERSION >= 20131030 \
33103 || PACKET_VERSION >= 20131008 \
33104 || PACKET_VERSION >= 20130925 \
33105 || PACKET_VERSION >= 20130917 \
33106 || PACKET_VERSION >= 20130904 \
33107 || PACKET_VERSION >= 20130814 \
33108 || PACKET_VERSION >= 20130807 \
33109 || PACKET_VERSION >= 20130724 \
33110 || PACKET_VERSION >= 20130717 \
33111 || PACKET_VERSION >= 20130626 \
33112 || PACKET_VERSION >= 20130618 \
33113 || PACKET_VERSION >= 20130605 \
33114 || PACKET_VERSION >= 20130522 \
33115 || PACKET_VERSION >= 20130417 \
33116 || PACKET_VERSION >= 20130410 \
33117 || PACKET_VERSION >= 20130403 \
33118 || PACKET_VERSION >= 20130320 \
33119 || PACKET_VERSION >= 20130313 \
33120 || PACKET_VERSION >= 20130227 \
33121 || PACKET_VERSION >= 20130206 \
33122 || PACKET_VERSION >= 20130130 \
33123 || PACKET_VERSION >= 20130121 \
33124 || PACKET_VERSION >= 20130109 \
33125 || PACKET_VERSION >= 20130103 \
33126 || PACKET_VERSION >= 20121227 \
33127 || PACKET_VERSION >= 20121218 \
33128 || PACKET_VERSION >= 20121107 \
33129 || PACKET_VERSION >= 20121031 \
33130 || PACKET_VERSION >= 20121024 \
33131 || PACKET_VERSION >= 20121017 \
33132 || PACKET_VERSION >= 20120925 \
33133 || PACKET_VERSION >= 20120919 \
33134 || PACKET_VERSION >= 20120905 \
33135 || PACKET_VERSION >= 20120830 \
33136 || PACKET_VERSION >= 20120814 \
33137 || PACKET_VERSION >= 20120808 \
33138 || PACKET_VERSION >= 20120724 \
33139 || PACKET_VERSION >= 20120716 \
33140 || PACKET_VERSION >= 20120626 \
33141 || PACKET_VERSION >= 20120612 \
33142 || PACKET_VERSION >= 20120604 \
33143 || PACKET_VERSION >= 20120529 \
33144 || PACKET_VERSION >= 20120515 \
33145 || PACKET_VERSION >= 20120503 \
33146 || PACKET_VERSION >= 20120424 \
33147 || PACKET_VERSION >= 20120404 \
33148 || PACKET_VERSION >= 20120328 \
33149 || PACKET_VERSION >= 20120314 \
33150 || PACKET_VERSION >= 20120228 \
33151 || PACKET_VERSION >= 20120221 \
33152 || PACKET_VERSION >= 20120214 \
33153 || PACKET_VERSION >= 20120131 \
33154 || PACKET_VERSION >= 20120117 \
33155 || PACKET_VERSION >= 20120103 \
33156 || PACKET_VERSION >= 20111227 \
33157 || PACKET_VERSION >= 20111220 \
33158 || PACKET_VERSION >= 20111122 \
33159 || PACKET_VERSION >= 20111114 \
33160 || PACKET_VERSION >= 20111108 \
33161 || PACKET_VERSION >= 20111101 \
33162 || PACKET_VERSION >= 20111017 \
33163 || PACKET_VERSION >= 20111010 \
33164 || PACKET_VERSION >= 20111004 \
33165 || PACKET_VERSION >= 20110928 \
33166 || PACKET_VERSION >= 20110920 \
33167 || PACKET_VERSION >= 20110906 \
33168 || PACKET_VERSION >= 20110831 \
33169 || PACKET_VERSION >= 20110823 \
33170 || PACKET_VERSION >= 20110816 \
33171 || PACKET_VERSION >= 20110809 \
33172 || PACKET_VERSION >= 20110726 \
33173 || PACKET_VERSION >= 20110718 \
33174 || PACKET_VERSION >= 20110711 \
33175 || PACKET_VERSION >= 20110705 \
33176 || PACKET_VERSION >= 20110627 \
33177 || PACKET_VERSION >= 20110620 \
33178 || PACKET_VERSION >= 20110523 \
33179 || PACKET_VERSION >= 20110511 \
33180 || PACKET_VERSION >= 20110503 \
33181 || PACKET_VERSION >= 20110426 \
33182 || PACKET_VERSION >= 20110419 \
33183 || PACKET_VERSION >= 20110412 \
33184 || PACKET_VERSION >= 20110405 \
33185 || PACKET_VERSION >= 20110329 \
33186 || PACKET_VERSION >= 20110322 \
33187 || PACKET_VERSION >= 20110315 \
33188 || PACKET_VERSION >= 20110308 \
33189 || PACKET_VERSION >= 20110228 \
33190 || PACKET_VERSION >= 20110208 \
33191 || PACKET_VERSION >= 20110131 \
33192 || PACKET_VERSION >= 20110125 \
33193 || PACKET_VERSION >= 20110118 \
33194 || PACKET_VERSION >= 20110104 \
33195 || PACKET_VERSION >= 20101214 \
33196 || PACKET_VERSION >= 20101207 \
33197 || PACKET_VERSION >= 20101130 \
33198 || PACKET_VERSION >= 20101123 \
33199 || PACKET_VERSION >= 20100608)
33201#elif CLIENT_TYPE == 'M' && \
33202 PACKET_VERSION >= 20120926
33204#elif CLIENT_TYPE == 'M' && ( \
33205 PACKET_VERSION == 20180131 \
33206 || PACKET_VERSION >= 20160609 \
33207 || PACKET_VERSION >= 20160526 \
33208 || PACKET_VERSION >= 20160318 \
33209 || PACKET_VERSION >= 20151029 \
33210 || PACKET_VERSION >= 20151022 \
33211 || PACKET_VERSION >= 20150812 \
33212 || PACKET_VERSION >= 20150618 \
33213 || PACKET_VERSION >= 20150226 \
33214 || PACKET_VERSION >= 20141016 \
33215 || PACKET_VERSION >= 20140814 \
33216 || PACKET_VERSION >= 20130107)
33218#elif CLIENT_TYPE == 'M' && \
33219 PACKET_VERSION >= 20130116
33221#elif CLIENT_TYPE == 'M' && ( \
33222 PACKET_VERSION >= 20220000 \
33223 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
33224 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
33225 || PACKET_VERSION >= 20131108 \
33226 || PACKET_VERSION >= 20131107)
33228#elif CLIENT_TYPE == 'M' && ( \
33229 PACKET_VERSION == 20140613 \
33230 || PACKET_VERSION == 20140612)
33232#elif CLIENT_TYPE == 'M' && ( \
33233 PACKET_VERSION == 20160630 \
33234 || PACKET_VERSION >= 20150130 \
33235 || PACKET_VERSION >= 20150129)
33237#elif CLIENT_TYPE == 'M' && \
33238 PACKET_VERSION >= 20150702
33240#elif CLIENT_TYPE == 'M' && \
33241 PACKET_VERSION >= 20161103
33243#elif CLIENT_TYPE == 'M' && \
33244 PACKET_VERSION >= 20180309
33246#elif CLIENT_TYPE == 'R' && ( \
33247 PACKET_VERSION >= 20210000 \
33248 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
33249 || PACKET_VERSION >= 20120712)
33251#elif CLIENT_TYPE == 'R' && ( \
33252 PACKET_VERSION == 20190821 \
33253 || PACKET_VERSION == 20190807 \
33254 || PACKET_VERSION == 20190802 \
33255 || PACKET_VERSION == 20190731 \
33256 || PACKET_VERSION == 20190724 \
33257 || PACKET_VERSION == 20190717 \
33258 || PACKET_VERSION == 20190703 \
33259 || PACKET_VERSION == 20190626 \
33260 || PACKET_VERSION == 20190605 \
33261 || PACKET_VERSION == 20190530 \
33262 || PACKET_VERSION == 20190522 \
33263 || PACKET_VERSION == 20190508 \
33264 || PACKET_VERSION == 20190418 \
33265 || PACKET_VERSION == 20190417 \
33266 || PACKET_VERSION == 20190327 \
33267 || PACKET_VERSION == 20190322 \
33268 || PACKET_VERSION == 20190320 \
33269 || PACKET_VERSION == 20190306 \
33270 || PACKET_VERSION == 20190228 \
33271 || PACKET_VERSION == 20190123 \
33272 || PACKET_VERSION == 20190116 \
33273 || (PACKET_VERSION >= 20190000 && PACKET_VERSION < 20190116) \
33274 || PACKET_VERSION == 20181226 \
33275 || PACKET_VERSION == 20181219 \
33276 || PACKET_VERSION == 20181212 \
33277 || PACKET_VERSION == 20181205 \
33278 || PACKET_VERSION == 20181128 \
33279 || PACKET_VERSION == 20181121 \
33280 || PACKET_VERSION == 20181114 \
33281 || PACKET_VERSION == 20181107 \
33282 || PACKET_VERSION == 20180822 \
33283 || PACKET_VERSION >= 20180808 \
33284 || PACKET_VERSION >= 20180718 \
33285 || PACKET_VERSION >= 20180711 \
33286 || PACKET_VERSION >= 20180704 \
33287 || PACKET_VERSION >= 20180621 \
33288 || PACKET_VERSION >= 20180620 \
33289 || PACKET_VERSION >= 20180612 \
33290 || PACKET_VERSION >= 20180530 \
33291 || PACKET_VERSION >= 20180523 \
33292 || PACKET_VERSION >= 20180516 \
33293 || PACKET_VERSION >= 20180502 \
33294 || PACKET_VERSION >= 20180425 \
33295 || PACKET_VERSION >= 20180404 \
33296 || PACKET_VERSION >= 20180328 \
33297 || PACKET_VERSION >= 20180321 \
33298 || PACKET_VERSION >= 20180213 \
33299 || PACKET_VERSION >= 20180117 \
33300 || PACKET_VERSION >= 20180103 \
33301 || PACKET_VERSION >= 20171227 \
33302 || PACKET_VERSION >= 20171220 \
33303 || PACKET_VERSION >= 20171129 \
33304 || PACKET_VERSION >= 20171122 \
33305 || PACKET_VERSION >= 20171115 \
33306 || PACKET_VERSION >= 20171101 \
33307 || PACKET_VERSION >= 20171002 \
33308 || PACKET_VERSION >= 20170913 \
33309 || PACKET_VERSION >= 20170906 \
33310 || PACKET_VERSION >= 20170830 \
33311 || PACKET_VERSION >= 20170823 \
33312 || PACKET_VERSION >= 20170809 \
33313 || PACKET_VERSION >= 20170801 \
33314 || PACKET_VERSION >= 20170719 \
33315 || PACKET_VERSION >= 20170621 \
33316 || PACKET_VERSION >= 20170614 \
33317 || PACKET_VERSION >= 20170517 \
33318 || PACKET_VERSION >= 20170426 \
33319 || PACKET_VERSION >= 20170412 \
33320 || PACKET_VERSION >= 20170322 \
33321 || PACKET_VERSION >= 20170315 \
33322 || PACKET_VERSION >= 20170308 \
33323 || PACKET_VERSION >= 20170228 \
33324 || PACKET_VERSION >= 20170222 \
33325 || PACKET_VERSION >= 20170215 \
33326 || PACKET_VERSION >= 20170201 \
33327 || PACKET_VERSION >= 20170125 \
33328 || PACKET_VERSION >= 20170104 \
33329 || PACKET_VERSION >= 20161221 \
33330 || PACKET_VERSION >= 20161130 \
33331 || PACKET_VERSION >= 20161109 \
33332 || PACKET_VERSION >= 20161102 \
33333 || PACKET_VERSION >= 20161026 \
33334 || PACKET_VERSION >= 20161019 \
33335 || PACKET_VERSION >= 20160928 \
33336 || PACKET_VERSION >= 20160921 \
33337 || PACKET_VERSION >= 20160913 \
33338 || PACKET_VERSION >= 20160907 \
33339 || PACKET_VERSION >= 20160831 \
33340 || PACKET_VERSION >= 20160824 \
33341 || PACKET_VERSION >= 20160817 \
33342 || PACKET_VERSION >= 20160622 \
33343 || PACKET_VERSION >= 20160615 \
33344 || PACKET_VERSION >= 20160511 \
33345 || PACKET_VERSION >= 20160504 \
33346 || PACKET_VERSION >= 20160414 \
33347 || PACKET_VERSION >= 20160406 \
33348 || PACKET_VERSION >= 20160316 \
33349 || PACKET_VERSION >= 20160309 \
33350 || PACKET_VERSION >= 20160302 \
33351 || PACKET_VERSION >= 20160224 \
33352 || PACKET_VERSION >= 20160217 \
33353 || PACKET_VERSION >= 20160120 \
33354 || PACKET_VERSION >= 20160113 \
33355 || PACKET_VERSION >= 20160106 \
33356 || PACKET_VERSION >= 20151230 \
33357 || PACKET_VERSION >= 20151209 \
33358 || PACKET_VERSION >= 20151202 \
33359 || PACKET_VERSION >= 20151125 \
33360 || PACKET_VERSION >= 20151021 \
33361 || PACKET_VERSION >= 20151014 \
33362 || PACKET_VERSION >= 20151001 \
33363 || PACKET_VERSION >= 20150916 \
33364 || PACKET_VERSION >= 20150909 \
33365 || PACKET_VERSION >= 20150902 \
33366 || PACKET_VERSION >= 20150819 \
33367 || PACKET_VERSION >= 20150805 \
33368 || PACKET_VERSION >= 20150722 \
33369 || PACKET_VERSION >= 20150715 \
33370 || PACKET_VERSION >= 20150708 \
33371 || PACKET_VERSION >= 20150701 \
33372 || PACKET_VERSION >= 20150617 \
33373 || PACKET_VERSION >= 20150603 \
33374 || PACKET_VERSION >= 20150527 \
33375 || PACKET_VERSION >= 20150520 \
33376 || PACKET_VERSION >= 20150422 \
33377 || PACKET_VERSION >= 20150408 \
33378 || PACKET_VERSION >= 20150401 \
33379 || PACKET_VERSION >= 20150311 \
33380 || PACKET_VERSION >= 20150217 \
33381 || PACKET_VERSION >= 20150211 \
33382 || PACKET_VERSION >= 20150204 \
33383 || PACKET_VERSION >= 20150128 \
33384 || PACKET_VERSION >= 20150121 \
33385 || PACKET_VERSION >= 20150114 \
33386 || PACKET_VERSION >= 20150107 \
33387 || PACKET_VERSION >= 20141231 \
33388 || PACKET_VERSION >= 20141217 \
33389 || PACKET_VERSION >= 20141210 \
33390 || PACKET_VERSION >= 20141203 \
33391 || PACKET_VERSION >= 20141126 \
33392 || PACKET_VERSION >= 20141119 \
33393 || PACKET_VERSION >= 20141112 \
33394 || PACKET_VERSION >= 20141105 \
33395 || PACKET_VERSION >= 20141001 \
33396 || PACKET_VERSION >= 20140917 \
33397 || PACKET_VERSION >= 20140827 \
33398 || PACKET_VERSION >= 20140820 \
33399 || PACKET_VERSION >= 20140806 \
33400 || PACKET_VERSION >= 20140709 \
33401 || PACKET_VERSION >= 20140702 \
33402 || PACKET_VERSION >= 20140611 \
33403 || PACKET_VERSION >= 20140605 \
33404 || PACKET_VERSION >= 20140528 \
33405 || PACKET_VERSION >= 20140521 \
33406 || PACKET_VERSION >= 20140514 \
33407 || PACKET_VERSION >= 20140508 \
33408 || PACKET_VERSION >= 20140430 \
33409 || PACKET_VERSION >= 20140423 \
33410 || PACKET_VERSION >= 20140416 \
33411 || PACKET_VERSION >= 20140402 \
33412 || PACKET_VERSION >= 20140326 \
33413 || PACKET_VERSION >= 20140312 \
33414 || PACKET_VERSION >= 20140226 \
33415 || PACKET_VERSION >= 20140212 \
33416 || PACKET_VERSION >= 20140205 \
33417 || PACKET_VERSION >= 20140129 \
33418 || PACKET_VERSION >= 20140122 \
33419 || PACKET_VERSION >= 20140108 \
33420 || PACKET_VERSION >= 20131230 \
33421 || PACKET_VERSION >= 20131223 \
33422 || PACKET_VERSION >= 20131218 \
33423 || PACKET_VERSION >= 20131211 \
33424 || PACKET_VERSION >= 20131204 \
33425 || PACKET_VERSION >= 20131127 \
33426 || PACKET_VERSION >= 20131106 \
33427 || PACKET_VERSION >= 20131030 \
33428 || PACKET_VERSION >= 20131008 \
33429 || PACKET_VERSION >= 20130925 \
33430 || PACKET_VERSION >= 20130917 \
33431 || PACKET_VERSION >= 20130904 \
33432 || PACKET_VERSION >= 20130814 \
33433 || PACKET_VERSION >= 20130807 \
33434 || PACKET_VERSION >= 20130724 \
33435 || PACKET_VERSION >= 20130717 \
33436 || PACKET_VERSION >= 20130626 \
33437 || PACKET_VERSION >= 20130618 \
33438 || PACKET_VERSION >= 20130605 \
33439 || PACKET_VERSION >= 20130522 \
33440 || PACKET_VERSION >= 20130417 \
33441 || PACKET_VERSION >= 20130410 \
33442 || PACKET_VERSION >= 20130403 \
33443 || PACKET_VERSION >= 20130320 \
33444 || PACKET_VERSION >= 20130313 \
33445 || PACKET_VERSION >= 20130227 \
33446 || PACKET_VERSION >= 20130206 \
33447 || PACKET_VERSION >= 20130130 \
33448 || PACKET_VERSION >= 20130121 \
33449 || PACKET_VERSION >= 20130109 \
33450 || PACKET_VERSION >= 20130103 \
33451 || PACKET_VERSION >= 20121227 \
33452 || PACKET_VERSION >= 20121218 \
33453 || PACKET_VERSION >= 20121107 \
33454 || PACKET_VERSION >= 20121031 \
33455 || PACKET_VERSION >= 20121024 \
33456 || PACKET_VERSION >= 20121017 \
33457 || PACKET_VERSION >= 20120925 \
33458 || PACKET_VERSION >= 20120919 \
33459 || PACKET_VERSION >= 20120905 \
33460 || PACKET_VERSION >= 20120830 \
33461 || PACKET_VERSION >= 20120814 \
33462 || PACKET_VERSION >= 20120808 \
33463 || PACKET_VERSION >= 20120724 \
33464 || PACKET_VERSION >= 20120716 \
33465 || PACKET_VERSION >= 20120626 \
33466 || PACKET_VERSION >= 20120612 \
33467 || PACKET_VERSION >= 20120601 \
33468 || PACKET_VERSION >= 20120529 \
33469 || PACKET_VERSION >= 20120515 \
33470 || PACKET_VERSION >= 20120502 \
33471 || PACKET_VERSION >= 20120424 \
33472 || PACKET_VERSION >= 20120404 \
33473 || PACKET_VERSION >= 20120328 \
33474 || PACKET_VERSION >= 20120314 \
33475 || PACKET_VERSION >= 20120228 \
33476 || PACKET_VERSION >= 20120221 \
33477 || PACKET_VERSION >= 20120214 \
33478 || PACKET_VERSION >= 20120131 \
33479 || PACKET_VERSION >= 20120117 \
33480 || PACKET_VERSION >= 20120103 \
33481 || PACKET_VERSION >= 20111227 \
33482 || PACKET_VERSION >= 20111220 \
33483 || PACKET_VERSION >= 20111122 \
33484 || PACKET_VERSION >= 20111114 \
33485 || PACKET_VERSION >= 20111108 \
33486 || PACKET_VERSION >= 20111101 \
33487 || PACKET_VERSION >= 20111017 \
33488 || PACKET_VERSION >= 20111010 \
33489 || PACKET_VERSION >= 20111004 \
33490 || PACKET_VERSION >= 20110928 \
33491 || PACKET_VERSION >= 20110920 \
33492 || PACKET_VERSION >= 20110906 \
33493 || PACKET_VERSION >= 20110831 \
33494 || PACKET_VERSION >= 20110823 \
33495 || PACKET_VERSION >= 20110816 \
33496 || PACKET_VERSION >= 20110104 \
33497 || PACKET_VERSION >= 20100608)
33499#elif CLIENT_TYPE == 'R' && \
33500 PACKET_VERSION >= 20120926
33502#elif CLIENT_TYPE == 'R' && \
33503 PACKET_VERSION >= 20121011
33505#elif CLIENT_TYPE == 'R' && \
33506 PACKET_VERSION >= 20130116
33508#elif CLIENT_TYPE == 'R' && ( \
33509 PACKET_VERSION == 20151029 \
33510 || PACKET_VERSION == 20151022 \
33511 || PACKET_VERSION == 20150812 \
33512 || PACKET_VERSION == 20150618 \
33513 || PACKET_VERSION == 20150226 \
33514 || PACKET_VERSION >= 20141016)
33516#elif CLIENT_TYPE == 'R' && \
33517 PACKET_VERSION >= 20160630
33519#elif CLIENT_TYPE == 'R' && \
33520 PACKET_VERSION >= 20161103
33522#elif CLIENT_TYPE == 'Z' && ( \
33523 PACKET_VERSION >= 20220000 \
33524 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
33525 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
33526 || PACKET_VERSION >= 20190814 \
33527 || PACKET_VERSION >= 20190724 \
33528 || PACKET_VERSION >= 20190717 \
33529 || PACKET_VERSION >= 20190710 \
33530 || PACKET_VERSION >= 20190709 \
33531 || PACKET_VERSION >= 20190605 \
33532 || PACKET_VERSION >= 20190530 \
33533 || PACKET_VERSION >= 20190515 \
33534 || PACKET_VERSION >= 20190508 \
33535 || PACKET_VERSION >= 20190502 \
33536 || PACKET_VERSION >= 20190424 \
33537 || PACKET_VERSION >= 20190410 \
33538 || PACKET_VERSION >= 20190403 \
33539 || PACKET_VERSION >= 20190313 \
33540 || PACKET_VERSION >= 20190227 \
33541 || PACKET_VERSION >= 20190213 \
33542 || PACKET_VERSION >= 20190117 \
33543 || PACKET_VERSION >= 20181226 \
33544 || PACKET_VERSION >= 20181219 \
33545 || PACKET_VERSION >= 20181212 \
33546 || PACKET_VERSION >= 20181128 \
33547 || PACKET_VERSION >= 20181120 \
33548 || PACKET_VERSION >= 20180928 \
33549 || PACKET_VERSION >= 20180912 \
33550 || PACKET_VERSION >= 20180829 \
33551 || PACKET_VERSION >= 20180808 \
33552 || PACKET_VERSION >= 20180801 \
33553 || PACKET_VERSION >= 20180711 \
33554 || PACKET_VERSION >= 20180703 \
33555 || PACKET_VERSION >= 20180627 \
33556 || PACKET_VERSION >= 20180509 \
33557 || PACKET_VERSION >= 20180411 \
33558 || PACKET_VERSION >= 20180321 \
33559 || PACKET_VERSION >= 20171113 \
33560 || PACKET_VERSION >= 20171031 \
33561 || PACKET_VERSION >= 20171030 \
33562 || PACKET_VERSION >= 20171027 \
33563 || PACKET_VERSION >= 20171025 \
33564 || PACKET_VERSION >= 20171024 \
33565 || PACKET_VERSION >= 20171023 \
33566 || PACKET_VERSION >= 20171019)
33568#elif CLIENT_TYPE == 'Z' && ( \
33569 PACKET_VERSION == 20180309 \
33570 || PACKET_VERSION == 20180307 \
33571 || PACKET_VERSION == 20171128 \
33572 || PACKET_VERSION == 20171122 \
33573 || PACKET_VERSION == 20171117 \
33574 || PACKET_VERSION == 20171116)
33576#elif CLIENT_TYPE == 'Z' && ( \
33577 PACKET_VERSION == 20171213 \
33578 || PACKET_VERSION == 20171212 \
33579 || PACKET_VERSION == 20171211 \
33580 || PACKET_VERSION == 20171210 \
33581 || PACKET_VERSION == 20171209 \
33582 || PACKET_VERSION == 20171208)
33584#elif CLIENT_TYPE == 'Z' && \
33585 PACKET_VERSION >= 20171221
33587#elif CLIENT_TYPE == 'Z' && \
33588 PACKET_VERSION >= 20171229
33590#else
33591ID_CZ_SSILIST_ITEM_CLICK = 0x0000 // Disabled
33592#endif
33599{
33600public:
33601 CZ_SSILIST_ITEM_CLICK(std::shared_ptr<ZoneSession> s)
33603 {}
33605
33606 void handle(ByteBuffer &&buf);
33607 void deserialize(ByteBuffer &buf);
33608
33609/* Structure */
33610};
33611
33612enum {
33613#if CLIENT_TYPE == 'A' && \
33614 PACKET_VERSION >= 20061030
33616#elif CLIENT_TYPE == 'M' && ( \
33617 PACKET_VERSION >= 20220000 \
33618 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
33619 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
33620 || PACKET_VERSION >= 20061030)
33622#elif CLIENT_TYPE == 'R' && ( \
33623 PACKET_VERSION >= 20210000 \
33624 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
33625 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
33627#elif CLIENT_TYPE == 'S' && \
33628 PACKET_VERSION >= 20061030
33630#elif CLIENT_TYPE == 'Z' && ( \
33631 PACKET_VERSION >= 20220000 \
33632 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
33633 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
33634 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
33636#else
33637ID_CZ_STANDING_RESURRECTION = 0x0000 // Disabled
33638#endif
33645{
33646public:
33647 CZ_STANDING_RESURRECTION(std::shared_ptr<ZoneSession> s)
33649 {}
33651
33652 void handle(ByteBuffer &&buf);
33653 void deserialize(ByteBuffer &buf);
33654
33655/* Structure */
33656};
33657
33658enum {
33659#if CLIENT_TYPE == 'M' && ( \
33660 PACKET_VERSION >= 20220000 \
33661 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
33662 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
33663 || PACKET_VERSION >= 20181002)
33664ID_CZ_START_USE_SKILL = 0x0b10
33665#elif CLIENT_TYPE == 'R' && ( \
33666 PACKET_VERSION >= 20210000 \
33667 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
33668 || PACKET_VERSION >= 20181002)
33669ID_CZ_START_USE_SKILL = 0x0b10
33670#elif CLIENT_TYPE == 'Z' && ( \
33671 PACKET_VERSION >= 20220000 \
33672 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
33673 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
33674 || PACKET_VERSION >= 20181010)
33675ID_CZ_START_USE_SKILL = 0x0b10
33676#else
33677ID_CZ_START_USE_SKILL = 0x0000 // Disabled
33678#endif
33684class CZ_START_USE_SKILL : public Base::NetworkPacket<ZoneSession>
33685{
33686public:
33687 CZ_START_USE_SKILL(std::shared_ptr<ZoneSession> s)
33689 {}
33691
33692 void handle(ByteBuffer &&buf);
33693 void deserialize(ByteBuffer &buf);
33694
33695/* Structure */
33696};
33697
33698enum {
33699#if CLIENT_TYPE == 'A' && \
33700 PACKET_VERSION >= 20040000
33701ID_CZ_STATUS_CHANGE = 0x00bb
33702#elif CLIENT_TYPE == 'M' && ( \
33703 PACKET_VERSION >= 20220000 \
33704 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
33705 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
33706 || (PACKET_VERSION >= 20030000 && PACKET_VERSION < 20200000))
33707ID_CZ_STATUS_CHANGE = 0x00bb
33708#elif CLIENT_TYPE == 'R' && ( \
33709 PACKET_VERSION >= 20210000 \
33710 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
33711 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
33712ID_CZ_STATUS_CHANGE = 0x00bb
33713#elif CLIENT_TYPE == 'S' && \
33714 PACKET_VERSION >= 20030000
33715ID_CZ_STATUS_CHANGE = 0x00bb
33716#elif CLIENT_TYPE == 'Z' && ( \
33717 PACKET_VERSION >= 20220000 \
33718 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
33719 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
33720 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
33721ID_CZ_STATUS_CHANGE = 0x00bb
33722#else
33723ID_CZ_STATUS_CHANGE = 0x0000 // Disabled
33724#endif
33730class CZ_STATUS_CHANGE : public Base::NetworkPacket<ZoneSession>
33731{
33732public:
33733 CZ_STATUS_CHANGE(std::shared_ptr<ZoneSession> s)
33735 {}
33737
33738 void handle(ByteBuffer &&buf);
33739 void deserialize(ByteBuffer &buf);
33740
33741/* Structure */
33742 uint16_t _type{0};
33743 uint8_t _amount{0};
33744};
33745
33746enum {
33747#if CLIENT_TYPE == 'M' && ( \
33748 PACKET_VERSION >= 20220000 \
33749 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
33750 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
33751 || PACKET_VERSION >= 20181002)
33752ID_CZ_STOP_USE_SKILL = 0x0b11
33753#elif CLIENT_TYPE == 'R' && ( \
33754 PACKET_VERSION >= 20210000 \
33755 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
33756 || PACKET_VERSION >= 20181002)
33757ID_CZ_STOP_USE_SKILL = 0x0b11
33758#elif CLIENT_TYPE == 'Z' && ( \
33759 PACKET_VERSION >= 20220000 \
33760 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
33761 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
33762 || PACKET_VERSION >= 20181010)
33763ID_CZ_STOP_USE_SKILL = 0x0b11
33764#else
33765ID_CZ_STOP_USE_SKILL = 0x0000 // Disabled
33766#endif
33772class CZ_STOP_USE_SKILL : public Base::NetworkPacket<ZoneSession>
33773{
33774public:
33775 CZ_STOP_USE_SKILL(std::shared_ptr<ZoneSession> s)
33777 {}
33779
33780 void handle(ByteBuffer &&buf);
33781 void deserialize(ByteBuffer &buf);
33782
33783/* Structure */
33784};
33785
33786enum {
33787#if CLIENT_TYPE == 'M' && ( \
33788 PACKET_VERSION >= 20220000 \
33789 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
33790 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
33791 || (PACKET_VERSION >= 20190000 && PACKET_VERSION < 20200000))
33792ID_CZ_STYLE_CLOSE = 0x0a48
33793#elif CLIENT_TYPE == 'R' && ( \
33794 PACKET_VERSION >= 20210000 \
33795 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
33796 || (PACKET_VERSION >= 20190000 && PACKET_VERSION < 20200000))
33797ID_CZ_STYLE_CLOSE = 0x0a48
33798#elif CLIENT_TYPE == 'Z' && ( \
33799 PACKET_VERSION >= 20220000 \
33800 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
33801 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
33802 || (PACKET_VERSION >= 20190000 && PACKET_VERSION < 20200000))
33803ID_CZ_STYLE_CLOSE = 0x0a48
33804#else
33805ID_CZ_STYLE_CLOSE = 0x0000 // Disabled
33806#endif
33812class CZ_STYLE_CLOSE : public Base::NetworkPacket<ZoneSession>
33813{
33814public:
33815 CZ_STYLE_CLOSE(std::shared_ptr<ZoneSession> s)
33817 {}
33818 virtual ~CZ_STYLE_CLOSE() {}
33819
33820 void handle(ByteBuffer &&buf);
33821 void deserialize(ByteBuffer &buf);
33822
33823/* Structure */
33824};
33825
33826enum {
33827#if CLIENT_TYPE == 'A' && \
33828 PACKET_VERSION >= 20050328
33829ID_CZ_TAEKWON_RANK = 0x0225
33830#elif CLIENT_TYPE == 'M' && ( \
33831 PACKET_VERSION >= 20220000 \
33832 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
33833 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
33834 || PACKET_VERSION >= 20050328)
33835ID_CZ_TAEKWON_RANK = 0x0225
33836#elif CLIENT_TYPE == 'R' && ( \
33837 PACKET_VERSION >= 20210000 \
33838 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
33839 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
33840ID_CZ_TAEKWON_RANK = 0x0225
33841#elif CLIENT_TYPE == 'S' && \
33842 PACKET_VERSION >= 20050328
33843ID_CZ_TAEKWON_RANK = 0x0225
33844#elif CLIENT_TYPE == 'Z' && ( \
33845 PACKET_VERSION >= 20220000 \
33846 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
33847 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
33848 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
33849ID_CZ_TAEKWON_RANK = 0x0225
33850#else
33851ID_CZ_TAEKWON_RANK = 0x0000 // Disabled
33852#endif
33858class CZ_TAEKWON_RANK : public Base::NetworkPacket<ZoneSession>
33859{
33860public:
33861 CZ_TAEKWON_RANK(std::shared_ptr<ZoneSession> s)
33863 {}
33864 virtual ~CZ_TAEKWON_RANK() {}
33865
33866 void handle(ByteBuffer &&buf);
33867 void deserialize(ByteBuffer &buf);
33868
33869/* Structure */
33870};
33871
33872enum {
33873#if CLIENT_TYPE == 'A' && \
33874 PACKET_VERSION >= 20040000
33876#elif CLIENT_TYPE == 'M' && ( \
33877 PACKET_VERSION >= 20220000 \
33878 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
33879 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
33880 || (PACKET_VERSION >= 20030000 && PACKET_VERSION < 20200000))
33882#elif CLIENT_TYPE == 'R' && ( \
33883 PACKET_VERSION >= 20210000 \
33884 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
33885 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
33887#elif CLIENT_TYPE == 'S' && \
33888 PACKET_VERSION >= 20030000
33890#elif CLIENT_TYPE == 'Z' && ( \
33891 PACKET_VERSION >= 20220000 \
33892 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
33893 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
33894 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
33896#else
33897ID_CZ_TRYCAPTURE_MONSTER = 0x0000 // Disabled
33898#endif
33905{
33906public:
33907 CZ_TRYCAPTURE_MONSTER(std::shared_ptr<ZoneSession> s)
33909 {}
33911
33912 void handle(ByteBuffer &&buf);
33913 void deserialize(ByteBuffer &buf);
33914
33915/* Structure */
33916};
33917
33918enum {
33919#if CLIENT_TYPE == 'M' && ( \
33920 PACKET_VERSION >= 20220000 \
33921 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
33922 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
33923 || PACKET_VERSION >= 20110125)
33924ID_CZ_TRYCOLLECTION = 0x08b5
33925#elif CLIENT_TYPE == 'R' && ( \
33926 PACKET_VERSION >= 20210000 \
33927 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
33928 || PACKET_VERSION >= 20110125)
33929ID_CZ_TRYCOLLECTION = 0x08b5
33930#elif CLIENT_TYPE == 'Z' && ( \
33931 PACKET_VERSION >= 20220000 \
33932 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
33933 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
33934 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
33935ID_CZ_TRYCOLLECTION = 0x08b5
33936#else
33937ID_CZ_TRYCOLLECTION = 0x0000 // Disabled
33938#endif
33944class CZ_TRYCOLLECTION : public Base::NetworkPacket<ZoneSession>
33945{
33946public:
33947 CZ_TRYCOLLECTION(std::shared_ptr<ZoneSession> s)
33949 {}
33951
33952 void handle(ByteBuffer &&buf);
33953 void deserialize(ByteBuffer &buf);
33954
33955/* Structure */
33956};
33957
33958enum {
33959#if CLIENT_TYPE == 'M' && ( \
33960 PACKET_VERSION >= 20220000 \
33961 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
33962 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000))
33963ID_CZ_UNINSTALLATION = 0x0b35
33964#elif CLIENT_TYPE == 'R' && ( \
33965 PACKET_VERSION >= 20210000 \
33966 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000))
33967ID_CZ_UNINSTALLATION = 0x0b35
33968#elif CLIENT_TYPE == 'Z' && ( \
33969 PACKET_VERSION >= 20220000 \
33970 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
33971 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000))
33972ID_CZ_UNINSTALLATION = 0x0b35
33973#else
33974ID_CZ_UNINSTALLATION = 0x0000 // Disabled
33975#endif
33981class CZ_UNINSTALLATION : public Base::NetworkPacket<ZoneSession>
33982{
33983public:
33984 CZ_UNINSTALLATION(std::shared_ptr<ZoneSession> s)
33986 {}
33988
33989 void handle(ByteBuffer &&buf);
33990 void deserialize(ByteBuffer &buf);
33991
33992/* Structure */
33993};
33994
33995enum {
33996#if CLIENT_TYPE == 'M' && \
33997 PACKET_VERSION >= 20111108
33999#elif CLIENT_TYPE == 'R' && \
34000 PACKET_VERSION >= 20111108
34002#else
34004#endif
34011{
34012public:
34013 CZ_UNKNOWN_BOOKING_SOMMON_MEMBER_08f5(std::shared_ptr<ZoneSession> s)
34015 {}
34017
34018 void handle(ByteBuffer &&buf);
34019 void deserialize(ByteBuffer &buf);
34020
34021/* Structure */
34022};
34023
34024enum {
34025#if CLIENT_TYPE == 'A' && \
34026 PACKET_VERSION >= 20061226
34028#elif CLIENT_TYPE == 'M' && \
34029 PACKET_VERSION >= 20061226
34031#elif CLIENT_TYPE == 'S' && \
34032 PACKET_VERSION >= 20061226
34034#else
34035ID_CZ_UNUSED_MER_UPGRADE_SKILLLEVEL = 0x0000 // Disabled
34036#endif
34043{
34044public:
34045 CZ_UNUSED_MER_UPGRADE_SKILLLEVEL(std::shared_ptr<ZoneSession> s)
34047 {}
34049
34050 void handle(ByteBuffer &&buf);
34051 void deserialize(ByteBuffer &buf);
34052
34053/* Structure */
34054};
34055
34056enum {
34057#if CLIENT_TYPE == 'A' && \
34058 PACKET_VERSION >= 20061226
34060#elif CLIENT_TYPE == 'M' && \
34061 PACKET_VERSION >= 20061226
34063#elif CLIENT_TYPE == 'S' && \
34064 PACKET_VERSION >= 20061226
34066#else
34067ID_CZ_UNUSED_MER_USE_SKILL = 0x0000 // Disabled
34068#endif
34075{
34076public:
34077 CZ_UNUSED_MER_USE_SKILL(std::shared_ptr<ZoneSession> s)
34079 {}
34081
34082 void handle(ByteBuffer &&buf);
34083 void deserialize(ByteBuffer &buf);
34084
34085/* Structure */
34086};
34087
34088enum {
34089#if CLIENT_TYPE == 'A' && \
34090 PACKET_VERSION >= 20040000
34092#elif CLIENT_TYPE == 'M' && ( \
34093 PACKET_VERSION >= 20220000 \
34094 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
34095 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
34096 || (PACKET_VERSION >= 20030000 && PACKET_VERSION < 20200000))
34098#elif CLIENT_TYPE == 'R' && ( \
34099 PACKET_VERSION >= 20210000 \
34100 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
34101 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
34103#elif CLIENT_TYPE == 'S' && \
34104 PACKET_VERSION >= 20030000
34106#elif CLIENT_TYPE == 'Z' && ( \
34107 PACKET_VERSION >= 20220000 \
34108 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
34109 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
34110 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
34112#else
34113ID_CZ_UPGRADE_SKILLLEVEL = 0x0000 // Disabled
34114#endif
34121{
34122public:
34123 CZ_UPGRADE_SKILLLEVEL(std::shared_ptr<ZoneSession> s)
34125 {}
34127
34128 void handle(ByteBuffer &&buf);
34129 void deserialize(ByteBuffer &buf);
34130
34131/* Structure */
34132 int16_t _skill_id{0};
34133};
34134
34135enum {
34136#if CLIENT_TYPE == 'M' && ( \
34137 PACKET_VERSION >= 20220000 \
34138 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
34139 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000))
34141#elif CLIENT_TYPE == 'R' && ( \
34142 PACKET_VERSION >= 20210000 \
34143 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000))
34145#elif CLIENT_TYPE == 'Z' && ( \
34146 PACKET_VERSION >= 20220000 \
34147 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
34148 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000))
34150#else
34151ID_CZ_UPLOAD_MACRO_DETECTOR_CAPTCHA = 0x0000 // Disabled
34152#endif
34159{
34160public:
34161 CZ_UPLOAD_MACRO_DETECTOR_CAPTCHA(std::shared_ptr<ZoneSession> s)
34163 {}
34165
34166 void handle(ByteBuffer &&buf);
34167 void deserialize(ByteBuffer &buf);
34168
34169/* Structure */
34170};
34171
34172enum {
34173#if CLIENT_TYPE == 'M' && ( \
34174 PACKET_VERSION >= 20220000 \
34175 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
34176 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
34177 || (PACKET_VERSION >= 20030000 && PACKET_VERSION < 20200000))
34178ID_CZ_USE_ITEM = 0x00a7
34179#elif CLIENT_TYPE == 'S' && \
34180 PACKET_VERSION >= 20030000
34181ID_CZ_USE_ITEM = 0x00a7
34182#else
34183ID_CZ_USE_ITEM = 0x0000 // Disabled
34184#endif
34190class CZ_USE_ITEM : public Base::NetworkPacket<ZoneSession>
34191{
34192public:
34193 CZ_USE_ITEM(std::shared_ptr<ZoneSession> s)
34195 {}
34196 virtual ~CZ_USE_ITEM() {}
34197
34198 void handle(ByteBuffer &&buf);
34199 void deserialize(ByteBuffer &buf);
34200
34201/* Structure */
34202 uint16_t _inventory_index{0};
34203 uint32_t _guid{0};
34204};
34205
34206enum {
34207#if CLIENT_TYPE == 'M' && ( \
34208 PACKET_VERSION >= 20220000 \
34209 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
34210 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
34211 || PACKET_VERSION >= 20081217)
34212ID_CZ_USE_ITEM2 = 0x0439
34213#elif CLIENT_TYPE == 'R' && ( \
34214 PACKET_VERSION >= 20210000 \
34215 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
34216 || PACKET_VERSION >= 20080910)
34217ID_CZ_USE_ITEM2 = 0x0439
34218#elif CLIENT_TYPE == 'S' && \
34219 PACKET_VERSION >= 20080910
34220ID_CZ_USE_ITEM2 = 0x0439
34221#elif CLIENT_TYPE == 'Z' && ( \
34222 PACKET_VERSION >= 20220000 \
34223 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
34224 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
34225 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
34226ID_CZ_USE_ITEM2 = 0x0439
34227#else
34228ID_CZ_USE_ITEM2 = 0x0000 // Disabled
34229#endif
34235class CZ_USE_ITEM2 : public Base::NetworkPacket<ZoneSession>
34236{
34237public:
34238 CZ_USE_ITEM2(std::shared_ptr<ZoneSession> s)
34240 {}
34241 virtual ~CZ_USE_ITEM2() {}
34242
34243 void handle(ByteBuffer &&buf);
34244 void deserialize(ByteBuffer &buf);
34245
34246/* Structure */
34247 uint16_t _inventory_index{0};
34248 uint32_t _guid{0};
34249};
34250
34251enum {
34252#if CLIENT_TYPE == 'A' && \
34253 PACKET_VERSION >= 20071120
34255#elif CLIENT_TYPE == 'M' && ( \
34256 PACKET_VERSION >= 20220000 \
34257 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
34258 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
34259 || PACKET_VERSION >= 20071120)
34261#elif CLIENT_TYPE == 'R' && ( \
34262 PACKET_VERSION >= 20210000 \
34263 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
34264 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
34266#elif CLIENT_TYPE == 'S' && \
34267 PACKET_VERSION >= 20071120
34269#elif CLIENT_TYPE == 'Z' && ( \
34270 PACKET_VERSION >= 20220000 \
34271 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
34272 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
34273 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
34275#else
34276ID_CZ_USE_ITEM_NEW_JAPEN = 0x0000 // Disabled
34277#endif
34284{
34285public:
34286 CZ_USE_ITEM_NEW_JAPEN(std::shared_ptr<ZoneSession> s)
34288 {}
34290
34291 void handle(ByteBuffer &&buf);
34292 void deserialize(ByteBuffer &buf);
34293
34294/* Structure */
34295};
34296
34297enum {
34298#if CLIENT_TYPE == 'A' && \
34299 PACKET_VERSION >= 20041129
34300ID_CZ_USE_SKILL = 0x0113
34301#elif CLIENT_TYPE == 'M' && \
34302 PACKET_VERSION >= 20030000
34303ID_CZ_USE_SKILL = 0x0113
34304#elif CLIENT_TYPE == 'M' && \
34305 PACKET_VERSION >= 20120712
34306ID_CZ_USE_SKILL = 0x085b
34307#elif CLIENT_TYPE == 'M' && \
34308 PACKET_VERSION >= 20120926
34309ID_CZ_USE_SKILL = 0x088d
34310#elif CLIENT_TYPE == 'M' && ( \
34311 PACKET_VERSION == 20180131 \
34312 || PACKET_VERSION >= 20160609 \
34313 || PACKET_VERSION >= 20160526 \
34314 || PACKET_VERSION >= 20160318 \
34315 || PACKET_VERSION >= 20151029 \
34316 || PACKET_VERSION >= 20151022 \
34317 || PACKET_VERSION >= 20150812 \
34318 || PACKET_VERSION >= 20150618 \
34319 || PACKET_VERSION >= 20150226 \
34320 || PACKET_VERSION >= 20141016 \
34321 || PACKET_VERSION >= 20140814 \
34322 || PACKET_VERSION >= 20130107)
34323ID_CZ_USE_SKILL = 0x083c
34324#elif CLIENT_TYPE == 'M' && \
34325 PACKET_VERSION >= 20130116
34326ID_CZ_USE_SKILL = 0x0918
34327#elif CLIENT_TYPE == 'M' && ( \
34328 PACKET_VERSION == 20131108 \
34329 || PACKET_VERSION == 20131107)
34330ID_CZ_USE_SKILL = 0x0363
34331#elif CLIENT_TYPE == 'M' && ( \
34332 PACKET_VERSION == 20140613 \
34333 || PACKET_VERSION == 20140612)
34334ID_CZ_USE_SKILL = 0x08a1
34335#elif CLIENT_TYPE == 'M' && ( \
34336 PACKET_VERSION >= 20220000 \
34337 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
34338 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
34339 || PACKET_VERSION >= 20150130 \
34340 || PACKET_VERSION >= 20150129)
34341ID_CZ_USE_SKILL = 0x093a
34342#elif CLIENT_TYPE == 'M' && \
34343 PACKET_VERSION >= 20150702
34344ID_CZ_USE_SKILL = 0x08a6
34345#elif CLIENT_TYPE == 'M' && \
34346 PACKET_VERSION >= 20160630
34347ID_CZ_USE_SKILL = 0x0925
34348#elif CLIENT_TYPE == 'M' && \
34349 PACKET_VERSION >= 20161103
34350ID_CZ_USE_SKILL = 0x085f
34351#elif CLIENT_TYPE == 'M' && \
34352 PACKET_VERSION >= 20180309
34353ID_CZ_USE_SKILL = 0x0893
34354#elif CLIENT_TYPE == 'M' && ( \
34355 PACKET_VERSION == 20190821 \
34356 || PACKET_VERSION == 20190807 \
34357 || PACKET_VERSION == 20190802 \
34358 || PACKET_VERSION == 20190731 \
34359 || PACKET_VERSION == 20190724 \
34360 || PACKET_VERSION == 20190717 \
34361 || PACKET_VERSION == 20190703 \
34362 || PACKET_VERSION == 20190605 \
34363 || PACKET_VERSION == 20190530 \
34364 || PACKET_VERSION == 20190523 \
34365 || PACKET_VERSION == 20190522 \
34366 || PACKET_VERSION == 20190508 \
34367 || PACKET_VERSION == 20190418 \
34368 || PACKET_VERSION == 20190417 \
34369 || PACKET_VERSION == 20190327 \
34370 || PACKET_VERSION == 20190322 \
34371 || PACKET_VERSION == 20190320 \
34372 || PACKET_VERSION == 20190313 \
34373 || PACKET_VERSION == 20190306 \
34374 || PACKET_VERSION == 20190228 \
34375 || PACKET_VERSION == 20190123 \
34376 || PACKET_VERSION == 20190116 \
34377 || PACKET_VERSION == 20181226 \
34378 || PACKET_VERSION == 20181219 \
34379 || PACKET_VERSION == 20181212 \
34380 || PACKET_VERSION == 20181205 \
34381 || PACKET_VERSION == 20181128 \
34382 || PACKET_VERSION == 20181114 \
34383 || PACKET_VERSION == 20181107 \
34384 || PACKET_VERSION == 20181024 \
34385 || PACKET_VERSION == 20180919 \
34386 || PACKET_VERSION == 20180831 \
34387 || PACKET_VERSION == 20180822 \
34388 || PACKET_VERSION >= 20180808 \
34389 || PACKET_VERSION >= 20180718 \
34390 || PACKET_VERSION >= 20180704 \
34391 || PACKET_VERSION >= 20180621 \
34392 || PACKET_VERSION >= 20180620 \
34393 || PACKET_VERSION >= 20180530 \
34394 || PACKET_VERSION >= 20180523 \
34395 || PACKET_VERSION >= 20180516 \
34396 || PACKET_VERSION >= 20180509 \
34397 || PACKET_VERSION >= 20180502 \
34398 || PACKET_VERSION >= 20180425 \
34399 || PACKET_VERSION >= 20180404 \
34400 || PACKET_VERSION >= 20180328 \
34401 || PACKET_VERSION >= 20180321)
34402ID_CZ_USE_SKILL = 0x0438
34403#elif CLIENT_TYPE == 'R' && \
34404 PACKET_VERSION >= 20080000
34405ID_CZ_USE_SKILL = 0x0113
34406#elif CLIENT_TYPE == 'R' && \
34407 PACKET_VERSION >= 20120712
34408ID_CZ_USE_SKILL = 0x085b
34409#elif CLIENT_TYPE == 'R' && \
34410 PACKET_VERSION >= 20120926
34411ID_CZ_USE_SKILL = 0x088d
34412#elif CLIENT_TYPE == 'R' && \
34413 PACKET_VERSION >= 20121011
34414ID_CZ_USE_SKILL = 0x0891
34415#elif CLIENT_TYPE == 'R' && ( \
34416 PACKET_VERSION >= 20210000 \
34417 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
34418 || PACKET_VERSION >= 20130116)
34419ID_CZ_USE_SKILL = 0x0918
34420#elif CLIENT_TYPE == 'R' && ( \
34421 PACKET_VERSION == 20151029 \
34422 || PACKET_VERSION == 20151022 \
34423 || PACKET_VERSION == 20150812 \
34424 || PACKET_VERSION == 20150618 \
34425 || PACKET_VERSION == 20150226 \
34426 || PACKET_VERSION >= 20141016)
34427ID_CZ_USE_SKILL = 0x083c
34428#elif CLIENT_TYPE == 'R' && \
34429 PACKET_VERSION >= 20160630
34430ID_CZ_USE_SKILL = 0x0925
34431#elif CLIENT_TYPE == 'R' && \
34432 PACKET_VERSION >= 20161103
34433ID_CZ_USE_SKILL = 0x085f
34434#elif CLIENT_TYPE == 'R' && ( \
34435 PACKET_VERSION == 20190821 \
34436 || PACKET_VERSION == 20190807 \
34437 || PACKET_VERSION == 20190802 \
34438 || PACKET_VERSION == 20190731 \
34439 || PACKET_VERSION == 20190724 \
34440 || PACKET_VERSION == 20190717 \
34441 || PACKET_VERSION == 20190703 \
34442 || PACKET_VERSION == 20190626 \
34443 || PACKET_VERSION == 20190605 \
34444 || PACKET_VERSION == 20190530 \
34445 || PACKET_VERSION == 20190522 \
34446 || PACKET_VERSION == 20190508 \
34447 || PACKET_VERSION == 20190418 \
34448 || PACKET_VERSION == 20190417 \
34449 || PACKET_VERSION == 20190327 \
34450 || PACKET_VERSION == 20190322 \
34451 || PACKET_VERSION == 20190320 \
34452 || PACKET_VERSION == 20190306 \
34453 || PACKET_VERSION == 20190228 \
34454 || PACKET_VERSION == 20190123 \
34455 || PACKET_VERSION == 20190116 \
34456 || PACKET_VERSION == 20181226 \
34457 || PACKET_VERSION == 20181219 \
34458 || PACKET_VERSION == 20181212 \
34459 || PACKET_VERSION == 20181205 \
34460 || PACKET_VERSION == 20181128 \
34461 || PACKET_VERSION == 20181121 \
34462 || PACKET_VERSION == 20181114 \
34463 || PACKET_VERSION == 20181107 \
34464 || PACKET_VERSION == 20180822 \
34465 || PACKET_VERSION >= 20180808 \
34466 || PACKET_VERSION >= 20180718 \
34467 || PACKET_VERSION >= 20180711 \
34468 || PACKET_VERSION >= 20180621 \
34469 || PACKET_VERSION >= 20180620 \
34470 || PACKET_VERSION >= 20180612 \
34471 || PACKET_VERSION >= 20180530 \
34472 || PACKET_VERSION >= 20180523 \
34473 || PACKET_VERSION >= 20180516 \
34474 || PACKET_VERSION >= 20180502 \
34475 || PACKET_VERSION >= 20180425 \
34476 || PACKET_VERSION >= 20180404 \
34477 || PACKET_VERSION >= 20180328)
34478ID_CZ_USE_SKILL = 0x0438
34479#elif CLIENT_TYPE == 'S' && \
34480 PACKET_VERSION >= 20030000
34481ID_CZ_USE_SKILL = 0x0113
34482#elif CLIENT_TYPE == 'Z' && \
34483 PACKET_VERSION >= 20170000
34484ID_CZ_USE_SKILL = 0x0113
34485#elif CLIENT_TYPE == 'Z' && ( \
34486 PACKET_VERSION == 20190814 \
34487 || PACKET_VERSION == 20190724 \
34488 || PACKET_VERSION == 20190717 \
34489 || PACKET_VERSION == 20190710 \
34490 || PACKET_VERSION == 20190709 \
34491 || PACKET_VERSION == 20190605 \
34492 || PACKET_VERSION == 20190530 \
34493 || PACKET_VERSION == 20190515 \
34494 || PACKET_VERSION == 20190508 \
34495 || PACKET_VERSION == 20190502 \
34496 || PACKET_VERSION == 20190424 \
34497 || PACKET_VERSION == 20190410 \
34498 || PACKET_VERSION == 20190403 \
34499 || PACKET_VERSION == 20190313 \
34500 || PACKET_VERSION == 20190227 \
34501 || PACKET_VERSION == 20190213 \
34502 || PACKET_VERSION == 20190117 \
34503 || PACKET_VERSION == 20181226 \
34504 || PACKET_VERSION == 20181219 \
34505 || PACKET_VERSION == 20181212 \
34506 || PACKET_VERSION == 20181128 \
34507 || PACKET_VERSION == 20181120 \
34508 || PACKET_VERSION == 20180928 \
34509 || PACKET_VERSION == 20180912 \
34510 || PACKET_VERSION == 20180829 \
34511 || PACKET_VERSION >= 20180808 \
34512 || PACKET_VERSION >= 20180801 \
34513 || PACKET_VERSION >= 20180711 \
34514 || PACKET_VERSION >= 20180703 \
34515 || PACKET_VERSION >= 20180627 \
34516 || PACKET_VERSION >= 20180509 \
34517 || PACKET_VERSION >= 20180411 \
34518 || PACKET_VERSION >= 20180321 \
34519 || PACKET_VERSION >= 20171113 \
34520 || PACKET_VERSION >= 20171031 \
34521 || PACKET_VERSION >= 20171030 \
34522 || PACKET_VERSION >= 20171027 \
34523 || PACKET_VERSION >= 20171025 \
34524 || PACKET_VERSION >= 20171024 \
34525 || PACKET_VERSION >= 20171023 \
34526 || PACKET_VERSION >= 20171019)
34527ID_CZ_USE_SKILL = 0x0438
34528#elif CLIENT_TYPE == 'Z' && ( \
34529 PACKET_VERSION == 20180309 \
34530 || PACKET_VERSION == 20180307 \
34531 || PACKET_VERSION == 20171128 \
34532 || PACKET_VERSION == 20171122 \
34533 || PACKET_VERSION == 20171117 \
34534 || PACKET_VERSION == 20171116)
34535ID_CZ_USE_SKILL = 0x083c
34536#elif CLIENT_TYPE == 'Z' && ( \
34537 PACKET_VERSION == 20171213 \
34538 || PACKET_VERSION == 20171212 \
34539 || PACKET_VERSION == 20171211 \
34540 || PACKET_VERSION == 20171210 \
34541 || PACKET_VERSION == 20171209 \
34542 || PACKET_VERSION == 20171208)
34543ID_CZ_USE_SKILL = 0x0281
34544#elif CLIENT_TYPE == 'Z' && \
34545 PACKET_VERSION >= 20171221
34546ID_CZ_USE_SKILL = 0x094d
34547#elif CLIENT_TYPE == 'Z' && ( \
34548 PACKET_VERSION >= 20220000 \
34549 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
34550 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
34551 || PACKET_VERSION >= 20171229)
34552ID_CZ_USE_SKILL = 0x0967
34553#else
34554ID_CZ_USE_SKILL = 0x0000 // Disabled
34555#endif
34561class CZ_USE_SKILL : public Base::NetworkPacket<ZoneSession>
34562{
34563public:
34564 CZ_USE_SKILL(std::shared_ptr<ZoneSession> s)
34566 {}
34567 virtual ~CZ_USE_SKILL() {}
34568
34569 void handle(ByteBuffer &&buf);
34570 void deserialize(ByteBuffer &buf);
34571
34572/* Structure */
34573 int16_t _skill_lv{ 0 };
34574 int16_t _skill_id{ 0 };
34575 int _target_id{ 0 };
34576};
34577
34578enum {
34579#if CLIENT_TYPE == 'M' && ( \
34580 PACKET_VERSION >= 20220000 \
34581 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
34582 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
34583 || (PACKET_VERSION >= 20190000 && PACKET_VERSION < 20200000) \
34584 || PACKET_VERSION >= 20180315 \
34585 || PACKET_VERSION >= 20180213 \
34586 || PACKET_VERSION >= 20180117 \
34587 || PACKET_VERSION >= 20180103 \
34588 || PACKET_VERSION >= 20171227 \
34589 || PACKET_VERSION >= 20171220 \
34590 || PACKET_VERSION >= 20171129 \
34591 || PACKET_VERSION >= 20171122 \
34592 || PACKET_VERSION >= 20171115 \
34593 || PACKET_VERSION >= 20171108 \
34594 || PACKET_VERSION >= 20171101 \
34595 || PACKET_VERSION >= 20171011 \
34596 || PACKET_VERSION >= 20171002 \
34597 || PACKET_VERSION >= 20170913 \
34598 || PACKET_VERSION >= 20170906 \
34599 || PACKET_VERSION >= 20170830 \
34600 || PACKET_VERSION >= 20170823 \
34601 || PACKET_VERSION >= 20170816 \
34602 || PACKET_VERSION >= 20170809 \
34603 || PACKET_VERSION >= 20170801 \
34604 || PACKET_VERSION >= 20170726 \
34605 || PACKET_VERSION >= 20170719 \
34606 || PACKET_VERSION >= 20170621 \
34607 || PACKET_VERSION >= 20170517 \
34608 || PACKET_VERSION >= 20170426 \
34609 || PACKET_VERSION >= 20170412 \
34610 || PACKET_VERSION >= 20170322 \
34611 || PACKET_VERSION >= 20170315 \
34612 || PACKET_VERSION >= 20170308 \
34613 || PACKET_VERSION >= 20170228 \
34614 || PACKET_VERSION >= 20170222 \
34615 || PACKET_VERSION >= 20170215 \
34616 || PACKET_VERSION >= 20170201 \
34617 || PACKET_VERSION >= 20170125 \
34618 || PACKET_VERSION >= 20170118 \
34619 || PACKET_VERSION >= 20170111 \
34620 || PACKET_VERSION >= 20170104 \
34621 || PACKET_VERSION >= 20161228 \
34622 || PACKET_VERSION >= 20161221 \
34623 || PACKET_VERSION >= 20161130 \
34624 || PACKET_VERSION >= 20161102 \
34625 || PACKET_VERSION >= 20161026 \
34626 || PACKET_VERSION >= 20161019 \
34627 || PACKET_VERSION >= 20160928 \
34628 || PACKET_VERSION >= 20160921 \
34629 || PACKET_VERSION >= 20160913 \
34630 || PACKET_VERSION >= 20160907 \
34631 || PACKET_VERSION >= 20160831 \
34632 || PACKET_VERSION >= 20160824 \
34633 || PACKET_VERSION >= 20160803 \
34634 || PACKET_VERSION >= 20160727 \
34635 || PACKET_VERSION >= 20160615 \
34636 || PACKET_VERSION >= 20160511 \
34637 || PACKET_VERSION >= 20160504 \
34638 || PACKET_VERSION >= 20160414 \
34639 || PACKET_VERSION >= 20160406 \
34640 || PACKET_VERSION >= 20160316 \
34641 || PACKET_VERSION >= 20160302 \
34642 || PACKET_VERSION >= 20160224 \
34643 || PACKET_VERSION >= 20160217 \
34644 || PACKET_VERSION >= 20160120 \
34645 || PACKET_VERSION >= 20160113 \
34646 || PACKET_VERSION >= 20160106 \
34647 || PACKET_VERSION >= 20151209 \
34648 || PACKET_VERSION >= 20151202 \
34649 || PACKET_VERSION >= 20151125 \
34650 || PACKET_VERSION >= 20151021 \
34651 || PACKET_VERSION >= 20151014 \
34652 || PACKET_VERSION >= 20151001 \
34653 || PACKET_VERSION >= 20150916 \
34654 || PACKET_VERSION >= 20150909 \
34655 || PACKET_VERSION >= 20150826 \
34656 || PACKET_VERSION >= 20150805 \
34657 || PACKET_VERSION >= 20150729 \
34658 || PACKET_VERSION >= 20150722 \
34659 || PACKET_VERSION >= 20150715 \
34660 || PACKET_VERSION >= 20150708 \
34661 || PACKET_VERSION >= 20150701 \
34662 || PACKET_VERSION >= 20150617 \
34663 || PACKET_VERSION >= 20150610 \
34664 || PACKET_VERSION >= 20150603 \
34665 || PACKET_VERSION >= 20150527 \
34666 || PACKET_VERSION >= 20150520 \
34667 || PACKET_VERSION >= 20150422 \
34668 || PACKET_VERSION >= 20150318 \
34669 || PACKET_VERSION >= 20150311 \
34670 || PACKET_VERSION >= 20150217 \
34671 || PACKET_VERSION >= 20150211 \
34672 || PACKET_VERSION >= 20150204 \
34673 || PACKET_VERSION >= 20150128 \
34674 || PACKET_VERSION >= 20150107 \
34675 || PACKET_VERSION >= 20141231 \
34676 || PACKET_VERSION >= 20141224 \
34677 || PACKET_VERSION >= 20141217 \
34678 || PACKET_VERSION >= 20141210 \
34679 || PACKET_VERSION >= 20141203 \
34680 || PACKET_VERSION >= 20141126 \
34681 || PACKET_VERSION >= 20141119 \
34682 || PACKET_VERSION >= 20141112 \
34683 || PACKET_VERSION >= 20141105 \
34684 || PACKET_VERSION >= 20141029 \
34685 || PACKET_VERSION >= 20141022 \
34686 || PACKET_VERSION >= 20141001 \
34687 || PACKET_VERSION >= 20140917 \
34688 || PACKET_VERSION >= 20140827 \
34689 || PACKET_VERSION >= 20140820 \
34690 || PACKET_VERSION >= 20140806 \
34691 || PACKET_VERSION >= 20140709 \
34692 || PACKET_VERSION >= 20140702 \
34693 || PACKET_VERSION >= 20140618 \
34694 || PACKET_VERSION >= 20140611 \
34695 || PACKET_VERSION >= 20140605 \
34696 || PACKET_VERSION >= 20140528 \
34697 || PACKET_VERSION >= 20140521 \
34698 || PACKET_VERSION >= 20140514 \
34699 || PACKET_VERSION >= 20140430 \
34700 || PACKET_VERSION >= 20140423 \
34701 || PACKET_VERSION >= 20140416 \
34702 || PACKET_VERSION >= 20140312 \
34703 || PACKET_VERSION >= 20140305 \
34704 || PACKET_VERSION >= 20140226 \
34705 || PACKET_VERSION >= 20140219 \
34706 || PACKET_VERSION >= 20140212 \
34707 || PACKET_VERSION >= 20140129 \
34708 || PACKET_VERSION >= 20140122 \
34709 || PACKET_VERSION >= 20140108 \
34710 || PACKET_VERSION >= 20131230 \
34711 || PACKET_VERSION >= 20131211 \
34712 || PACKET_VERSION >= 20131204 \
34713 || PACKET_VERSION >= 20131127 \
34714 || PACKET_VERSION >= 20131106 \
34715 || PACKET_VERSION >= 20131030 \
34716 || PACKET_VERSION >= 20131023 \
34717 || PACKET_VERSION >= 20131008 \
34718 || PACKET_VERSION >= 20131002 \
34719 || PACKET_VERSION >= 20130925 \
34720 || PACKET_VERSION >= 20130917 \
34721 || PACKET_VERSION >= 20130904 \
34722 || PACKET_VERSION >= 20130828 \
34723 || PACKET_VERSION >= 20130821 \
34724 || PACKET_VERSION >= 20130814 \
34725 || PACKET_VERSION >= 20130807 \
34726 || PACKET_VERSION >= 20130731 \
34727 || PACKET_VERSION >= 20130717 \
34728 || PACKET_VERSION >= 20130626 \
34729 || PACKET_VERSION >= 20130618 \
34730 || PACKET_VERSION >= 20130529 \
34731 || PACKET_VERSION >= 20130522 \
34732 || PACKET_VERSION >= 20130417 \
34733 || PACKET_VERSION >= 20130410 \
34734 || PACKET_VERSION >= 20130403 \
34735 || PACKET_VERSION >= 20130327 \
34736 || PACKET_VERSION >= 20130320 \
34737 || PACKET_VERSION >= 20130313 \
34738 || PACKET_VERSION >= 20130227 \
34739 || PACKET_VERSION >= 20130206 \
34740 || PACKET_VERSION >= 20130130 \
34741 || PACKET_VERSION >= 20130121 \
34742 || PACKET_VERSION >= 20130109 \
34743 || PACKET_VERSION >= 20130103 \
34744 || PACKET_VERSION >= 20121227 \
34745 || PACKET_VERSION >= 20121218 \
34746 || PACKET_VERSION >= 20121107 \
34747 || PACKET_VERSION >= 20121031 \
34748 || PACKET_VERSION >= 20121024 \
34749 || PACKET_VERSION >= 20121017 \
34750 || PACKET_VERSION >= 20120925 \
34751 || PACKET_VERSION >= 20120919 \
34752 || PACKET_VERSION >= 20120911 \
34753 || PACKET_VERSION >= 20120822 \
34754 || PACKET_VERSION >= 20120814 \
34755 || PACKET_VERSION >= 20120808 \
34756 || PACKET_VERSION >= 20120801 \
34757 || PACKET_VERSION >= 20120724 \
34758 || PACKET_VERSION >= 20120716 \
34759 || PACKET_VERSION >= 20120626 \
34760 || PACKET_VERSION >= 20120612 \
34761 || PACKET_VERSION >= 20120604 \
34762 || PACKET_VERSION >= 20120529 \
34763 || PACKET_VERSION >= 20120515 \
34764 || PACKET_VERSION >= 20120503 \
34765 || PACKET_VERSION >= 20120424 \
34766 || PACKET_VERSION >= 20120404 \
34767 || PACKET_VERSION >= 20120328 \
34768 || PACKET_VERSION >= 20120307 \
34769 || PACKET_VERSION >= 20120228 \
34770 || PACKET_VERSION >= 20120221 \
34771 || PACKET_VERSION >= 20120214 \
34772 || PACKET_VERSION >= 20120131 \
34773 || PACKET_VERSION >= 20120117 \
34774 || PACKET_VERSION >= 20120103 \
34775 || PACKET_VERSION >= 20111227 \
34776 || PACKET_VERSION >= 20111220 \
34777 || PACKET_VERSION >= 20111122 \
34778 || PACKET_VERSION >= 20111114 \
34779 || PACKET_VERSION >= 20111108 \
34780 || PACKET_VERSION >= 20111025 \
34781 || PACKET_VERSION >= 20111017 \
34782 || PACKET_VERSION >= 20111010 \
34783 || PACKET_VERSION >= 20110928 \
34784 || PACKET_VERSION >= 20110920 \
34785 || PACKET_VERSION >= 20110906 \
34786 || PACKET_VERSION >= 20110831 \
34787 || PACKET_VERSION >= 20110823 \
34788 || PACKET_VERSION >= 20110809 \
34789 || PACKET_VERSION >= 20110802 \
34790 || PACKET_VERSION >= 20110726 \
34791 || PACKET_VERSION >= 20110718 \
34792 || PACKET_VERSION >= 20110627 \
34793 || PACKET_VERSION >= 20110620 \
34794 || PACKET_VERSION >= 20110517 \
34795 || PACKET_VERSION >= 20110503 \
34796 || PACKET_VERSION >= 20110426 \
34797 || PACKET_VERSION >= 20110419 \
34798 || PACKET_VERSION >= 20110412 \
34799 || PACKET_VERSION >= 20110405 \
34800 || PACKET_VERSION >= 20110329 \
34801 || PACKET_VERSION >= 20110322 \
34802 || PACKET_VERSION >= 20110308 \
34803 || PACKET_VERSION >= 20110228 \
34804 || PACKET_VERSION >= 20110222 \
34805 || PACKET_VERSION >= 20110215 \
34806 || PACKET_VERSION >= 20110208 \
34807 || PACKET_VERSION >= 20110131 \
34808 || PACKET_VERSION >= 20110125 \
34809 || PACKET_VERSION >= 20110118 \
34810 || PACKET_VERSION >= 20110104 \
34811 || PACKET_VERSION >= 20101214 \
34812 || PACKET_VERSION >= 20101207 \
34813 || PACKET_VERSION >= 20101130 \
34814 || PACKET_VERSION >= 20100105 \
34815 || PACKET_VERSION >= 20090406 \
34816 || PACKET_VERSION >= 20090318 \
34817 || PACKET_VERSION >= 20090311 \
34818 || PACKET_VERSION >= 20090225 \
34819 || PACKET_VERSION >= 20090204 \
34820 || PACKET_VERSION >= 20090129 \
34821 || PACKET_VERSION >= 20090120 \
34822 || PACKET_VERSION >= 20090114 \
34823 || PACKET_VERSION >= 20090107 \
34824 || PACKET_VERSION >= 20081217 \
34825 || PACKET_VERSION >= 20081203 \
34826 || PACKET_VERSION >= 20081119 \
34827 || PACKET_VERSION >= 20081112 \
34828 || PACKET_VERSION >= 20081105 \
34829 || PACKET_VERSION >= 20081029 \
34830 || PACKET_VERSION >= 20081022 \
34831 || PACKET_VERSION >= 20081001 \
34832 || PACKET_VERSION >= 20080924 \
34833 || PACKET_VERSION >= 20080917 \
34834 || PACKET_VERSION >= 20080910)
34835ID_CZ_USE_SKILL2 = 0x0438
34836#elif CLIENT_TYPE == 'R' && ( \
34837 PACKET_VERSION >= 20210000 \
34838 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
34839 || (PACKET_VERSION >= 20190000 && PACKET_VERSION < 20200000) \
34840 || PACKET_VERSION >= 20180321 \
34841 || PACKET_VERSION >= 20180213 \
34842 || PACKET_VERSION >= 20180117 \
34843 || PACKET_VERSION >= 20180103 \
34844 || PACKET_VERSION >= 20171227 \
34845 || PACKET_VERSION >= 20171220 \
34846 || PACKET_VERSION >= 20171129 \
34847 || PACKET_VERSION >= 20171122 \
34848 || PACKET_VERSION >= 20171115 \
34849 || PACKET_VERSION >= 20171108 \
34850 || PACKET_VERSION >= 20171101 \
34851 || PACKET_VERSION >= 20171011 \
34852 || PACKET_VERSION >= 20171002 \
34853 || PACKET_VERSION >= 20170913 \
34854 || PACKET_VERSION >= 20170906 \
34855 || PACKET_VERSION >= 20170830 \
34856 || PACKET_VERSION >= 20170823 \
34857 || PACKET_VERSION >= 20170816 \
34858 || PACKET_VERSION >= 20170809 \
34859 || PACKET_VERSION >= 20170801 \
34860 || PACKET_VERSION >= 20170726 \
34861 || PACKET_VERSION >= 20170719 \
34862 || PACKET_VERSION >= 20170621 \
34863 || PACKET_VERSION >= 20170517 \
34864 || PACKET_VERSION >= 20170426 \
34865 || PACKET_VERSION >= 20170412 \
34866 || PACKET_VERSION >= 20170322 \
34867 || PACKET_VERSION >= 20170315 \
34868 || PACKET_VERSION >= 20170308 \
34869 || PACKET_VERSION >= 20170228 \
34870 || PACKET_VERSION >= 20170222 \
34871 || PACKET_VERSION >= 20170215 \
34872 || PACKET_VERSION >= 20170201 \
34873 || PACKET_VERSION >= 20170125 \
34874 || PACKET_VERSION >= 20170118 \
34875 || PACKET_VERSION >= 20170111 \
34876 || PACKET_VERSION >= 20170104 \
34877 || PACKET_VERSION >= 20161228 \
34878 || PACKET_VERSION >= 20161221 \
34879 || PACKET_VERSION >= 20161130 \
34880 || PACKET_VERSION >= 20161102 \
34881 || PACKET_VERSION >= 20161026 \
34882 || PACKET_VERSION >= 20161019 \
34883 || PACKET_VERSION >= 20160928 \
34884 || PACKET_VERSION >= 20160921 \
34885 || PACKET_VERSION >= 20160913 \
34886 || PACKET_VERSION >= 20160907 \
34887 || PACKET_VERSION >= 20160831 \
34888 || PACKET_VERSION >= 20160824 \
34889 || PACKET_VERSION >= 20160803 \
34890 || PACKET_VERSION >= 20160727 \
34891 || PACKET_VERSION >= 20160615 \
34892 || PACKET_VERSION >= 20160511 \
34893 || PACKET_VERSION >= 20160504 \
34894 || PACKET_VERSION >= 20160414 \
34895 || PACKET_VERSION >= 20160406 \
34896 || PACKET_VERSION >= 20160316 \
34897 || PACKET_VERSION >= 20160302 \
34898 || PACKET_VERSION >= 20160224 \
34899 || PACKET_VERSION >= 20160217 \
34900 || PACKET_VERSION >= 20160120 \
34901 || PACKET_VERSION >= 20160113 \
34902 || PACKET_VERSION >= 20160106 \
34903 || PACKET_VERSION >= 20151209 \
34904 || PACKET_VERSION >= 20151202 \
34905 || PACKET_VERSION >= 20151125 \
34906 || PACKET_VERSION >= 20151021 \
34907 || PACKET_VERSION >= 20151014 \
34908 || PACKET_VERSION >= 20151001 \
34909 || PACKET_VERSION >= 20150916 \
34910 || PACKET_VERSION >= 20150909 \
34911 || PACKET_VERSION >= 20150826 \
34912 || PACKET_VERSION >= 20150805 \
34913 || PACKET_VERSION >= 20150729 \
34914 || PACKET_VERSION >= 20150722 \
34915 || PACKET_VERSION >= 20150715 \
34916 || PACKET_VERSION >= 20150708 \
34917 || PACKET_VERSION >= 20150701 \
34918 || PACKET_VERSION >= 20150617 \
34919 || PACKET_VERSION >= 20150610 \
34920 || PACKET_VERSION >= 20150603 \
34921 || PACKET_VERSION >= 20150527 \
34922 || PACKET_VERSION >= 20150520 \
34923 || PACKET_VERSION >= 20150422 \
34924 || PACKET_VERSION >= 20150318 \
34925 || PACKET_VERSION >= 20150311 \
34926 || PACKET_VERSION >= 20150217 \
34927 || PACKET_VERSION >= 20150211 \
34928 || PACKET_VERSION >= 20150204 \
34929 || PACKET_VERSION >= 20150128 \
34930 || PACKET_VERSION >= 20150107 \
34931 || PACKET_VERSION >= 20141231 \
34932 || PACKET_VERSION >= 20141223 \
34933 || PACKET_VERSION >= 20141217 \
34934 || PACKET_VERSION >= 20141210 \
34935 || PACKET_VERSION >= 20141203 \
34936 || PACKET_VERSION >= 20141126 \
34937 || PACKET_VERSION >= 20141119 \
34938 || PACKET_VERSION >= 20141112 \
34939 || PACKET_VERSION >= 20141105 \
34940 || PACKET_VERSION >= 20141029 \
34941 || PACKET_VERSION >= 20141022 \
34942 || PACKET_VERSION >= 20141001 \
34943 || PACKET_VERSION >= 20140917 \
34944 || PACKET_VERSION >= 20140827 \
34945 || PACKET_VERSION >= 20140820 \
34946 || PACKET_VERSION >= 20140806 \
34947 || PACKET_VERSION >= 20140709 \
34948 || PACKET_VERSION >= 20140702 \
34949 || PACKET_VERSION >= 20140618 \
34950 || PACKET_VERSION >= 20140611 \
34951 || PACKET_VERSION >= 20140605 \
34952 || PACKET_VERSION >= 20140528 \
34953 || PACKET_VERSION >= 20140521 \
34954 || PACKET_VERSION >= 20140514 \
34955 || PACKET_VERSION >= 20140430 \
34956 || PACKET_VERSION >= 20140423 \
34957 || PACKET_VERSION >= 20140416 \
34958 || PACKET_VERSION >= 20140312 \
34959 || PACKET_VERSION >= 20140305 \
34960 || PACKET_VERSION >= 20140226 \
34961 || PACKET_VERSION >= 20140219 \
34962 || PACKET_VERSION >= 20140212 \
34963 || PACKET_VERSION >= 20140129 \
34964 || PACKET_VERSION >= 20140122 \
34965 || PACKET_VERSION >= 20140108 \
34966 || PACKET_VERSION >= 20131230 \
34967 || PACKET_VERSION >= 20131211 \
34968 || PACKET_VERSION >= 20131204 \
34969 || PACKET_VERSION >= 20131127 \
34970 || PACKET_VERSION >= 20131106 \
34971 || PACKET_VERSION >= 20131030 \
34972 || PACKET_VERSION >= 20131023 \
34973 || PACKET_VERSION >= 20131008 \
34974 || PACKET_VERSION >= 20131002 \
34975 || PACKET_VERSION >= 20130925 \
34976 || PACKET_VERSION >= 20130917 \
34977 || PACKET_VERSION >= 20130904 \
34978 || PACKET_VERSION >= 20130828 \
34979 || PACKET_VERSION >= 20130821 \
34980 || PACKET_VERSION >= 20130814 \
34981 || PACKET_VERSION >= 20130807 \
34982 || PACKET_VERSION >= 20130731 \
34983 || PACKET_VERSION >= 20130717 \
34984 || PACKET_VERSION >= 20130626 \
34985 || PACKET_VERSION >= 20130618 \
34986 || PACKET_VERSION >= 20130529 \
34987 || PACKET_VERSION >= 20130522 \
34988 || PACKET_VERSION >= 20130417 \
34989 || PACKET_VERSION >= 20130410 \
34990 || PACKET_VERSION >= 20130403 \
34991 || PACKET_VERSION >= 20130327 \
34992 || PACKET_VERSION >= 20130320 \
34993 || PACKET_VERSION >= 20130313 \
34994 || PACKET_VERSION >= 20130227 \
34995 || PACKET_VERSION >= 20130206 \
34996 || PACKET_VERSION >= 20130130 \
34997 || PACKET_VERSION >= 20130121 \
34998 || PACKET_VERSION >= 20130109 \
34999 || PACKET_VERSION >= 20130103 \
35000 || PACKET_VERSION >= 20121227 \
35001 || PACKET_VERSION >= 20121218 \
35002 || PACKET_VERSION >= 20121107 \
35003 || PACKET_VERSION >= 20121031 \
35004 || PACKET_VERSION >= 20121024 \
35005 || PACKET_VERSION >= 20121017 \
35006 || PACKET_VERSION >= 20120925 \
35007 || PACKET_VERSION >= 20120919 \
35008 || PACKET_VERSION >= 20120911 \
35009 || PACKET_VERSION >= 20120822 \
35010 || PACKET_VERSION >= 20120814 \
35011 || PACKET_VERSION >= 20120808 \
35012 || PACKET_VERSION >= 20120801 \
35013 || PACKET_VERSION >= 20120724 \
35014 || PACKET_VERSION >= 20120716 \
35015 || PACKET_VERSION >= 20120626 \
35016 || PACKET_VERSION >= 20120612 \
35017 || PACKET_VERSION >= 20120601 \
35018 || PACKET_VERSION >= 20120529 \
35019 || PACKET_VERSION >= 20120515 \
35020 || PACKET_VERSION >= 20120502 \
35021 || PACKET_VERSION >= 20120424 \
35022 || PACKET_VERSION >= 20120404 \
35023 || PACKET_VERSION >= 20120328 \
35024 || PACKET_VERSION >= 20120307 \
35025 || PACKET_VERSION >= 20120228 \
35026 || PACKET_VERSION >= 20120221 \
35027 || PACKET_VERSION >= 20120214 \
35028 || PACKET_VERSION >= 20120131 \
35029 || PACKET_VERSION >= 20120117 \
35030 || PACKET_VERSION >= 20120103 \
35031 || PACKET_VERSION >= 20111227 \
35032 || PACKET_VERSION >= 20111220 \
35033 || PACKET_VERSION >= 20111122 \
35034 || PACKET_VERSION >= 20111114 \
35035 || PACKET_VERSION >= 20111108 \
35036 || PACKET_VERSION >= 20111025 \
35037 || PACKET_VERSION >= 20111017 \
35038 || PACKET_VERSION >= 20111010 \
35039 || PACKET_VERSION >= 20110928 \
35040 || PACKET_VERSION >= 20110920 \
35041 || PACKET_VERSION >= 20110906 \
35042 || PACKET_VERSION >= 20110831 \
35043 || PACKET_VERSION >= 20110823 \
35044 || PACKET_VERSION >= 20110104 \
35045 || (PACKET_VERSION >= 20100000 && PACKET_VERSION < 20110104) \
35046 || (PACKET_VERSION >= 20090000 && PACKET_VERSION < 20100000) \
35047 || PACKET_VERSION >= 20080910)
35048ID_CZ_USE_SKILL2 = 0x0438
35049#elif CLIENT_TYPE == 'S' && \
35050 PACKET_VERSION >= 20080910
35051ID_CZ_USE_SKILL2 = 0x0438
35052#elif CLIENT_TYPE == 'Z' && ( \
35053 PACKET_VERSION >= 20220000 \
35054 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
35055 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
35056 || (PACKET_VERSION >= 20190000 && PACKET_VERSION < 20200000) \
35057 || PACKET_VERSION >= 20180523 \
35058 || PACKET_VERSION >= 20180511 \
35059 || PACKET_VERSION >= 20180315 \
35060 || PACKET_VERSION >= 20180314 \
35061 || PACKET_VERSION >= 20180228 \
35062 || PACKET_VERSION >= 20180221 \
35063 || PACKET_VERSION >= 20180213 \
35064 || PACKET_VERSION >= 20180131 \
35065 || PACKET_VERSION >= 20180117 \
35066 || PACKET_VERSION >= 20180103 \
35067 || PACKET_VERSION >= 20171227 \
35068 || PACKET_VERSION >= 20171214 \
35069 || PACKET_VERSION >= 20171206 \
35070 || PACKET_VERSION >= 20171204 \
35071 || PACKET_VERSION >= 20171130 \
35072 || PACKET_VERSION >= 20171018)
35073ID_CZ_USE_SKILL2 = 0x0438
35074#else
35075ID_CZ_USE_SKILL2 = 0x0000 // Disabled
35076#endif
35082class CZ_USE_SKILL2 : public Base::NetworkPacket<ZoneSession>
35083{
35084public:
35085 CZ_USE_SKILL2(std::shared_ptr<ZoneSession> s)
35087 {}
35088 virtual ~CZ_USE_SKILL2() {}
35089
35090 void handle(ByteBuffer &&buf);
35091 void deserialize(ByteBuffer &buf);
35092
35093/* Structure */
35094 int16_t _skill_lv{ 0 };
35095 int16_t _skill_id{ 0 };
35096 int _target_id{ 0 };
35097};
35098
35099enum {
35100#if CLIENT_TYPE == 'A' && \
35101 PACKET_VERSION >= 20071120
35103#elif CLIENT_TYPE == 'M' && ( \
35104 PACKET_VERSION >= 20220000 \
35105 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
35106 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
35107 || PACKET_VERSION >= 20071120)
35109#elif CLIENT_TYPE == 'R' && ( \
35110 PACKET_VERSION >= 20210000 \
35111 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
35112 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
35114#elif CLIENT_TYPE == 'S' && \
35115 PACKET_VERSION >= 20071120
35117#elif CLIENT_TYPE == 'Z' && ( \
35118 PACKET_VERSION >= 20220000 \
35119 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
35120 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
35121 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
35123#else
35124ID_CZ_USE_SKILL_NEW_JAPEN = 0x0000 // Disabled
35125#endif
35132{
35133public:
35134 CZ_USE_SKILL_NEW_JAPEN(std::shared_ptr<ZoneSession> s)
35136 {}
35138
35139 void handle(ByteBuffer &&buf);
35140 void deserialize(ByteBuffer &buf);
35141
35142/* Structure */
35143};
35144
35145enum {
35146#if CLIENT_TYPE == 'A' && \
35147 PACKET_VERSION >= 20041129
35149#elif CLIENT_TYPE == 'M' && \
35150 PACKET_VERSION >= 20030000
35152#elif CLIENT_TYPE == 'M' && \
35153 PACKET_VERSION >= 20120712
35155#elif CLIENT_TYPE == 'M' && \
35156 PACKET_VERSION >= 20120926
35158#elif CLIENT_TYPE == 'M' && ( \
35159 PACKET_VERSION == 20180131 \
35160 || PACKET_VERSION >= 20160609 \
35161 || PACKET_VERSION >= 20160526 \
35162 || PACKET_VERSION >= 20160318 \
35163 || PACKET_VERSION >= 20151029 \
35164 || PACKET_VERSION >= 20151022 \
35165 || PACKET_VERSION >= 20150812 \
35166 || PACKET_VERSION >= 20150618 \
35167 || PACKET_VERSION >= 20150226 \
35168 || PACKET_VERSION >= 20141016 \
35169 || PACKET_VERSION >= 20140814 \
35170 || PACKET_VERSION >= 20130107)
35172#elif CLIENT_TYPE == 'M' && \
35173 PACKET_VERSION >= 20130116
35175#elif CLIENT_TYPE == 'M' && ( \
35176 PACKET_VERSION == 20131108 \
35177 || PACKET_VERSION == 20131107)
35179#elif CLIENT_TYPE == 'M' && ( \
35180 PACKET_VERSION == 20140613 \
35181 || PACKET_VERSION == 20140612)
35183#elif CLIENT_TYPE == 'M' && ( \
35184 PACKET_VERSION == 20150130 \
35185 || PACKET_VERSION == 20150129)
35187#elif CLIENT_TYPE == 'M' && \
35188 PACKET_VERSION >= 20150702
35190#elif CLIENT_TYPE == 'M' && \
35191 PACKET_VERSION >= 20160630
35193#elif CLIENT_TYPE == 'M' && \
35194 PACKET_VERSION >= 20161103
35196#elif CLIENT_TYPE == 'M' && ( \
35197 PACKET_VERSION >= 20220000 \
35198 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
35199 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
35200 || PACKET_VERSION >= 20180207)
35202#elif CLIENT_TYPE == 'M' && \
35203 PACKET_VERSION >= 20180309
35205#elif CLIENT_TYPE == 'M' && ( \
35206 PACKET_VERSION == 20190821 \
35207 || PACKET_VERSION == 20190807 \
35208 || PACKET_VERSION == 20190802 \
35209 || PACKET_VERSION == 20190731 \
35210 || PACKET_VERSION == 20190724 \
35211 || PACKET_VERSION == 20190717 \
35212 || PACKET_VERSION == 20190703 \
35213 || PACKET_VERSION == 20190605 \
35214 || PACKET_VERSION == 20190530 \
35215 || PACKET_VERSION == 20190523 \
35216 || PACKET_VERSION == 20190522 \
35217 || PACKET_VERSION == 20190508 \
35218 || PACKET_VERSION == 20190418 \
35219 || PACKET_VERSION == 20190417 \
35220 || PACKET_VERSION == 20190327 \
35221 || PACKET_VERSION == 20190322 \
35222 || PACKET_VERSION == 20190320 \
35223 || PACKET_VERSION == 20190313 \
35224 || PACKET_VERSION == 20190306 \
35225 || PACKET_VERSION == 20190228 \
35226 || PACKET_VERSION == 20190123 \
35227 || PACKET_VERSION == 20190116 \
35228 || PACKET_VERSION == 20181226 \
35229 || PACKET_VERSION == 20181219 \
35230 || PACKET_VERSION == 20181212 \
35231 || PACKET_VERSION == 20181205 \
35232 || PACKET_VERSION == 20181128 \
35233 || PACKET_VERSION == 20181114 \
35234 || PACKET_VERSION == 20181107 \
35235 || PACKET_VERSION == 20181024 \
35236 || PACKET_VERSION == 20180919 \
35237 || PACKET_VERSION == 20180831 \
35238 || PACKET_VERSION == 20180822 \
35239 || PACKET_VERSION >= 20180808 \
35240 || PACKET_VERSION >= 20180718 \
35241 || PACKET_VERSION >= 20180704 \
35242 || PACKET_VERSION >= 20180621 \
35243 || PACKET_VERSION >= 20180620 \
35244 || PACKET_VERSION >= 20180530 \
35245 || PACKET_VERSION >= 20180523 \
35246 || PACKET_VERSION >= 20180516 \
35247 || PACKET_VERSION >= 20180509 \
35248 || PACKET_VERSION >= 20180502 \
35249 || PACKET_VERSION >= 20180425 \
35250 || PACKET_VERSION >= 20180404 \
35251 || PACKET_VERSION >= 20180328 \
35252 || PACKET_VERSION >= 20180321)
35254#elif CLIENT_TYPE == 'R' && \
35255 PACKET_VERSION >= 20080000
35257#elif CLIENT_TYPE == 'R' && \
35258 PACKET_VERSION >= 20120712
35260#elif CLIENT_TYPE == 'R' && \
35261 PACKET_VERSION >= 20120926
35263#elif CLIENT_TYPE == 'R' && \
35264 PACKET_VERSION >= 20121011
35266#elif CLIENT_TYPE == 'R' && \
35267 PACKET_VERSION >= 20130116
35269#elif CLIENT_TYPE == 'R' && ( \
35270 PACKET_VERSION == 20151029 \
35271 || PACKET_VERSION == 20151022 \
35272 || PACKET_VERSION == 20150812 \
35273 || PACKET_VERSION == 20150618 \
35274 || PACKET_VERSION == 20150226 \
35275 || PACKET_VERSION >= 20141016)
35277#elif CLIENT_TYPE == 'R' && \
35278 PACKET_VERSION >= 20160630
35280#elif CLIENT_TYPE == 'R' && \
35281 PACKET_VERSION >= 20161103
35283#elif CLIENT_TYPE == 'R' && ( \
35284 PACKET_VERSION >= 20210000 \
35285 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
35286 || PACKET_VERSION >= 20180207)
35288#elif CLIENT_TYPE == 'R' && ( \
35289 PACKET_VERSION == 20190821 \
35290 || PACKET_VERSION == 20190807 \
35291 || PACKET_VERSION == 20190802 \
35292 || PACKET_VERSION == 20190731 \
35293 || PACKET_VERSION == 20190724 \
35294 || PACKET_VERSION == 20190717 \
35295 || PACKET_VERSION == 20190703 \
35296 || PACKET_VERSION == 20190626 \
35297 || PACKET_VERSION == 20190605 \
35298 || PACKET_VERSION == 20190530 \
35299 || PACKET_VERSION == 20190522 \
35300 || PACKET_VERSION == 20190508 \
35301 || PACKET_VERSION == 20190418 \
35302 || PACKET_VERSION == 20190417 \
35303 || PACKET_VERSION == 20190327 \
35304 || PACKET_VERSION == 20190322 \
35305 || PACKET_VERSION == 20190320 \
35306 || PACKET_VERSION == 20190306 \
35307 || PACKET_VERSION == 20190228 \
35308 || PACKET_VERSION == 20190123 \
35309 || PACKET_VERSION == 20190116 \
35310 || PACKET_VERSION == 20181226 \
35311 || PACKET_VERSION == 20181219 \
35312 || PACKET_VERSION == 20181212 \
35313 || PACKET_VERSION == 20181205 \
35314 || PACKET_VERSION == 20181128 \
35315 || PACKET_VERSION == 20181121 \
35316 || PACKET_VERSION == 20181114 \
35317 || PACKET_VERSION == 20181107 \
35318 || PACKET_VERSION == 20180822 \
35319 || PACKET_VERSION >= 20180808 \
35320 || PACKET_VERSION >= 20180718 \
35321 || PACKET_VERSION >= 20180711 \
35322 || PACKET_VERSION >= 20180621 \
35323 || PACKET_VERSION >= 20180620 \
35324 || PACKET_VERSION >= 20180612 \
35325 || PACKET_VERSION >= 20180530 \
35326 || PACKET_VERSION >= 20180523 \
35327 || PACKET_VERSION >= 20180516 \
35328 || PACKET_VERSION >= 20180502 \
35329 || PACKET_VERSION >= 20180425 \
35330 || PACKET_VERSION >= 20180404 \
35331 || PACKET_VERSION >= 20180328)
35333#elif CLIENT_TYPE == 'S' && \
35334 PACKET_VERSION >= 20030000
35336#elif CLIENT_TYPE == 'Z' && \
35337 PACKET_VERSION >= 20170000
35339#elif CLIENT_TYPE == 'Z' && ( \
35340 PACKET_VERSION == 20190814 \
35341 || PACKET_VERSION == 20190724 \
35342 || PACKET_VERSION == 20190717 \
35343 || PACKET_VERSION == 20190710 \
35344 || PACKET_VERSION == 20190709 \
35345 || PACKET_VERSION == 20190605 \
35346 || PACKET_VERSION == 20190530 \
35347 || PACKET_VERSION == 20190515 \
35348 || PACKET_VERSION == 20190508 \
35349 || PACKET_VERSION == 20190502 \
35350 || PACKET_VERSION == 20190424 \
35351 || PACKET_VERSION == 20190410 \
35352 || PACKET_VERSION == 20190403 \
35353 || PACKET_VERSION == 20190313 \
35354 || PACKET_VERSION == 20190227 \
35355 || PACKET_VERSION == 20190213 \
35356 || PACKET_VERSION == 20190117 \
35357 || PACKET_VERSION == 20181226 \
35358 || PACKET_VERSION == 20181219 \
35359 || PACKET_VERSION == 20181212 \
35360 || PACKET_VERSION == 20181128 \
35361 || PACKET_VERSION == 20181120 \
35362 || PACKET_VERSION == 20180928 \
35363 || PACKET_VERSION == 20180912 \
35364 || PACKET_VERSION == 20180829 \
35365 || PACKET_VERSION >= 20180808 \
35366 || PACKET_VERSION >= 20180801 \
35367 || PACKET_VERSION >= 20180711 \
35368 || PACKET_VERSION >= 20180703 \
35369 || PACKET_VERSION >= 20180627 \
35370 || PACKET_VERSION >= 20180509 \
35371 || PACKET_VERSION >= 20180411 \
35372 || PACKET_VERSION >= 20180321 \
35373 || PACKET_VERSION >= 20171113 \
35374 || PACKET_VERSION >= 20171031 \
35375 || PACKET_VERSION >= 20171030 \
35376 || PACKET_VERSION >= 20171027 \
35377 || PACKET_VERSION >= 20171025 \
35378 || PACKET_VERSION >= 20171024 \
35379 || PACKET_VERSION >= 20171023 \
35380 || PACKET_VERSION >= 20171019)
35382#elif CLIENT_TYPE == 'Z' && ( \
35383 PACKET_VERSION == 20180309 \
35384 || PACKET_VERSION == 20180307 \
35385 || PACKET_VERSION == 20171128 \
35386 || PACKET_VERSION == 20171122 \
35387 || PACKET_VERSION == 20171117 \
35388 || PACKET_VERSION == 20171116)
35390#elif CLIENT_TYPE == 'Z' && ( \
35391 PACKET_VERSION == 20171213 \
35392 || PACKET_VERSION == 20171212 \
35393 || PACKET_VERSION == 20171211 \
35394 || PACKET_VERSION == 20171210 \
35395 || PACKET_VERSION == 20171209 \
35396 || PACKET_VERSION == 20171208)
35398#elif CLIENT_TYPE == 'Z' && \
35399 PACKET_VERSION >= 20171221
35401#elif CLIENT_TYPE == 'Z' && \
35402 PACKET_VERSION >= 20171229
35404#elif CLIENT_TYPE == 'Z' && ( \
35405 PACKET_VERSION >= 20220000 \
35406 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
35407 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
35408 || PACKET_VERSION >= 20180131)
35410#else
35411ID_CZ_USE_SKILL_TOGROUND = 0x0000 // Disabled
35412#endif
35419{
35420public:
35421 CZ_USE_SKILL_TOGROUND(std::shared_ptr<ZoneSession> s)
35423 {}
35425
35426 void handle(ByteBuffer &&buf);
35427 void deserialize(ByteBuffer &buf);
35428
35429/* Structure */
35430 int16_t _skill_lv{ 0 };
35431 int16_t _skill_id{ 0 };
35432 int16_t _pos_x{ 0 };
35433 int16_t _pos_y{ 0 };
35434};
35435
35436enum {
35437#if CLIENT_TYPE == 'A' && \
35438 PACKET_VERSION >= 20080701
35440#elif CLIENT_TYPE == 'M' && ( \
35441 PACKET_VERSION >= 20220000 \
35442 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
35443 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
35444 || (PACKET_VERSION >= 20190000 && PACKET_VERSION < 20200000) \
35445 || PACKET_VERSION >= 20180314 \
35446 || PACKET_VERSION >= 20180307 \
35447 || PACKET_VERSION >= 20180221 \
35448 || PACKET_VERSION >= 20180213 \
35449 || PACKET_VERSION >= 20180117 \
35450 || PACKET_VERSION >= 20180103 \
35451 || PACKET_VERSION >= 20171227 \
35452 || PACKET_VERSION >= 20171220 \
35453 || PACKET_VERSION >= 20171129 \
35454 || PACKET_VERSION >= 20171122 \
35455 || PACKET_VERSION >= 20171115 \
35456 || PACKET_VERSION >= 20171101 \
35457 || PACKET_VERSION >= 20171002 \
35458 || PACKET_VERSION >= 20170927 \
35459 || PACKET_VERSION >= 20170913 \
35460 || PACKET_VERSION >= 20170906 \
35461 || PACKET_VERSION >= 20170830 \
35462 || PACKET_VERSION >= 20170823 \
35463 || PACKET_VERSION >= 20170816 \
35464 || PACKET_VERSION >= 20170809 \
35465 || PACKET_VERSION >= 20170801 \
35466 || PACKET_VERSION >= 20170726 \
35467 || PACKET_VERSION >= 20170719 \
35468 || PACKET_VERSION >= 20170628 \
35469 || PACKET_VERSION >= 20170621 \
35470 || PACKET_VERSION >= 20170517 \
35471 || PACKET_VERSION >= 20170426 \
35472 || PACKET_VERSION >= 20170412 \
35473 || PACKET_VERSION >= 20170322 \
35474 || PACKET_VERSION >= 20170315 \
35475 || PACKET_VERSION >= 20170308 \
35476 || PACKET_VERSION >= 20170228 \
35477 || PACKET_VERSION >= 20170222 \
35478 || PACKET_VERSION >= 20170215 \
35479 || PACKET_VERSION >= 20170208 \
35480 || PACKET_VERSION >= 20170125 \
35481 || PACKET_VERSION >= 20170104 \
35482 || PACKET_VERSION >= 20161228 \
35483 || PACKET_VERSION >= 20161221 \
35484 || PACKET_VERSION >= 20161130 \
35485 || PACKET_VERSION >= 20161116 \
35486 || PACKET_VERSION >= 20161109 \
35487 || PACKET_VERSION >= 20161026 \
35488 || PACKET_VERSION >= 20161019 \
35489 || PACKET_VERSION >= 20161005 \
35490 || PACKET_VERSION >= 20160928 \
35491 || PACKET_VERSION >= 20160921 \
35492 || PACKET_VERSION >= 20160913 \
35493 || PACKET_VERSION >= 20160907 \
35494 || PACKET_VERSION >= 20160831 \
35495 || PACKET_VERSION >= 20160824 \
35496 || PACKET_VERSION >= 20160629 \
35497 || PACKET_VERSION >= 20160622 \
35498 || PACKET_VERSION >= 20160608 \
35499 || PACKET_VERSION >= 20160511 \
35500 || PACKET_VERSION >= 20160504 \
35501 || PACKET_VERSION >= 20160414 \
35502 || PACKET_VERSION >= 20160330 \
35503 || PACKET_VERSION >= 20160316 \
35504 || PACKET_VERSION >= 20160302 \
35505 || PACKET_VERSION >= 20160224 \
35506 || PACKET_VERSION >= 20160217 \
35507 || PACKET_VERSION >= 20160120 \
35508 || PACKET_VERSION >= 20160113 \
35509 || PACKET_VERSION >= 20160106 \
35510 || PACKET_VERSION >= 20151230 \
35511 || PACKET_VERSION >= 20151209 \
35512 || PACKET_VERSION >= 20151202 \
35513 || PACKET_VERSION >= 20151125 \
35514 || PACKET_VERSION >= 20151021 \
35515 || PACKET_VERSION >= 20151014 \
35516 || PACKET_VERSION >= 20151001 \
35517 || PACKET_VERSION >= 20150923 \
35518 || PACKET_VERSION >= 20150916 \
35519 || PACKET_VERSION >= 20150909 \
35520 || PACKET_VERSION >= 20150826 \
35521 || PACKET_VERSION >= 20150805 \
35522 || PACKET_VERSION >= 20150715 \
35523 || PACKET_VERSION >= 20150708 \
35524 || PACKET_VERSION >= 20150701 \
35525 || PACKET_VERSION >= 20150617 \
35526 || PACKET_VERSION >= 20150603 \
35527 || PACKET_VERSION >= 20150527 \
35528 || PACKET_VERSION >= 20150520 \
35529 || PACKET_VERSION >= 20150422 \
35530 || PACKET_VERSION >= 20150415 \
35531 || PACKET_VERSION >= 20150311 \
35532 || PACKET_VERSION >= 20150225 \
35533 || PACKET_VERSION >= 20150217 \
35534 || PACKET_VERSION >= 20150211 \
35535 || PACKET_VERSION >= 20150204 \
35536 || PACKET_VERSION >= 20150128 \
35537 || PACKET_VERSION >= 20150107 \
35538 || PACKET_VERSION >= 20141231 \
35539 || PACKET_VERSION >= 20141217 \
35540 || PACKET_VERSION >= 20141210 \
35541 || PACKET_VERSION >= 20141203 \
35542 || PACKET_VERSION >= 20141126 \
35543 || PACKET_VERSION >= 20141105 \
35544 || PACKET_VERSION >= 20141001 \
35545 || PACKET_VERSION >= 20140924 \
35546 || PACKET_VERSION >= 20140917 \
35547 || PACKET_VERSION >= 20140827 \
35548 || PACKET_VERSION >= 20140820 \
35549 || PACKET_VERSION >= 20140806 \
35550 || PACKET_VERSION >= 20140730 \
35551 || PACKET_VERSION >= 20140709 \
35552 || PACKET_VERSION >= 20140702 \
35553 || PACKET_VERSION >= 20140611 \
35554 || PACKET_VERSION >= 20140605 \
35555 || PACKET_VERSION >= 20140528 \
35556 || PACKET_VERSION >= 20140521 \
35557 || PACKET_VERSION >= 20140514 \
35558 || PACKET_VERSION >= 20140508 \
35559 || PACKET_VERSION >= 20140430 \
35560 || PACKET_VERSION >= 20140423 \
35561 || PACKET_VERSION >= 20140416 \
35562 || PACKET_VERSION >= 20140319 \
35563 || PACKET_VERSION >= 20140312 \
35564 || PACKET_VERSION >= 20140226 \
35565 || PACKET_VERSION >= 20140212 \
35566 || PACKET_VERSION >= 20140129 \
35567 || PACKET_VERSION >= 20140122 \
35568 || PACKET_VERSION >= 20140108 \
35569 || PACKET_VERSION >= 20131230 \
35570 || PACKET_VERSION >= 20131218 \
35571 || PACKET_VERSION >= 20131204 \
35572 || PACKET_VERSION >= 20131127 \
35573 || PACKET_VERSION >= 20131106 \
35574 || PACKET_VERSION >= 20131030 \
35575 || PACKET_VERSION >= 20131023 \
35576 || PACKET_VERSION >= 20131016 \
35577 || PACKET_VERSION >= 20131008 \
35578 || PACKET_VERSION >= 20131002 \
35579 || PACKET_VERSION >= 20130917 \
35580 || PACKET_VERSION >= 20130904 \
35581 || PACKET_VERSION >= 20130828 \
35582 || PACKET_VERSION >= 20130821 \
35583 || PACKET_VERSION >= 20130814 \
35584 || PACKET_VERSION >= 20130807 \
35585 || PACKET_VERSION >= 20130717 \
35586 || PACKET_VERSION >= 20130626 \
35587 || PACKET_VERSION >= 20130618 \
35588 || PACKET_VERSION >= 20130605 \
35589 || PACKET_VERSION >= 20130522 \
35590 || PACKET_VERSION >= 20130417 \
35591 || PACKET_VERSION >= 20130410 \
35592 || PACKET_VERSION >= 20130403 \
35593 || PACKET_VERSION >= 20130320 \
35594 || PACKET_VERSION >= 20130313 \
35595 || PACKET_VERSION >= 20130227 \
35596 || PACKET_VERSION >= 20130220 \
35597 || PACKET_VERSION >= 20130215 \
35598 || PACKET_VERSION >= 20130206 \
35599 || PACKET_VERSION >= 20130130 \
35600 || PACKET_VERSION >= 20130121 \
35601 || PACKET_VERSION >= 20130109 \
35602 || PACKET_VERSION >= 20130103 \
35603 || PACKET_VERSION >= 20121227 \
35604 || PACKET_VERSION >= 20121218 \
35605 || PACKET_VERSION >= 20121107 \
35606 || PACKET_VERSION >= 20121031 \
35607 || PACKET_VERSION >= 20121024 \
35608 || PACKET_VERSION >= 20121017 \
35609 || PACKET_VERSION >= 20120925 \
35610 || PACKET_VERSION >= 20120919 \
35611 || PACKET_VERSION >= 20120905 \
35612 || PACKET_VERSION >= 20120830 \
35613 || PACKET_VERSION >= 20120814 \
35614 || PACKET_VERSION >= 20120808 \
35615 || PACKET_VERSION >= 20120724 \
35616 || PACKET_VERSION >= 20120716 \
35617 || PACKET_VERSION >= 20120702 \
35618 || PACKET_VERSION >= 20120626 \
35619 || PACKET_VERSION >= 20120612 \
35620 || PACKET_VERSION >= 20120604 \
35621 || PACKET_VERSION >= 20120529 \
35622 || PACKET_VERSION >= 20120522 \
35623 || PACKET_VERSION >= 20120515 \
35624 || PACKET_VERSION >= 20120508 \
35625 || PACKET_VERSION >= 20120503 \
35626 || PACKET_VERSION >= 20120424 \
35627 || PACKET_VERSION >= 20120410 \
35628 || PACKET_VERSION >= 20120404 \
35629 || PACKET_VERSION >= 20120328 \
35630 || PACKET_VERSION >= 20120307 \
35631 || PACKET_VERSION >= 20120228 \
35632 || PACKET_VERSION >= 20120221 \
35633 || PACKET_VERSION >= 20120214 \
35634 || PACKET_VERSION >= 20120207 \
35635 || PACKET_VERSION >= 20120120 \
35636 || PACKET_VERSION >= 20120117 \
35637 || PACKET_VERSION >= 20120103 \
35638 || PACKET_VERSION >= 20111227 \
35639 || PACKET_VERSION >= 20111220 \
35640 || PACKET_VERSION >= 20111213 \
35641 || PACKET_VERSION >= 20111207 \
35642 || PACKET_VERSION >= 20111122 \
35643 || PACKET_VERSION >= 20111108 \
35644 || PACKET_VERSION >= 20111101 \
35645 || PACKET_VERSION >= 20111025 \
35646 || PACKET_VERSION >= 20111017 \
35647 || PACKET_VERSION >= 20111010 \
35648 || PACKET_VERSION >= 20110928 \
35649 || PACKET_VERSION >= 20110920 \
35650 || PACKET_VERSION >= 20110906 \
35651 || PACKET_VERSION >= 20110831 \
35652 || PACKET_VERSION >= 20110823 \
35653 || PACKET_VERSION >= 20110816 \
35654 || PACKET_VERSION >= 20110809 \
35655 || PACKET_VERSION >= 20110802 \
35656 || PACKET_VERSION >= 20110711 \
35657 || PACKET_VERSION >= 20110705 \
35658 || PACKET_VERSION >= 20110620 \
35659 || PACKET_VERSION >= 20110517 \
35660 || PACKET_VERSION >= 20110426 \
35661 || PACKET_VERSION >= 20110419 \
35662 || PACKET_VERSION >= 20110405 \
35663 || PACKET_VERSION >= 20110329 \
35664 || PACKET_VERSION >= 20110322 \
35665 || PACKET_VERSION >= 20110308 \
35666 || PACKET_VERSION >= 20110228 \
35667 || PACKET_VERSION >= 20110208 \
35668 || PACKET_VERSION >= 20110131 \
35669 || PACKET_VERSION >= 20110125 \
35670 || PACKET_VERSION >= 20110118 \
35671 || PACKET_VERSION >= 20110104 \
35672 || PACKET_VERSION >= 20101221 \
35673 || PACKET_VERSION >= 20101214 \
35674 || PACKET_VERSION >= 20101207 \
35675 || PACKET_VERSION >= 20101130 \
35676 || PACKET_VERSION >= 20101123 \
35677 || PACKET_VERSION >= 20100105 \
35678 || PACKET_VERSION >= 20090406 \
35679 || PACKET_VERSION >= 20090401 \
35680 || PACKET_VERSION >= 20090318 \
35681 || PACKET_VERSION >= 20090311 \
35682 || PACKET_VERSION >= 20090107 \
35683 || PACKET_VERSION >= 20081105 \
35684 || PACKET_VERSION >= 20081029 \
35685 || PACKET_VERSION >= 20081015 \
35686 || PACKET_VERSION >= 20081008 \
35687 || PACKET_VERSION >= 20081001 \
35688 || PACKET_VERSION >= 20080924 \
35689 || PACKET_VERSION >= 20080910 \
35690 || PACKET_VERSION >= 20080903 \
35691 || PACKET_VERSION >= 20080827 \
35692 || PACKET_VERSION >= 20080820 \
35693 || PACKET_VERSION >= 20080715 \
35694 || PACKET_VERSION >= 20080708 \
35695 || PACKET_VERSION >= 20080701 \
35696 || PACKET_VERSION >= 20080624 \
35697 || PACKET_VERSION >= 20080528)
35699#elif CLIENT_TYPE == 'R' && ( \
35700 PACKET_VERSION >= 20210000 \
35701 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
35702 || (PACKET_VERSION >= 20190000 && PACKET_VERSION < 20200000) \
35703 || PACKET_VERSION >= 20180321 \
35704 || PACKET_VERSION >= 20180307 \
35705 || PACKET_VERSION >= 20180221 \
35706 || PACKET_VERSION >= 20180213 \
35707 || PACKET_VERSION >= 20180117 \
35708 || PACKET_VERSION >= 20180103 \
35709 || PACKET_VERSION >= 20171227 \
35710 || PACKET_VERSION >= 20171220 \
35711 || PACKET_VERSION >= 20171129 \
35712 || PACKET_VERSION >= 20171122 \
35713 || PACKET_VERSION >= 20171115 \
35714 || PACKET_VERSION >= 20171101 \
35715 || PACKET_VERSION >= 20171002 \
35716 || PACKET_VERSION >= 20170927 \
35717 || PACKET_VERSION >= 20170913 \
35718 || PACKET_VERSION >= 20170906 \
35719 || PACKET_VERSION >= 20170830 \
35720 || PACKET_VERSION >= 20170823 \
35721 || PACKET_VERSION >= 20170816 \
35722 || PACKET_VERSION >= 20170809 \
35723 || PACKET_VERSION >= 20170801 \
35724 || PACKET_VERSION >= 20170726 \
35725 || PACKET_VERSION >= 20170719 \
35726 || PACKET_VERSION >= 20170628 \
35727 || PACKET_VERSION >= 20170621 \
35728 || PACKET_VERSION >= 20170517 \
35729 || PACKET_VERSION >= 20170426 \
35730 || PACKET_VERSION >= 20170412 \
35731 || PACKET_VERSION >= 20170322 \
35732 || PACKET_VERSION >= 20170315 \
35733 || PACKET_VERSION >= 20170308 \
35734 || PACKET_VERSION >= 20170228 \
35735 || PACKET_VERSION >= 20170222 \
35736 || PACKET_VERSION >= 20170215 \
35737 || PACKET_VERSION >= 20170208 \
35738 || PACKET_VERSION >= 20170125 \
35739 || PACKET_VERSION >= 20170104 \
35740 || PACKET_VERSION >= 20161228 \
35741 || PACKET_VERSION >= 20161221 \
35742 || PACKET_VERSION >= 20161130 \
35743 || PACKET_VERSION >= 20161116 \
35744 || PACKET_VERSION >= 20161109 \
35745 || PACKET_VERSION >= 20161026 \
35746 || PACKET_VERSION >= 20161019 \
35747 || PACKET_VERSION >= 20161005 \
35748 || PACKET_VERSION >= 20160928 \
35749 || PACKET_VERSION >= 20160921 \
35750 || PACKET_VERSION >= 20160913 \
35751 || PACKET_VERSION >= 20160907 \
35752 || PACKET_VERSION >= 20160831 \
35753 || PACKET_VERSION >= 20160824 \
35754 || PACKET_VERSION >= 20160629 \
35755 || PACKET_VERSION >= 20160622 \
35756 || PACKET_VERSION >= 20160608 \
35757 || PACKET_VERSION >= 20160511 \
35758 || PACKET_VERSION >= 20160504 \
35759 || PACKET_VERSION >= 20160414 \
35760 || PACKET_VERSION >= 20160330 \
35761 || PACKET_VERSION >= 20160316 \
35762 || PACKET_VERSION >= 20160302 \
35763 || PACKET_VERSION >= 20160224 \
35764 || PACKET_VERSION >= 20160217 \
35765 || PACKET_VERSION >= 20160120 \
35766 || PACKET_VERSION >= 20160113 \
35767 || PACKET_VERSION >= 20160106 \
35768 || PACKET_VERSION >= 20151230 \
35769 || PACKET_VERSION >= 20151209 \
35770 || PACKET_VERSION >= 20151202 \
35771 || PACKET_VERSION >= 20151125 \
35772 || PACKET_VERSION >= 20151021 \
35773 || PACKET_VERSION >= 20151014 \
35774 || PACKET_VERSION >= 20151001 \
35775 || PACKET_VERSION >= 20150923 \
35776 || PACKET_VERSION >= 20150916 \
35777 || PACKET_VERSION >= 20150909 \
35778 || PACKET_VERSION >= 20150826 \
35779 || PACKET_VERSION >= 20150805 \
35780 || PACKET_VERSION >= 20150715 \
35781 || PACKET_VERSION >= 20150708 \
35782 || PACKET_VERSION >= 20150701 \
35783 || PACKET_VERSION >= 20150617 \
35784 || PACKET_VERSION >= 20150603 \
35785 || PACKET_VERSION >= 20150527 \
35786 || PACKET_VERSION >= 20150520 \
35787 || PACKET_VERSION >= 20150422 \
35788 || PACKET_VERSION >= 20150415 \
35789 || PACKET_VERSION >= 20150311 \
35790 || PACKET_VERSION >= 20150217 \
35791 || PACKET_VERSION >= 20150211 \
35792 || PACKET_VERSION >= 20150204 \
35793 || PACKET_VERSION >= 20150128 \
35794 || PACKET_VERSION >= 20150107 \
35795 || PACKET_VERSION >= 20141231 \
35796 || PACKET_VERSION >= 20141217 \
35797 || PACKET_VERSION >= 20141210 \
35798 || PACKET_VERSION >= 20141203 \
35799 || PACKET_VERSION >= 20141126 \
35800 || PACKET_VERSION >= 20141105 \
35801 || PACKET_VERSION >= 20141001 \
35802 || PACKET_VERSION >= 20140924 \
35803 || PACKET_VERSION >= 20140917 \
35804 || PACKET_VERSION >= 20140827 \
35805 || PACKET_VERSION >= 20140820 \
35806 || PACKET_VERSION >= 20140806 \
35807 || PACKET_VERSION >= 20140730 \
35808 || PACKET_VERSION >= 20140709 \
35809 || PACKET_VERSION >= 20140702 \
35810 || PACKET_VERSION >= 20140611 \
35811 || PACKET_VERSION >= 20140605 \
35812 || PACKET_VERSION >= 20140528 \
35813 || PACKET_VERSION >= 20140521 \
35814 || PACKET_VERSION >= 20140514 \
35815 || PACKET_VERSION >= 20140508 \
35816 || PACKET_VERSION >= 20140430 \
35817 || PACKET_VERSION >= 20140423 \
35818 || PACKET_VERSION >= 20140416 \
35819 || PACKET_VERSION >= 20140319 \
35820 || PACKET_VERSION >= 20140312 \
35821 || PACKET_VERSION >= 20140226 \
35822 || PACKET_VERSION >= 20140212 \
35823 || PACKET_VERSION >= 20140129 \
35824 || PACKET_VERSION >= 20140122 \
35825 || PACKET_VERSION >= 20140108 \
35826 || PACKET_VERSION >= 20131230 \
35827 || PACKET_VERSION >= 20131223 \
35828 || PACKET_VERSION >= 20131218 \
35829 || PACKET_VERSION >= 20131204 \
35830 || PACKET_VERSION >= 20131127 \
35831 || PACKET_VERSION >= 20131106 \
35832 || PACKET_VERSION >= 20131030 \
35833 || PACKET_VERSION >= 20131023 \
35834 || PACKET_VERSION >= 20131016 \
35835 || PACKET_VERSION >= 20131008 \
35836 || PACKET_VERSION >= 20131002 \
35837 || PACKET_VERSION >= 20130917 \
35838 || PACKET_VERSION >= 20130904 \
35839 || PACKET_VERSION >= 20130828 \
35840 || PACKET_VERSION >= 20130821 \
35841 || PACKET_VERSION >= 20130814 \
35842 || PACKET_VERSION >= 20130807 \
35843 || PACKET_VERSION >= 20130717 \
35844 || PACKET_VERSION >= 20130626 \
35845 || PACKET_VERSION >= 20130618 \
35846 || PACKET_VERSION >= 20130605 \
35847 || PACKET_VERSION >= 20130522 \
35848 || PACKET_VERSION >= 20130417 \
35849 || PACKET_VERSION >= 20130410 \
35850 || PACKET_VERSION >= 20130403 \
35851 || PACKET_VERSION >= 20130320 \
35852 || PACKET_VERSION >= 20130313 \
35853 || PACKET_VERSION >= 20130227 \
35854 || PACKET_VERSION >= 20130220 \
35855 || PACKET_VERSION >= 20130215 \
35856 || PACKET_VERSION >= 20130206 \
35857 || PACKET_VERSION >= 20130130 \
35858 || PACKET_VERSION >= 20130121 \
35859 || PACKET_VERSION >= 20130109 \
35860 || PACKET_VERSION >= 20130103 \
35861 || PACKET_VERSION >= 20121227 \
35862 || PACKET_VERSION >= 20121218 \
35863 || PACKET_VERSION >= 20121107 \
35864 || PACKET_VERSION >= 20121031 \
35865 || PACKET_VERSION >= 20121024 \
35866 || PACKET_VERSION >= 20121017 \
35867 || PACKET_VERSION >= 20120925 \
35868 || PACKET_VERSION >= 20120919 \
35869 || PACKET_VERSION >= 20120905 \
35870 || PACKET_VERSION >= 20120830 \
35871 || PACKET_VERSION >= 20120814 \
35872 || PACKET_VERSION >= 20120808 \
35873 || PACKET_VERSION >= 20120724 \
35874 || PACKET_VERSION >= 20120716 \
35875 || PACKET_VERSION >= 20120702 \
35876 || PACKET_VERSION >= 20120626 \
35877 || PACKET_VERSION >= 20120612 \
35878 || PACKET_VERSION >= 20120601 \
35879 || PACKET_VERSION >= 20120529 \
35880 || PACKET_VERSION >= 20120523 \
35881 || PACKET_VERSION >= 20120515 \
35882 || PACKET_VERSION >= 20120508 \
35883 || PACKET_VERSION >= 20120502 \
35884 || PACKET_VERSION >= 20120424 \
35885 || PACKET_VERSION >= 20120410 \
35886 || PACKET_VERSION >= 20120404 \
35887 || PACKET_VERSION >= 20120328 \
35888 || PACKET_VERSION >= 20120307 \
35889 || PACKET_VERSION >= 20120228 \
35890 || PACKET_VERSION >= 20120221 \
35891 || PACKET_VERSION >= 20120214 \
35892 || PACKET_VERSION >= 20120207 \
35893 || PACKET_VERSION >= 20120120 \
35894 || PACKET_VERSION >= 20120117 \
35895 || PACKET_VERSION >= 20120103 \
35896 || PACKET_VERSION >= 20111227 \
35897 || PACKET_VERSION >= 20111220 \
35898 || PACKET_VERSION >= 20111213 \
35899 || PACKET_VERSION >= 20111207 \
35900 || PACKET_VERSION >= 20111122 \
35901 || PACKET_VERSION >= 20111108 \
35902 || PACKET_VERSION >= 20111101 \
35903 || PACKET_VERSION >= 20111025 \
35904 || PACKET_VERSION >= 20111017 \
35905 || PACKET_VERSION >= 20111010 \
35906 || PACKET_VERSION >= 20110928 \
35907 || PACKET_VERSION >= 20110920 \
35908 || PACKET_VERSION >= 20110906 \
35909 || PACKET_VERSION >= 20110831 \
35910 || PACKET_VERSION >= 20110823 \
35911 || PACKET_VERSION >= 20110816 \
35912 || PACKET_VERSION >= 20110104 \
35913 || PACKET_VERSION >= 20101123 \
35914 || PACKET_VERSION >= 20100105 \
35915 || (PACKET_VERSION >= 20090000 && PACKET_VERSION < 20100105) \
35916 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20090000))
35918#elif CLIENT_TYPE == 'S' && \
35919 PACKET_VERSION >= 20080527
35921#elif CLIENT_TYPE == 'Z' && ( \
35922 PACKET_VERSION >= 20220000 \
35923 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
35924 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
35925 || (PACKET_VERSION >= 20190000 && PACKET_VERSION < 20200000) \
35926 || PACKET_VERSION >= 20180523 \
35927 || PACKET_VERSION >= 20180511 \
35928 || PACKET_VERSION >= 20180315 \
35929 || PACKET_VERSION >= 20180314 \
35930 || PACKET_VERSION >= 20180228 \
35931 || PACKET_VERSION >= 20180213 \
35932 || PACKET_VERSION >= 20180207 \
35933 || PACKET_VERSION >= 20180117 \
35934 || PACKET_VERSION >= 20180103 \
35935 || PACKET_VERSION >= 20171214 \
35936 || PACKET_VERSION >= 20171206 \
35937 || PACKET_VERSION >= 20171130 \
35938 || PACKET_VERSION >= 20171115 \
35939 || PACKET_VERSION >= 20171018)
35941#else
35942ID_CZ_USE_SKILL_TOGROUND2 = 0x0000 // Disabled
35943#endif
35950{
35951public:
35952 CZ_USE_SKILL_TOGROUND2(std::shared_ptr<ZoneSession> s)
35954 {}
35956
35957 void handle(ByteBuffer &&buf);
35958 void deserialize(ByteBuffer &buf);
35959
35960/* Structure */
35961 int16_t _skill_lv{ 0 };
35962 int16_t _skill_id{ 0 };
35963 int16_t _pos_x{ 0 };
35964 int16_t _pos_y{ 0 };
35965};
35966
35967enum {
35968#if CLIENT_TYPE == 'A' && \
35969 PACKET_VERSION >= 20041129
35971#elif CLIENT_TYPE == 'M' && \
35972 PACKET_VERSION >= 20030000
35974#elif CLIENT_TYPE == 'M' && ( \
35975 PACKET_VERSION >= 20220000 \
35976 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
35977 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
35978 || PACKET_VERSION >= 20120712)
35980#elif CLIENT_TYPE == 'M' && \
35981 PACKET_VERSION >= 20120926
35983#elif CLIENT_TYPE == 'M' && ( \
35984 PACKET_VERSION == 20180131 \
35985 || PACKET_VERSION >= 20160526 \
35986 || PACKET_VERSION >= 20160318 \
35987 || PACKET_VERSION >= 20151029 \
35988 || PACKET_VERSION >= 20151022 \
35989 || PACKET_VERSION >= 20150812 \
35990 || PACKET_VERSION >= 20150618 \
35991 || PACKET_VERSION >= 20150226 \
35992 || PACKET_VERSION >= 20141016 \
35993 || PACKET_VERSION >= 20140814 \
35994 || PACKET_VERSION >= 20130107)
35996#elif CLIENT_TYPE == 'M' && \
35997 PACKET_VERSION >= 20130116
35999#elif CLIENT_TYPE == 'M' && ( \
36000 PACKET_VERSION == 20131108 \
36001 || PACKET_VERSION == 20131107)
36003#elif CLIENT_TYPE == 'M' && ( \
36004 PACKET_VERSION == 20140613 \
36005 || PACKET_VERSION == 20140612)
36007#elif CLIENT_TYPE == 'M' && ( \
36008 PACKET_VERSION == 20150130 \
36009 || PACKET_VERSION == 20150129)
36011#elif CLIENT_TYPE == 'M' && \
36012 PACKET_VERSION >= 20150702
36014#elif CLIENT_TYPE == 'M' && \
36015 PACKET_VERSION >= 20160609
36017#elif CLIENT_TYPE == 'M' && \
36018 PACKET_VERSION >= 20160630
36020#elif CLIENT_TYPE == 'M' && \
36021 PACKET_VERSION >= 20161103
36023#elif CLIENT_TYPE == 'M' && \
36024 PACKET_VERSION >= 20180309
36026#elif CLIENT_TYPE == 'M' && ( \
36027 PACKET_VERSION == 20190821 \
36028 || PACKET_VERSION == 20190807 \
36029 || PACKET_VERSION == 20190802 \
36030 || PACKET_VERSION == 20190731 \
36031 || PACKET_VERSION == 20190724 \
36032 || PACKET_VERSION == 20190717 \
36033 || PACKET_VERSION == 20190703 \
36034 || PACKET_VERSION == 20190605 \
36035 || PACKET_VERSION == 20190530 \
36036 || PACKET_VERSION == 20190523 \
36037 || PACKET_VERSION == 20190522 \
36038 || PACKET_VERSION == 20190508 \
36039 || PACKET_VERSION == 20190418 \
36040 || PACKET_VERSION == 20190417 \
36041 || PACKET_VERSION == 20190327 \
36042 || PACKET_VERSION == 20190322 \
36043 || PACKET_VERSION == 20190320 \
36044 || PACKET_VERSION == 20190313 \
36045 || PACKET_VERSION == 20190306 \
36046 || PACKET_VERSION == 20190228 \
36047 || PACKET_VERSION == 20190123 \
36048 || PACKET_VERSION == 20190116 \
36049 || PACKET_VERSION == 20181226 \
36050 || PACKET_VERSION == 20181219 \
36051 || PACKET_VERSION == 20181212 \
36052 || PACKET_VERSION == 20181205 \
36053 || PACKET_VERSION == 20181128 \
36054 || PACKET_VERSION == 20181114 \
36055 || PACKET_VERSION == 20181107 \
36056 || PACKET_VERSION == 20181024 \
36057 || PACKET_VERSION == 20180919 \
36058 || PACKET_VERSION == 20180831 \
36059 || PACKET_VERSION == 20180822 \
36060 || PACKET_VERSION >= 20180808 \
36061 || PACKET_VERSION >= 20180718 \
36062 || PACKET_VERSION >= 20180704 \
36063 || PACKET_VERSION >= 20180621 \
36064 || PACKET_VERSION >= 20180620 \
36065 || PACKET_VERSION >= 20180530 \
36066 || PACKET_VERSION >= 20180523 \
36067 || PACKET_VERSION >= 20180516 \
36068 || PACKET_VERSION >= 20180509 \
36069 || PACKET_VERSION >= 20180502 \
36070 || PACKET_VERSION >= 20180425 \
36071 || PACKET_VERSION >= 20180404 \
36072 || PACKET_VERSION >= 20180328 \
36073 || PACKET_VERSION >= 20180321)
36075#elif CLIENT_TYPE == 'R' && \
36076 PACKET_VERSION >= 20080000
36078#elif CLIENT_TYPE == 'R' && ( \
36079 PACKET_VERSION >= 20210000 \
36080 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
36081 || PACKET_VERSION >= 20120712)
36083#elif CLIENT_TYPE == 'R' && \
36084 PACKET_VERSION >= 20120926
36086#elif CLIENT_TYPE == 'R' && \
36087 PACKET_VERSION >= 20121011
36089#elif CLIENT_TYPE == 'R' && \
36090 PACKET_VERSION >= 20130116
36092#elif CLIENT_TYPE == 'R' && ( \
36093 PACKET_VERSION == 20151029 \
36094 || PACKET_VERSION == 20151022 \
36095 || PACKET_VERSION == 20150812 \
36096 || PACKET_VERSION == 20150618 \
36097 || PACKET_VERSION == 20150226 \
36098 || PACKET_VERSION >= 20141016)
36100#elif CLIENT_TYPE == 'R' && \
36101 PACKET_VERSION >= 20160630
36103#elif CLIENT_TYPE == 'R' && \
36104 PACKET_VERSION >= 20161103
36106#elif CLIENT_TYPE == 'R' && ( \
36107 PACKET_VERSION == 20190821 \
36108 || PACKET_VERSION == 20190807 \
36109 || PACKET_VERSION == 20190802 \
36110 || PACKET_VERSION == 20190731 \
36111 || PACKET_VERSION == 20190724 \
36112 || PACKET_VERSION == 20190717 \
36113 || PACKET_VERSION == 20190703 \
36114 || PACKET_VERSION == 20190626 \
36115 || PACKET_VERSION == 20190605 \
36116 || PACKET_VERSION == 20190530 \
36117 || PACKET_VERSION == 20190522 \
36118 || PACKET_VERSION == 20190508 \
36119 || PACKET_VERSION == 20190418 \
36120 || PACKET_VERSION == 20190417 \
36121 || PACKET_VERSION == 20190327 \
36122 || PACKET_VERSION == 20190322 \
36123 || PACKET_VERSION == 20190320 \
36124 || PACKET_VERSION == 20190306 \
36125 || PACKET_VERSION == 20190228 \
36126 || PACKET_VERSION == 20190123 \
36127 || PACKET_VERSION == 20190116 \
36128 || PACKET_VERSION == 20181226 \
36129 || PACKET_VERSION == 20181219 \
36130 || PACKET_VERSION == 20181212 \
36131 || PACKET_VERSION == 20181205 \
36132 || PACKET_VERSION == 20181128 \
36133 || PACKET_VERSION == 20181121 \
36134 || PACKET_VERSION == 20181114 \
36135 || PACKET_VERSION == 20181107 \
36136 || PACKET_VERSION == 20180822 \
36137 || PACKET_VERSION >= 20180808 \
36138 || PACKET_VERSION >= 20180718 \
36139 || PACKET_VERSION >= 20180711 \
36140 || PACKET_VERSION >= 20180621 \
36141 || PACKET_VERSION >= 20180620 \
36142 || PACKET_VERSION >= 20180612 \
36143 || PACKET_VERSION >= 20180530 \
36144 || PACKET_VERSION >= 20180523 \
36145 || PACKET_VERSION >= 20180516 \
36146 || PACKET_VERSION >= 20180502 \
36147 || PACKET_VERSION >= 20180425 \
36148 || PACKET_VERSION >= 20180404 \
36149 || PACKET_VERSION >= 20180328)
36151#elif CLIENT_TYPE == 'S' && \
36152 PACKET_VERSION >= 20030000
36154#elif CLIENT_TYPE == 'Z' && \
36155 PACKET_VERSION >= 20170000
36157#elif CLIENT_TYPE == 'Z' && ( \
36158 PACKET_VERSION == 20190814 \
36159 || PACKET_VERSION == 20190724 \
36160 || PACKET_VERSION == 20190717 \
36161 || PACKET_VERSION == 20190710 \
36162 || PACKET_VERSION == 20190709 \
36163 || PACKET_VERSION == 20190605 \
36164 || PACKET_VERSION == 20190530 \
36165 || PACKET_VERSION == 20190515 \
36166 || PACKET_VERSION == 20190508 \
36167 || PACKET_VERSION == 20190502 \
36168 || PACKET_VERSION == 20190424 \
36169 || PACKET_VERSION == 20190410 \
36170 || PACKET_VERSION == 20190403 \
36171 || PACKET_VERSION == 20190313 \
36172 || PACKET_VERSION == 20190227 \
36173 || PACKET_VERSION == 20190213 \
36174 || PACKET_VERSION == 20190117 \
36175 || PACKET_VERSION == 20181226 \
36176 || PACKET_VERSION == 20181219 \
36177 || PACKET_VERSION == 20181212 \
36178 || PACKET_VERSION == 20181128 \
36179 || PACKET_VERSION == 20181120 \
36180 || PACKET_VERSION == 20180928 \
36181 || PACKET_VERSION == 20180912 \
36182 || PACKET_VERSION == 20180829 \
36183 || PACKET_VERSION >= 20180808 \
36184 || PACKET_VERSION >= 20180801 \
36185 || PACKET_VERSION >= 20180711 \
36186 || PACKET_VERSION >= 20180703 \
36187 || PACKET_VERSION >= 20180627 \
36188 || PACKET_VERSION >= 20180509 \
36189 || PACKET_VERSION >= 20180411 \
36190 || PACKET_VERSION >= 20180321 \
36191 || PACKET_VERSION >= 20171113 \
36192 || PACKET_VERSION >= 20171031 \
36193 || PACKET_VERSION >= 20171030 \
36194 || PACKET_VERSION >= 20171027 \
36195 || PACKET_VERSION >= 20171025 \
36196 || PACKET_VERSION >= 20171024 \
36197 || PACKET_VERSION >= 20171023 \
36198 || PACKET_VERSION >= 20171019)
36200#elif CLIENT_TYPE == 'Z' && ( \
36201 PACKET_VERSION == 20180309 \
36202 || PACKET_VERSION == 20180307 \
36203 || PACKET_VERSION == 20171128 \
36204 || PACKET_VERSION == 20171122 \
36205 || PACKET_VERSION == 20171117 \
36206 || PACKET_VERSION == 20171116)
36208#elif CLIENT_TYPE == 'Z' && ( \
36209 PACKET_VERSION >= 20220000 \
36210 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
36211 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
36212 || PACKET_VERSION >= 20171213 \
36213 || PACKET_VERSION >= 20171212 \
36214 || PACKET_VERSION >= 20171211 \
36215 || PACKET_VERSION >= 20171210 \
36216 || PACKET_VERSION >= 20171209 \
36217 || PACKET_VERSION >= 20171208)
36219#elif CLIENT_TYPE == 'Z' && \
36220 PACKET_VERSION >= 20171221
36222#elif CLIENT_TYPE == 'Z' && \
36223 PACKET_VERSION >= 20171229
36225#else
36226ID_CZ_USE_SKILL_TOGROUND_WITHTALKBOX = 0x0000 // Disabled
36227#endif
36234{
36235public:
36236 CZ_USE_SKILL_TOGROUND_WITHTALKBOX(std::shared_ptr<ZoneSession> s)
36238 {}
36240
36241 void handle(ByteBuffer &&buf);
36242 void deserialize(ByteBuffer &buf);
36243
36244/* Structure */
36245 int16_t _skill_lv{ 0 };
36246 int16_t _skill_id{ 0 };
36247 int16_t _pos_x{ 0 };
36248 int16_t _pos_y{ 0 };
36250};
36251
36252enum {
36253#if CLIENT_TYPE == 'A' && \
36254 PACKET_VERSION >= 20080624
36256#elif CLIENT_TYPE == 'M' && ( \
36257 PACKET_VERSION >= 20220000 \
36258 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
36259 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
36260 || PACKET_VERSION >= 20190904 \
36261 || PACKET_VERSION >= 20190109 \
36262 || PACKET_VERSION >= 20180315 \
36263 || PACKET_VERSION >= 20180103 \
36264 || PACKET_VERSION >= 20170621 \
36265 || PACKET_VERSION >= 20170614 \
36266 || PACKET_VERSION >= 20170524 \
36267 || PACKET_VERSION >= 20170517 \
36268 || PACKET_VERSION >= 20170322 \
36269 || PACKET_VERSION >= 20170315 \
36270 || PACKET_VERSION >= 20170215 \
36271 || PACKET_VERSION >= 20170208 \
36272 || PACKET_VERSION >= 20170104 \
36273 || PACKET_VERSION >= 20161109 \
36274 || PACKET_VERSION >= 20161102 \
36275 || PACKET_VERSION >= 20160309 \
36276 || PACKET_VERSION >= 20160302 \
36277 || PACKET_VERSION >= 20160106 \
36278 || PACKET_VERSION >= 20150909 \
36279 || PACKET_VERSION >= 20150902 \
36280 || PACKET_VERSION >= 20150408 \
36281 || PACKET_VERSION >= 20150401 \
36282 || PACKET_VERSION >= 20150325 \
36283 || PACKET_VERSION >= 20150318 \
36284 || PACKET_VERSION >= 20150225 \
36285 || PACKET_VERSION >= 20150107 \
36286 || PACKET_VERSION >= 20141210 \
36287 || PACKET_VERSION >= 20141203 \
36288 || PACKET_VERSION >= 20141126 \
36289 || PACKET_VERSION >= 20141001 \
36290 || PACKET_VERSION >= 20140924 \
36291 || PACKET_VERSION >= 20140917 \
36292 || PACKET_VERSION >= 20140806 \
36293 || PACKET_VERSION >= 20140730 \
36294 || PACKET_VERSION >= 20140611 \
36295 || PACKET_VERSION >= 20140508 \
36296 || PACKET_VERSION >= 20140205 \
36297 || PACKET_VERSION >= 20140129 \
36298 || PACKET_VERSION >= 20140122 \
36299 || PACKET_VERSION >= 20140115 \
36300 || PACKET_VERSION >= 20140108 \
36301 || PACKET_VERSION >= 20130417 \
36302 || PACKET_VERSION >= 20130410 \
36303 || PACKET_VERSION >= 20130313 \
36304 || PACKET_VERSION >= 20130306 \
36305 || PACKET_VERSION >= 20130206 \
36306 || PACKET_VERSION >= 20130130 \
36307 || PACKET_VERSION >= 20130103 \
36308 || PACKET_VERSION >= 20120716 \
36309 || PACKET_VERSION >= 20120710 \
36310 || PACKET_VERSION >= 20120314 \
36311 || PACKET_VERSION >= 20120307 \
36312 || PACKET_VERSION >= 20120207 \
36313 || PACKET_VERSION >= 20120131 \
36314 || PACKET_VERSION >= 20120120 \
36315 || PACKET_VERSION >= 20120117 \
36316 || PACKET_VERSION >= 20120110 \
36317 || PACKET_VERSION >= 20120103 \
36318 || PACKET_VERSION >= 20111220 \
36319 || PACKET_VERSION >= 20111213 \
36320 || PACKET_VERSION >= 20111207 \
36321 || PACKET_VERSION >= 20111122 \
36322 || PACKET_VERSION >= 20111101 \
36323 || PACKET_VERSION >= 20111025 \
36324 || PACKET_VERSION >= 20111017 \
36325 || PACKET_VERSION >= 20111010 \
36326 || PACKET_VERSION >= 20111004 \
36327 || PACKET_VERSION >= 20110906 \
36328 || PACKET_VERSION >= 20110831 \
36329 || PACKET_VERSION >= 20110816 \
36330 || PACKET_VERSION >= 20110809 \
36331 || PACKET_VERSION >= 20110802 \
36332 || PACKET_VERSION >= 20110726 \
36333 || PACKET_VERSION >= 20110718 \
36334 || PACKET_VERSION >= 20110627 \
36335 || PACKET_VERSION >= 20110620 \
36336 || PACKET_VERSION >= 20110614 \
36337 || PACKET_VERSION >= 20110531 \
36338 || PACKET_VERSION >= 20110523 \
36339 || PACKET_VERSION >= 20110517 \
36340 || PACKET_VERSION >= 20110419 \
36341 || PACKET_VERSION >= 20110405 \
36342 || PACKET_VERSION >= 20110329 \
36343 || PACKET_VERSION >= 20110322 \
36344 || PACKET_VERSION >= 20110315 \
36345 || PACKET_VERSION >= 20110131 \
36346 || PACKET_VERSION >= 20110125 \
36347 || PACKET_VERSION >= 20110118 \
36348 || PACKET_VERSION >= 20110111 \
36349 || PACKET_VERSION >= 20110104 \
36350 || PACKET_VERSION >= 20101228 \
36351 || PACKET_VERSION >= 20101221 \
36352 || PACKET_VERSION >= 20101123 \
36353 || PACKET_VERSION >= 20100105 \
36354 || PACKET_VERSION >= 20090406 \
36355 || PACKET_VERSION >= 20090401 \
36356 || PACKET_VERSION >= 20090325 \
36357 || PACKET_VERSION >= 20090318 \
36358 || PACKET_VERSION >= 20090218 \
36359 || PACKET_VERSION >= 20090211 \
36360 || PACKET_VERSION >= 20090204 \
36361 || PACKET_VERSION >= 20090129 \
36362 || PACKET_VERSION >= 20090107 \
36363 || PACKET_VERSION >= 20081217 \
36364 || PACKET_VERSION >= 20081105 \
36365 || PACKET_VERSION >= 20081029 \
36366 || PACKET_VERSION >= 20081022 \
36367 || PACKET_VERSION >= 20081015 \
36368 || PACKET_VERSION >= 20081001 \
36369 || PACKET_VERSION >= 20080924 \
36370 || PACKET_VERSION >= 20080917 \
36371 || PACKET_VERSION >= 20080910 \
36372 || PACKET_VERSION >= 20080827 \
36373 || PACKET_VERSION >= 20080820 \
36374 || PACKET_VERSION >= 20080813 \
36375 || PACKET_VERSION >= 20080708 \
36376 || PACKET_VERSION >= 20080624 \
36377 || PACKET_VERSION >= 20080617 \
36378 || PACKET_VERSION >= 20080528)
36380#elif CLIENT_TYPE == 'R' && ( \
36381 PACKET_VERSION >= 20210000 \
36382 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
36383 || PACKET_VERSION >= 20190904 \
36384 || PACKET_VERSION >= 20190109 \
36385 || PACKET_VERSION >= 20180321 \
36386 || PACKET_VERSION >= 20180103 \
36387 || PACKET_VERSION >= 20170621 \
36388 || PACKET_VERSION >= 20170614 \
36389 || PACKET_VERSION >= 20170524 \
36390 || PACKET_VERSION >= 20170517 \
36391 || PACKET_VERSION >= 20170322 \
36392 || PACKET_VERSION >= 20170315 \
36393 || PACKET_VERSION >= 20170215 \
36394 || PACKET_VERSION >= 20170208 \
36395 || PACKET_VERSION >= 20170104 \
36396 || PACKET_VERSION >= 20161109 \
36397 || PACKET_VERSION >= 20161102 \
36398 || PACKET_VERSION >= 20160309 \
36399 || PACKET_VERSION >= 20160302 \
36400 || PACKET_VERSION >= 20160106 \
36401 || PACKET_VERSION >= 20150909 \
36402 || PACKET_VERSION >= 20150902 \
36403 || PACKET_VERSION >= 20150408 \
36404 || PACKET_VERSION >= 20150401 \
36405 || PACKET_VERSION >= 20150325 \
36406 || PACKET_VERSION >= 20150318 \
36407 || PACKET_VERSION >= 20150107 \
36408 || PACKET_VERSION >= 20141210 \
36409 || PACKET_VERSION >= 20141203 \
36410 || PACKET_VERSION >= 20141126 \
36411 || PACKET_VERSION >= 20141001 \
36412 || PACKET_VERSION >= 20140924 \
36413 || PACKET_VERSION >= 20140917 \
36414 || PACKET_VERSION >= 20140806 \
36415 || PACKET_VERSION >= 20140730 \
36416 || PACKET_VERSION >= 20140508 \
36417 || PACKET_VERSION >= 20140205 \
36418 || PACKET_VERSION >= 20140129 \
36419 || PACKET_VERSION >= 20140122 \
36420 || PACKET_VERSION >= 20140115 \
36421 || PACKET_VERSION >= 20140108 \
36422 || PACKET_VERSION >= 20131223 \
36423 || PACKET_VERSION >= 20130417 \
36424 || PACKET_VERSION >= 20130410 \
36425 || PACKET_VERSION >= 20130313 \
36426 || PACKET_VERSION >= 20130306 \
36427 || PACKET_VERSION >= 20130206 \
36428 || PACKET_VERSION >= 20130130 \
36429 || PACKET_VERSION >= 20130103 \
36430 || PACKET_VERSION >= 20120716 \
36431 || PACKET_VERSION >= 20120710 \
36432 || PACKET_VERSION >= 20120314 \
36433 || PACKET_VERSION >= 20120307 \
36434 || PACKET_VERSION >= 20120207 \
36435 || PACKET_VERSION >= 20120131 \
36436 || PACKET_VERSION >= 20120120 \
36437 || PACKET_VERSION >= 20120117 \
36438 || PACKET_VERSION >= 20120110 \
36439 || PACKET_VERSION >= 20120103 \
36440 || PACKET_VERSION >= 20111220 \
36441 || PACKET_VERSION >= 20111213 \
36442 || PACKET_VERSION >= 20111207 \
36443 || PACKET_VERSION >= 20111122 \
36444 || PACKET_VERSION >= 20111101 \
36445 || PACKET_VERSION >= 20111025 \
36446 || PACKET_VERSION >= 20111017 \
36447 || PACKET_VERSION >= 20111010 \
36448 || PACKET_VERSION >= 20111004 \
36449 || PACKET_VERSION >= 20110906 \
36450 || PACKET_VERSION >= 20110831 \
36451 || PACKET_VERSION >= 20110816 \
36452 || PACKET_VERSION >= 20110104 \
36453 || PACKET_VERSION >= 20101123 \
36454 || PACKET_VERSION >= 20100105 \
36455 || (PACKET_VERSION >= 20090000 && PACKET_VERSION < 20100105) \
36456 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20090000))
36458#elif CLIENT_TYPE == 'S' && \
36459 PACKET_VERSION >= 20080618
36461#elif CLIENT_TYPE == 'Z' && ( \
36462 PACKET_VERSION >= 20220000 \
36463 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
36464 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
36465 || PACKET_VERSION >= 20190828 \
36466 || PACKET_VERSION >= 20190116 \
36467 || PACKET_VERSION >= 20180523 \
36468 || PACKET_VERSION >= 20180511 \
36469 || PACKET_VERSION >= 20180315 \
36470 || PACKET_VERSION >= 20180207 \
36471 || PACKET_VERSION >= 20180131 \
36472 || PACKET_VERSION >= 20180103 \
36473 || PACKET_VERSION >= 20171127 \
36474 || PACKET_VERSION >= 20171123 \
36475 || PACKET_VERSION >= 20171115 \
36476 || PACKET_VERSION >= 20171018)
36478#else
36479ID_CZ_USE_SKILL_TOGROUND_WITHTALKBOX2 = 0x0000 // Disabled
36480#endif
36487{
36488public:
36489 CZ_USE_SKILL_TOGROUND_WITHTALKBOX2(std::shared_ptr<ZoneSession> s)
36491 {}
36493
36494 void handle(ByteBuffer &&buf);
36495 void deserialize(ByteBuffer &buf);
36496
36497/* Structure */
36498 int16_t _skill_lv{ 0 };
36499 int16_t _skill_id{ 0 };
36500 int16_t _pos_x{ 0 };
36501 int16_t _pos_y{ 0 };
36503};
36504
36505enum {
36506#if CLIENT_TYPE == 'A' && \
36507 PACKET_VERSION >= 20040000
36508ID_CZ_WHISPER = 0x0096
36509#elif CLIENT_TYPE == 'M' && ( \
36510 PACKET_VERSION >= 20220000 \
36511 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
36512 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
36513 || (PACKET_VERSION >= 20030000 && PACKET_VERSION < 20200000))
36514ID_CZ_WHISPER = 0x0096
36515#elif CLIENT_TYPE == 'R' && ( \
36516 PACKET_VERSION >= 20210000 \
36517 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
36518 || (PACKET_VERSION >= 20080000 && PACKET_VERSION < 20200000))
36519ID_CZ_WHISPER = 0x0096
36520#elif CLIENT_TYPE == 'S' && \
36521 PACKET_VERSION >= 20030000
36522ID_CZ_WHISPER = 0x0096
36523#elif CLIENT_TYPE == 'Z' && ( \
36524 PACKET_VERSION >= 20220000 \
36525 || (PACKET_VERSION >= 20210000 && PACKET_VERSION < 20220000) \
36526 || (PACKET_VERSION >= 20200000 && PACKET_VERSION < 20210000) \
36527 || (PACKET_VERSION >= 20170000 && PACKET_VERSION < 20200000))
36528ID_CZ_WHISPER = 0x0096
36529#else
36530ID_CZ_WHISPER = 0x0000 // Disabled
36531#endif
36537class CZ_WHISPER : public Base::NetworkPacket<ZoneSession>
36538{
36539public:
36540 CZ_WHISPER(std::shared_ptr<ZoneSession> s)
36542 {}
36543 virtual ~CZ_WHISPER() {}
36544
36545 void handle(ByteBuffer &&buf);
36546 void deserialize(ByteBuffer &buf);
36547
36548/* Structure */
36550 uint16_t _packet_length{28};
36552 char *_message{nullptr};
36553};
36554
36555} /* namespace Zone */
36556} /* namespace Horizon */
36557#endif /* HORIZON_ZONE_TRANSMITTED_PACKETS_HPP */
#define MAX_STORAGE_PASSWORD_LENGTH
Definition: ClientDefinitions.hpp:57
#define MAX_AUCTION_SEARCH_TEXT_LENGTH
Definition: ClientDefinitions.hpp:59
#define MAX_GUILD_NOTICE_STR_LENGTH
Definition: ClientDefinitions.hpp:40
#define CHATROOM_TITLE_SIZE
Definition: ClientDefinitions.hpp:360
#define MAX_MAIL_BODY_LENGTH
Definition: ClientDefinitions.hpp:67
#define MAX_GUILD_SUBJECT_STR_LENGTH
Definition: ClientDefinitions.hpp:39
#define MAX_ITEM_CREATE_CMD_INPUT_LENGTH
Definition: ClientDefinitions.hpp:63
#define MAX_TALKBOX_CONTENT_SIZE
Definition: ClientDefinitions.hpp:56
#define MAX_EMBLEM_LENGTH
Definition: ClientDefinitions.hpp:42
#define MAX_CHAT_STR_LENGTH
Definition: ClientDefinitions.hpp:52
#define MAX_INPUT_STR_LENGTH
Definition: ClientDefinitions.hpp:61
#define MAX_MAIL_TITLE_LENGTH
Definition: ClientDefinitions.hpp:66
#define MAX_VENDING_SHOP_NAME_LENGTH
Definition: ClientDefinitions.hpp:71
#define CHATROOM_PASS_SIZE
Definition: ClientDefinitions.hpp:361
#define MAX_GUILD_LEAVE_REASON_STR_LENGTH
Definition: ClientDefinitions.hpp:41
#define MAX_PARTY_BOOKING_JOBS
Definition: ClientDefinitions.hpp:69
#define MAX_UNIT_NAME_LENGTH
Definition: Client.hpp:34
#define MAX_GUILD_NAME_LENGTH
Definition: Client.hpp:36
#define MAX_USERNAME_LENGTH
Definition: Client.hpp:38
#define MAX_PARTY_NAME_LENGTH
Definition: Client.hpp:35
#define MAP_NAME_LENGTH_EXT
Definition: Client.hpp:47
#define MAX_ITEM_SLOTS
Definition: ItemDefinitions.hpp:42
Definition: ByteBuffer.hpp:78
Definition: NetworkPacket.hpp:43
NetworkPacket(uint16_t packet_id, std::shared_ptr< ZoneSession > s)
Definition: NetworkPacket.hpp:45
ByteBuffer & buf()
Definition: NetworkPacket.hpp:59
Main object for the aegis packet: CZ_ACK_ANSWER_MACRO_DETECTOR.
Definition: HandledPackets.hpp:64
CZ_ACK_ANSWER_MACRO_DETECTOR(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:66
void handle(ByteBuffer &&buf)
CZ_ACK_ANSWER_MACRO_DETECTOR.
Definition: HandledPackets.cpp:3689
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:3690
virtual ~CZ_ACK_ANSWER_MACRO_DETECTOR()
Definition: HandledPackets.hpp:69
Main object for the aegis packet: CZ_ACK_AU_BOT.
Definition: HandledPackets.hpp:104
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:3101
CZ_ACK_AU_BOT(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:106
virtual ~CZ_ACK_AU_BOT()
Definition: HandledPackets.hpp:109
void handle(ByteBuffer &&buf)
CZ_ACK_AU_BOT.
Definition: HandledPackets.cpp:3100
Main object for the aegis packet: CZ_ACK_CASH_PASSWORD.
Definition: HandledPackets.hpp:150
CZ_ACK_CASH_PASSWORD(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:152
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:2273
void handle(ByteBuffer &&buf)
CZ_ACK_CASH_PASSWORD.
Definition: HandledPackets.cpp:2272
virtual ~CZ_ACK_CASH_PASSWORD()
Definition: HandledPackets.hpp:155
Main object for the aegis packet: CZ_ACK_EXCHANGE_ITEM.
Definition: HandledPackets.hpp:196
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:265
int8_t _result
Definition: HandledPackets.hpp:207
CZ_ACK_EXCHANGE_ITEM(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:198
virtual ~CZ_ACK_EXCHANGE_ITEM()
Definition: HandledPackets.hpp:201
void handle(ByteBuffer &&buf)
CZ_ACK_EXCHANGE_ITEM.
Definition: HandledPackets.cpp:259
Main object for the aegis packet: CZ_ACK_GAME_GUARD.
Definition: HandledPackets.hpp:243
CZ_ACK_GAME_GUARD(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:245
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:1967
void handle(ByteBuffer &&buf)
CZ_ACK_GAME_GUARD.
Definition: HandledPackets.cpp:1966
virtual ~CZ_ACK_GAME_GUARD()
Definition: HandledPackets.hpp:248
Main object for the aegis packet: CZ_ACK_REQ_ADD_FRIENDS.
Definition: HandledPackets.hpp:289
int _result
Definition: HandledPackets.hpp:302
int _inviter_char_id
Definition: HandledPackets.hpp:301
virtual ~CZ_ACK_REQ_ADD_FRIENDS()
Definition: HandledPackets.hpp:294
CZ_ACK_REQ_ADD_FRIENDS(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:291
int _inviter_account_id
Definition: HandledPackets.hpp:300
void handle(ByteBuffer &&buf)
CZ_ACK_REQ_ADD_FRIENDS.
Definition: HandledPackets.cpp:273
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:278
Main object for the aegis packet: CZ_ACK_SELECT_DEALTYPE.
Definition: HandledPackets.hpp:338
int8_t _type
Definition: HandledPackets.hpp:350
virtual ~CZ_ACK_SELECT_DEALTYPE()
Definition: HandledPackets.hpp:343
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:293
int _guid
Definition: HandledPackets.hpp:349
void handle(ByteBuffer &&buf)
CZ_ACK_SELECT_DEALTYPE.
Definition: HandledPackets.cpp:288
CZ_ACK_SELECT_DEALTYPE(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:340
Main object for the aegis packet: CZ_ACK_STORE_PASSWORD.
Definition: HandledPackets.hpp:1004
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:2053
virtual ~CZ_ACK_STORE_PASSWORD()
Definition: HandledPackets.hpp:1009
char _storage_password[MAX_STORAGE_PASSWORD_LENGTH]
Definition: HandledPackets.hpp:1016
int16_t _type
Definition: HandledPackets.hpp:1015
char _new_password[MAX_STORAGE_PASSWORD_LENGTH]
Definition: HandledPackets.hpp:1017
void handle(ByteBuffer &&buf)
CZ_ACK_STORE_PASSWORD.
Definition: HandledPackets.cpp:2033
CZ_ACK_STORE_PASSWORD(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:1006
Main object for the aegis packet: CZ_ACTIVE_QUEST.
Definition: HandledPackets.hpp:1053
virtual ~CZ_ACTIVE_QUEST()
Definition: HandledPackets.hpp:1058
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:2329
int8_t _active
Definition: HandledPackets.hpp:1065
void handle(ByteBuffer &&buf)
CZ_ACTIVE_QUEST.
Definition: HandledPackets.cpp:2324
CZ_ACTIVE_QUEST(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:1055
int _quest_id
Definition: HandledPackets.hpp:1064
Main object for the aegis packet: CZ_ADD_EXCHANGE_ITEM.
Definition: HandledPackets.hpp:1101
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:316
int _amount
Definition: HandledPackets.hpp:1113
CZ_ADD_EXCHANGE_ITEM(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:1103
void handle(ByteBuffer &&buf)
CZ_ADD_EXCHANGE_ITEM.
Definition: HandledPackets.cpp:302
virtual ~CZ_ADD_EXCHANGE_ITEM()
Definition: HandledPackets.hpp:1106
int16_t _inventory_index
Definition: HandledPackets.hpp:1112
Main object for the aegis packet: CZ_ADD_FRIENDS.
Definition: HandledPackets.hpp:1808
virtual ~CZ_ADD_FRIENDS()
Definition: HandledPackets.hpp:1813
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:330
void handle(ByteBuffer &&buf)
CZ_ADD_FRIENDS.
Definition: HandledPackets.cpp:325
CZ_ADD_FRIENDS(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:1810
char _name[MAX_UNIT_NAME_LENGTH]
Definition: HandledPackets.hpp:1819
Main object for the aegis packet: CZ_ADVENTURER_AGENCY_JOIN_REQ.
Definition: HandledPackets.hpp:1846
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:3695
void handle(ByteBuffer &&buf)
CZ_ADVENTURER_AGENCY_JOIN_REQ.
Definition: HandledPackets.cpp:3694
CZ_ADVENTURER_AGENCY_JOIN_REQ(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:1848
virtual ~CZ_ADVENTURER_AGENCY_JOIN_REQ()
Definition: HandledPackets.hpp:1851
Main object for the aegis packet: CZ_ADVENTURER_AGENCY_JOIN_RESULT.
Definition: HandledPackets.hpp:1883
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:3700
virtual ~CZ_ADVENTURER_AGENCY_JOIN_RESULT()
Definition: HandledPackets.hpp:1888
CZ_ADVENTURER_AGENCY_JOIN_RESULT(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:1885
void handle(ByteBuffer &&buf)
CZ_ADVENTURER_AGENCY_JOIN_RESULT.
Definition: HandledPackets.cpp:3699
Main object for the aegis packet: CZ_AGREE_STARPLACE.
Definition: HandledPackets.hpp:1929
int8_t _type
Definition: HandledPackets.hpp:1940
void handle(ByteBuffer &&buf)
CZ_AGREE_STARPLACE.
Definition: HandledPackets.cpp:2150
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:2156
virtual ~CZ_AGREE_STARPLACE()
Definition: HandledPackets.hpp:1934
CZ_AGREE_STARPLACE(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:1931
Main object for the aegis packet: CZ_ALCHEMIST_RANK.
Definition: HandledPackets.hpp:1976
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:1806
CZ_ALCHEMIST_RANK(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:1978
void handle(ByteBuffer &&buf)
CZ_ALCHEMIST_RANK.
Definition: HandledPackets.cpp:1801
virtual ~CZ_ALCHEMIST_RANK()
Definition: HandledPackets.hpp:1981
Main object for the aegis packet: CZ_ALLY_GUILD.
Definition: HandledPackets.hpp:2022
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:344
virtual ~CZ_ALLY_GUILD()
Definition: HandledPackets.hpp:2027
void handle(ByteBuffer &&buf)
CZ_ALLY_GUILD.
Definition: HandledPackets.cpp:338
CZ_ALLY_GUILD(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:2024
int _inviter_account_id
Definition: HandledPackets.hpp:2033
int _response
Definition: HandledPackets.hpp:2034
Main object for the aegis packet: CZ_ALT_EQUIPMENT_ADD.
Definition: HandledPackets.hpp:2056
virtual ~CZ_ALT_EQUIPMENT_ADD()
Definition: HandledPackets.hpp:2061
CZ_ALT_EQUIPMENT_ADD(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:2058
void handle(ByteBuffer &&buf)
CZ_ALT_EQUIPMENT_ADD.
Definition: HandledPackets.cpp:3649
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:3650
Main object for the aegis packet: CZ_ALT_EQUIPMENT_EQUIP.
Definition: HandledPackets.hpp:2096
CZ_ALT_EQUIPMENT_EQUIP(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:2098
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:3148
void handle(ByteBuffer &&buf)
CZ_ALT_EQUIPMENT_EQUIP.
Definition: HandledPackets.cpp:3147
virtual ~CZ_ALT_EQUIPMENT_EQUIP()
Definition: HandledPackets.hpp:2101
Main object for the aegis packet: CZ_ALT_EQUIPMENT_REMOVE.
Definition: HandledPackets.hpp:2136
CZ_ALT_EQUIPMENT_REMOVE(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:2138
virtual ~CZ_ALT_EQUIPMENT_REMOVE()
Definition: HandledPackets.hpp:2141
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:3655
void handle(ByteBuffer &&buf)
CZ_ALT_EQUIPMENT_REMOVE.
Definition: HandledPackets.cpp:3654
Main object for the aegis packet: CZ_ALT_EQUIPMENT_SWITCH.
Definition: HandledPackets.hpp:2176
void handle(ByteBuffer &&buf)
CZ_ALT_EQUIPMENT_SWITCH.
Definition: HandledPackets.cpp:3659
CZ_ALT_EQUIPMENT_SWITCH(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:2178
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:3660
virtual ~CZ_ALT_EQUIPMENT_SWITCH()
Definition: HandledPackets.hpp:2181
Main object for the aegis packet: CZ_ATTENDANCE_REWARD_REQUEST.
Definition: HandledPackets.hpp:2216
void handle(ByteBuffer &&buf)
CZ_ATTENDANCE_REWARD_REQUEST.
Definition: HandledPackets.cpp:3167
CZ_ATTENDANCE_REWARD_REQUEST(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:2218
virtual ~CZ_ATTENDANCE_REWARD_REQUEST()
Definition: HandledPackets.hpp:2221
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:3168
Main object for the aegis packet: CZ_AUCTION_ADD_CANCEL.
Definition: HandledPackets.hpp:2311
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:2113
void handle(ByteBuffer &&buf)
CZ_AUCTION_ADD_CANCEL.
Definition: HandledPackets.cpp:2108
virtual ~CZ_AUCTION_ADD_CANCEL()
Definition: HandledPackets.hpp:2316
int _auction_id
Definition: HandledPackets.hpp:2322
CZ_AUCTION_ADD_CANCEL(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:2313
Main object for the aegis packet: CZ_AUCTION_ADD_ITEM.
Definition: HandledPackets.hpp:2358
CZ_AUCTION_ADD_ITEM(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:2360
int _inventory_index
Definition: HandledPackets.hpp:2369
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:1854
void handle(ByteBuffer &&buf)
CZ_AUCTION_ADD_ITEM.
Definition: HandledPackets.cpp:1849
virtual ~CZ_AUCTION_ADD_ITEM()
Definition: HandledPackets.hpp:2363
int _amount
Definition: HandledPackets.hpp:2370
Main object for the aegis packet: CZ_AUCTION_ADD.
Definition: HandledPackets.hpp:2262
CZ_AUCTION_ADD(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:2264
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:2098
int _now_money
Definition: HandledPackets.hpp:2273
void handle(ByteBuffer &&buf)
CZ_AUCTION_ADD.
Definition: HandledPackets.cpp:2093
int16_t _delete_hour
Definition: HandledPackets.hpp:2275
virtual ~CZ_AUCTION_ADD()
Definition: HandledPackets.hpp:2267
int _max_money
Definition: HandledPackets.hpp:2274
Main object for the aegis packet: CZ_AUCTION_BUY.
Definition: HandledPackets.hpp:2406
virtual ~CZ_AUCTION_BUY()
Definition: HandledPackets.hpp:2411
int _auction_id
Definition: HandledPackets.hpp:2417
void handle(ByteBuffer &&buf)
CZ_AUCTION_BUY.
Definition: HandledPackets.cpp:1863
CZ_AUCTION_BUY(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:2408
int _money
Definition: HandledPackets.hpp:2418
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:1868
Main object for the aegis packet: CZ_AUCTION_CREATE.
Definition: HandledPackets.hpp:2454
virtual ~CZ_AUCTION_CREATE()
Definition: HandledPackets.hpp:2459
CZ_AUCTION_CREATE(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:2456
void handle(ByteBuffer &&buf)
CZ_AUCTION_CREATE.
Definition: HandledPackets.cpp:1877
int16_t _type
Definition: HandledPackets.hpp:2465
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:1882
Main object for the aegis packet: CZ_AUCTION_ITEM_SEARCH.
Definition: HandledPackets.hpp:2501
void handle(ByteBuffer &&buf)
CZ_AUCTION_ITEM_SEARCH.
Definition: HandledPackets.cpp:2121
int16_t _page_number
Definition: HandledPackets.hpp:2515
char _search_text[MAX_AUCTION_SEARCH_TEXT_LENGTH]
Definition: HandledPackets.hpp:2514
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:2126
int16_t _search_type
Definition: HandledPackets.hpp:2512
virtual ~CZ_AUCTION_ITEM_SEARCH()
Definition: HandledPackets.hpp:2506
int _auction_id
Definition: HandledPackets.hpp:2513
CZ_AUCTION_ITEM_SEARCH(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:2503
Main object for the aegis packet: CZ_AUCTION_REQ_MY_INFO.
Definition: HandledPackets.hpp:2551
void handle(ByteBuffer &&buf)
CZ_AUCTION_REQ_MY_INFO.
Definition: HandledPackets.cpp:2137
virtual ~CZ_AUCTION_REQ_MY_INFO()
Definition: HandledPackets.hpp:2556
CZ_AUCTION_REQ_MY_INFO(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:2553
int16_t _type
Definition: HandledPackets.hpp:2562
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:2142
Main object for the aegis packet: CZ_AUCTION_REQ_MY_SELL_STOP.
Definition: HandledPackets.hpp:2598
virtual ~CZ_AUCTION_REQ_MY_SELL_STOP()
Definition: HandledPackets.hpp:2603
int _auction_id
Definition: HandledPackets.hpp:2609
CZ_AUCTION_REQ_MY_SELL_STOP(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:2600
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:2169
void handle(ByteBuffer &&buf)
CZ_AUCTION_REQ_MY_SELL_STOP.
Definition: HandledPackets.cpp:2164
Main object for the aegis packet: CZ_BATTLEFIELD_CHAT.
Definition: HandledPackets.hpp:2645
void handle(ByteBuffer &&buf)
CZ_BATTLEFIELD_CHAT.
Definition: HandledPackets.cpp:2383
char _message[MAX_CHAT_STR_LENGTH]
Definition: HandledPackets.hpp:2657
CZ_BATTLEFIELD_CHAT(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:2647
int16_t _packet_length
Definition: HandledPackets.hpp:2656
virtual ~CZ_BATTLEFIELD_CHAT()
Definition: HandledPackets.hpp:2650
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:2388
Main object for the aegis packet: CZ_BATTLE_FIELD_LIST.
Definition: HandledPackets.hpp:2687
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:3311
void handle(ByteBuffer &&buf)
CZ_BATTLE_FIELD_LIST.
Definition: HandledPackets.cpp:3310
CZ_BATTLE_FIELD_LIST(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:2689
virtual ~CZ_BATTLE_FIELD_LIST()
Definition: HandledPackets.hpp:2692
Main object for the aegis packet: CZ_BLACKSMITH_RANK.
Definition: HandledPackets.hpp:2733
CZ_BLACKSMITH_RANK(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:2735
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:1818
virtual ~CZ_BLACKSMITH_RANK()
Definition: HandledPackets.hpp:2738
void handle(ByteBuffer &&buf)
CZ_BLACKSMITH_RANK.
Definition: HandledPackets.cpp:1813
Main object for the aegis packet: CZ_BLOCKING_PLAY_CANCEL.
Definition: HandledPackets.hpp:2776
void handle(ByteBuffer &&buf)
CZ_BLOCKING_PLAY_CANCEL.
Definition: HandledPackets.cpp:3252
CZ_BLOCKING_PLAY_CANCEL(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:2778
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:3256
virtual ~CZ_BLOCKING_PLAY_CANCEL()
Definition: HandledPackets.hpp:2781
Main object for the aegis packet: CZ_BOT_CHECK.
Definition: HandledPackets.hpp:2822
CZ_BOT_CHECK(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:2824
virtual ~CZ_BOT_CHECK()
Definition: HandledPackets.hpp:2827
void handle(ByteBuffer &&buf)
CZ_BOT_CHECK.
Definition: HandledPackets.cpp:2397
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:2398
Main object for the aegis packet: CZ_BROADCAST.
Definition: HandledPackets.hpp:2868
CZ_BROADCAST(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:2870
virtual ~CZ_BROADCAST()
Definition: HandledPackets.hpp:2873
char _message[MAX_CHAT_STR_LENGTH]
Definition: HandledPackets.hpp:2880
int16_t _packet_length
Definition: HandledPackets.hpp:2879
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:358
void handle(ByteBuffer &&buf)
CZ_BROADCAST.
Definition: HandledPackets.cpp:353
Main object for the aegis packet: CZ_CAMERA_INFO.
Definition: HandledPackets.hpp:2910
CZ_CAMERA_INFO(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:2912
virtual ~CZ_CAMERA_INFO()
Definition: HandledPackets.hpp:2915
void handle(ByteBuffer &&buf)
CZ_CAMERA_INFO.
Definition: HandledPackets.cpp:3664
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:3665
Main object for the aegis packet: CZ_CANCEL_BATTLE_FIELD.
Definition: HandledPackets.hpp:2950
CZ_CANCEL_BATTLE_FIELD(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:2952
void handle(ByteBuffer &&buf)
CZ_CANCEL_BATTLE_FIELD.
Definition: HandledPackets.cpp:3315
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:3316
virtual ~CZ_CANCEL_BATTLE_FIELD()
Definition: HandledPackets.hpp:2955
Main object for the aegis packet: CZ_CANCEL_EXCHANGE_ITEM.
Definition: HandledPackets.hpp:2996
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:373
CZ_CANCEL_EXCHANGE_ITEM(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:2998
void handle(ByteBuffer &&buf)
CZ_CANCEL_EXCHANGE_ITEM.
Definition: HandledPackets.cpp:367
virtual ~CZ_CANCEL_EXCHANGE_ITEM()
Definition: HandledPackets.hpp:3001
Main object for the aegis packet: CZ_CANCEL_LOCKON.
Definition: HandledPackets.hpp:3042
CZ_CANCEL_LOCKON(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:3044
void handle(ByteBuffer &&buf)
CZ_CANCEL_LOCKON.
Definition: HandledPackets.cpp:380
virtual ~CZ_CANCEL_LOCKON()
Definition: HandledPackets.hpp:3047
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:386
Main object for the aegis packet: CZ_CANCEL_MERGE_ITEM.
Definition: HandledPackets.hpp:3082
virtual ~CZ_CANCEL_MERGE_ITEM()
Definition: HandledPackets.hpp:3087
CZ_CANCEL_MERGE_ITEM(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:3084
void handle(ByteBuffer &&buf)
CZ_CANCEL_MERGE_ITEM.
Definition: HandledPackets.cpp:3639
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:3640
Main object for the aegis packet: CZ_CHANGE_CHATROOM.
Definition: HandledPackets.hpp:3128
CZ_CHANGE_CHATROOM(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:3130
char _password[CHATROOM_PASS_SIZE]
Definition: HandledPackets.hpp:3142
void handle(ByteBuffer &&buf)
CZ_CHANGE_CHATROOM.
Definition: HandledPackets.cpp:393
int16_t _limit
Definition: HandledPackets.hpp:3140
int8_t _type
Definition: HandledPackets.hpp:3141
virtual ~CZ_CHANGE_CHATROOM()
Definition: HandledPackets.hpp:3133
int16_t _packet_length
Definition: HandledPackets.hpp:3139
char _title[CHATROOM_TITLE_SIZE]
Definition: HandledPackets.hpp:3143
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:398
Main object for the aegis packet: CZ_CHANGE_DIRECTION2.
Definition: HandledPackets.hpp:3912
void handle(ByteBuffer &&buf)
CZ_CHANGE_DIRECTION2.
Definition: HandledPackets.cpp:2422
int16_t _head_direction
Definition: HandledPackets.hpp:3923
int8_t _body_direction
Definition: HandledPackets.hpp:3924
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:2427
CZ_CHANGE_DIRECTION2(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:3914
virtual ~CZ_CHANGE_DIRECTION2()
Definition: HandledPackets.hpp:3917
Main object for the aegis packet: CZ_CHANGE_DIRECTION.
Definition: HandledPackets.hpp:3435
CZ_CHANGE_DIRECTION(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:3437
void handle(ByteBuffer &&buf)
CZ_CHANGE_DIRECTION.
Definition: HandledPackets.cpp:38
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:43
int16_t _head_direction
Definition: HandledPackets.hpp:3446
int8_t _body_direction
Definition: HandledPackets.hpp:3447
virtual ~CZ_CHANGE_DIRECTION()
Definition: HandledPackets.hpp:3440
Main object for the aegis packet: CZ_CHANGE_EFFECTSTATE.
Definition: HandledPackets.hpp:3960
void handle(ByteBuffer &&buf)
CZ_CHANGE_EFFECTSTATE.
Definition: HandledPackets.cpp:410
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:415
int _effect_state
Definition: HandledPackets.hpp:3971
CZ_CHANGE_EFFECTSTATE(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:3962
virtual ~CZ_CHANGE_EFFECTSTATE()
Definition: HandledPackets.hpp:3965
Main object for the aegis packet: CZ_CHANGE_GROUPEXPOPTION.
Definition: HandledPackets.hpp:4007
CZ_CHANGE_GROUPEXPOPTION(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:4009
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:429
void handle(ByteBuffer &&buf)
CZ_CHANGE_GROUPEXPOPTION.
Definition: HandledPackets.cpp:423
int _exp_share_rule
Definition: HandledPackets.hpp:4018
virtual ~CZ_CHANGE_GROUPEXPOPTION()
Definition: HandledPackets.hpp:4012
Main object for the aegis packet: CZ_CHANGE_GROUP_MASTER.
Definition: HandledPackets.hpp:4051
void handle(ByteBuffer &&buf)
CZ_CHANGE_GROUP_MASTER.
Definition: HandledPackets.cpp:3280
virtual ~CZ_CHANGE_GROUP_MASTER()
Definition: HandledPackets.hpp:4056
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:3286
CZ_CHANGE_GROUP_MASTER(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:4053
int _account_id
Definition: HandledPackets.hpp:4062
Main object for the aegis packet: CZ_CHANGE_MAPTYPE.
Definition: HandledPackets.hpp:4098
int16_t _x
Definition: HandledPackets.hpp:4109
void handle(ByteBuffer &&buf)
CZ_CHANGE_MAPTYPE.
Definition: HandledPackets.cpp:437
virtual ~CZ_CHANGE_MAPTYPE()
Definition: HandledPackets.hpp:4103
int16_t _walkable
Definition: HandledPackets.hpp:4111
CZ_CHANGE_MAPTYPE(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:4100
int16_t _y
Definition: HandledPackets.hpp:4110
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:442
Main object for the aegis packet: CZ_CHECK_RECEIVE_CHARACTER_NAME.
Definition: HandledPackets.hpp:4141
virtual ~CZ_CHECK_RECEIVE_CHARACTER_NAME()
Definition: HandledPackets.hpp:4146
char _name[MAX_UNIT_NAME_LENGTH]
Definition: HandledPackets.hpp:4152
void handle(ByteBuffer &&buf)
CZ_CHECK_RECEIVE_CHARACTER_NAME.
Definition: HandledPackets.cpp:3017
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:3022
CZ_CHECK_RECEIVE_CHARACTER_NAME(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:4143
Main object for the aegis packet: CZ_CHOOSE_MENU_ZERO.
Definition: HandledPackets.hpp:4226
CZ_CHOOSE_MENU_ZERO(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:4228
void handle(ByteBuffer &&buf)
CZ_CHOOSE_MENU_ZERO.
Definition: HandledPackets.cpp:3854
virtual ~CZ_CHOOSE_MENU_ZERO()
Definition: HandledPackets.hpp:4231
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:3855
Main object for the aegis packet: CZ_CHOOSE_MENU.
Definition: HandledPackets.hpp:4188
void handle(ByteBuffer &&buf)
CZ_CHOOSE_MENU.
Definition: HandledPackets.cpp:452
virtual ~CZ_CHOOSE_MENU()
Definition: HandledPackets.hpp:4193
CZ_CHOOSE_MENU(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:4190
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:457
int8_t _choice
Definition: HandledPackets.hpp:4200
int _npc_guid
Definition: HandledPackets.hpp:4199
Main object for the aegis packet: CZ_CHOPOKGI.
Definition: HandledPackets.hpp:4278
virtual ~CZ_CHOPOKGI()
Definition: HandledPackets.hpp:4283
CZ_CHOPOKGI(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:4280
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:467
void handle(ByteBuffer &&buf)
CZ_CHOPOKGI.
Definition: HandledPackets.cpp:466
Main object for the aegis packet: CZ_CLAN_CHAT.
Definition: HandledPackets.hpp:4318
virtual ~CZ_CLAN_CHAT()
Definition: HandledPackets.hpp:4323
int16_t _packet_length
Definition: HandledPackets.hpp:4329
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:2751
CZ_CLAN_CHAT(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:4320
void handle(ByteBuffer &&buf)
CZ_CLAN_CHAT.
Definition: HandledPackets.cpp:2746
char _message[MAX_CHAT_STR_LENGTH]
Definition: HandledPackets.hpp:4330
Main object for the aegis packet: CZ_CLIENT_VERSION.
Definition: HandledPackets.hpp:4363
virtual ~CZ_CLIENT_VERSION()
Definition: HandledPackets.hpp:4368
int _version
Definition: HandledPackets.hpp:4374
CZ_CLIENT_VERSION(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:4365
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:3234
void handle(ByteBuffer &&buf)
CZ_CLIENT_VERSION.
Definition: HandledPackets.cpp:3229
Main object for the aegis packet: CZ_CLOSE_BARGAIN_SALE_TOOL.
Definition: HandledPackets.hpp:4404
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:2850
virtual ~CZ_CLOSE_BARGAIN_SALE_TOOL()
Definition: HandledPackets.hpp:4409
CZ_CLOSE_BARGAIN_SALE_TOOL(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:4406
void handle(ByteBuffer &&buf)
CZ_CLOSE_BARGAIN_SALE_TOOL.
Definition: HandledPackets.cpp:2849
Main object for the aegis packet: CZ_CLOSE_DIALOG.
Definition: HandledPackets.hpp:4450
void handle(ByteBuffer &&buf)
CZ_CLOSE_DIALOG.
Definition: HandledPackets.cpp:471
CZ_CLOSE_DIALOG(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:4452
int _npc_guid
Definition: HandledPackets.hpp:4461
virtual ~CZ_CLOSE_DIALOG()
Definition: HandledPackets.hpp:4455
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:476
Main object for the aegis packet: CZ_CLOSE_REFORM_UI.
Definition: HandledPackets.hpp:4487
void handle(ByteBuffer &&buf)
CZ_CLOSE_REFORM_UI.
Definition: HandledPackets.cpp:3819
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:3820
virtual ~CZ_CLOSE_REFORM_UI()
Definition: HandledPackets.hpp:4492
CZ_CLOSE_REFORM_UI(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:4489
Main object for the aegis packet: CZ_CLOSE_RODEXBOX.
Definition: HandledPackets.hpp:4527
void handle(ByteBuffer &&buf)
CZ_CLOSE_RODEXBOX.
Definition: HandledPackets.cpp:2927
virtual ~CZ_CLOSE_RODEXBOX()
Definition: HandledPackets.hpp:4532
CZ_CLOSE_RODEXBOX(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:4529
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:2928
Main object for the aegis packet: CZ_CLOSE_SEARCH_STORE_INFO.
Definition: HandledPackets.hpp:4567
virtual ~CZ_CLOSE_SEARCH_STORE_INFO()
Definition: HandledPackets.hpp:4572
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:3397
CZ_CLOSE_SEARCH_STORE_INFO(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:4569
void handle(ByteBuffer &&buf)
CZ_CLOSE_SEARCH_STORE_INFO.
Definition: HandledPackets.cpp:3396
Main object for the aegis packet: CZ_CLOSE_SIMPLECASH_SHOP.
Definition: HandledPackets.hpp:4610
CZ_CLOSE_SIMPLECASH_SHOP(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:4612
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:3276
virtual ~CZ_CLOSE_SIMPLECASH_SHOP()
Definition: HandledPackets.hpp:4615
void handle(ByteBuffer &&buf)
CZ_CLOSE_SIMPLECASH_SHOP.
Definition: HandledPackets.cpp:3275
Main object for the aegis packet: CZ_CLOSE_STORE.
Definition: HandledPackets.hpp:4642
CZ_CLOSE_STORE(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:4644
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:3182
virtual ~CZ_CLOSE_STORE()
Definition: HandledPackets.hpp:4647
void handle(ByteBuffer &&buf)
CZ_CLOSE_STORE.
Definition: HandledPackets.cpp:3177
Main object for the aegis packet: CZ_CLOSE_UI_ENCHANT.
Definition: HandledPackets.hpp:4678
CZ_CLOSE_UI_ENCHANT(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:4680
virtual ~CZ_CLOSE_UI_ENCHANT()
Definition: HandledPackets.hpp:4683
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:3830
void handle(ByteBuffer &&buf)
CZ_CLOSE_UI_ENCHANT.
Definition: HandledPackets.cpp:3829
Main object for the aegis packet: CZ_CLOSE_WINDOW.
Definition: HandledPackets.hpp:4724
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:2603
virtual ~CZ_CLOSE_WINDOW()
Definition: HandledPackets.hpp:4729
void handle(ByteBuffer &&buf)
CZ_CLOSE_WINDOW.
Definition: HandledPackets.cpp:2602
CZ_CLOSE_WINDOW(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:4726
Main object for the aegis packet: CZ_COMMAND_MER.
Definition: HandledPackets.hpp:5441
void handle(ByteBuffer &&buf)
CZ_COMMAND_MER.
Definition: HandledPackets.cpp:1971
int8_t _command
Definition: HandledPackets.hpp:5453
int16_t _type
Definition: HandledPackets.hpp:5452
CZ_COMMAND_MER(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:5443
virtual ~CZ_COMMAND_MER()
Definition: HandledPackets.hpp:5446
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:1976
Main object for the aegis packet: CZ_COMMAND_PET.
Definition: HandledPackets.hpp:5489
CZ_COMMAND_PET(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:5491
void handle(ByteBuffer &&buf)
CZ_COMMAND_PET.
Definition: HandledPackets.cpp:484
virtual ~CZ_COMMAND_PET()
Definition: HandledPackets.hpp:5494
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:489
int8_t _command
Definition: HandledPackets.hpp:5500
Main object for the aegis packet: CZ_COMPLETE_APPLY_MACRO_DETECTOR_CAPTCHA.
Definition: HandledPackets.hpp:5527
void handle(ByteBuffer &&buf)
CZ_COMPLETE_APPLY_MACRO_DETECTOR_CAPTCHA.
Definition: HandledPackets.cpp:3704
CZ_COMPLETE_APPLY_MACRO_DETECTOR_CAPTCHA(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:5529
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:3705
virtual ~CZ_COMPLETE_APPLY_MACRO_DETECTOR_CAPTCHA()
Definition: HandledPackets.hpp:5532
Main object for the aegis packet: CZ_CONCLUDE_EXCHANGE_ITEM.
Definition: HandledPackets.hpp:5573
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:503
CZ_CONCLUDE_EXCHANGE_ITEM(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:5575
void handle(ByteBuffer &&buf)
CZ_CONCLUDE_EXCHANGE_ITEM.
Definition: HandledPackets.cpp:497
virtual ~CZ_CONCLUDE_EXCHANGE_ITEM()
Definition: HandledPackets.hpp:5578
Main object for the aegis packet: CZ_CONFIG.
Definition: HandledPackets.hpp:5619
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:2361
virtual ~CZ_CONFIG()
Definition: HandledPackets.hpp:5624
int _type
Definition: HandledPackets.hpp:5630
CZ_CONFIG(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:5621
int _setting
Definition: HandledPackets.hpp:5631
void handle(ByteBuffer &&buf)
CZ_CONFIG.
Definition: HandledPackets.cpp:2356
Main object for the aegis packet: CZ_CONTACTNPC.
Definition: HandledPackets.hpp:5667
CZ_CONTACTNPC(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:5669
int8_t _type
Definition: HandledPackets.hpp:5679
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:515
int32_t _guid
Definition: HandledPackets.hpp:5678
void handle(ByteBuffer &&buf)
CZ_CONTACTNPC.
Definition: HandledPackets.cpp:510
virtual ~CZ_CONTACTNPC()
Definition: HandledPackets.hpp:5672
Main object for the aegis packet: CZ_COOLDOWN_RESET.
Definition: HandledPackets.hpp:5709
void handle(ByteBuffer &&buf)
CZ_COOLDOWN_RESET.
Definition: HandledPackets.cpp:3669
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:3670
CZ_COOLDOWN_RESET(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:5711
virtual ~CZ_COOLDOWN_RESET()
Definition: HandledPackets.hpp:5714
Main object for the aegis packet: CZ_CREATE_CHATROOM.
Definition: HandledPackets.hpp:5755
CZ_CREATE_CHATROOM(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:5757
char _password[CHATROOM_PASS_SIZE]
Definition: HandledPackets.hpp:5769
int16_t _limit
Definition: HandledPackets.hpp:5767
void handle(ByteBuffer &&buf)
CZ_CREATE_CHATROOM.
Definition: HandledPackets.cpp:524
virtual ~CZ_CREATE_CHATROOM()
Definition: HandledPackets.hpp:5760
int16_t _packet_length
Definition: HandledPackets.hpp:5766
int8_t _public
Definition: HandledPackets.hpp:5768
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:534
char _title[CHATROOM_TITLE_SIZE]
Definition: HandledPackets.hpp:5770
Main object for the aegis packet: CZ_DEATH_QUESTION.
Definition: HandledPackets.hpp:5806
virtual ~CZ_DEATH_QUESTION()
Definition: HandledPackets.hpp:5811
void handle(ByteBuffer &&buf)
CZ_DEATH_QUESTION.
Definition: HandledPackets.cpp:2196
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:2197
CZ_DEATH_QUESTION(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:5808
Main object for the aegis packet: CZ_DELETE_FRIENDS.
Definition: HandledPackets.hpp:5852
virtual ~CZ_DELETE_FRIENDS()
Definition: HandledPackets.hpp:5857
int _account_id
Definition: HandledPackets.hpp:5863
int _char_id
Definition: HandledPackets.hpp:5864
void handle(ByteBuffer &&buf)
CZ_DELETE_FRIENDS.
Definition: HandledPackets.cpp:546
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:551
CZ_DELETE_FRIENDS(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:5854
Main object for the aegis packet: CZ_DISCONNECT_ALL_CHARACTER.
Definition: HandledPackets.hpp:5900
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:565
void handle(ByteBuffer &&buf)
CZ_DISCONNECT_ALL_CHARACTER /killall GM command.
Definition: HandledPackets.cpp:561
virtual ~CZ_DISCONNECT_ALL_CHARACTER()
Definition: HandledPackets.hpp:5905
CZ_DISCONNECT_ALL_CHARACTER(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:5902
Main object for the aegis packet: CZ_DISCONNECT_CHARACTER.
Definition: HandledPackets.hpp:5946
virtual ~CZ_DISCONNECT_CHARACTER()
Definition: HandledPackets.hpp:5951
CZ_DISCONNECT_CHARACTER(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:5948
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:575
void handle(ByteBuffer &&buf)
CZ_DISCONNECT_CHARACTER.
Definition: HandledPackets.cpp:570
int _account_id
Definition: HandledPackets.hpp:5957
Main object for the aegis packet: CZ_DORIDORI.
Definition: HandledPackets.hpp:5993
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:584
CZ_DORIDORI(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:5995
void handle(ByteBuffer &&buf)
CZ_DORIDORI.
Definition: HandledPackets.cpp:583
virtual ~CZ_DORIDORI()
Definition: HandledPackets.hpp:5998
Main object for the aegis packet: CZ_DYNAMICNPC_CREATE_REQUEST.
Definition: HandledPackets.hpp:6033
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:3031
void handle(ByteBuffer &&buf)
CZ_DYNAMICNPC_CREATE_REQUEST.
Definition: HandledPackets.cpp:3030
virtual ~CZ_DYNAMICNPC_CREATE_REQUEST()
Definition: HandledPackets.hpp:6038
CZ_DYNAMICNPC_CREATE_REQUEST(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:6035
Main object for the aegis packet: CZ_ENTER2.
Definition: HandledPackets.hpp:6830
void handle(ByteBuffer &&buf)
CZ_ENTER2.
Definition: HandledPackets.cpp:2607
uint32_t _account_id
Definition: HandledPackets.hpp:6841
uint8_t _gender
Definition: HandledPackets.hpp:6845
uint32_t _auth_code
Definition: HandledPackets.hpp:6843
CZ_ENTER2(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:6832
virtual ~CZ_ENTER2()
Definition: HandledPackets.hpp:6835
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:2612
uint32_t _char_id
Definition: HandledPackets.hpp:6842
uint32_t _client_time
Definition: HandledPackets.hpp:6844
Main object for the aegis packet: CZ_ENTER.
Definition: HandledPackets.hpp:6333
uint8_t _gender
Definition: HandledPackets.hpp:6348
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:57
uint32_t _auth_code
Definition: HandledPackets.hpp:6346
uint32_t _client_time
Definition: HandledPackets.hpp:6347
void handle(ByteBuffer &&buf)
CZ_ENTER.
Definition: HandledPackets.cpp:52
uint32_t _account_id
Definition: HandledPackets.hpp:6344
uint32_t _char_id
Definition: HandledPackets.hpp:6345
CZ_ENTER(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:6335
virtual ~CZ_ENTER()
Definition: HandledPackets.hpp:6338
Main object for the aegis packet: CZ_EQUIPWIN_MICROSCOPE.
Definition: HandledPackets.hpp:6881
CZ_EQUIPWIN_MICROSCOPE(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:6883
int _account_id
Definition: HandledPackets.hpp:6892
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:2375
virtual ~CZ_EQUIPWIN_MICROSCOPE()
Definition: HandledPackets.hpp:6886
void handle(ByteBuffer &&buf)
CZ_EQUIPWIN_MICROSCOPE.
Definition: HandledPackets.cpp:2370
Main object for the aegis packet: CZ_ES_CANCEL.
Definition: HandledPackets.hpp:6914
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:3261
void handle(ByteBuffer &&buf)
CZ_ES_CANCEL.
Definition: HandledPackets.cpp:3260
virtual ~CZ_ES_CANCEL()
Definition: HandledPackets.hpp:6919
CZ_ES_CANCEL(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:6916
Main object for the aegis packet: CZ_ES_CHOOSE.
Definition: HandledPackets.hpp:6946
virtual ~CZ_ES_CHOOSE()
Definition: HandledPackets.hpp:6951
CZ_ES_CHOOSE(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:6948
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:3266
void handle(ByteBuffer &&buf)
CZ_ES_CHOOSE.
Definition: HandledPackets.cpp:3265
Main object for the aegis packet: CZ_ES_GET_LIST.
Definition: HandledPackets.hpp:6978
CZ_ES_GET_LIST(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:6980
virtual ~CZ_ES_GET_LIST()
Definition: HandledPackets.hpp:6983
void handle(ByteBuffer &&buf)
CZ_ES_GET_LIST.
Definition: HandledPackets.cpp:3270
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:3271
Main object for the aegis packet: CZ_EXEC_EXCHANGE_ITEM.
Definition: HandledPackets.hpp:7024
void handle(ByteBuffer &&buf)
CZ_EXEC_EXCHANGE_ITEM.
Definition: HandledPackets.cpp:588
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:594
virtual ~CZ_EXEC_EXCHANGE_ITEM()
Definition: HandledPackets.hpp:7029
CZ_EXEC_EXCHANGE_ITEM(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:7026
Main object for the aegis packet: CZ_EXIT_ROOM.
Definition: HandledPackets.hpp:7070
virtual ~CZ_EXIT_ROOM()
Definition: HandledPackets.hpp:7075
CZ_EXIT_ROOM(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:7072
void handle(ByteBuffer &&buf)
CZ_EXIT_ROOM.
Definition: HandledPackets.cpp:601
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:607
Main object for the aegis packet: CZ_GAMEGUARD_LINGO_READY.
Definition: HandledPackets.hpp:7102
virtual ~CZ_GAMEGUARD_LINGO_READY()
Definition: HandledPackets.hpp:7107
CZ_GAMEGUARD_LINGO_READY(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:7104
void handle(ByteBuffer &&buf)
CZ_GAMEGUARD_LINGO_READY.
Definition: HandledPackets.cpp:2252
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:2253
Main object for the aegis packet: CZ_GANGSI_RANK.
Definition: HandledPackets.hpp:7799
virtual ~CZ_GANGSI_RANK()
Definition: HandledPackets.hpp:7804
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:2202
void handle(ByteBuffer &&buf)
CZ_GANGSI_RANK.
Definition: HandledPackets.cpp:2201
CZ_GANGSI_RANK(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:7801
Main object for the aegis packet: CZ_GET_ACCOUNT_LIMTIED_SALE_LIST.
Definition: HandledPackets.hpp:7836
CZ_GET_ACCOUNT_LIMTIED_SALE_LIST(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:7838
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:3710
void handle(ByteBuffer &&buf)
CZ_GET_ACCOUNT_LIMTIED_SALE_LIST.
Definition: HandledPackets.cpp:3709
virtual ~CZ_GET_ACCOUNT_LIMTIED_SALE_LIST()
Definition: HandledPackets.hpp:7841
Main object for the aegis packet: CZ_GM_FULLSTRIP.
Definition: HandledPackets.hpp:7876
void handle(ByteBuffer &&buf)
CZ_GM_FULLSTRIP.
Definition: HandledPackets.cpp:3325
CZ_GM_FULLSTRIP(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:7878
virtual ~CZ_GM_FULLSTRIP()
Definition: HandledPackets.hpp:7881
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:3326
Main object for the aegis packet: CZ_GPK_AUTH.
Definition: HandledPackets.hpp:7916
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:3473
void handle(ByteBuffer &&buf)
CZ_GPK_AUTH.
Definition: HandledPackets.cpp:3472
virtual ~CZ_GPK_AUTH()
Definition: HandledPackets.hpp:7921
CZ_GPK_AUTH(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:7918
Main object for the aegis packet: CZ_GPK_DYNCODE_RELOAD.
Definition: HandledPackets.hpp:7956
virtual ~CZ_GPK_DYNCODE_RELOAD()
Definition: HandledPackets.hpp:7961
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:3478
void handle(ByteBuffer &&buf)
CZ_GPK_DYNCODE_RELOAD.
Definition: HandledPackets.cpp:3477
CZ_GPK_DYNCODE_RELOAD(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:7958
Main object for the aegis packet: CZ_GRADE_ENCHANT_CLOSE_UI.
Definition: HandledPackets.hpp:7993
virtual ~CZ_GRADE_ENCHANT_CLOSE_UI()
Definition: HandledPackets.hpp:7998
void handle(ByteBuffer &&buf)
CZ_GRADE_ENCHANT_CLOSE_UI.
Definition: HandledPackets.cpp:3714
CZ_GRADE_ENCHANT_CLOSE_UI(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:7995
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:3715
Main object for the aegis packet: CZ_GRADE_ENCHANT_REQUEST.
Definition: HandledPackets.hpp:8030
void handle(ByteBuffer &&buf)
CZ_GRADE_ENCHANT_REQUEST.
Definition: HandledPackets.cpp:3719
virtual ~CZ_GRADE_ENCHANT_REQUEST()
Definition: HandledPackets.hpp:8035
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:3720
CZ_GRADE_ENCHANT_REQUEST(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:8032
Main object for the aegis packet: CZ_GRADE_ENCHANT_SELECT_EQUIPMENT.
Definition: HandledPackets.hpp:8067
CZ_GRADE_ENCHANT_SELECT_EQUIPMENT(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:8069
virtual ~CZ_GRADE_ENCHANT_SELECT_EQUIPMENT()
Definition: HandledPackets.hpp:8072
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:3725
void handle(ByteBuffer &&buf)
CZ_GRADE_ENCHANT_SELECT_EQUIPMENT.
Definition: HandledPackets.cpp:3724
Main object for the aegis packet: CZ_GROUPINFO_CHANGE_V2.
Definition: HandledPackets.hpp:8110
int _item_share_rule
Definition: HandledPackets.hpp:8123
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:3300
CZ_GROUPINFO_CHANGE_V2(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:8112
void handle(ByteBuffer &&buf)
CZ_GROUPINFO_CHANGE_V2.
Definition: HandledPackets.cpp:3294
int _exp_share_rule
Definition: HandledPackets.hpp:8121
int _item_pickup_rule
Definition: HandledPackets.hpp:8122
virtual ~CZ_GROUPINFO_CHANGE_V2()
Definition: HandledPackets.hpp:8115
Main object for the aegis packet: CZ_GUILD_CHAT.
Definition: HandledPackets.hpp:8159
virtual ~CZ_GUILD_CHAT()
Definition: HandledPackets.hpp:8164
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:620
int16_t _packet_length
Definition: HandledPackets.hpp:8170
CZ_GUILD_CHAT(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:8161
char _message[MAX_CHAT_STR_LENGTH]
Definition: HandledPackets.hpp:8171
void handle(ByteBuffer &&buf)
CZ_GUILD_CHAT.
Definition: HandledPackets.cpp:614
Main object for the aegis packet: CZ_GUILD_NOTICE.
Definition: HandledPackets.hpp:8207
int _guild_id
Definition: HandledPackets.hpp:8218
char _notice[MAX_GUILD_NOTICE_STR_LENGTH]
Definition: HandledPackets.hpp:8220
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:635
CZ_GUILD_NOTICE(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:8209
void handle(ByteBuffer &&buf)
CZ_GUILD_NOTICE.
Definition: HandledPackets.cpp:629
virtual ~CZ_GUILD_NOTICE()
Definition: HandledPackets.hpp:8212
char _subject[MAX_GUILD_SUBJECT_STR_LENGTH]
Definition: HandledPackets.hpp:8219
Main object for the aegis packet: CZ_GUILD_ZENY.
Definition: HandledPackets.hpp:8256
virtual ~CZ_GUILD_ZENY()
Definition: HandledPackets.hpp:8261
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:646
void handle(ByteBuffer &&buf)
CZ_GUILD_ZENY.
Definition: HandledPackets.cpp:645
CZ_GUILD_ZENY(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:8258
Main object for the aegis packet: CZ_HACKSHIELD_CRC_MSG.
Definition: HandledPackets.hpp:8288
CZ_HACKSHIELD_CRC_MSG(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:8290
void handle(ByteBuffer &&buf)
CZ_HACKSHIELD_CRC_MSG.
Definition: HandledPackets.cpp:2262
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:2263
virtual ~CZ_HACKSHIELD_CRC_MSG()
Definition: HandledPackets.hpp:8293
Main object for the aegis packet: CZ_HACKSH_CPX_MSG.
Definition: HandledPackets.hpp:8334
CZ_HACKSH_CPX_MSG(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:8336
virtual ~CZ_HACKSH_CPX_MSG()
Definition: HandledPackets.hpp:8339
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:2268
void handle(ByteBuffer &&buf)
CZ_HACKSH_CPX_MSG.
Definition: HandledPackets.cpp:2267
Main object for the aegis packet: CZ_HUNTINGLIST.
Definition: HandledPackets.hpp:8380
void handle(ByteBuffer &&buf)
CZ_HUNTINGLIST.
Definition: HandledPackets.cpp:2191
virtual ~CZ_HUNTINGLIST()
Definition: HandledPackets.hpp:8385
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:2192
CZ_HUNTINGLIST(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:8382
Main object for the aegis packet: CZ_INPUT_EDITDLGSTR.
Definition: HandledPackets.hpp:8474
void handle(ByteBuffer &&buf)
CZ_INPUT_EDITDLGSTR.
Definition: HandledPackets.cpp:1726
char _value[MAX_INPUT_STR_LENGTH]
Definition: HandledPackets.hpp:8487
CZ_INPUT_EDITDLGSTR(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:8476
virtual ~CZ_INPUT_EDITDLGSTR()
Definition: HandledPackets.hpp:8479
int _npc_guid
Definition: HandledPackets.hpp:8486
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:1731
int16_t _packet_length
Definition: HandledPackets.hpp:8485
Main object for the aegis packet: CZ_INPUT_EDITDLG.
Definition: HandledPackets.hpp:8426
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:655
void handle(ByteBuffer &&buf)
CZ_INPUT_EDITDLG.
Definition: HandledPackets.cpp:650
virtual ~CZ_INPUT_EDITDLG()
Definition: HandledPackets.hpp:8431
CZ_INPUT_EDITDLG(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:8428
int _value
Definition: HandledPackets.hpp:8438
int _npc_guid
Definition: HandledPackets.hpp:8437
Main object for the aegis packet: CZ_INVENTORY_EXPAND_CONFIRMED.
Definition: HandledPackets.hpp:8557
virtual ~CZ_INVENTORY_EXPAND_CONFIRMED()
Definition: HandledPackets.hpp:8562
CZ_INVENTORY_EXPAND_CONFIRMED(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:8559
void handle(ByteBuffer &&buf)
CZ_INVENTORY_EXPAND_CONFIRMED.
Definition: HandledPackets.cpp:3085
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:3086
Main object for the aegis packet: CZ_INVENTORY_EXPAND_REJECTED.
Definition: HandledPackets.hpp:8597
CZ_INVENTORY_EXPAND_REJECTED(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:8599
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:3091
void handle(ByteBuffer &&buf)
CZ_INVENTORY_EXPAND_REJECTED.
Definition: HandledPackets.cpp:3090
virtual ~CZ_INVENTORY_EXPAND_REJECTED()
Definition: HandledPackets.hpp:8602
Main object for the aegis packet: CZ_INVENTORY_EXPAND.
Definition: HandledPackets.hpp:8517
virtual ~CZ_INVENTORY_EXPAND()
Definition: HandledPackets.hpp:8522
void handle(ByteBuffer &&buf)
CZ_INVENTORY_EXPAND.
Definition: HandledPackets.cpp:3080
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:3081
CZ_INVENTORY_EXPAND(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:8519
Main object for the aegis packet: CZ_INVENTORY_TAB.
Definition: HandledPackets.hpp:8637
void handle(ByteBuffer &&buf)
CZ_INVENTORY_TAB.
Definition: HandledPackets.cpp:3487
CZ_INVENTORY_TAB(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:8639
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:3488
virtual ~CZ_INVENTORY_TAB()
Definition: HandledPackets.hpp:8642
Main object for the aegis packet: CZ_IRMAIL_LIST.
Definition: HandledPackets.hpp:8683
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:2541
virtual ~CZ_IRMAIL_LIST()
Definition: HandledPackets.hpp:8688
CZ_IRMAIL_LIST(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:8685
void handle(ByteBuffer &&buf)
CZ_IRMAIL_LIST.
Definition: HandledPackets.cpp:2540
Main object for the aegis packet: CZ_IRMAIL_SEND.
Definition: HandledPackets.hpp:8729
void handle(ByteBuffer &&buf)
CZ_IRMAIL_SEND.
Definition: HandledPackets.cpp:2436
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:2437
CZ_IRMAIL_SEND(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:8731
virtual ~CZ_IRMAIL_SEND()
Definition: HandledPackets.hpp:8734
Main object for the aegis packet: CZ_ITEMLISTWIN_RES.
Definition: HandledPackets.hpp:9425
CZ_ITEMLISTWIN_RES(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:9427
virtual ~CZ_ITEMLISTWIN_RES()
Definition: HandledPackets.hpp:9430
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:2625
void handle(ByteBuffer &&buf)
CZ_ITEMLISTWIN_RES.
Definition: HandledPackets.cpp:2624
Main object for the aegis packet: CZ_ITEM_CREATE_EX.
Definition: HandledPackets.hpp:9512
void handle(ByteBuffer &&buf)
CZ_ITEM_CREATE_EX.
Definition: HandledPackets.cpp:2859
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:2864
CZ_ITEM_CREATE_EX(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:9514
virtual ~CZ_ITEM_CREATE_EX()
Definition: HandledPackets.hpp:9517
char _create[MAX_ITEM_CREATE_CMD_INPUT_LENGTH]
Definition: HandledPackets.hpp:9523
Main object for the aegis packet: CZ_ITEM_CREATE.
Definition: HandledPackets.hpp:9471
char _create[MAX_ITEM_CREATE_CMD_INPUT_LENGTH]
Definition: HandledPackets.hpp:9482
CZ_ITEM_CREATE(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:9473
void handle(ByteBuffer &&buf)
CZ_ITEM_CREATE.
Definition: HandledPackets.cpp:664
virtual ~CZ_ITEM_CREATE()
Definition: HandledPackets.hpp:9476
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:669
Main object for the aegis packet: CZ_ITEM_PICKUP2.
Definition: HandledPackets.hpp:10337
virtual ~CZ_ITEM_PICKUP2()
Definition: HandledPackets.hpp:10342
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:2446
void handle(ByteBuffer &&buf)
CZ_ITEM_PICKUP2.
Definition: HandledPackets.cpp:2441
int _guid
Definition: HandledPackets.hpp:10348
CZ_ITEM_PICKUP2(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:10339
Main object for the aegis packet: CZ_ITEM_PICKUP_NEW_JAPEN.
Definition: HandledPackets.hpp:10384
void handle(ByteBuffer &&buf)
CZ_ITEM_PICKUP_NEW_JAPEN.
Definition: HandledPackets.cpp:2402
CZ_ITEM_PICKUP_NEW_JAPEN(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:10386
virtual ~CZ_ITEM_PICKUP_NEW_JAPEN()
Definition: HandledPackets.hpp:10389
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:2403
Main object for the aegis packet: CZ_ITEM_PICKUP.
Definition: HandledPackets.hpp:9805
int _guid
Definition: HandledPackets.hpp:9816
CZ_ITEM_PICKUP(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:9807
virtual ~CZ_ITEM_PICKUP()
Definition: HandledPackets.hpp:9810
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:74
void handle(ByteBuffer &&buf)
CZ_ITEM_PICKUP.
Definition: HandledPackets.cpp:69
Main object for the aegis packet: CZ_ITEM_REFORM.
Definition: HandledPackets.hpp:10420
virtual ~CZ_ITEM_REFORM()
Definition: HandledPackets.hpp:10425
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:3825
CZ_ITEM_REFORM(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:10422
void handle(ByteBuffer &&buf)
CZ_ITEM_REFORM.
Definition: HandledPackets.cpp:3824
Main object for the aegis packet: CZ_ITEM_THROW2.
Definition: HandledPackets.hpp:11223
virtual ~CZ_ITEM_THROW2()
Definition: HandledPackets.hpp:11228
int16_t _inventory_index
Definition: HandledPackets.hpp:11234
void handle(ByteBuffer &&buf)
CZ_ITEM_THROW2.
Definition: HandledPackets.cpp:2454
int16_t _amount
Definition: HandledPackets.hpp:11235
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:2459
CZ_ITEM_THROW2(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:11225
Main object for the aegis packet: CZ_ITEM_THROW.
Definition: HandledPackets.hpp:10714
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:87
void handle(ByteBuffer &&buf)
CZ_ITEM_THROW.
Definition: HandledPackets.cpp:82
CZ_ITEM_THROW(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:10716
virtual ~CZ_ITEM_THROW()
Definition: HandledPackets.hpp:10719
int16_t _amount
Definition: HandledPackets.hpp:10726
int16_t _inventory_index
Definition: HandledPackets.hpp:10725
Main object for the aegis packet: CZ_JOIN_BABY.
Definition: HandledPackets.hpp:11271
int _character_id
Definition: HandledPackets.hpp:11283
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:682
CZ_JOIN_BABY(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:11273
int _response
Definition: HandledPackets.hpp:11284
virtual ~CZ_JOIN_BABY()
Definition: HandledPackets.hpp:11276
int _account_id
Definition: HandledPackets.hpp:11282
void handle(ByteBuffer &&buf)
CZ_JOIN_BABY.
Definition: HandledPackets.cpp:677
Main object for the aegis packet: CZ_JOIN_BATTLE_FIELD.
Definition: HandledPackets.hpp:11982
CZ_JOIN_BATTLE_FIELD(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:11984
virtual ~CZ_JOIN_BATTLE_FIELD()
Definition: HandledPackets.hpp:11987
void handle(ByteBuffer &&buf)
CZ_JOIN_BATTLE_FIELD.
Definition: HandledPackets.cpp:2676
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:2677
Main object for the aegis packet: CZ_JOIN_COUPLE.
Definition: HandledPackets.hpp:12028
virtual ~CZ_JOIN_COUPLE()
Definition: HandledPackets.hpp:12033
void handle(ByteBuffer &&buf)
CZ_JOIN_COUPLE.
Definition: HandledPackets.cpp:692
CZ_JOIN_COUPLE(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:12030
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:693
Main object for the aegis packet: CZ_JOIN_GROUP.
Definition: HandledPackets.hpp:12074
int _response
Definition: HandledPackets.hpp:12086
void handle(ByteBuffer &&buf)
CZ_JOIN_GROUP.
Definition: HandledPackets.cpp:697
CZ_JOIN_GROUP(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:12076
int _party_id
Definition: HandledPackets.hpp:12085
virtual ~CZ_JOIN_GROUP()
Definition: HandledPackets.hpp:12079
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:703
Main object for the aegis packet: CZ_JOIN_GUILD.
Definition: HandledPackets.hpp:12122
virtual ~CZ_JOIN_GUILD()
Definition: HandledPackets.hpp:12127
CZ_JOIN_GUILD(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:12124
int _response
Definition: HandledPackets.hpp:12134
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:718
void handle(ByteBuffer &&buf)
CZ_JOIN_GUILD.
Definition: HandledPackets.cpp:712
int _guild_id
Definition: HandledPackets.hpp:12133
Main object for the aegis packet: CZ_KILLER_RANK.
Definition: HandledPackets.hpp:12170
CZ_KILLER_RANK(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:12172
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:2029
void handle(ByteBuffer &&buf)
CZ_KILLER_RANK.
Definition: HandledPackets.cpp:2028
virtual ~CZ_KILLER_RANK()
Definition: HandledPackets.hpp:12175
Main object for the aegis packet: CZ_KSY_EVENT.
Definition: HandledPackets.hpp:12216
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:2258
virtual ~CZ_KSY_EVENT()
Definition: HandledPackets.hpp:12221
CZ_KSY_EVENT(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:12218
void handle(ByteBuffer &&buf)
CZ_KSY_EVENT.
Definition: HandledPackets.cpp:2257
Main object for the aegis packet: CZ_LESSEFFECT Notification of the state of client command /effect.
Definition: HandledPackets.hpp:12262
int _setting
Definition: HandledPackets.hpp:12273
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:1827
virtual ~CZ_LESSEFFECT()
Definition: HandledPackets.hpp:12267
void handle(ByteBuffer &&buf)
CZ_LESSEFFECT.
Definition: HandledPackets.cpp:1822
CZ_LESSEFFECT(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:12264
Main object for the aegis packet: CZ_LOCALBROADCAST.
Definition: HandledPackets.hpp:12309
virtual ~CZ_LOCALBROADCAST()
Definition: HandledPackets.hpp:12314
char _message[MAX_CHAT_STR_LENGTH]
Definition: HandledPackets.hpp:12321
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:1746
CZ_LOCALBROADCAST(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:12311
void handle(ByteBuffer &&buf)
CZ_LOCALBROADCAST.
Definition: HandledPackets.cpp:1741
int16_t _packet_length
Definition: HandledPackets.hpp:12320
Main object for the aegis packet: CZ_MACRO_ITEM_PICKUP.
Definition: HandledPackets.hpp:12351
virtual ~CZ_MACRO_ITEM_PICKUP()
Definition: HandledPackets.hpp:12356
CZ_MACRO_ITEM_PICKUP(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:12353
void handle(ByteBuffer &&buf)
CZ_MACRO_ITEM_PICKUP.
Definition: HandledPackets.cpp:3447
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:3448
Main object for the aegis packet: CZ_MACRO_REQUEST_ACT.
Definition: HandledPackets.hpp:12391
CZ_MACRO_REQUEST_ACT(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:12393
virtual ~CZ_MACRO_REQUEST_ACT()
Definition: HandledPackets.hpp:12396
void handle(ByteBuffer &&buf)
CZ_MACRO_REQUEST_ACT.
Definition: HandledPackets.cpp:3452
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:3453
Main object for the aegis packet: CZ_MACRO_REQUEST_MOVE.
Definition: HandledPackets.hpp:12431
virtual ~CZ_MACRO_REQUEST_MOVE()
Definition: HandledPackets.hpp:12436
CZ_MACRO_REQUEST_MOVE(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:12433
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:3458
void handle(ByteBuffer &&buf)
CZ_MACRO_REQUEST_MOVE.
Definition: HandledPackets.cpp:3457
Main object for the aegis packet: CZ_MACRO_START.
Definition: HandledPackets.hpp:12471
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:3538
virtual ~CZ_MACRO_START()
Definition: HandledPackets.hpp:12476
CZ_MACRO_START(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:12473
void handle(ByteBuffer &&buf)
CZ_MACRO_START.
Definition: HandledPackets.cpp:3537
Main object for the aegis packet: CZ_MACRO_STOP.
Definition: HandledPackets.hpp:12511
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:3543
CZ_MACRO_STOP(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:12513
virtual ~CZ_MACRO_STOP()
Definition: HandledPackets.hpp:12516
void handle(ByteBuffer &&buf)
CZ_MACRO_STOP.
Definition: HandledPackets.cpp:3542
Main object for the aegis packet: CZ_MACRO_USE_SKILL_TOGROUND.
Definition: HandledPackets.hpp:12591
CZ_MACRO_USE_SKILL_TOGROUND(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:12593
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:3468
void handle(ByteBuffer &&buf)
CZ_MACRO_USE_SKILL_TOGROUND.
Definition: HandledPackets.cpp:3467
virtual ~CZ_MACRO_USE_SKILL_TOGROUND()
Definition: HandledPackets.hpp:12596
Main object for the aegis packet: CZ_MACRO_USE_SKILL.
Definition: HandledPackets.hpp:12551
CZ_MACRO_USE_SKILL(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:12553
void handle(ByteBuffer &&buf)
CZ_MACRO_USE_SKILL.
Definition: HandledPackets.cpp:3462
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:3463
virtual ~CZ_MACRO_USE_SKILL()
Definition: HandledPackets.hpp:12556
Main object for the aegis packet: CZ_MAIL_ADD_ITEM.
Definition: HandledPackets.hpp:12637
int _amount
Definition: HandledPackets.hpp:12649
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:1895
virtual ~CZ_MAIL_ADD_ITEM()
Definition: HandledPackets.hpp:12642
int16_t _inventory_index
Definition: HandledPackets.hpp:12648
CZ_MAIL_ADD_ITEM(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:12639
void handle(ByteBuffer &&buf)
CZ_MAIL_ADD_ITEM.
Definition: HandledPackets.cpp:1890
Main object for the aegis packet: CZ_MAIL_DELETE.
Definition: HandledPackets.hpp:12685
virtual ~CZ_MAIL_DELETE()
Definition: HandledPackets.hpp:12690
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:1909
CZ_MAIL_DELETE(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:12687
void handle(ByteBuffer &&buf)
CZ_MAIL_DELETE.
Definition: HandledPackets.cpp:1904
int _mail_id
Definition: HandledPackets.hpp:12696
Main object for the aegis packet: CZ_MAIL_GET_ITEM.
Definition: HandledPackets.hpp:12732
void handle(ByteBuffer &&buf)
CZ_MAIL_GET_ITEM.
Definition: HandledPackets.cpp:1917
int _mail_id
Definition: HandledPackets.hpp:12743
CZ_MAIL_GET_ITEM(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:12734
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:1922
virtual ~CZ_MAIL_GET_ITEM()
Definition: HandledPackets.hpp:12737
Main object for the aegis packet: CZ_MAIL_GET_LIST.
Definition: HandledPackets.hpp:12779
CZ_MAIL_GET_LIST(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:12781
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:1931
virtual ~CZ_MAIL_GET_LIST()
Definition: HandledPackets.hpp:12784
void handle(ByteBuffer &&buf)
CZ_MAIL_GET_LIST.
Definition: HandledPackets.cpp:1930
Main object for the aegis packet: CZ_MAIL_OPEN.
Definition: HandledPackets.hpp:12825
virtual ~CZ_MAIL_OPEN()
Definition: HandledPackets.hpp:12830
CZ_MAIL_OPEN(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:12827
int _mail_id
Definition: HandledPackets.hpp:12836
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:1940
void handle(ByteBuffer &&buf)
CZ_MAIL_OPEN.
Definition: HandledPackets.cpp:1935
Main object for the aegis packet: CZ_MAIL_RESET_ITEM.
Definition: HandledPackets.hpp:12872
int16_t _type
Definition: HandledPackets.hpp:12883
virtual ~CZ_MAIL_RESET_ITEM()
Definition: HandledPackets.hpp:12877
void handle(ByteBuffer &&buf)
CZ_MAIL_RESET_ITEM.
Definition: HandledPackets.cpp:1948
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:1953
CZ_MAIL_RESET_ITEM(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:12874
Main object for the aegis packet: CZ_MAIL_SEND.
Definition: HandledPackets.hpp:12919
virtual ~CZ_MAIL_SEND()
Definition: HandledPackets.hpp:12924
char _body[MAX_MAIL_BODY_LENGTH]
Definition: HandledPackets.hpp:12934
CZ_MAIL_SEND(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:12921
char _recipient[MAX_UNIT_NAME_LENGTH]
Definition: HandledPackets.hpp:12931
int16_t _packet_length
Definition: HandledPackets.hpp:12930
void handle(ByteBuffer &&buf)
CZ_MAIL_SEND.
Definition: HandledPackets.cpp:2076
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:2081
char _title[MAX_MAIL_TITLE_LENGTH]
Definition: HandledPackets.hpp:12932
int8_t _body_length
Definition: HandledPackets.hpp:12933
Main object for the aegis packet: CZ_MAKE_GROUP2.
Definition: HandledPackets.hpp:13017
void handle(ByteBuffer &&buf)
CZ_MAKE_GROUP2.
Definition: HandledPackets.cpp:741
char _party_name[MAX_PARTY_NAME_LENGTH]
Definition: HandledPackets.hpp:13028
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:747
CZ_MAKE_GROUP2(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:13019
int8_t _item_share_rule
Definition: HandledPackets.hpp:13030
int8_t _item_pickup_rule
Definition: HandledPackets.hpp:13029
virtual ~CZ_MAKE_GROUP2()
Definition: HandledPackets.hpp:13022
Main object for the aegis packet: CZ_MAKE_GROUP.
Definition: HandledPackets.hpp:12970
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:733
virtual ~CZ_MAKE_GROUP()
Definition: HandledPackets.hpp:12975
CZ_MAKE_GROUP(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:12972
char _party_name[MAX_PARTY_NAME_LENGTH]
Definition: HandledPackets.hpp:12981
void handle(ByteBuffer &&buf)
CZ_MAKE_GROUP.
Definition: HandledPackets.cpp:727
Main object for the aegis packet: CZ_MEMORIALDUNGEON_COMMAND.
Definition: HandledPackets.hpp:13066
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:2348
CZ_MEMORIALDUNGEON_COMMAND(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:13068
int _command
Definition: HandledPackets.hpp:13077
virtual ~CZ_MEMORIALDUNGEON_COMMAND()
Definition: HandledPackets.hpp:13071
void handle(ByteBuffer &&buf)
CZ_MEMORIALDUNGEON_COMMAND.
Definition: HandledPackets.cpp:2343
Main object for the aegis packet: CZ_MER_COMMAND.
Definition: HandledPackets.hpp:13113
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:2212
CZ_MER_COMMAND(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:13115
virtual ~CZ_MER_COMMAND()
Definition: HandledPackets.hpp:13118
void handle(ByteBuffer &&buf)
CZ_MER_COMMAND.
Definition: HandledPackets.cpp:2211
Main object for the aegis packet: CZ_MONSTER_TALK.
Definition: HandledPackets.hpp:13159
CZ_MONSTER_TALK(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:13161
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:758
virtual ~CZ_MONSTER_TALK()
Definition: HandledPackets.hpp:13164
void handle(ByteBuffer &&buf)
CZ_MONSTER_TALK.
Definition: HandledPackets.cpp:757
Main object for the aegis packet: CZ_MOVETO_MAP.
Definition: HandledPackets.hpp:13205
void handle(ByteBuffer &&buf)
CZ_MOVETO_MAP.
Definition: HandledPackets.cpp:762
int16_t _x
Definition: HandledPackets.hpp:13217
char _map_name[MAP_NAME_LENGTH_EXT]
Definition: HandledPackets.hpp:13216
CZ_MOVETO_MAP(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:13207
int16_t _y
Definition: HandledPackets.hpp:13218
virtual ~CZ_MOVETO_MAP()
Definition: HandledPackets.hpp:13210
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:767
Main object for the aegis packet: CZ_MOVE_ITEM_FROM_BODY_TO_CART.
Definition: HandledPackets.hpp:13254
virtual ~CZ_MOVE_ITEM_FROM_BODY_TO_CART()
Definition: HandledPackets.hpp:13259
void handle(ByteBuffer &&buf)
CZ_MOVE_ITEM_FROM_BODY_TO_CART.
Definition: HandledPackets.cpp:776
int16_t _inventory_index
Definition: HandledPackets.hpp:13265
CZ_MOVE_ITEM_FROM_BODY_TO_CART(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:13256
int _amount
Definition: HandledPackets.hpp:13266
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:782
Main object for the aegis packet: CZ_MOVE_ITEM_FROM_BODY_TO_GUILDSTORAGE.
Definition: HandledPackets.hpp:13296
void handle(ByteBuffer &&buf)
CZ_MOVE_ITEM_FROM_BODY_TO_GUILDSTORAGE.
Definition: HandledPackets.cpp:2907
CZ_MOVE_ITEM_FROM_BODY_TO_GUILDSTORAGE(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:13298
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:2908
virtual ~CZ_MOVE_ITEM_FROM_BODY_TO_GUILDSTORAGE()
Definition: HandledPackets.hpp:13301
Main object for the aegis packet: CZ_MOVE_ITEM_FROM_BODY_TO_STORE2.
Definition: HandledPackets.hpp:14117
void handle(ByteBuffer &&buf)
CZ_MOVE_ITEM_FROM_BODY_TO_STORE2.
Definition: HandledPackets.cpp:2468
int _amount
Definition: HandledPackets.hpp:14129
int16_t _inventory_index
Definition: HandledPackets.hpp:14128
CZ_MOVE_ITEM_FROM_BODY_TO_STORE2(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:14119
virtual ~CZ_MOVE_ITEM_FROM_BODY_TO_STORE2()
Definition: HandledPackets.hpp:14122
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:2474
Main object for the aegis packet: CZ_MOVE_ITEM_FROM_BODY_TO_STORE.
Definition: HandledPackets.hpp:13583
int16_t _inventory_index
Definition: HandledPackets.hpp:13594
virtual ~CZ_MOVE_ITEM_FROM_BODY_TO_STORE()
Definition: HandledPackets.hpp:13588
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:2687
int _amount
Definition: HandledPackets.hpp:13595
void handle(ByteBuffer &&buf)
CZ_MOVE_ITEM_FROM_BODY_TO_STORE.
Definition: HandledPackets.cpp:2681
CZ_MOVE_ITEM_FROM_BODY_TO_STORE(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:13585
Main object for the aegis packet: CZ_MOVE_ITEM_FROM_CART_TO_BODY.
Definition: HandledPackets.hpp:14165
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:797
int16_t _inventory_index
Definition: HandledPackets.hpp:14176
virtual ~CZ_MOVE_ITEM_FROM_CART_TO_BODY()
Definition: HandledPackets.hpp:14170
void handle(ByteBuffer &&buf)
CZ_MOVE_ITEM_FROM_CART_TO_BODY.
Definition: HandledPackets.cpp:791
int _amount
Definition: HandledPackets.hpp:14177
CZ_MOVE_ITEM_FROM_CART_TO_BODY(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:14167
Main object for the aegis packet: CZ_MOVE_ITEM_FROM_CART_TO_GUILDSTORAGE.
Definition: HandledPackets.hpp:14207
virtual ~CZ_MOVE_ITEM_FROM_CART_TO_GUILDSTORAGE()
Definition: HandledPackets.hpp:14212
void handle(ByteBuffer &&buf)
CZ_MOVE_ITEM_FROM_CART_TO_GUILDSTORAGE.
Definition: HandledPackets.cpp:2912
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:2913
CZ_MOVE_ITEM_FROM_CART_TO_GUILDSTORAGE(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:14209
int _amount
Definition: HandledPackets.hpp:14219
int16_t _inventory_index
Definition: HandledPackets.hpp:14218
Main object for the aegis packet: CZ_MOVE_ITEM_FROM_CART_TO_STORE.
Definition: HandledPackets.hpp:14255
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:812
void handle(ByteBuffer &&buf)
CZ_MOVE_ITEM_FROM_CART_TO_STORE.
Definition: HandledPackets.cpp:806
int16_t _inventory_index
Definition: HandledPackets.hpp:14266
int _amount
Definition: HandledPackets.hpp:14267
virtual ~CZ_MOVE_ITEM_FROM_CART_TO_STORE()
Definition: HandledPackets.hpp:14260
CZ_MOVE_ITEM_FROM_CART_TO_STORE(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:14257
Main object for the aegis packet: CZ_MOVE_ITEM_FROM_GUILDSTORAGE_TO_BODY.
Definition: HandledPackets.hpp:14297
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:2918
CZ_MOVE_ITEM_FROM_GUILDSTORAGE_TO_BODY(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:14299
int _amount
Definition: HandledPackets.hpp:14309
void handle(ByteBuffer &&buf)
CZ_MOVE_ITEM_FROM_GUILDSTORAGE_TO_BODY.
Definition: HandledPackets.cpp:2917
int16_t _inventory_index
Definition: HandledPackets.hpp:14308
virtual ~CZ_MOVE_ITEM_FROM_GUILDSTORAGE_TO_BODY()
Definition: HandledPackets.hpp:14302
Main object for the aegis packet: CZ_MOVE_ITEM_FROM_GUILDSTORAGE_TO_CART.
Definition: HandledPackets.hpp:14339
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:2923
int16_t _inventory_index
Definition: HandledPackets.hpp:14350
CZ_MOVE_ITEM_FROM_GUILDSTORAGE_TO_CART(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:14341
virtual ~CZ_MOVE_ITEM_FROM_GUILDSTORAGE_TO_CART()
Definition: HandledPackets.hpp:14344
int _amount
Definition: HandledPackets.hpp:14351
void handle(ByteBuffer &&buf)
CZ_MOVE_ITEM_FROM_GUILDSTORAGE_TO_CART.
Definition: HandledPackets.cpp:2922
Main object for the aegis packet: CZ_MOVE_ITEM_FROM_STORE_TO_BODY2.
Definition: HandledPackets.hpp:15148
void handle(ByteBuffer &&buf)
CZ_MOVE_ITEM_FROM_STORE_TO_BODY2.
Definition: HandledPackets.cpp:2483
int _amount
Definition: HandledPackets.hpp:15160
virtual ~CZ_MOVE_ITEM_FROM_STORE_TO_BODY2()
Definition: HandledPackets.hpp:15153
int16_t _inventory_index
Definition: HandledPackets.hpp:15159
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:2489
CZ_MOVE_ITEM_FROM_STORE_TO_BODY2(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:15150
Main object for the aegis packet: CZ_MOVE_ITEM_FROM_STORE_TO_BODY.
Definition: HandledPackets.hpp:14639
void handle(ByteBuffer &&buf)
CZ_MOVE_ITEM_FROM_STORE_TO_BODY.
Definition: HandledPackets.cpp:96
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:102
int16_t _inventory_index
Definition: HandledPackets.hpp:14650
virtual ~CZ_MOVE_ITEM_FROM_STORE_TO_BODY()
Definition: HandledPackets.hpp:14644
CZ_MOVE_ITEM_FROM_STORE_TO_BODY(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:14641
int _amount
Definition: HandledPackets.hpp:14651
Main object for the aegis packet: CZ_MOVE_ITEM_FROM_STORE_TO_CART.
Definition: HandledPackets.hpp:15196
int _amount
Definition: HandledPackets.hpp:15208
int16_t _inventory_index
Definition: HandledPackets.hpp:15207
void handle(ByteBuffer &&buf)
CZ_MOVE_ITEM_FROM_STORE_TO_CART.
Definition: HandledPackets.cpp:821
virtual ~CZ_MOVE_ITEM_FROM_STORE_TO_CART()
Definition: HandledPackets.hpp:15201
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:827
CZ_MOVE_ITEM_FROM_STORE_TO_CART(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:15198
Main object for the aegis packet: CZ_NOTIFY_ACTORINIT.
Definition: HandledPackets.hpp:15244
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:842
CZ_NOTIFY_ACTORINIT(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:15246
void handle(ByteBuffer &&buf)
CZ_NOTIFY_ACTORINIT.
Definition: HandledPackets.cpp:836
virtual ~CZ_NOTIFY_ACTORINIT()
Definition: HandledPackets.hpp:15249
Main object for the aegis packet: CZ_NPC_BARTER_CLOSE.
Definition: HandledPackets.hpp:15284
CZ_NPC_BARTER_CLOSE(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:15286
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:3076
void handle(ByteBuffer &&buf)
CZ_NPC_BARTER_CLOSE.
Definition: HandledPackets.cpp:3075
virtual ~CZ_NPC_BARTER_CLOSE()
Definition: HandledPackets.hpp:15289
Main object for the aegis packet: CZ_NPC_BARTER_PURCHASE.
Definition: HandledPackets.hpp:15324
CZ_NPC_BARTER_PURCHASE(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:15326
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:3061
void handle(ByteBuffer &&buf)
CZ_NPC_BARTER_PURCHASE.
Definition: HandledPackets.cpp:3060
virtual ~CZ_NPC_BARTER_PURCHASE()
Definition: HandledPackets.hpp:15329
Main object for the aegis packet: CZ_NPC_EXPANDED_BARTER_MARKET_CLOSE.
Definition: HandledPackets.hpp:15361
CZ_NPC_EXPANDED_BARTER_MARKET_CLOSE(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:15363
virtual ~CZ_NPC_EXPANDED_BARTER_MARKET_CLOSE()
Definition: HandledPackets.hpp:15366
void handle(ByteBuffer &&buf)
CZ_NPC_EXPANDED_BARTER_MARKET_CLOSE.
Definition: HandledPackets.cpp:3729
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:3730
Main object for the aegis packet: CZ_NPC_EXPANDED_BARTER_MARKET_PURCHASE.
Definition: HandledPackets.hpp:15398
CZ_NPC_EXPANDED_BARTER_MARKET_PURCHASE(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:15400
virtual ~CZ_NPC_EXPANDED_BARTER_MARKET_PURCHASE()
Definition: HandledPackets.hpp:15403
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:3735
void handle(ByteBuffer &&buf)
CZ_NPC_EXPANDED_BARTER_MARKET_PURCHASE.
Definition: HandledPackets.cpp:3734
Main object for the aegis packet: CZ_NPC_MARKET_CLOSE.
Definition: HandledPackets.hpp:15438
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:2888
void handle(ByteBuffer &&buf)
CZ_NPC_MARKET_CLOSE.
Definition: HandledPackets.cpp:2887
virtual ~CZ_NPC_MARKET_CLOSE()
Definition: HandledPackets.hpp:15443
CZ_NPC_MARKET_CLOSE(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:15440
Main object for the aegis packet: CZ_NPC_MARKET_PURCHASE.
Definition: HandledPackets.hpp:15478
void handle(ByteBuffer &&buf)
CZ_NPC_MARKET_PURCHASE.
Definition: HandledPackets.cpp:2892
CZ_NPC_MARKET_PURCHASE(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:15480
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:2893
virtual ~CZ_NPC_MARKET_PURCHASE()
Definition: HandledPackets.hpp:15483
Main object for the aegis packet: CZ_NPC_TRADE_QUIT.
Definition: HandledPackets.hpp:15518
void handle(ByteBuffer &&buf)
CZ_NPC_TRADE_QUIT.
Definition: HandledPackets.cpp:2897
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:2898
CZ_NPC_TRADE_QUIT(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:15520
virtual ~CZ_NPC_TRADE_QUIT()
Definition: HandledPackets.hpp:15523
Main object for the aegis packet: CZ_NPROTECTGAMEGUARDCSAUTH.
Definition: HandledPackets.hpp:15558
virtual ~CZ_NPROTECTGAMEGUARDCSAUTH()
Definition: HandledPackets.hpp:15563
void handle(ByteBuffer &&buf)
CZ_NPROTECTGAMEGUARDCSAUTH.
Definition: HandledPackets.cpp:2872
CZ_NPROTECTGAMEGUARDCSAUTH(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:15560
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:2873
Main object for the aegis packet: CZ_OFFLINE_STORE_CREATE.
Definition: HandledPackets.hpp:15598
void handle(ByteBuffer &&buf)
CZ_OFFLINE_STORE_CREATE.
Definition: HandledPackets.cpp:3142
CZ_OFFLINE_STORE_CREATE(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:15600
virtual ~CZ_OFFLINE_STORE_CREATE()
Definition: HandledPackets.hpp:15603
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:3143
Main object for the aegis packet: CZ_OPEN_BARGAIN_SALE_TOOL.
Definition: HandledPackets.hpp:15638
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:2835
virtual ~CZ_OPEN_BARGAIN_SALE_TOOL()
Definition: HandledPackets.hpp:15643
void handle(ByteBuffer &&buf)
CZ_OPEN_BARGAIN_SALE_TOOL.
Definition: HandledPackets.cpp:2834
CZ_OPEN_BARGAIN_SALE_TOOL(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:15640
Main object for the aegis packet: CZ_OPEN_RODEXBOX.
Definition: HandledPackets.hpp:15687
void handle(ByteBuffer &&buf)
CZ_OPEN_RODEXBOX.
Definition: HandledPackets.cpp:2932
CZ_OPEN_RODEXBOX(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:15689
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:2933
virtual ~CZ_OPEN_RODEXBOX()
Definition: HandledPackets.hpp:15692
Main object for the aegis packet: CZ_OPEN_SIMPLE_CASHSHOP_ITEMLIST.
Definition: HandledPackets.hpp:15733
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:2593
virtual ~CZ_OPEN_SIMPLE_CASHSHOP_ITEMLIST()
Definition: HandledPackets.hpp:15738
CZ_OPEN_SIMPLE_CASHSHOP_ITEMLIST(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:15735
void handle(ByteBuffer &&buf)
CZ_OPEN_SIMPLE_CASHSHOP_ITEMLIST.
Definition: HandledPackets.cpp:2592
Main object for the aegis packet: CZ_PARTY_BOOKING_REQ_DELETE.
Definition: HandledPackets.hpp:15773
void handle(ByteBuffer &&buf)
CZ_PARTY_BOOKING_REQ_DELETE.
Definition: HandledPackets.cpp:3356
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:3357
CZ_PARTY_BOOKING_REQ_DELETE(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:15775
virtual ~CZ_PARTY_BOOKING_REQ_DELETE()
Definition: HandledPackets.hpp:15778
Main object for the aegis packet: CZ_PARTY_BOOKING_REQ_REGISTER.
Definition: HandledPackets.hpp:16502
void handle(ByteBuffer &&buf)
CZ_PARTY_BOOKING_REQ_REGISTER.
Definition: HandledPackets.cpp:2629
int16_t _jobs[MAX_PARTY_BOOKING_JOBS]
Definition: HandledPackets.hpp:16515
int16_t _level
Definition: HandledPackets.hpp:16513
virtual ~CZ_PARTY_BOOKING_REQ_REGISTER()
Definition: HandledPackets.hpp:16507
int16_t _map_id
Definition: HandledPackets.hpp:16514
CZ_PARTY_BOOKING_REQ_REGISTER(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:16504
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:2637
Main object for the aegis packet: CZ_PARTY_BOOKING_REQ_SEARCH.
Definition: HandledPackets.hpp:16545
int _last_index
Definition: HandledPackets.hpp:16559
void handle(ByteBuffer &&buf)
CZ_PARTY_BOOKING_REQ_SEARCH.
Definition: HandledPackets.cpp:3361
CZ_PARTY_BOOKING_REQ_SEARCH(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:16547
int16_t _job
Definition: HandledPackets.hpp:16558
virtual ~CZ_PARTY_BOOKING_REQ_SEARCH()
Definition: HandledPackets.hpp:16550
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:3367
int16_t _map_id
Definition: HandledPackets.hpp:16557
int16_t _result_count
Definition: HandledPackets.hpp:16560
int16_t _level
Definition: HandledPackets.hpp:16556
Main object for the aegis packet: CZ_PARTY_BOOKING_REQ_UPDATE.
Definition: HandledPackets.hpp:16590
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:3387
int16_t _jobs[MAX_PARTY_BOOKING_JOBS]
Definition: HandledPackets.hpp:16601
CZ_PARTY_BOOKING_REQ_UPDATE(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:16592
virtual ~CZ_PARTY_BOOKING_REQ_UPDATE()
Definition: HandledPackets.hpp:16595
void handle(ByteBuffer &&buf)
CZ_PARTY_BOOKING_REQ_UPDATE.
Definition: HandledPackets.cpp:3379
Main object for the aegis packet: CZ_PARTY_CONFIG.
Definition: HandledPackets.hpp:16637
void handle(ByteBuffer &&buf)
CZ_PARTY_CONFIG.
Definition: HandledPackets.cpp:2282
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:2287
virtual ~CZ_PARTY_CONFIG()
Definition: HandledPackets.hpp:16642
int8_t _refuse_invite
Definition: HandledPackets.hpp:16648
CZ_PARTY_CONFIG(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:16639
Main object for the aegis packet: CZ_PARTY_JOIN_REQ_ACK.
Definition: HandledPackets.hpp:17170
CZ_PARTY_JOIN_REQ_ACK(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:17172
void handle(ByteBuffer &&buf)
CZ_PARTY_JOIN_REQ_ACK.
Definition: HandledPackets.cpp:2309
int8_t _response
Definition: HandledPackets.hpp:17182
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:2315
int _party_id
Definition: HandledPackets.hpp:17181
virtual ~CZ_PARTY_JOIN_REQ_ACK()
Definition: HandledPackets.hpp:17175
Main object for the aegis packet: CZ_PARTY_JOIN_REQ.
Definition: HandledPackets.hpp:17123
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:2301
void handle(ByteBuffer &&buf)
CZ_PARTY_JOIN_REQ.
Definition: HandledPackets.cpp:2295
virtual ~CZ_PARTY_JOIN_REQ()
Definition: HandledPackets.hpp:17128
char _name[MAX_UNIT_NAME_LENGTH]
Definition: HandledPackets.hpp:17134
CZ_PARTY_JOIN_REQ(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:17125
Main object for the aegis packet: CZ_PARTY_RECRUIT_ACK_RECALL.
Definition: HandledPackets.hpp:17201
CZ_PARTY_RECRUIT_ACK_RECALL(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:17203
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:3553
void handle(ByteBuffer &&buf)
CZ_PARTY_RECRUIT_ACK_RECALL.
Definition: HandledPackets.cpp:3552
virtual ~CZ_PARTY_RECRUIT_ACK_RECALL()
Definition: HandledPackets.hpp:17206
Main object for the aegis packet: CZ_PARTY_RECRUIT_ADD_FILTERLINGLIST.
Definition: HandledPackets.hpp:17230
CZ_PARTY_RECRUIT_ADD_FILTERLINGLIST(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:17232
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:3498
void handle(ByteBuffer &&buf)
CZ_PARTY_RECRUIT_ADD_FILTERLINGLIST.
Definition: HandledPackets.cpp:3497
virtual ~CZ_PARTY_RECRUIT_ADD_FILTERLINGLIST()
Definition: HandledPackets.hpp:17235
Main object for the aegis packet: CZ_PARTY_RECRUIT_CANCEL_VOLUNTEER.
Definition: HandledPackets.hpp:17259
virtual ~CZ_PARTY_RECRUIT_CANCEL_VOLUNTEER()
Definition: HandledPackets.hpp:17264
CZ_PARTY_RECRUIT_CANCEL_VOLUNTEER(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:17261
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:3493
void handle(ByteBuffer &&buf)
CZ_PARTY_RECRUIT_CANCEL_VOLUNTEER.
Definition: HandledPackets.cpp:3492
Main object for the aegis packet: CZ_PARTY_RECRUIT_REFUSE_VOLUNTEER.
Definition: HandledPackets.hpp:17288
virtual ~CZ_PARTY_RECRUIT_REFUSE_VOLUNTEER()
Definition: HandledPackets.hpp:17293
void handle(ByteBuffer &&buf)
CZ_PARTY_RECRUIT_REFUSE_VOLUNTEER.
Definition: HandledPackets.cpp:3557
CZ_PARTY_RECRUIT_REFUSE_VOLUNTEER(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:17290
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:3558
Main object for the aegis packet: CZ_PARTY_RECRUIT_REQ_DELETE.
Definition: HandledPackets.hpp:17317
void handle(ByteBuffer &&buf)
CZ_PARTY_RECRUIT_REQ_DELETE.
Definition: HandledPackets.cpp:3507
virtual ~CZ_PARTY_RECRUIT_REQ_DELETE()
Definition: HandledPackets.hpp:17322
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:3508
CZ_PARTY_RECRUIT_REQ_DELETE(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:17319
Main object for the aegis packet: CZ_PARTY_RECRUIT_REQ_REGISTER.
Definition: HandledPackets.hpp:17346
CZ_PARTY_RECRUIT_REQ_REGISTER(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:17348
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:3513
void handle(ByteBuffer &&buf)
CZ_PARTY_RECRUIT_REQ_REGISTER.
Definition: HandledPackets.cpp:3512
virtual ~CZ_PARTY_RECRUIT_REQ_REGISTER()
Definition: HandledPackets.hpp:17351
Main object for the aegis packet: CZ_PARTY_RECRUIT_REQ_SEARCH.
Definition: HandledPackets.hpp:17375
virtual ~CZ_PARTY_RECRUIT_REQ_SEARCH()
Definition: HandledPackets.hpp:17380
void handle(ByteBuffer &&buf)
CZ_PARTY_RECRUIT_REQ_SEARCH.
Definition: HandledPackets.cpp:3517
CZ_PARTY_RECRUIT_REQ_SEARCH(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:17377
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:3518
Main object for the aegis packet: CZ_PARTY_RECRUIT_REQ_UPDATE.
Definition: HandledPackets.hpp:17404
void handle(ByteBuffer &&buf)
CZ_PARTY_RECRUIT_REQ_UPDATE.
Definition: HandledPackets.cpp:3522
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:3523
virtual ~CZ_PARTY_RECRUIT_REQ_UPDATE()
Definition: HandledPackets.hpp:17409
CZ_PARTY_RECRUIT_REQ_UPDATE(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:17406
Main object for the aegis packet: CZ_PARTY_RECRUIT_REQ_VOLUNTEER.
Definition: HandledPackets.hpp:17433
CZ_PARTY_RECRUIT_REQ_VOLUNTEER(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:17435
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:3528
void handle(ByteBuffer &&buf)
CZ_PARTY_RECRUIT_REQ_VOLUNTEER.
Definition: HandledPackets.cpp:3527
virtual ~CZ_PARTY_RECRUIT_REQ_VOLUNTEER()
Definition: HandledPackets.hpp:17438
Main object for the aegis packet: CZ_PARTY_RECRUIT_SHOW_EQUIPMENT.
Definition: HandledPackets.hpp:17462
virtual ~CZ_PARTY_RECRUIT_SHOW_EQUIPMENT()
Definition: HandledPackets.hpp:17467
void handle(ByteBuffer &&buf)
CZ_PARTY_RECRUIT_SHOW_EQUIPMENT.
Definition: HandledPackets.cpp:3532
CZ_PARTY_RECRUIT_SHOW_EQUIPMENT(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:17464
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:3533
Main object for the aegis packet: CZ_PARTY_RECRUIT_SUB_FILTERLINGLIST.
Definition: HandledPackets.hpp:17491
void handle(ByteBuffer &&buf)
CZ_PARTY_RECRUIT_SUB_FILTERLINGLIST.
Definition: HandledPackets.cpp:3502
CZ_PARTY_RECRUIT_SUB_FILTERLINGLIST(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:17493
virtual ~CZ_PARTY_RECRUIT_SUB_FILTERLINGLIST()
Definition: HandledPackets.hpp:17496
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:3503
Main object for the aegis packet: CZ_PC_BUY_CASH_POINT_ITEM.
Definition: HandledPackets.hpp:17537
void handle(ByteBuffer &&buf)
CZ_PC_BUY_CASH_POINT_ITEM.
Definition: HandledPackets.cpp:2226
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:2231
std::vector< cz_pc_buy_cash_point_item > _items
Definition: HandledPackets.hpp:17551
int16_t _packet_length
Definition: HandledPackets.hpp:17548
virtual ~CZ_PC_BUY_CASH_POINT_ITEM()
Definition: HandledPackets.hpp:17542
CZ_PC_BUY_CASH_POINT_ITEM(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:17539
int16_t _count
Definition: HandledPackets.hpp:17550
int _kafra_points
Definition: HandledPackets.hpp:17549
Main object for the aegis packet: CZ_PC_PURCHASE_ITEMLIST_FROMMC2.
Definition: HandledPackets.hpp:17678
int _unique_id
Definition: HandledPackets.hpp:17691
void handle(ByteBuffer &&buf)
CZ_PC_PURCHASE_ITEMLIST_FROMMC2.
Definition: HandledPackets.cpp:3330
std::vector< cz_pc_purchase_itemlist > _items
Definition: HandledPackets.hpp:17692
int16_t _packet_length
Definition: HandledPackets.hpp:17689
virtual ~CZ_PC_PURCHASE_ITEMLIST_FROMMC2()
Definition: HandledPackets.hpp:17683
int _account_id
Definition: HandledPackets.hpp:17690
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:3335
CZ_PC_PURCHASE_ITEMLIST_FROMMC2(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:17680
Main object for the aegis packet: CZ_PC_PURCHASE_ITEMLIST_FROMMC.
Definition: HandledPackets.hpp:17635
virtual ~CZ_PC_PURCHASE_ITEMLIST_FROMMC()
Definition: HandledPackets.hpp:17640
std::vector< cz_pc_purchase_itemlist > _items
Definition: HandledPackets.hpp:17648
int16_t _packet_length
Definition: HandledPackets.hpp:17646
int _account_id
Definition: HandledPackets.hpp:17647
void handle(ByteBuffer &&buf)
CZ_PC_PURCHASE_ITEMLIST_FROMMC.
Definition: HandledPackets.cpp:865
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:870
CZ_PC_PURCHASE_ITEMLIST_FROMMC(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:17637
Main object for the aegis packet: CZ_PC_PURCHASE_ITEMLIST.
Definition: HandledPackets.hpp:17587
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:851
void handle(ByteBuffer &&buf)
CZ_PC_PURCHASE_ITEMLIST.
Definition: HandledPackets.cpp:846
int16_t _packet_length
Definition: HandledPackets.hpp:17598
virtual ~CZ_PC_PURCHASE_ITEMLIST()
Definition: HandledPackets.hpp:17592
std::vector< cz_pc_purchase_itemlist > _items
Definition: HandledPackets.hpp:17599
CZ_PC_PURCHASE_ITEMLIST(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:17589
Main object for the aegis packet: CZ_PC_SELL_ITEMLIST.
Definition: HandledPackets.hpp:17728
int16_t _packet_length
Definition: HandledPackets.hpp:17739
std::vector< cz_pc_sell_itemlist > _items
Definition: HandledPackets.hpp:17740
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:890
CZ_PC_SELL_ITEMLIST(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:17730
virtual ~CZ_PC_SELL_ITEMLIST()
Definition: HandledPackets.hpp:17733
void handle(ByteBuffer &&buf)
CZ_PC_SELL_ITEMLIST.
Definition: HandledPackets.cpp:885
Main object for the aegis packet: CZ_PETEGG_INFO.
Definition: HandledPackets.hpp:17777
void handle(ByteBuffer &&buf)
CZ_PETEGG_INFO.
Definition: HandledPackets.cpp:904
virtual ~CZ_PETEGG_INFO()
Definition: HandledPackets.hpp:17782
CZ_PETEGG_INFO(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:17779
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:905
Main object for the aegis packet: CZ_PET_ACT.
Definition: HandledPackets.hpp:17823
void handle(ByteBuffer &&buf)
CZ_PET_ACT.
Definition: HandledPackets.cpp:909
CZ_PET_ACT(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:17825
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:914
int _emotion
Definition: HandledPackets.hpp:17834
virtual ~CZ_PET_ACT()
Definition: HandledPackets.hpp:17828
Main object for the aegis packet: CZ_PET_EVOLUTION.
Definition: HandledPackets.hpp:17864
virtual ~CZ_PET_EVOLUTION()
Definition: HandledPackets.hpp:17869
std::vector< cz_pet_evolution_itemlist > _items
Definition: HandledPackets.hpp:17877
CZ_PET_EVOLUTION(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:17866
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:2967
int16_t _packet_length
Definition: HandledPackets.hpp:17875
void handle(ByteBuffer &&buf)
CZ_PET_EVOLUTION.
Definition: HandledPackets.cpp:2962
int16_t _evolved_pet_egg_id
Definition: HandledPackets.hpp:17876
Main object for the aegis packet: CZ_PING.
Definition: HandledPackets.hpp:17907
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:3173
virtual ~CZ_PING()
Definition: HandledPackets.hpp:17912
void handle(ByteBuffer &&buf)
CZ_PING.
Definition: HandledPackets.cpp:3172
CZ_PING(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:17909
Main object for the aegis packet: CZ_PKMODE_CHANGE.
Definition: HandledPackets.hpp:17953
void handle(ByteBuffer &&buf)
CZ_PKMODE_CHANGE.
Definition: HandledPackets.cpp:922
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:923
CZ_PKMODE_CHANGE(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:17955
virtual ~CZ_PKMODE_CHANGE()
Definition: HandledPackets.hpp:17958
Main object for the aegis packet: CZ_PRIVATE_AIRSHIP_REQUEST.
Definition: HandledPackets.hpp:17993
CZ_PRIVATE_AIRSHIP_REQUEST(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:17995
char _map_name[MAP_NAME_LENGTH_EXT]
Definition: HandledPackets.hpp:18004
void handle(ByteBuffer &&buf)
CZ_PRIVATE_AIRSHIP_REQUEST.
Definition: HandledPackets.cpp:3123
int _item_id
Definition: HandledPackets.hpp:18008
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:3128
virtual ~CZ_PRIVATE_AIRSHIP_REQUEST()
Definition: HandledPackets.hpp:17998
Main object for the aegis packet: CZ_PROGRESS.
Definition: HandledPackets.hpp:18047
CZ_PROGRESS(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:18049
virtual ~CZ_PROGRESS()
Definition: HandledPackets.hpp:18052
void handle(ByteBuffer &&buf)
CZ_PROGRESS.
Definition: HandledPackets.cpp:2597
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:2598
Main object for the aegis packet: CZ_RANDOM_COMBINE_ITEM_UI_CLOSE.
Definition: HandledPackets.hpp:18084
CZ_RANDOM_COMBINE_ITEM_UI_CLOSE(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:18086
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:3740
void handle(ByteBuffer &&buf)
CZ_RANDOM_COMBINE_ITEM_UI_CLOSE.
Definition: HandledPackets.cpp:3739
virtual ~CZ_RANDOM_COMBINE_ITEM_UI_CLOSE()
Definition: HandledPackets.hpp:18089
Main object for the aegis packet: CZ_RANDOM_UPGRADE_ITEM_UI_CLOSE.
Definition: HandledPackets.hpp:18121
virtual ~CZ_RANDOM_UPGRADE_ITEM_UI_CLOSE()
Definition: HandledPackets.hpp:18126
CZ_RANDOM_UPGRADE_ITEM_UI_CLOSE(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:18123
void handle(ByteBuffer &&buf)
CZ_RANDOM_UPGRADE_ITEM_UI_CLOSE.
Definition: HandledPackets.cpp:3744
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:3745
Main object for the aegis packet: CZ_RECALL_GID.
Definition: HandledPackets.hpp:18214
virtual ~CZ_RECALL_GID()
Definition: HandledPackets.hpp:18219
CZ_RECALL_GID(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:18216
void handle(ByteBuffer &&buf)
CZ_RECALL_GID.
Definition: HandledPackets.cpp:940
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:945
char _name[MAX_UNIT_NAME_LENGTH]
Definition: HandledPackets.hpp:18225
Main object for the aegis packet: CZ_RECALL_SSO.
Definition: HandledPackets.hpp:18255
CZ_RECALL_SSO(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:18257
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:3406
void handle(ByteBuffer &&buf)
CZ_RECALL_SSO.
Definition: HandledPackets.cpp:3401
int _account_id
Definition: HandledPackets.hpp:18266
virtual ~CZ_RECALL_SSO()
Definition: HandledPackets.hpp:18260
Main object for the aegis packet: CZ_RECALL.
Definition: HandledPackets.hpp:18167
void handle(ByteBuffer &&buf)
CZ_RECALL.
Definition: HandledPackets.cpp:927
CZ_RECALL(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:18169
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:932
virtual ~CZ_RECALL()
Definition: HandledPackets.hpp:18172
char _account_name[MAX_USERNAME_LENGTH]
Definition: HandledPackets.hpp:18178
Main object for the aegis packet: CZ_RECV_ROULETTE_ITEM.
Definition: HandledPackets.hpp:18296
CZ_RECV_ROULETTE_ITEM(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:18298
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:3096
void handle(ByteBuffer &&buf)
CZ_RECV_ROULETTE_ITEM.
Definition: HandledPackets.cpp:3095
virtual ~CZ_RECV_ROULETTE_ITEM()
Definition: HandledPackets.hpp:18301
Main object for the aegis packet: CZ_REFINE_ADD_ITEM.
Definition: HandledPackets.hpp:18336
virtual ~CZ_REFINE_ADD_ITEM()
Definition: HandledPackets.hpp:18341
void handle(ByteBuffer &&buf)
CZ_REFINE_ADD_ITEM.
Definition: HandledPackets.cpp:3152
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:3153
CZ_REFINE_ADD_ITEM(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:18338
Main object for the aegis packet: CZ_REFINE_ITEM_REQUEST.
Definition: HandledPackets.hpp:18376
CZ_REFINE_ITEM_REQUEST(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:18378
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:3158
virtual ~CZ_REFINE_ITEM_REQUEST()
Definition: HandledPackets.hpp:18381
void handle(ByteBuffer &&buf)
CZ_REFINE_ITEM_REQUEST.
Definition: HandledPackets.cpp:3157
Main object for the aegis packet: CZ_REFINE_WINDOW_CLOSE.
Definition: HandledPackets.hpp:18416
virtual ~CZ_REFINE_WINDOW_CLOSE()
Definition: HandledPackets.hpp:18421
CZ_REFINE_WINDOW_CLOSE(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:18418
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:3163
void handle(ByteBuffer &&buf)
CZ_REFINE_WINDOW_CLOSE.
Definition: HandledPackets.cpp:3162
Main object for the aegis packet: CZ_REGISTER_GUILD_EMBLEM_IMG.
Definition: HandledPackets.hpp:18462
virtual ~CZ_REGISTER_GUILD_EMBLEM_IMG()
Definition: HandledPackets.hpp:18467
CZ_REGISTER_GUILD_EMBLEM_IMG(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:18464
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:959
char _emblem[MAX_EMBLEM_LENGTH]
Definition: HandledPackets.hpp:18474
int16_t _packet_length
Definition: HandledPackets.hpp:18473
void handle(ByteBuffer &&buf)
CZ_REGISTER_GUILD_EMBLEM_IMG.
Definition: HandledPackets.cpp:953
Main object for the aegis packet: CZ_REG_CHANGE_GUILD_POSITIONINFO.
Definition: HandledPackets.hpp:18510
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:974
std::vector< s_cz_reg_change_guild_positioninfo > _info
Definition: HandledPackets.hpp:18522
void handle(ByteBuffer &&buf)
CZ_REG_CHANGE_GUILD_POSITIONINFO.
Definition: HandledPackets.cpp:968
CZ_REG_CHANGE_GUILD_POSITIONINFO(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:18512
int16_t _packet_length
Definition: HandledPackets.hpp:18521
virtual ~CZ_REG_CHANGE_GUILD_POSITIONINFO()
Definition: HandledPackets.hpp:18515
Main object for the aegis packet: CZ_REMEMBER_WARPPOINT.
Definition: HandledPackets.hpp:18558
virtual ~CZ_REMEMBER_WARPPOINT()
Definition: HandledPackets.hpp:18563
void handle(ByteBuffer &&buf)
CZ_REMEMBER_WARPPOINT.
Definition: HandledPackets.cpp:991
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:992
CZ_REMEMBER_WARPPOINT(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:18560
Main object for the aegis packet: CZ_REMOVE_AID_SSO.
Definition: HandledPackets.hpp:18644
void handle(ByteBuffer &&buf)
CZ_REMOVE_AID_SSO.
Definition: HandledPackets.cpp:3414
int _account_id
Definition: HandledPackets.hpp:18655
virtual ~CZ_REMOVE_AID_SSO()
Definition: HandledPackets.hpp:18649
CZ_REMOVE_AID_SSO(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:18646
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:3419
Main object for the aegis packet: CZ_REMOVE_AID.
Definition: HandledPackets.hpp:18604
void handle(ByteBuffer &&buf)
CZ_REMOVE_AID.
Definition: HandledPackets.cpp:996
virtual ~CZ_REMOVE_AID()
Definition: HandledPackets.hpp:18609
CZ_REMOVE_AID(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:18606
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:997
Main object for the aegis packet: CZ_RENAME_MER.
Definition: HandledPackets.hpp:18691
CZ_RENAME_MER(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:18693
void handle(ByteBuffer &&buf)
CZ_RENAME_MER.
Definition: HandledPackets.cpp:2063
virtual ~CZ_RENAME_MER()
Definition: HandledPackets.hpp:18696
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:2068
char _name[MAX_UNIT_NAME_LENGTH]
Definition: HandledPackets.hpp:18702
Main object for the aegis packet: CZ_RENAME_PET.
Definition: HandledPackets.hpp:18738
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:1006
virtual ~CZ_RENAME_PET()
Definition: HandledPackets.hpp:18743
void handle(ByteBuffer &&buf)
CZ_RENAME_PET.
Definition: HandledPackets.cpp:1001
CZ_RENAME_PET(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:18740
char _name[MAX_UNIT_NAME_LENGTH]
Definition: HandledPackets.hpp:18749
Main object for the aegis packet: CZ_REPLY_ENTRY_QUEUE_ADMISSION.
Definition: HandledPackets.hpp:18779
void handle(ByteBuffer &&buf)
CZ_REPLY_ENTRY_QUEUE_ADMISSION.
Definition: HandledPackets.cpp:3567
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:3568
virtual ~CZ_REPLY_ENTRY_QUEUE_ADMISSION()
Definition: HandledPackets.hpp:18784
CZ_REPLY_ENTRY_QUEUE_ADMISSION(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:18781
Main object for the aegis packet: CZ_REPLY_LOBBY_ADMISSION.
Definition: HandledPackets.hpp:18819
void handle(ByteBuffer &&buf)
CZ_REPLY_LOBBY_ADMISSION.
Definition: HandledPackets.cpp:3572
virtual ~CZ_REPLY_LOBBY_ADMISSION()
Definition: HandledPackets.hpp:18824
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:3573
CZ_REPLY_LOBBY_ADMISSION(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:18821
Main object for the aegis packet: CZ_REQMAKINGHOMUN.
Definition: HandledPackets.hpp:18865
CZ_REQMAKINGHOMUN(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:18867
void handle(ByteBuffer &&buf)
CZ_REQMAKINGHOMUN.
Definition: HandledPackets.cpp:1756
virtual ~CZ_REQMAKINGHOMUN()
Definition: HandledPackets.hpp:18870
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:1757
Main object for the aegis packet: CZ_REQMAKINGITEM.
Definition: HandledPackets.hpp:18911
int16_t _item_id
Definition: HandledPackets.hpp:18922
virtual ~CZ_REQMAKINGITEM()
Definition: HandledPackets.hpp:18916
void handle(ByteBuffer &&buf)
CZ_REQMAKINGITEM.
Definition: HandledPackets.cpp:1014
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:1022
CZ_REQMAKINGITEM(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:18913
int16_t _material_id[3]
Definition: HandledPackets.hpp:18923
Main object for the aegis packet: CZ_REQNAME2.
Definition: HandledPackets.hpp:19696
uint32_t _guid
Definition: HandledPackets.hpp:19707
CZ_REQNAME2(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:19698
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:2584
void handle(ByteBuffer &&buf)
CZ_REQNAME2.
Definition: HandledPackets.cpp:2578
virtual ~CZ_REQNAME2()
Definition: HandledPackets.hpp:19701
Main object for the aegis packet: CZ_REQNAME_BYGID2.
Definition: HandledPackets.hpp:20508
CZ_REQNAME_BYGID2(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:20510
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:2503
int _char_id
Definition: HandledPackets.hpp:20519
virtual ~CZ_REQNAME_BYGID2()
Definition: HandledPackets.hpp:20513
void handle(ByteBuffer &&buf)
CZ_REQNAME_BYGID2.
Definition: HandledPackets.cpp:2498
Main object for the aegis packet: CZ_REQNAME_BYGID.
Definition: HandledPackets.hpp:19975
virtual ~CZ_REQNAME_BYGID()
Definition: HandledPackets.hpp:19980
void handle(ByteBuffer &&buf)
CZ_REQNAME_BYGID.
Definition: HandledPackets.cpp:125
CZ_REQNAME_BYGID(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:19977
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:130
int _char_id
Definition: HandledPackets.hpp:19986
Main object for the aegis packet: CZ_REQNAME.
Definition: HandledPackets.hpp:19195
CZ_REQNAME(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:19197
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:117
virtual ~CZ_REQNAME()
Definition: HandledPackets.hpp:19200
uint32_t _guid
Definition: HandledPackets.hpp:19206
void handle(ByteBuffer &&buf)
CZ_REQNAME.
Definition: HandledPackets.cpp:111
Main object for the aegis packet: CZ_REQUEST_ACT2.
Definition: HandledPackets.hpp:21305
virtual ~CZ_REQUEST_ACT2()
Definition: HandledPackets.hpp:21310
uint8_t _action
Definition: HandledPackets.hpp:21317
uint32_t _target_guid
Definition: HandledPackets.hpp:21316
void handle(ByteBuffer &&buf)
CZ_REQUEST_ACT2.
Definition: HandledPackets.cpp:2760
CZ_REQUEST_ACT2(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:21307
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:2766
Main object for the aegis packet: CZ_REQUEST_ACTNPC Request to do an action with homunculus/mercenary...
Definition: HandledPackets.hpp:21353
int8_t _action
Definition: HandledPackets.hpp:21366
int _target_id
Definition: HandledPackets.hpp:21365
int _guid
Definition: HandledPackets.hpp:21364
virtual ~CZ_REQUEST_ACTNPC()
Definition: HandledPackets.hpp:21358
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:1989
void handle(ByteBuffer &&buf)
CZ_REQUEST_ACTNPC.
Definition: HandledPackets.cpp:1985
CZ_REQUEST_ACTNPC(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:21355
Main object for the aegis packet: CZ_REQUEST_ACT.
Definition: HandledPackets.hpp:20783
virtual ~CZ_REQUEST_ACT()
Definition: HandledPackets.hpp:20788
uint8_t _action
Definition: HandledPackets.hpp:20795
uint32_t _target_guid
Definition: HandledPackets.hpp:20794
void handle(ByteBuffer &&buf)
CZ_REQUEST_ACT.
Definition: HandledPackets.cpp:138
CZ_REQUEST_ACT(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:20785
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:144
Main object for the aegis packet: CZ_REQUEST_CHAT_PARTY.
Definition: HandledPackets.hpp:21490
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:1038
void handle(ByteBuffer &&buf)
CZ_REQUEST_CHAT_PARTY.
Definition: HandledPackets.cpp:1032
CZ_REQUEST_CHAT_PARTY(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:21492
char _message[MAX_CHAT_STR_LENGTH]
Definition: HandledPackets.hpp:21502
virtual ~CZ_REQUEST_CHAT_PARTY()
Definition: HandledPackets.hpp:21495
int16_t _packet_length
Definition: HandledPackets.hpp:21501
Main object for the aegis packet: CZ_REQUEST_CHAT.
Definition: HandledPackets.hpp:21442
virtual ~CZ_REQUEST_CHAT()
Definition: HandledPackets.hpp:21447
uint16_t _packet_length
Definition: HandledPackets.hpp:21453
CZ_REQUEST_CHAT(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:21444
void handle(ByteBuffer &&buf)
CZ_REQUEST_CHAT.
Definition: HandledPackets.cpp:153
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:159
char * _message
Definition: HandledPackets.hpp:21454
Main object for the aegis packet: CZ_REQUEST_MOVE2.
Definition: HandledPackets.hpp:22296
void handle(ByteBuffer &&buf)
CZ_REQUEST_MOVE2.
Definition: HandledPackets.cpp:2545
CZ_REQUEST_MOVE2(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:22298
virtual ~CZ_REQUEST_MOVE2()
Definition: HandledPackets.hpp:22301
uint8_t _dir
Definition: HandledPackets.hpp:22308
uint16_t _x
Definition: HandledPackets.hpp:22307
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:2551
uint16_t _y
Definition: HandledPackets.hpp:22307
Main object for the aegis packet: CZ_REQUEST_MOVENPC.
Definition: HandledPackets.hpp:22344
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:2004
int _guid
Definition: HandledPackets.hpp:22355
virtual ~CZ_REQUEST_MOVENPC()
Definition: HandledPackets.hpp:22349
uint8_t _dir
Definition: HandledPackets.hpp:22357
uint16_t _x
Definition: HandledPackets.hpp:22356
CZ_REQUEST_MOVENPC(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:22346
uint16_t _y
Definition: HandledPackets.hpp:22356
void handle(ByteBuffer &&buf)
CZ_REQUEST_MOVENPC.
Definition: HandledPackets.cpp:1999
Main object for the aegis packet: CZ_REQUEST_MOVETOOWNER.
Definition: HandledPackets.hpp:22393
void handle(ByteBuffer &&buf)
CZ_REQUEST_MOVETOOWNER.
Definition: HandledPackets.cpp:2015
CZ_REQUEST_MOVETOOWNER(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:22395
int _guid
Definition: HandledPackets.hpp:22404
virtual ~CZ_REQUEST_MOVETOOWNER()
Definition: HandledPackets.hpp:22398
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:2020
Main object for the aegis packet: CZ_REQUEST_MOVE_NEW_JAPEN.
Definition: HandledPackets.hpp:22440
virtual ~CZ_REQUEST_MOVE_NEW_JAPEN()
Definition: HandledPackets.hpp:22445
void handle(ByteBuffer &&buf)
CZ_REQUEST_MOVE_NEW_JAPEN.
Definition: HandledPackets.cpp:2407
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:2408
CZ_REQUEST_MOVE_NEW_JAPEN(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:22442
Main object for the aegis packet: CZ_REQUEST_MOVE.
Definition: HandledPackets.hpp:21772
void handle(ByteBuffer &&buf)
CZ_REQUEST_MOVE.
Definition: HandledPackets.cpp:172
uint16_t _y
Definition: HandledPackets.hpp:21783
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:178
uint8_t _dir
Definition: HandledPackets.hpp:21784
virtual ~CZ_REQUEST_MOVE()
Definition: HandledPackets.hpp:21777
uint16_t _x
Definition: HandledPackets.hpp:21783
CZ_REQUEST_MOVE(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:21774
Main object for the aegis packet: CZ_REQUEST_PERFECT_ENCHANT.
Definition: HandledPackets.hpp:22476
void handle(ByteBuffer &&buf)
CZ_REQUEST_PERFECT_ENCHANT.
Definition: HandledPackets.cpp:3834
virtual ~CZ_REQUEST_PERFECT_ENCHANT()
Definition: HandledPackets.hpp:22481
CZ_REQUEST_PERFECT_ENCHANT(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:22478
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:3835
Main object for the aegis packet: CZ_REQUEST_QUIT.
Definition: HandledPackets.hpp:22522
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:1048
virtual ~CZ_REQUEST_QUIT()
Definition: HandledPackets.hpp:22527
CZ_REQUEST_QUIT(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:22524
void handle(ByteBuffer &&buf)
CZ_REQUEST_QUIT.
Definition: HandledPackets.cpp:1047
Main object for the aegis packet: CZ_REQUEST_RANDOM_ENCHANT.
Definition: HandledPackets.hpp:22558
virtual ~CZ_REQUEST_RANDOM_ENCHANT()
Definition: HandledPackets.hpp:22563
void handle(ByteBuffer &&buf)
CZ_REQUEST_RANDOM_ENCHANT.
Definition: HandledPackets.cpp:3839
CZ_REQUEST_RANDOM_ENCHANT(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:22560
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:3840
Main object for the aegis packet: CZ_REQUEST_RESET_ENCHANT.
Definition: HandledPackets.hpp:22594
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:3845
void handle(ByteBuffer &&buf)
CZ_REQUEST_RESET_ENCHANT.
Definition: HandledPackets.cpp:3844
virtual ~CZ_REQUEST_RESET_ENCHANT()
Definition: HandledPackets.hpp:22599
CZ_REQUEST_RESET_ENCHANT(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:22596
Main object for the aegis packet: CZ_REQUEST_TIME2.
Definition: HandledPackets.hpp:23449
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:2517
virtual ~CZ_REQUEST_TIME2()
Definition: HandledPackets.hpp:23454
CZ_REQUEST_TIME2(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:23451
uint32_t _timestamp
Definition: HandledPackets.hpp:23460
void handle(ByteBuffer &&buf)
CZ_REQUEST_TIME2.
Definition: HandledPackets.cpp:2511
Main object for the aegis packet: CZ_REQUEST_TIME.
Definition: HandledPackets.hpp:22935
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:194
void handle(ByteBuffer &&buf)
CZ_REQUEST_TIME.
Definition: HandledPackets.cpp:188
uint32_t _timestamp
Definition: HandledPackets.hpp:22946
virtual ~CZ_REQUEST_TIME()
Definition: HandledPackets.hpp:22940
CZ_REQUEST_TIME(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:22937
Main object for the aegis packet: CZ_REQUEST_UPGRADE_ENCHANT.
Definition: HandledPackets.hpp:23486
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:3850
virtual ~CZ_REQUEST_UPGRADE_ENCHANT()
Definition: HandledPackets.hpp:23491
void handle(ByteBuffer &&buf)
CZ_REQUEST_UPGRADE_ENCHANT.
Definition: HandledPackets.cpp:3849
CZ_REQUEST_UPGRADE_ENCHANT(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:23488
Main object for the aegis packet: CZ_REQ_ACCOUNTNAME.
Definition: HandledPackets.hpp:23532
virtual ~CZ_REQ_ACCOUNTNAME()
Definition: HandledPackets.hpp:23537
CZ_REQ_ACCOUNTNAME(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:23534
void handle(ByteBuffer &&buf)
CZ_REQ_ACCOUNTNAME.
Definition: HandledPackets.cpp:1052
int _account_id
Definition: HandledPackets.hpp:23543
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:1057
Main object for the aegis packet: CZ_REQ_ACH_REWARD.
Definition: HandledPackets.hpp:23573
virtual ~CZ_REQ_ACH_REWARD()
Definition: HandledPackets.hpp:23578
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:3041
void handle(ByteBuffer &&buf)
CZ_REQ_ACH_REWARD.
Definition: HandledPackets.cpp:3040
CZ_REQ_ACH_REWARD(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:23575
Main object for the aegis packet: CZ_REQ_ADD_ITEM_RODEX.
Definition: HandledPackets.hpp:23613
virtual ~CZ_REQ_ADD_ITEM_RODEX()
Definition: HandledPackets.hpp:23618
void handle(ByteBuffer &&buf)
CZ_REQ_ADD_ITEM_RODEX.
Definition: HandledPackets.cpp:3002
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:3003
CZ_REQ_ADD_ITEM_RODEX(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:23615
Main object for the aegis packet: CZ_REQ_AGIT_INVESTMENT.
Definition: HandledPackets.hpp:23650
void handle(ByteBuffer &&buf)
CZ_REQ_AGIT_INVESTMENT.
Definition: HandledPackets.cpp:3749
CZ_REQ_AGIT_INVESTMENT(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:23652
virtual ~CZ_REQ_AGIT_INVESTMENT()
Definition: HandledPackets.hpp:23655
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:3750
Main object for the aegis packet: CZ_REQ_ALLY_GUILD.
Definition: HandledPackets.hpp:23696
int _inviter_account_id
Definition: HandledPackets.hpp:23708
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:1071
int _inviter_char_id
Definition: HandledPackets.hpp:23709
CZ_REQ_ALLY_GUILD(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:23698
virtual ~CZ_REQ_ALLY_GUILD()
Definition: HandledPackets.hpp:23701
int _account_id
Definition: HandledPackets.hpp:23707
void handle(ByteBuffer &&buf)
CZ_REQ_ALLY_GUILD.
Definition: HandledPackets.cpp:1065
Main object for the aegis packet: CZ_REQ_APPLY_BARGAIN_SALE_ITEM.
Definition: HandledPackets.hpp:23739
CZ_REQ_APPLY_BARGAIN_SALE_ITEM(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:23741
void handle(ByteBuffer &&buf)
CZ_REQ_APPLY_BARGAIN_SALE_ITEM.
Definition: HandledPackets.cpp:2819
virtual ~CZ_REQ_APPLY_BARGAIN_SALE_ITEM()
Definition: HandledPackets.hpp:23744
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:2820
Main object for the aegis packet: CZ_REQ_APPLY_MACRO_DETECTOR.
Definition: HandledPackets.hpp:23776
CZ_REQ_APPLY_MACRO_DETECTOR(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:23778
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:3755
virtual ~CZ_REQ_APPLY_MACRO_DETECTOR()
Definition: HandledPackets.hpp:23781
void handle(ByteBuffer &&buf)
CZ_REQ_APPLY_MACRO_DETECTOR.
Definition: HandledPackets.cpp:3754
Main object for the aegis packet: CZ_REQ_BANKING_CHECK.
Definition: HandledPackets.hpp:23816
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:2805
void handle(ByteBuffer &&buf)
CZ_REQ_BANKING_CHECK.
Definition: HandledPackets.cpp:2804
CZ_REQ_BANKING_CHECK(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:23818
virtual ~CZ_REQ_BANKING_CHECK()
Definition: HandledPackets.hpp:23821
Main object for the aegis packet: CZ_REQ_BANKING_DEPOSIT.
Definition: HandledPackets.hpp:23856
void handle(ByteBuffer &&buf)
CZ_REQ_BANKING_DEPOSIT.
Definition: HandledPackets.cpp:2809
CZ_REQ_BANKING_DEPOSIT(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:23858
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:2810
virtual ~CZ_REQ_BANKING_DEPOSIT()
Definition: HandledPackets.hpp:23861
Main object for the aegis packet: CZ_REQ_BANKING_WITHDRAW.
Definition: HandledPackets.hpp:23896
virtual ~CZ_REQ_BANKING_WITHDRAW()
Definition: HandledPackets.hpp:23901
void handle(ByteBuffer &&buf)
CZ_REQ_BANKING_WITHDRAW.
Definition: HandledPackets.cpp:2814
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:2815
CZ_REQ_BANKING_WITHDRAW(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:23898
Main object for the aegis packet: CZ_REQ_BAN_GUILD.
Definition: HandledPackets.hpp:23942
virtual ~CZ_REQ_BAN_GUILD()
Definition: HandledPackets.hpp:23947
int _account_id
Definition: HandledPackets.hpp:23954
void handle(ByteBuffer &&buf)
CZ_REQ_BAN_GUILD.
Definition: HandledPackets.cpp:1081
int _char_id
Definition: HandledPackets.hpp:23955
CZ_REQ_BAN_GUILD(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:23944
int _guild_id
Definition: HandledPackets.hpp:23953
char _reason[MAX_GUILD_LEAVE_REASON_STR_LENGTH]
Definition: HandledPackets.hpp:23956
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:1087
Main object for the aegis packet: CZ_REQ_BATTLE_STATE_MONITOR.
Definition: HandledPackets.hpp:23986
virtual ~CZ_REQ_BATTLE_STATE_MONITOR()
Definition: HandledPackets.hpp:23991
void handle(ByteBuffer &&buf)
CZ_REQ_BATTLE_STATE_MONITOR.
Definition: HandledPackets.cpp:3320
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:3321
CZ_REQ_BATTLE_STATE_MONITOR(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:23988
Main object for the aegis packet: CZ_REQ_BEFORE_WORLD_INFO.
Definition: HandledPackets.hpp:24026
void handle(ByteBuffer &&buf)
CZ_REQ_BEFORE_WORLD_INFO.
Definition: HandledPackets.cpp:3644
CZ_REQ_BEFORE_WORLD_INFO(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:24028
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:3645
virtual ~CZ_REQ_BEFORE_WORLD_INFO()
Definition: HandledPackets.hpp:24031
Main object for the aegis packet: CZ_REQ_BUY_FROMMC.
Definition: HandledPackets.hpp:24072
CZ_REQ_BUY_FROMMC(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:24074
virtual ~CZ_REQ_BUY_FROMMC()
Definition: HandledPackets.hpp:24077
int _account_id
Definition: HandledPackets.hpp:24083
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:1103
void handle(ByteBuffer &&buf)
CZ_REQ_BUY_FROMMC.
Definition: HandledPackets.cpp:1098
Main object for the aegis packet: CZ_REQ_CANCEL_WRITE_RODEX.
Definition: HandledPackets.hpp:24113
void handle(ByteBuffer &&buf)
CZ_REQ_CANCEL_WRITE_RODEX.
Definition: HandledPackets.cpp:2987
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:2988
CZ_REQ_CANCEL_WRITE_RODEX(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:24115
virtual ~CZ_REQ_CANCEL_WRITE_RODEX()
Definition: HandledPackets.hpp:24118
Main object for the aegis packet: CZ_REQ_CARTOFF.
Definition: HandledPackets.hpp:24159
virtual ~CZ_REQ_CARTOFF()
Definition: HandledPackets.hpp:24164
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:1112
void handle(ByteBuffer &&buf)
CZ_REQ_CARTOFF.
Definition: HandledPackets.cpp:1111
CZ_REQ_CARTOFF(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:24161
Main object for the aegis packet: CZ_REQ_CASH_BARGAIN_SALE_ITEM_INFO.
Definition: HandledPackets.hpp:24199
virtual ~CZ_REQ_CASH_BARGAIN_SALE_ITEM_INFO()
Definition: HandledPackets.hpp:24204
CZ_REQ_CASH_BARGAIN_SALE_ITEM_INFO(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:24201
void handle(ByteBuffer &&buf)
CZ_REQ_CASH_BARGAIN_SALE_ITEM_INFO.
Definition: HandledPackets.cpp:2824
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:2825
Main object for the aegis packet: CZ_REQ_CHANGECART.
Definition: HandledPackets.hpp:24245
CZ_REQ_CHANGECART(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:24247
virtual ~CZ_REQ_CHANGECART()
Definition: HandledPackets.hpp:24250
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:1121
int16_t _cart_num
Definition: HandledPackets.hpp:24256
void handle(ByteBuffer &&buf)
CZ_REQ_CHANGECART.
Definition: HandledPackets.cpp:1116
Main object for the aegis packet: CZ_REQ_CHANGE_MEMBERPOS.
Definition: HandledPackets.hpp:24292
virtual ~CZ_REQ_CHANGE_MEMBERPOS()
Definition: HandledPackets.hpp:24297
int16_t _packet_length
Definition: HandledPackets.hpp:24303
void handle(ByteBuffer &&buf)
CZ_REQ_CHANGE_MEMBERPOS.
Definition: HandledPackets.cpp:1129
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:1135
CZ_REQ_CHANGE_MEMBERPOS(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:24294
std::vector< s_cz_req_change_memberpos > _members
Definition: HandledPackets.hpp:24304
Main object for the aegis packet: CZ_REQ_CHANGE_TITLE.
Definition: HandledPackets.hpp:24334
CZ_REQ_CHANGE_TITLE(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:24336
void handle(ByteBuffer &&buf)
CZ_REQ_CHANGE_TITLE.
Definition: HandledPackets.cpp:3105
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:3106
virtual ~CZ_REQ_CHANGE_TITLE()
Definition: HandledPackets.hpp:24339
Main object for the aegis packet: CZ_REQ_CLICK_TO_BUYING_STORE.
Definition: HandledPackets.hpp:24789
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:2701
int _account_id
Definition: HandledPackets.hpp:24800
void handle(ByteBuffer &&buf)
CZ_REQ_CLICK_TO_BUYING_STORE.
Definition: HandledPackets.cpp:2696
CZ_REQ_CLICK_TO_BUYING_STORE(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:24791
virtual ~CZ_REQ_CLICK_TO_BUYING_STORE()
Definition: HandledPackets.hpp:24794
Main object for the aegis packet: CZ_REQ_CLOSESTORE.
Definition: HandledPackets.hpp:24836
CZ_REQ_CLOSESTORE(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:24838
void handle(ByteBuffer &&buf)
CZ_REQ_CLOSESTORE.
Definition: HandledPackets.cpp:1151
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:1152
virtual ~CZ_REQ_CLOSESTORE()
Definition: HandledPackets.hpp:24841
Main object for the aegis packet: CZ_REQ_CLOSE_BANKING.
Definition: HandledPackets.hpp:24876
CZ_REQ_CLOSE_BANKING(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:24878
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:2840
void handle(ByteBuffer &&buf)
CZ_REQ_CLOSE_BANKING.
Definition: HandledPackets.cpp:2839
virtual ~CZ_REQ_CLOSE_BANKING()
Definition: HandledPackets.hpp:24881
Main object for the aegis packet: CZ_REQ_CLOSE_BUYING_STORE.
Definition: HandledPackets.hpp:25584
virtual ~CZ_REQ_CLOSE_BUYING_STORE()
Definition: HandledPackets.hpp:25589
CZ_REQ_CLOSE_BUYING_STORE(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:25586
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:2649
void handle(ByteBuffer &&buf)
CZ_REQ_CLOSE_BUYING_STORE.
Definition: HandledPackets.cpp:2648
Main object for the aegis packet: CZ_REQ_CLOSE_GUILD_STORAGE.
Definition: HandledPackets.hpp:25624
virtual ~CZ_REQ_CLOSE_GUILD_STORAGE()
Definition: HandledPackets.hpp:25629
CZ_REQ_CLOSE_GUILD_STORAGE(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:25626
void handle(ByteBuffer &&buf)
CZ_REQ_CLOSE_GUILD_STORAGE.
Definition: HandledPackets.cpp:2877
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:2878
Main object for the aegis packet: CZ_REQ_CLOSE_ROULETTE.
Definition: HandledPackets.hpp:25664
void handle(ByteBuffer &&buf)
CZ_REQ_CLOSE_ROULETTE.
Definition: HandledPackets.cpp:3045
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:3046
virtual ~CZ_REQ_CLOSE_ROULETTE()
Definition: HandledPackets.hpp:25669
CZ_REQ_CLOSE_ROULETTE(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:25666
Main object for the aegis packet: CZ_REQ_COUNT_BARGAIN_SALE_ITEM.
Definition: HandledPackets.hpp:25704
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:2855
virtual ~CZ_REQ_COUNT_BARGAIN_SALE_ITEM()
Definition: HandledPackets.hpp:25709
void handle(ByteBuffer &&buf)
CZ_REQ_COUNT_BARGAIN_SALE_ITEM.
Definition: HandledPackets.cpp:2854
CZ_REQ_COUNT_BARGAIN_SALE_ITEM(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:25706
Main object for the aegis packet: CZ_REQ_DELETE_RODEX.
Definition: HandledPackets.hpp:25792
virtual ~CZ_REQ_DELETE_RODEX()
Definition: HandledPackets.hpp:25797
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:2938
CZ_REQ_DELETE_RODEX(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:25794
void handle(ByteBuffer &&buf)
CZ_REQ_DELETE_RODEX.
Definition: HandledPackets.cpp:2937
Main object for the aegis packet: CZ_REQ_DISCONNECT.
Definition: HandledPackets.hpp:25838
CZ_REQ_DISCONNECT(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:25840
void handle(ByteBuffer &&buf)
CZ_REQ_DISCONNECT.
Definition: HandledPackets.cpp:1171
uint16_t _type
0 = Quit
Definition: HandledPackets.hpp:25849
virtual ~CZ_REQ_DISCONNECT()
Definition: HandledPackets.hpp:25843
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:1177
Main object for the aegis packet: CZ_REQ_DISORGANIZE_GUILD.
Definition: HandledPackets.hpp:25885
void handle(ByteBuffer &&buf)
CZ_REQ_DISORGANIZE_GUILD.
Definition: HandledPackets.cpp:1185
CZ_REQ_DISORGANIZE_GUILD(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:25887
virtual ~CZ_REQ_DISORGANIZE_GUILD()
Definition: HandledPackets.hpp:25890
char _key[MAX_GUILD_NAME_LENGTH]
Definition: HandledPackets.hpp:25896
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:1191
Main object for the aegis packet: CZ_REQ_EMOTION.
Definition: HandledPackets.hpp:25932
int8_t _type
Definition: HandledPackets.hpp:25943
void handle(ByteBuffer &&buf)
CZ_REQ_EMOTION.
Definition: HandledPackets.cpp:1199
virtual ~CZ_REQ_EMOTION()
Definition: HandledPackets.hpp:25937
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:1204
CZ_REQ_EMOTION(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:25934
Main object for the aegis packet: CZ_REQ_ENTER_ROOM.
Definition: HandledPackets.hpp:25979
void handle(ByteBuffer &&buf)
CZ_REQ_ENTER_ROOM.
Definition: HandledPackets.cpp:1212
int _chat_id
Definition: HandledPackets.hpp:25990
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:1218
char _password[CHATROOM_PASS_SIZE]
Definition: HandledPackets.hpp:25991
CZ_REQ_ENTER_ROOM(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:25981
virtual ~CZ_REQ_ENTER_ROOM()
Definition: HandledPackets.hpp:25984
Main object for the aegis packet: CZ_REQ_ENTRY_QUEUE_APPLY.
Definition: HandledPackets.hpp:26021
void handle(ByteBuffer &&buf)
CZ_REQ_ENTRY_QUEUE_APPLY.
Definition: HandledPackets.cpp:3577
virtual ~CZ_REQ_ENTRY_QUEUE_APPLY()
Definition: HandledPackets.hpp:26026
CZ_REQ_ENTRY_QUEUE_APPLY(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:26023
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:3578
Main object for the aegis packet: CZ_REQ_ENTRY_QUEUE_CANCEL.
Definition: HandledPackets.hpp:26061
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:3583
void handle(ByteBuffer &&buf)
CZ_REQ_ENTRY_QUEUE_CANCEL.
Definition: HandledPackets.cpp:3582
virtual ~CZ_REQ_ENTRY_QUEUE_CANCEL()
Definition: HandledPackets.hpp:26066
CZ_REQ_ENTRY_QUEUE_CANCEL(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:26063
Main object for the aegis packet: CZ_REQ_ENTRY_QUEUE_RANKING.
Definition: HandledPackets.hpp:26101
CZ_REQ_ENTRY_QUEUE_RANKING(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:26103
virtual ~CZ_REQ_ENTRY_QUEUE_RANKING()
Definition: HandledPackets.hpp:26106
void handle(ByteBuffer &&buf)
CZ_REQ_ENTRY_QUEUE_RANKING.
Definition: HandledPackets.cpp:3482
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:3483
Main object for the aegis packet: CZ_REQ_EXCHANGE_ITEM.
Definition: HandledPackets.hpp:26147
void handle(ByteBuffer &&buf)
CZ_REQ_EXCHANGE_ITEM.
Definition: HandledPackets.cpp:1227
int _account_id
Definition: HandledPackets.hpp:26158
virtual ~CZ_REQ_EXCHANGE_ITEM()
Definition: HandledPackets.hpp:26152
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:1233
CZ_REQ_EXCHANGE_ITEM(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:26149
Main object for the aegis packet: CZ_REQ_EXPEL_GROUP_MEMBER.
Definition: HandledPackets.hpp:26194
int _account_id
Definition: HandledPackets.hpp:26205
void handle(ByteBuffer &&buf)
CZ_REQ_EXPEL_GROUP_MEMBER.
Definition: HandledPackets.cpp:1241
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:1247
CZ_REQ_EXPEL_GROUP_MEMBER(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:26196
char _name[MAX_UNIT_NAME_LENGTH]
Definition: HandledPackets.hpp:26206
virtual ~CZ_REQ_EXPEL_GROUP_MEMBER()
Definition: HandledPackets.hpp:26199
Main object for the aegis packet: CZ_REQ_EXPEL_MEMBER.
Definition: HandledPackets.hpp:26242
void handle(ByteBuffer &&buf)
CZ_REQ_EXPEL_MEMBER.
Definition: HandledPackets.cpp:1256
virtual ~CZ_REQ_EXPEL_MEMBER()
Definition: HandledPackets.hpp:26247
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:1262
CZ_REQ_EXPEL_MEMBER(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:26244
char _name[MAX_UNIT_NAME_LENGTH]
Definition: HandledPackets.hpp:26253
Main object for the aegis packet: CZ_REQ_GENERATE_ROULETTE.
Definition: HandledPackets.hpp:26283
virtual ~CZ_REQ_GENERATE_ROULETTE()
Definition: HandledPackets.hpp:26288
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:3051
CZ_REQ_GENERATE_ROULETTE(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:26285
void handle(ByteBuffer &&buf)
CZ_REQ_GENERATE_ROULETTE.
Definition: HandledPackets.cpp:3050
Main object for the aegis packet: CZ_REQ_GIVE_MANNER_BYNAME.
Definition: HandledPackets.hpp:26329
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:1780
virtual ~CZ_REQ_GIVE_MANNER_BYNAME()
Definition: HandledPackets.hpp:26334
char _name[MAX_UNIT_NAME_LENGTH]
Definition: HandledPackets.hpp:26340
CZ_REQ_GIVE_MANNER_BYNAME(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:26331
void handle(ByteBuffer &&buf)
CZ_REQ_GIVE_MANNER_BYNAME.
Definition: HandledPackets.cpp:1775
Main object for the aegis packet: CZ_REQ_GIVE_MANNER_POINT.
Definition: HandledPackets.hpp:26376
void handle(ByteBuffer &&buf)
CZ_REQ_GIVE_MANNER_POINT.
Definition: HandledPackets.cpp:1270
int8_t _type
Definition: HandledPackets.hpp:26388
virtual ~CZ_REQ_GIVE_MANNER_POINT()
Definition: HandledPackets.hpp:26381
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:1275
int _account_id
Definition: HandledPackets.hpp:26387
CZ_REQ_GIVE_MANNER_POINT(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:26378
int16_t _value
Definition: HandledPackets.hpp:26389
Main object for the aegis packet: CZ_REQ_GUILDSTORAGE_LOG.
Definition: HandledPackets.hpp:26419
virtual ~CZ_REQ_GUILDSTORAGE_LOG()
Definition: HandledPackets.hpp:26424
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:2903
void handle(ByteBuffer &&buf)
CZ_REQ_GUILDSTORAGE_LOG.
Definition: HandledPackets.cpp:2902
CZ_REQ_GUILDSTORAGE_LOG(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:26421
Main object for the aegis packet: CZ_REQ_GUILD_EMBLEM_IMG2.
Definition: HandledPackets.hpp:26502
CZ_REQ_GUILD_EMBLEM_IMG2(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:26504
virtual ~CZ_REQ_GUILD_EMBLEM_IMG2()
Definition: HandledPackets.hpp:26507
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:3760
void handle(ByteBuffer &&buf)
CZ_REQ_GUILD_EMBLEM_IMG2.
Definition: HandledPackets.cpp:3759
Main object for the aegis packet: CZ_REQ_GUILD_EMBLEM_IMG3.
Definition: HandledPackets.hpp:26539
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:3765
void handle(ByteBuffer &&buf)
CZ_REQ_GUILD_EMBLEM_IMG3.
Definition: HandledPackets.cpp:3764
CZ_REQ_GUILD_EMBLEM_IMG3(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:26541
virtual ~CZ_REQ_GUILD_EMBLEM_IMG3()
Definition: HandledPackets.hpp:26544
Main object for the aegis packet: CZ_REQ_GUILD_EMBLEM_IMG.
Definition: HandledPackets.hpp:26465
void handle(ByteBuffer &&buf)
CZ_REQ_GUILD_EMBLEM_IMG.
Definition: HandledPackets.cpp:1285
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:1286
virtual ~CZ_REQ_GUILD_EMBLEM_IMG()
Definition: HandledPackets.hpp:26470
CZ_REQ_GUILD_EMBLEM_IMG(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:26467
Main object for the aegis packet: CZ_REQ_GUILD_MEMBER_INFO.
Definition: HandledPackets.hpp:26585
virtual ~CZ_REQ_GUILD_MEMBER_INFO()
Definition: HandledPackets.hpp:26590
void handle(ByteBuffer &&buf)
CZ_REQ_GUILD_MEMBER_INFO.
Definition: HandledPackets.cpp:1290
CZ_REQ_GUILD_MEMBER_INFO(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:26587
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:1291
Main object for the aegis packet: CZ_REQ_GUILD_MENUINTERFACE.
Definition: HandledPackets.hpp:26678
void handle(ByteBuffer &&buf)
CZ_REQ_GUILD_MENUINTERFACE.
Definition: HandledPackets.cpp:1309
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:1315
virtual ~CZ_REQ_GUILD_MENUINTERFACE()
Definition: HandledPackets.hpp:26683
CZ_REQ_GUILD_MENUINTERFACE(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:26680
Main object for the aegis packet: CZ_REQ_GUILD_MENU.
Definition: HandledPackets.hpp:26631
void handle(ByteBuffer &&buf)
CZ_REQ_GUILD_MENU.
Definition: HandledPackets.cpp:1295
CZ_REQ_GUILD_MENU(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:26633
int _type
Definition: HandledPackets.hpp:26642
virtual ~CZ_REQ_GUILD_MENU()
Definition: HandledPackets.hpp:26636
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:1301
Main object for the aegis packet: CZ_REQ_GUILD_NAME.
Definition: HandledPackets.hpp:26718
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:3625
virtual ~CZ_REQ_GUILD_NAME()
Definition: HandledPackets.hpp:26723
CZ_REQ_GUILD_NAME(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:26720
void handle(ByteBuffer &&buf)
CZ_REQ_GUILD_NAME.
Definition: HandledPackets.cpp:3624
Main object for the aegis packet: CZ_REQ_HOSTILE_GUILD.
Definition: HandledPackets.hpp:26764
void handle(ByteBuffer &&buf)
CZ_REQ_HOSTILE_GUILD.
Definition: HandledPackets.cpp:1322
CZ_REQ_HOSTILE_GUILD(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:26766
virtual ~CZ_REQ_HOSTILE_GUILD()
Definition: HandledPackets.hpp:26769
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:1329
int _account_id
Definition: HandledPackets.hpp:26775
Main object for the aegis packet: CZ_REQ_ITEMCOMPOSITION_LIST.
Definition: HandledPackets.hpp:26859
virtual ~CZ_REQ_ITEMCOMPOSITION_LIST()
Definition: HandledPackets.hpp:26864
CZ_REQ_ITEMCOMPOSITION_LIST(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:26861
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:1356
void handle(ByteBuffer &&buf)
CZ_REQ_ITEMCOMPOSITION_LIST.
Definition: HandledPackets.cpp:1351
int16_t _card_index
Definition: HandledPackets.hpp:26870
Main object for the aegis packet: CZ_REQ_ITEMCOMPOSITION.
Definition: HandledPackets.hpp:26811
void handle(ByteBuffer &&buf)
CZ_REQ_ITEMCOMPOSITION.
Definition: HandledPackets.cpp:1337
int16_t _equip_index
Definition: HandledPackets.hpp:26823
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:1342
int16_t _card_index
Definition: HandledPackets.hpp:26822
virtual ~CZ_REQ_ITEMCOMPOSITION()
Definition: HandledPackets.hpp:26816
CZ_REQ_ITEMCOMPOSITION(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:26813
Main object for the aegis packet: CZ_REQ_ITEMIDENTIFY.
Definition: HandledPackets.hpp:26906
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:1369
CZ_REQ_ITEMIDENTIFY(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:26908
void handle(ByteBuffer &&buf)
CZ_REQ_ITEMIDENTIFY.
Definition: HandledPackets.cpp:1364
int16_t _inventory_index
Definition: HandledPackets.hpp:26917
virtual ~CZ_REQ_ITEMIDENTIFY()
Definition: HandledPackets.hpp:26911
Main object for the aegis packet: CZ_REQ_ITEMREPAIR2.
Definition: HandledPackets.hpp:26994
virtual ~CZ_REQ_ITEMREPAIR2()
Definition: HandledPackets.hpp:26999
CZ_REQ_ITEMREPAIR2(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:26996
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:3770
void handle(ByteBuffer &&buf)
CZ_REQ_ITEMREPAIR2.
Definition: HandledPackets.cpp:3769
Main object for the aegis packet: CZ_REQ_ITEMREPAIR.
Definition: HandledPackets.hpp:26953
void handle(ByteBuffer &&buf)
CZ_REQ_ITEMREPAIR.
Definition: HandledPackets.cpp:1377
CZ_REQ_ITEMREPAIR(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:26955
virtual ~CZ_REQ_ITEMREPAIR()
Definition: HandledPackets.hpp:26958
int8_t _refine
Definition: HandledPackets.hpp:26966
int16_t _item_id
Definition: HandledPackets.hpp:26965
int16_t _inventory_index
Definition: HandledPackets.hpp:26964
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:1382
int16_t _card_id[MAX_ITEM_SLOTS]
Definition: HandledPackets.hpp:26967
Main object for the aegis packet: CZ_REQ_ITEM_FROM_RODEX.
Definition: HandledPackets.hpp:27034
virtual ~CZ_REQ_ITEM_FROM_RODEX()
Definition: HandledPackets.hpp:27039
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:2993
void handle(ByteBuffer &&buf)
CZ_REQ_ITEM_FROM_RODEX.
Definition: HandledPackets.cpp:2992
CZ_REQ_ITEM_FROM_RODEX(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:27036
Main object for the aegis packet: CZ_REQ_JOIN_BABY.
Definition: HandledPackets.hpp:27080
CZ_REQ_JOIN_BABY(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:27082
void handle(ByteBuffer &&buf)
CZ_REQ_JOIN_BABY.
Definition: HandledPackets.cpp:1395
virtual ~CZ_REQ_JOIN_BABY()
Definition: HandledPackets.hpp:27085
int _account_id
Definition: HandledPackets.hpp:27091
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:1400
Main object for the aegis packet: CZ_REQ_JOIN_COUPLE.
Definition: HandledPackets.hpp:27127
void handle(ByteBuffer &&buf)
CZ_REQ_JOIN_COUPLE.
Definition: HandledPackets.cpp:1408
CZ_REQ_JOIN_COUPLE(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:27129
virtual ~CZ_REQ_JOIN_COUPLE()
Definition: HandledPackets.hpp:27132
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:1409
Main object for the aegis packet: CZ_REQ_JOIN_GROUP.
Definition: HandledPackets.hpp:27173
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:1419
CZ_REQ_JOIN_GROUP(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:27175
void handle(ByteBuffer &&buf)
CZ_REQ_JOIN_GROUP.
Definition: HandledPackets.cpp:1413
int _account_id
Definition: HandledPackets.hpp:27184
virtual ~CZ_REQ_JOIN_GROUP()
Definition: HandledPackets.hpp:27178
Main object for the aegis packet: CZ_REQ_JOIN_GUILD2.
Definition: HandledPackets.hpp:27261
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:3616
void handle(ByteBuffer &&buf)
CZ_REQ_JOIN_GUILD2.
Definition: HandledPackets.cpp:3610
char _name[MAX_UNIT_NAME_LENGTH]
Definition: HandledPackets.hpp:27272
virtual ~CZ_REQ_JOIN_GUILD2()
Definition: HandledPackets.hpp:27266
CZ_REQ_JOIN_GUILD2(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:27263
Main object for the aegis packet: CZ_REQ_JOIN_GUILD.
Definition: HandledPackets.hpp:27220
virtual ~CZ_REQ_JOIN_GUILD()
Definition: HandledPackets.hpp:27225
int _inviter_account_id
Definition: HandledPackets.hpp:27231
CZ_REQ_JOIN_GUILD(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:27222
int _inviter_char_id
Definition: HandledPackets.hpp:27231
void handle(ByteBuffer &&buf)
CZ_REQ_JOIN_GUILD.
Definition: HandledPackets.cpp:1427
int _account_id
Definition: HandledPackets.hpp:27231
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:1433
Main object for the aegis packet: CZ_REQ_LEAVE_GROUP.
Definition: HandledPackets.hpp:27308
CZ_REQ_LEAVE_GROUP(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:27310
virtual ~CZ_REQ_LEAVE_GROUP()
Definition: HandledPackets.hpp:27313
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:1444
void handle(ByteBuffer &&buf)
CZ_REQ_LEAVE_GROUP.
Definition: HandledPackets.cpp:1443
Main object for the aegis packet: CZ_REQ_LEAVE_GUILD.
Definition: HandledPackets.hpp:27354
virtual ~CZ_REQ_LEAVE_GUILD()
Definition: HandledPackets.hpp:27359
char _reason[MAX_GUILD_LEAVE_REASON_STR_LENGTH]
Definition: HandledPackets.hpp:27368
CZ_REQ_LEAVE_GUILD(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:27356
int _char_id
Definition: HandledPackets.hpp:27367
void handle(ByteBuffer &&buf)
CZ_REQ_LEAVE_GUILD.
Definition: HandledPackets.cpp:1448
int _guild_id
Definition: HandledPackets.hpp:27365
int _account_id
Definition: HandledPackets.hpp:27366
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:1454
Main object for the aegis packet: CZ_REQ_MAIL_RETURN.
Definition: HandledPackets.hpp:27404
char _name[MAX_UNIT_NAME_LENGTH]
Definition: HandledPackets.hpp:27416
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:2182
virtual ~CZ_REQ_MAIL_RETURN()
Definition: HandledPackets.hpp:27409
int _mail_id
Definition: HandledPackets.hpp:27415
CZ_REQ_MAIL_RETURN(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:27406
void handle(ByteBuffer &&buf)
CZ_REQ_MAIL_RETURN.
Definition: HandledPackets.cpp:2177
Main object for the aegis packet: CZ_REQ_MAKE_GUILD.
Definition: HandledPackets.hpp:27452
char _guild_name[MAX_GUILD_NAME_LENGTH]
Definition: HandledPackets.hpp:27464
virtual ~CZ_REQ_MAKE_GUILD()
Definition: HandledPackets.hpp:27457
CZ_REQ_MAKE_GUILD(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:27454
void handle(ByteBuffer &&buf)
CZ_REQ_MAKE_GUILD.
Definition: HandledPackets.cpp:1465
int _char_id
Definition: HandledPackets.hpp:27463
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:1471
Main object for the aegis packet: CZ_REQ_MAKINGARROW.
Definition: HandledPackets.hpp:27500
virtual ~CZ_REQ_MAKINGARROW()
Definition: HandledPackets.hpp:27505
void handle(ByteBuffer &&buf)
CZ_REQ_MAKINGARROW.
Definition: HandledPackets.cpp:1480
int16_t _item_id
Definition: HandledPackets.hpp:27511
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:1485
CZ_REQ_MAKINGARROW(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:27502
Main object for the aegis packet: CZ_REQ_MAKINGITEM.
Definition: HandledPackets.hpp:27547
int16_t _type
Definition: HandledPackets.hpp:27558
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:1840
virtual ~CZ_REQ_MAKINGITEM()
Definition: HandledPackets.hpp:27552
CZ_REQ_MAKINGITEM(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:27549
int16_t _item_id
Definition: HandledPackets.hpp:27559
void handle(ByteBuffer &&buf)
CZ_REQ_MAKINGITEM.
Definition: HandledPackets.cpp:1835
Main object for the aegis packet: CZ_REQ_MERGE_ITEM.
Definition: HandledPackets.hpp:27589
CZ_REQ_MERGE_ITEM(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:27591
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:3635
void handle(ByteBuffer &&buf)
CZ_REQ_MERGE_ITEM.
Definition: HandledPackets.cpp:3634
virtual ~CZ_REQ_MERGE_ITEM()
Definition: HandledPackets.hpp:27594
Main object for the aegis packet: CZ_REQ_MOVE_GUILD_AGIT.
Definition: HandledPackets.hpp:27626
CZ_REQ_MOVE_GUILD_AGIT(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:27628
void handle(ByteBuffer &&buf)
CZ_REQ_MOVE_GUILD_AGIT.
Definition: HandledPackets.cpp:3774
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:3775
virtual ~CZ_REQ_MOVE_GUILD_AGIT()
Definition: HandledPackets.hpp:27631
Main object for the aegis packet: CZ_REQ_NEXT_RODEX.
Definition: HandledPackets.hpp:27666
void handle(ByteBuffer &&buf)
CZ_REQ_NEXT_RODEX.
Definition: HandledPackets.cpp:2942
virtual ~CZ_REQ_NEXT_RODEX()
Definition: HandledPackets.hpp:27671
CZ_REQ_NEXT_RODEX(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:27668
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:2943
Main object for the aegis packet: CZ_REQ_NEXT_SCRIPT.
Definition: HandledPackets.hpp:27712
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:1498
void handle(ByteBuffer &&buf)
CZ_REQ_NEXT_SCRIPT.
Definition: HandledPackets.cpp:1493
CZ_REQ_NEXT_SCRIPT(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:27714
int _npc_guid
Definition: HandledPackets.hpp:27723
virtual ~CZ_REQ_NEXT_SCRIPT()
Definition: HandledPackets.hpp:27717
Main object for the aegis packet: CZ_REQ_ONECLICK_ITEMIDENTIFY.
Definition: HandledPackets.hpp:27753
CZ_REQ_ONECLICK_ITEMIDENTIFY(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:27755
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:3115
int16_t _inventory_index
Definition: HandledPackets.hpp:27764
virtual ~CZ_REQ_ONECLICK_ITEMIDENTIFY()
Definition: HandledPackets.hpp:27758
void handle(ByteBuffer &&buf)
CZ_REQ_ONECLICK_ITEMIDENTIFY.
Definition: HandledPackets.cpp:3110
Main object for the aegis packet: CZ_REQ_OPENSTORE2.
Definition: HandledPackets.hpp:27849
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:1534
virtual ~CZ_REQ_OPENSTORE2()
Definition: HandledPackets.hpp:27854
std::vector< cz_req_openstore_itemlist > _items
Definition: HandledPackets.hpp:27863
CZ_REQ_OPENSTORE2(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:27851
void handle(ByteBuffer &&buf)
CZ_REQ_OPENSTORE2.
Definition: HandledPackets.cpp:1527
char _shop_name[MAX_VENDING_SHOP_NAME_LENGTH]
Definition: HandledPackets.hpp:27861
int8_t _result
Definition: HandledPackets.hpp:27862
int16_t _packet_length
Definition: HandledPackets.hpp:27860
Main object for the aegis packet: CZ_REQ_OPENSTORE.
Definition: HandledPackets.hpp:27800
std::vector< cz_req_openstore_itemlist > _items
Definition: HandledPackets.hpp:27813
void handle(ByteBuffer &&buf)
CZ_REQ_OPENSTORE.
Definition: HandledPackets.cpp:1506
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:1511
virtual ~CZ_REQ_OPENSTORE()
Definition: HandledPackets.hpp:27805
char _shop_name[MAX_VENDING_SHOP_NAME_LENGTH]
Definition: HandledPackets.hpp:27812
CZ_REQ_OPENSTORE(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:27802
int16_t _packet_length
Definition: HandledPackets.hpp:27811
Main object for the aegis packet: CZ_REQ_OPEN_BANKING.
Definition: HandledPackets.hpp:27893
CZ_REQ_OPEN_BANKING(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:27895
void handle(ByteBuffer &&buf)
CZ_REQ_OPEN_BANKING.
Definition: HandledPackets.cpp:2844
virtual ~CZ_REQ_OPEN_BANKING()
Definition: HandledPackets.hpp:27898
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:2845
Main object for the aegis packet: CZ_REQ_OPEN_BUYING_STORE.
Definition: HandledPackets.hpp:28585
std::vector< cz_req_open_buying_store_itemlist > _items
Definition: HandledPackets.hpp:28600
virtual ~CZ_REQ_OPEN_BUYING_STORE()
Definition: HandledPackets.hpp:28590
char _store_name[MAX_VENDING_SHOP_NAME_LENGTH]
Definition: HandledPackets.hpp:28599
int8_t _result
Definition: HandledPackets.hpp:28598
int16_t _packet_length
Definition: HandledPackets.hpp:28596
void handle(ByteBuffer &&buf)
CZ_REQ_OPEN_BUYING_STORE.
Definition: HandledPackets.cpp:2653
int _zeny_limit
Definition: HandledPackets.hpp:28597
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:2659
CZ_REQ_OPEN_BUYING_STORE(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:28587
Main object for the aegis packet: CZ_REQ_OPEN_GUILD_STORAGE.
Definition: HandledPackets.hpp:28630
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:2883
CZ_REQ_OPEN_GUILD_STORAGE(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:28632
virtual ~CZ_REQ_OPEN_GUILD_STORAGE()
Definition: HandledPackets.hpp:28635
void handle(ByteBuffer &&buf)
CZ_REQ_OPEN_GUILD_STORAGE.
Definition: HandledPackets.cpp:2882
Main object for the aegis packet: CZ_REQ_OPEN_MEMBER_INFO.
Definition: HandledPackets.hpp:28676
void handle(ByteBuffer &&buf)
CZ_REQ_OPEN_MEMBER_INFO.
Definition: HandledPackets.cpp:1551
CZ_REQ_OPEN_MEMBER_INFO(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:28678
virtual ~CZ_REQ_OPEN_MEMBER_INFO()
Definition: HandledPackets.hpp:28681
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:1552
Main object for the aegis packet: CZ_REQ_OPEN_ROULETTE.
Definition: HandledPackets.hpp:28716
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:3056
virtual ~CZ_REQ_OPEN_ROULETTE()
Definition: HandledPackets.hpp:28721
CZ_REQ_OPEN_ROULETTE(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:28718
void handle(ByteBuffer &&buf)
CZ_REQ_OPEN_ROULETTE.
Definition: HandledPackets.cpp:3055
Main object for the aegis packet: CZ_REQ_OPEN_UI.
Definition: HandledPackets.hpp:28756
void handle(ByteBuffer &&buf)
CZ_REQ_OPEN_UI.
Definition: HandledPackets.cpp:3137
virtual ~CZ_REQ_OPEN_UI()
Definition: HandledPackets.hpp:28761
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:3138
CZ_REQ_OPEN_UI(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:28758
Main object for the aegis packet: CZ_REQ_OPEN_WRITE_RODEX.
Definition: HandledPackets.hpp:28796
virtual ~CZ_REQ_OPEN_WRITE_RODEX()
Definition: HandledPackets.hpp:28801
CZ_REQ_OPEN_WRITE_RODEX(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:28798
void handle(ByteBuffer &&buf)
CZ_REQ_OPEN_WRITE_RODEX.
Definition: HandledPackets.cpp:3007
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:3008
Main object for the aegis packet: CZ_REQ_PARTY_NAME.
Definition: HandledPackets.hpp:28836
void handle(ByteBuffer &&buf)
CZ_REQ_PARTY_NAME.
Definition: HandledPackets.cpp:3629
virtual ~CZ_REQ_PARTY_NAME()
Definition: HandledPackets.hpp:28841
CZ_REQ_PARTY_NAME(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:28838
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:3630
Main object for the aegis packet: CZ_REQ_PLAYER_AID_IN_RANGE.
Definition: HandledPackets.hpp:28873
virtual ~CZ_REQ_PLAYER_AID_IN_RANGE()
Definition: HandledPackets.hpp:28878
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:3780
void handle(ByteBuffer &&buf)
CZ_REQ_PLAYER_AID_IN_RANGE.
Definition: HandledPackets.cpp:3779
CZ_REQ_PLAYER_AID_IN_RANGE(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:28875
Main object for the aegis packet: CZ_REQ_PREVIEW_MACRO_DETECTOR.
Definition: HandledPackets.hpp:28910
void handle(ByteBuffer &&buf)
CZ_REQ_PREVIEW_MACRO_DETECTOR.
Definition: HandledPackets.cpp:3784
virtual ~CZ_REQ_PREVIEW_MACRO_DETECTOR()
Definition: HandledPackets.hpp:28915
CZ_REQ_PREVIEW_MACRO_DETECTOR(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:28912
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:3785
Main object for the aegis packet: CZ_REQ_PVPPOINT.
Definition: HandledPackets.hpp:28950
CZ_REQ_PVPPOINT(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:28952
int _character_id
Definition: HandledPackets.hpp:28961
virtual ~CZ_REQ_PVPPOINT()
Definition: HandledPackets.hpp:28955
void handle(ByteBuffer &&buf)
CZ_REQ_PVPPOINT.
Definition: HandledPackets.cpp:1761
int _account_id
Definition: HandledPackets.hpp:28962
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:1766
Main object for the aegis packet: CZ_REQ_RANDOM_COMBINE_ITEM.
Definition: HandledPackets.hpp:28989
virtual ~CZ_REQ_RANDOM_COMBINE_ITEM()
Definition: HandledPackets.hpp:28994
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:3790
void handle(ByteBuffer &&buf)
CZ_REQ_RANDOM_COMBINE_ITEM.
Definition: HandledPackets.cpp:3789
CZ_REQ_RANDOM_COMBINE_ITEM(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:28991
Main object for the aegis packet: CZ_REQ_RANDOM_UPGRADE_ITEM.
Definition: HandledPackets.hpp:29026
virtual ~CZ_REQ_RANDOM_UPGRADE_ITEM()
Definition: HandledPackets.hpp:29031
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:3795
CZ_REQ_RANDOM_UPGRADE_ITEM(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:29028
void handle(ByteBuffer &&buf)
CZ_REQ_RANDOM_UPGRADE_ITEM.
Definition: HandledPackets.cpp:3794
Main object for the aegis packet: CZ_REQ_RANKING.
Definition: HandledPackets.hpp:29066
int16_t _type
Definition: HandledPackets.hpp:29077
CZ_REQ_RANKING(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:29068
void handle(ByteBuffer &&buf)
CZ_REQ_RANKING.
Definition: HandledPackets.cpp:3592
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:3597
virtual ~CZ_REQ_RANKING()
Definition: HandledPackets.hpp:29071
Main object for the aegis packet: CZ_REQ_READ_RODEX.
Definition: HandledPackets.hpp:29107
CZ_REQ_READ_RODEX(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:29109
virtual ~CZ_REQ_READ_RODEX()
Definition: HandledPackets.hpp:29112
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:2953
void handle(ByteBuffer &&buf)
CZ_REQ_READ_RODEX.
Definition: HandledPackets.cpp:2952
Main object for the aegis packet: CZ_REQ_REFRESH_RODEX.
Definition: HandledPackets.hpp:29156
virtual ~CZ_REQ_REFRESH_RODEX()
Definition: HandledPackets.hpp:29161
CZ_REQ_REFRESH_RODEX(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:29158
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:2948
void handle(ByteBuffer &&buf)
CZ_REQ_REFRESH_RODEX.
Definition: HandledPackets.cpp:2947
Main object for the aegis packet: CZ_REQ_REMAINTIME.
Definition: HandledPackets.hpp:29202
virtual ~CZ_REQ_REMAINTIME()
Definition: HandledPackets.hpp:29207
CZ_REQ_REMAINTIME(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:29204
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:1557
void handle(ByteBuffer &&buf)
CZ_REQ_REMAINTIME.
Definition: HandledPackets.cpp:1556
Main object for the aegis packet: CZ_REQ_REMOVE_BARGAIN_SALE_ITEM.
Definition: HandledPackets.hpp:29242
virtual ~CZ_REQ_REMOVE_BARGAIN_SALE_ITEM()
Definition: HandledPackets.hpp:29247
CZ_REQ_REMOVE_BARGAIN_SALE_ITEM(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:29244
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:2830
void handle(ByteBuffer &&buf)
CZ_REQ_REMOVE_BARGAIN_SALE_ITEM.
Definition: HandledPackets.cpp:2829
Main object for the aegis packet: CZ_REQ_REMOVE_RODEX_ITEM.
Definition: HandledPackets.hpp:29282
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:3013
virtual ~CZ_REQ_REMOVE_RODEX_ITEM()
Definition: HandledPackets.hpp:29287
CZ_REQ_REMOVE_RODEX_ITEM(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:29284
void handle(ByteBuffer &&buf)
CZ_REQ_REMOVE_RODEX_ITEM.
Definition: HandledPackets.cpp:3012
Main object for the aegis packet: CZ_REQ_ROLE_CHANGE.
Definition: HandledPackets.hpp:29328
virtual ~CZ_REQ_ROLE_CHANGE()
Definition: HandledPackets.hpp:29333
int _role
Definition: HandledPackets.hpp:29339
CZ_REQ_ROLE_CHANGE(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:29330
char _name[MAX_UNIT_NAME_LENGTH]
Definition: HandledPackets.hpp:29340
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:1567
void handle(ByteBuffer &&buf)
CZ_REQ_ROLE_CHANGE.
Definition: HandledPackets.cpp:1561
Main object for the aegis packet: CZ_REQ_ROULETTE_INFO.
Definition: HandledPackets.hpp:29370
CZ_REQ_ROULETTE_INFO(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:29372
virtual ~CZ_REQ_ROULETTE_INFO()
Definition: HandledPackets.hpp:29375
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:3036
void handle(ByteBuffer &&buf)
CZ_REQ_ROULETTE_INFO.
Definition: HandledPackets.cpp:3035
Main object for the aegis packet: CZ_REQ_SCHEDULER_CASHITEM.
Definition: HandledPackets.hpp:29410
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:3588
CZ_REQ_SCHEDULER_CASHITEM(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:29412
virtual ~CZ_REQ_SCHEDULER_CASHITEM()
Definition: HandledPackets.hpp:29415
void handle(ByteBuffer &&buf)
CZ_REQ_SCHEDULER_CASHITEM.
Definition: HandledPackets.cpp:3587
Main object for the aegis packet: CZ_REQ_SEND_RODEX.
Definition: HandledPackets.hpp:29459
virtual ~CZ_REQ_SEND_RODEX()
Definition: HandledPackets.hpp:29464
CZ_REQ_SEND_RODEX(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:29461
void handle(ByteBuffer &&buf)
CZ_REQ_SEND_RODEX.
Definition: HandledPackets.cpp:2957
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:2958
Main object for the aegis packet: CZ_REQ_SE_CASH_TAB_CODE.
Definition: HandledPackets.hpp:29499
void handle(ByteBuffer &&buf)
CZ_REQ_SE_CASH_TAB_CODE.
Definition: HandledPackets.cpp:3427
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:3428
CZ_REQ_SE_CASH_TAB_CODE(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:29501
virtual ~CZ_REQ_SE_CASH_TAB_CODE()
Definition: HandledPackets.hpp:29504
Main object for the aegis packet: CZ_REQ_STATUS_GM.
Definition: HandledPackets.hpp:29592
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:1793
void handle(ByteBuffer &&buf)
CZ_REQ_STATUS_GM.
Definition: HandledPackets.cpp:1788
CZ_REQ_STATUS_GM(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:29594
char _name[MAX_UNIT_NAME_LENGTH]
Definition: HandledPackets.hpp:29603
virtual ~CZ_REQ_STATUS_GM()
Definition: HandledPackets.hpp:29597
Main object for the aegis packet: CZ_REQ_STATUS.
Definition: HandledPackets.hpp:29545
CZ_REQ_STATUS(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:29547
virtual ~CZ_REQ_STATUS()
Definition: HandledPackets.hpp:29550
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:1577
char _name[MAX_UNIT_NAME_LENGTH]
Definition: HandledPackets.hpp:29556
void handle(ByteBuffer &&buf)
CZ_REQ_STATUS.
Definition: HandledPackets.cpp:1576
Main object for the aegis packet: CZ_REQ_STYLE_CHANGE2.
Definition: HandledPackets.hpp:29673
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:3680
void handle(ByteBuffer &&buf)
CZ_REQ_STYLE_CHANGE2.
Definition: HandledPackets.cpp:3679
CZ_REQ_STYLE_CHANGE2(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:29675
virtual ~CZ_REQ_STYLE_CHANGE2()
Definition: HandledPackets.hpp:29678
Main object for the aegis packet: CZ_REQ_STYLE_CHANGE.
Definition: HandledPackets.hpp:29633
void handle(ByteBuffer &&buf)
CZ_REQ_STYLE_CHANGE.
Definition: HandledPackets.cpp:3674
CZ_REQ_STYLE_CHANGE(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:29635
virtual ~CZ_REQ_STYLE_CHANGE()
Definition: HandledPackets.hpp:29638
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:3675
Main object for the aegis packet: CZ_REQ_TAKEOFF_EQUIP_ALL.
Definition: HandledPackets.hpp:29756
void handle(ByteBuffer &&buf)
CZ_REQ_TAKEOFF_EQUIP_ALL.
Definition: HandledPackets.cpp:3859
CZ_REQ_TAKEOFF_EQUIP_ALL(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:29758
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:3860
virtual ~CZ_REQ_TAKEOFF_EQUIP_ALL()
Definition: HandledPackets.hpp:29761
Main object for the aegis packet: CZ_REQ_TAKEOFF_EQUIP.
Definition: HandledPackets.hpp:29719
virtual ~CZ_REQ_TAKEOFF_EQUIP()
Definition: HandledPackets.hpp:29724
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:1587
CZ_REQ_TAKEOFF_EQUIP(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:29721
void handle(ByteBuffer &&buf)
CZ_REQ_TAKEOFF_EQUIP.
Definition: HandledPackets.cpp:1581
uint16_t _inventory_index
Definition: HandledPackets.hpp:29730
Main object for the aegis packet: CZ_REQ_TRADE_BUYING_STORE.
Definition: HandledPackets.hpp:30488
std::vector< cz_req_trade_buying_store_itemlist > _items
Definition: HandledPackets.hpp:30502
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:2714
int16_t _packet_length
Definition: HandledPackets.hpp:30499
void handle(ByteBuffer &&buf)
CZ_REQ_TRADE_BUYING_STORE.
Definition: HandledPackets.cpp:2709
int _store_id
Definition: HandledPackets.hpp:30501
virtual ~CZ_REQ_TRADE_BUYING_STORE()
Definition: HandledPackets.hpp:30493
int _account_id
Definition: HandledPackets.hpp:30500
CZ_REQ_TRADE_BUYING_STORE(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:30490
Main object for the aegis packet: CZ_REQ_UPLOAD_MACRO_DETECTOR.
Definition: HandledPackets.hpp:30529
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:3800
virtual ~CZ_REQ_UPLOAD_MACRO_DETECTOR()
Definition: HandledPackets.hpp:30534
CZ_REQ_UPLOAD_MACRO_DETECTOR(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:30531
void handle(ByteBuffer &&buf)
CZ_REQ_UPLOAD_MACRO_DETECTOR.
Definition: HandledPackets.cpp:3799
Main object for the aegis packet: CZ_REQ_USER_COUNT.
Definition: HandledPackets.hpp:30575
virtual ~CZ_REQ_USER_COUNT()
Definition: HandledPackets.hpp:30580
CZ_REQ_USER_COUNT(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:30577
void handle(ByteBuffer &&buf)
CZ_REQ_USER_COUNT.
Definition: HandledPackets.cpp:1595
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:1596
Main object for the aegis packet: CZ_REQ_WEAPONREFINE.
Definition: HandledPackets.hpp:30621
void handle(ByteBuffer &&buf)
CZ_REQ_WEAPONREFINE.
Definition: HandledPackets.cpp:202
virtual ~CZ_REQ_WEAPONREFINE()
Definition: HandledPackets.hpp:30626
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:207
CZ_REQ_WEAPONREFINE(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:30623
int _inventory_index
Definition: HandledPackets.hpp:30632
Main object for the aegis packet: CZ_REQ_WEAR_EQUIP_V5.
Definition: HandledPackets.hpp:30710
int16_t _inventory_index
Definition: HandledPackets.hpp:30721
virtual ~CZ_REQ_WEAR_EQUIP_V5()
Definition: HandledPackets.hpp:30715
void handle(ByteBuffer &&buf)
CZ_REQ_WEAR_EQUIP_V5.
Definition: HandledPackets.cpp:2789
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:2795
CZ_REQ_WEAR_EQUIP_V5(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:30712
int32_t _equip_location_mask
Definition: HandledPackets.hpp:30722
Main object for the aegis packet: CZ_REQ_WEAR_EQUIP.
Definition: HandledPackets.hpp:30668
CZ_REQ_WEAR_EQUIP(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:30670
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:1606
virtual ~CZ_REQ_WEAR_EQUIP()
Definition: HandledPackets.hpp:30673
uint16_t _inventory_index
Definition: HandledPackets.hpp:30679
uint16_t _equip_location_mask
Definition: HandledPackets.hpp:30680
void handle(ByteBuffer &&buf)
CZ_REQ_WEAR_EQUIP.
Definition: HandledPackets.cpp:1600
Main object for the aegis packet: CZ_REQ_WHISPER_LIST.
Definition: HandledPackets.hpp:30758
virtual ~CZ_REQ_WHISPER_LIST()
Definition: HandledPackets.hpp:30763
void handle(ByteBuffer &&buf)
CZ_REQ_WHISPER_LIST.
Definition: HandledPackets.cpp:1615
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:1616
CZ_REQ_WHISPER_LIST(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:30760
Main object for the aegis packet: CZ_REQ_ZENY_FROM_RODEX.
Definition: HandledPackets.hpp:30798
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:2998
virtual ~CZ_REQ_ZENY_FROM_RODEX()
Definition: HandledPackets.hpp:30803
void handle(ByteBuffer &&buf)
CZ_REQ_ZENY_FROM_RODEX.
Definition: HandledPackets.cpp:2997
CZ_REQ_ZENY_FROM_RODEX(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:30800
Main object for the aegis packet: CZ_RESET.
Definition: HandledPackets.hpp:30844
CZ_RESET(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:30846
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:1621
void handle(ByteBuffer &&buf)
CZ_RESET.
Definition: HandledPackets.cpp:1620
virtual ~CZ_RESET()
Definition: HandledPackets.hpp:30849
Main object for the aegis packet: CZ_RESTART.
Definition: HandledPackets.hpp:30890
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:1631
CZ_RESTART(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:30892
void handle(ByteBuffer &&buf)
CZ_RESTART.
Definition: HandledPackets.cpp:1625
uint8_t _type
Definition: HandledPackets.hpp:30901
virtual ~CZ_RESTART()
Definition: HandledPackets.hpp:30895
Main object for the aegis packet: CZ_SEARCH_STORE_INFO_NEXT_PAGE.
Definition: HandledPackets.hpp:32052
void handle(ByteBuffer &&buf)
CZ_SEARCH_STORE_INFO_NEXT_PAGE.
Definition: HandledPackets.cpp:2736
virtual ~CZ_SEARCH_STORE_INFO_NEXT_PAGE()
Definition: HandledPackets.hpp:32057
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:2737
CZ_SEARCH_STORE_INFO_NEXT_PAGE(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:32054
Main object for the aegis packet: CZ_SEARCH_STORE_INFO.
Definition: HandledPackets.hpp:31336
void handle(ByteBuffer &&buf)
CZ_SEARCH_STORE_INFO.
Definition: HandledPackets.cpp:2731
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:2732
virtual ~CZ_SEARCH_STORE_INFO()
Definition: HandledPackets.hpp:31341
CZ_SEARCH_STORE_INFO(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:31338
Main object for the aegis packet: CZ_SEEK_PARTY_MEMBER.
Definition: HandledPackets.hpp:32138
virtual ~CZ_SEEK_PARTY_MEMBER()
Definition: HandledPackets.hpp:32143
void handle(ByteBuffer &&buf)
CZ_SEEK_PARTY_MEMBER.
Definition: HandledPackets.cpp:3247
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:3248
CZ_SEEK_PARTY_MEMBER(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:32140
Main object for the aegis packet: CZ_SEEK_PARTY.
Definition: HandledPackets.hpp:32095
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:3243
virtual ~CZ_SEEK_PARTY()
Definition: HandledPackets.hpp:32100
void handle(ByteBuffer &&buf)
CZ_SEEK_PARTY.
Definition: HandledPackets.cpp:3242
CZ_SEEK_PARTY(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:32097
Main object for the aegis packet: CZ_SELECTAUTOSPELL.
Definition: HandledPackets.hpp:32184
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:1640
void handle(ByteBuffer &&buf)
CZ_SELECTAUTOSPELL.
Definition: HandledPackets.cpp:1639
CZ_SELECTAUTOSPELL(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:32186
virtual ~CZ_SELECTAUTOSPELL()
Definition: HandledPackets.hpp:32189
Main object for the aegis packet: CZ_SELECTCART.
Definition: HandledPackets.hpp:32224
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:3606
virtual ~CZ_SELECTCART()
Definition: HandledPackets.hpp:32229
CZ_SELECTCART(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:32226
void handle(ByteBuffer &&buf)
CZ_SELECTCART.
Definition: HandledPackets.cpp:3605
Main object for the aegis packet: CZ_SELECT_PETEGG.
Definition: HandledPackets.hpp:32270
void handle(ByteBuffer &&buf)
CZ_SELECT_PETEGG.
Definition: HandledPackets.cpp:1644
CZ_SELECT_PETEGG(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:32272
virtual ~CZ_SELECT_PETEGG()
Definition: HandledPackets.hpp:32275
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:1645
Main object for the aegis packet: CZ_SELECT_WARPPOINT.
Definition: HandledPackets.hpp:32316
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:1650
CZ_SELECT_WARPPOINT(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:32318
void handle(ByteBuffer &&buf)
CZ_SELECT_WARPPOINT.
Definition: HandledPackets.cpp:1649
virtual ~CZ_SELECT_WARPPOINT()
Definition: HandledPackets.hpp:32321
Main object for the aegis packet: CZ_SETTING_WHISPER_PC.
Definition: HandledPackets.hpp:32362
CZ_SETTING_WHISPER_PC(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:32364
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:1655
virtual ~CZ_SETTING_WHISPER_PC()
Definition: HandledPackets.hpp:32367
void handle(ByteBuffer &&buf)
CZ_SETTING_WHISPER_PC.
Definition: HandledPackets.cpp:1654
Main object for the aegis packet: CZ_SETTING_WHISPER_STATE.
Definition: HandledPackets.hpp:32408
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:1660
CZ_SETTING_WHISPER_STATE(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:32410
void handle(ByteBuffer &&buf)
CZ_SETTING_WHISPER_STATE.
Definition: HandledPackets.cpp:1659
virtual ~CZ_SETTING_WHISPER_STATE()
Definition: HandledPackets.hpp:32413
Main object for the aegis packet: CZ_SE_CASHSHOP_CLOSE.
Definition: HandledPackets.hpp:32448
CZ_SE_CASHSHOP_CLOSE(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:32450
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:3443
void handle(ByteBuffer &&buf)
CZ_SE_CASHSHOP_CLOSE.
Definition: HandledPackets.cpp:3442
virtual ~CZ_SE_CASHSHOP_CLOSE()
Definition: HandledPackets.hpp:32453
Main object for the aegis packet: CZ_SE_CASHSHOP_OPEN2.
Definition: HandledPackets.hpp:32525
void handle(ByteBuffer &&buf)
CZ_SE_CASHSHOP_OPEN2.
Definition: HandledPackets.cpp:3804
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:3805
CZ_SE_CASHSHOP_OPEN2(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:32527
virtual ~CZ_SE_CASHSHOP_OPEN2()
Definition: HandledPackets.hpp:32530
Main object for the aegis packet: CZ_SE_CASHSHOP_OPEN.
Definition: HandledPackets.hpp:32488
void handle(ByteBuffer &&buf)
CZ_SE_CASHSHOP_OPEN.
Definition: HandledPackets.cpp:3432
CZ_SE_CASHSHOP_OPEN(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:32490
virtual ~CZ_SE_CASHSHOP_OPEN()
Definition: HandledPackets.hpp:32493
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:3433
Main object for the aegis packet: CZ_SE_PC_BUY_CASHITEM_LIST.
Definition: HandledPackets.hpp:32565
virtual ~CZ_SE_PC_BUY_CASHITEM_LIST()
Definition: HandledPackets.hpp:32570
void handle(ByteBuffer &&buf)
CZ_SE_PC_BUY_CASHITEM_LIST.
Definition: HandledPackets.cpp:3437
CZ_SE_PC_BUY_CASHITEM_LIST(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:32567
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:3438
Main object for the aegis packet: CZ_SHIFT.
Definition: HandledPackets.hpp:32611
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:1665
void handle(ByteBuffer &&buf)
CZ_SHIFT.
Definition: HandledPackets.cpp:1664
CZ_SHIFT(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:32613
virtual ~CZ_SHIFT()
Definition: HandledPackets.hpp:32616
Main object for the aegis packet: CZ_SHORTCUTKEYBAR_ROTATE.
Definition: HandledPackets.hpp:32660
virtual ~CZ_SHORTCUTKEYBAR_ROTATE()
Definition: HandledPackets.hpp:32665
void handle(ByteBuffer &&buf)
CZ_SHORTCUTKEYBAR_ROTATE.
Definition: HandledPackets.cpp:2982
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:2983
CZ_SHORTCUTKEYBAR_ROTATE(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:32662
Main object for the aegis packet: CZ_SHORTCUT_KEY_CHANGE.
Definition: HandledPackets.hpp:32715
virtual ~CZ_SHORTCUT_KEY_CHANGE()
Definition: HandledPackets.hpp:32720
CZ_SHORTCUT_KEY_CHANGE(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:32717
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:2339
void handle(ByteBuffer &&buf)
CZ_SHORTCUT_KEY_CHANGE.
Definition: HandledPackets.cpp:2338
Main object for the aegis packet: CZ_SIMPLE_BUY_CASH_POINT_ITEM.
Definition: HandledPackets.hpp:32758
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:3225
CZ_SIMPLE_BUY_CASH_POINT_ITEM(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:32760
void handle(ByteBuffer &&buf)
CZ_SIMPLE_BUY_CASH_POINT_ITEM.
Definition: HandledPackets.cpp:3224
virtual ~CZ_SIMPLE_BUY_CASH_POINT_ITEM()
Definition: HandledPackets.hpp:32763
Main object for the aegis packet: CZ_SIMPLE_CASH_BTNSHOW.
Definition: HandledPackets.hpp:32798
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:3352
CZ_SIMPLE_CASH_BTNSHOW(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:32800
virtual ~CZ_SIMPLE_CASH_BTNSHOW()
Definition: HandledPackets.hpp:32803
void handle(ByteBuffer &&buf)
CZ_SIMPLE_CASH_BTNSHOW.
Definition: HandledPackets.cpp:3351
Main object for the aegis packet: CZ_SKILL_SELECT_RESPONSE.
Definition: HandledPackets.hpp:32841
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:3220
CZ_SKILL_SELECT_RESPONSE(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:32843
virtual ~CZ_SKILL_SELECT_RESPONSE()
Definition: HandledPackets.hpp:32846
void handle(ByteBuffer &&buf)
CZ_SKILL_SELECT_RESPONSE.
Definition: HandledPackets.cpp:3219
Main object for the aegis packet: CZ_SRPACKETR2_START.
Definition: HandledPackets.hpp:32873
void handle(ByteBuffer &&buf)
CZ_SRPACKETR2_START.
Definition: HandledPackets.cpp:2277
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:2278
CZ_SRPACKETR2_START(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:32875
virtual ~CZ_SRPACKETR2_START()
Definition: HandledPackets.hpp:32878
Main object for the aegis packet: CZ_SRPACKET_START.
Definition: HandledPackets.hpp:32905
CZ_SRPACKET_START(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:32907
void handle(ByteBuffer &&buf)
CZ_SRPACKET_START.
Definition: HandledPackets.cpp:2247
virtual ~CZ_SRPACKET_START()
Definition: HandledPackets.hpp:32910
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:2248
Main object for the aegis packet: CZ_SSILIST_ITEM_CLICK.
Definition: HandledPackets.hpp:33599
CZ_SSILIST_ITEM_CLICK(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:33601
void handle(ByteBuffer &&buf)
CZ_SSILIST_ITEM_CLICK.
Definition: HandledPackets.cpp:2741
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:2742
virtual ~CZ_SSILIST_ITEM_CLICK()
Definition: HandledPackets.hpp:33604
Main object for the aegis packet: CZ_STANDING_RESURRECTION.
Definition: HandledPackets.hpp:33645
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:2207
CZ_STANDING_RESURRECTION(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:33647
virtual ~CZ_STANDING_RESURRECTION()
Definition: HandledPackets.hpp:33650
void handle(ByteBuffer &&buf)
CZ_STANDING_RESURRECTION.
Definition: HandledPackets.cpp:2206
Main object for the aegis packet: CZ_START_USE_SKILL.
Definition: HandledPackets.hpp:33685
virtual ~CZ_START_USE_SKILL()
Definition: HandledPackets.hpp:33690
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:3066
void handle(ByteBuffer &&buf)
CZ_START_USE_SKILL.
Definition: HandledPackets.cpp:3065
CZ_START_USE_SKILL(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:33687
Main object for the aegis packet: CZ_STATUS_CHANGE.
Definition: HandledPackets.hpp:33731
uint8_t _amount
Definition: HandledPackets.hpp:33743
void handle(ByteBuffer &&buf)
CZ_STATUS_CHANGE.
Definition: HandledPackets.cpp:1669
CZ_STATUS_CHANGE(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:33733
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:1675
virtual ~CZ_STATUS_CHANGE()
Definition: HandledPackets.hpp:33736
uint16_t _type
Definition: HandledPackets.hpp:33742
Main object for the aegis packet: CZ_STOP_USE_SKILL.
Definition: HandledPackets.hpp:33773
void handle(ByteBuffer &&buf)
CZ_STOP_USE_SKILL.
Definition: HandledPackets.cpp:3070
CZ_STOP_USE_SKILL(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:33775
virtual ~CZ_STOP_USE_SKILL()
Definition: HandledPackets.hpp:33778
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:3071
Main object for the aegis packet: CZ_STYLE_CLOSE.
Definition: HandledPackets.hpp:33813
virtual ~CZ_STYLE_CLOSE()
Definition: HandledPackets.hpp:33818
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:3685
void handle(ByteBuffer &&buf)
CZ_STYLE_CLOSE.
Definition: HandledPackets.cpp:3684
CZ_STYLE_CLOSE(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:33815
Main object for the aegis packet: CZ_TAEKWON_RANK.
Definition: HandledPackets.hpp:33859
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:1962
CZ_TAEKWON_RANK(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:33861
void handle(ByteBuffer &&buf)
CZ_TAEKWON_RANK.
Definition: HandledPackets.cpp:1961
virtual ~CZ_TAEKWON_RANK()
Definition: HandledPackets.hpp:33864
Main object for the aegis packet: CZ_TRYCAPTURE_MONSTER.
Definition: HandledPackets.hpp:33905
CZ_TRYCAPTURE_MONSTER(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:33907
virtual ~CZ_TRYCAPTURE_MONSTER()
Definition: HandledPackets.hpp:33910
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:1685
void handle(ByteBuffer &&buf)
CZ_TRYCAPTURE_MONSTER.
Definition: HandledPackets.cpp:1684
Main object for the aegis packet: CZ_TRYCOLLECTION.
Definition: HandledPackets.hpp:33945
virtual ~CZ_TRYCOLLECTION()
Definition: HandledPackets.hpp:33950
void handle(ByteBuffer &&buf)
CZ_TRYCOLLECTION.
Definition: HandledPackets.cpp:3547
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:3548
CZ_TRYCOLLECTION(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:33947
Main object for the aegis packet: CZ_UNINSTALLATION.
Definition: HandledPackets.hpp:33982
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:3810
virtual ~CZ_UNINSTALLATION()
Definition: HandledPackets.hpp:33987
void handle(ByteBuffer &&buf)
CZ_UNINSTALLATION.
Definition: HandledPackets.cpp:3809
CZ_UNINSTALLATION(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:33984
Main object for the aegis packet: CZ_UNKNOWN_BOOKING_SOMMON_MEMBER_08f5.
Definition: HandledPackets.hpp:34011
virtual ~CZ_UNKNOWN_BOOKING_SOMMON_MEMBER_08f5()
Definition: HandledPackets.hpp:34016
CZ_UNKNOWN_BOOKING_SOMMON_MEMBER_08f5(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:34013
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:3563
void handle(ByteBuffer &&buf)
CZ_UNKNOWN_BOOKING_SOMMON_MEMBER_08f5.
Definition: HandledPackets.cpp:3562
Main object for the aegis packet: CZ_UNUSED_MER_UPGRADE_SKILLLEVEL.
Definition: HandledPackets.hpp:34043
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:2217
void handle(ByteBuffer &&buf)
CZ_UNUSED_MER_UPGRADE_SKILLLEVEL.
Definition: HandledPackets.cpp:2216
CZ_UNUSED_MER_UPGRADE_SKILLLEVEL(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:34045
virtual ~CZ_UNUSED_MER_UPGRADE_SKILLLEVEL()
Definition: HandledPackets.hpp:34048
Main object for the aegis packet: CZ_UNUSED_MER_USE_SKILL.
Definition: HandledPackets.hpp:34075
virtual ~CZ_UNUSED_MER_USE_SKILL()
Definition: HandledPackets.hpp:34080
void handle(ByteBuffer &&buf)
CZ_UNUSED_MER_USE_SKILL.
Definition: HandledPackets.cpp:2221
CZ_UNUSED_MER_USE_SKILL(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:34077
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:2222
Main object for the aegis packet: CZ_UPGRADE_SKILLLEVEL.
Definition: HandledPackets.hpp:34121
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:1695
int16_t _skill_id
Definition: HandledPackets.hpp:34132
CZ_UPGRADE_SKILLLEVEL(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:34123
virtual ~CZ_UPGRADE_SKILLLEVEL()
Definition: HandledPackets.hpp:34126
void handle(ByteBuffer &&buf)
CZ_UPGRADE_SKILLLEVEL.
Definition: HandledPackets.cpp:1689
Main object for the aegis packet: CZ_UPLOAD_MACRO_DETECTOR_CAPTCHA.
Definition: HandledPackets.hpp:34159
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:3815
virtual ~CZ_UPLOAD_MACRO_DETECTOR_CAPTCHA()
Definition: HandledPackets.hpp:34164
void handle(ByteBuffer &&buf)
CZ_UPLOAD_MACRO_DETECTOR_CAPTCHA.
Definition: HandledPackets.cpp:3814
CZ_UPLOAD_MACRO_DETECTOR_CAPTCHA(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:34161
Main object for the aegis packet: CZ_USE_ITEM2.
Definition: HandledPackets.hpp:34236
uint32_t _guid
Definition: HandledPackets.hpp:34248
void handle(ByteBuffer &&buf)
CZ_USE_ITEM2.
Definition: HandledPackets.cpp:3204
uint16_t _inventory_index
Definition: HandledPackets.hpp:34247
CZ_USE_ITEM2(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:34238
virtual ~CZ_USE_ITEM2()
Definition: HandledPackets.hpp:34241
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:3210
Main object for the aegis packet: CZ_USE_ITEM_NEW_JAPEN.
Definition: HandledPackets.hpp:34284
CZ_USE_ITEM_NEW_JAPEN(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:34286
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:2413
void handle(ByteBuffer &&buf)
CZ_USE_ITEM_NEW_JAPEN.
Definition: HandledPackets.cpp:2412
virtual ~CZ_USE_ITEM_NEW_JAPEN()
Definition: HandledPackets.hpp:34289
Main object for the aegis packet: CZ_USE_ITEM.
Definition: HandledPackets.hpp:34191
virtual ~CZ_USE_ITEM()
Definition: HandledPackets.hpp:34196
uint32_t _guid
Definition: HandledPackets.hpp:34203
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:3195
uint16_t _inventory_index
Definition: HandledPackets.hpp:34202
CZ_USE_ITEM(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:34193
void handle(ByteBuffer &&buf)
CZ_USE_ITEM.
Definition: HandledPackets.cpp:3189
Main object for the aegis packet: CZ_USE_SKILL2.
Definition: HandledPackets.hpp:35083
CZ_USE_SKILL2(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:35085
int16_t _skill_id
Definition: HandledPackets.hpp:35095
int _target_id
Definition: HandledPackets.hpp:35096
int16_t _skill_lv
Definition: HandledPackets.hpp:35094
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:2779
virtual ~CZ_USE_SKILL2()
Definition: HandledPackets.hpp:35088
void handle(ByteBuffer &&buf)
CZ_USE_SKILL2.
Definition: HandledPackets.cpp:2775
Main object for the aegis packet: CZ_USE_SKILL_NEW_JAPEN.
Definition: HandledPackets.hpp:35132
void handle(ByteBuffer &&buf)
CZ_USE_SKILL_NEW_JAPEN.
Definition: HandledPackets.cpp:2417
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:2418
virtual ~CZ_USE_SKILL_NEW_JAPEN()
Definition: HandledPackets.hpp:35137
CZ_USE_SKILL_NEW_JAPEN(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:35134
Main object for the aegis packet: CZ_USE_SKILL_TOGROUND2.
Definition: HandledPackets.hpp:35950
virtual ~CZ_USE_SKILL_TOGROUND2()
Definition: HandledPackets.hpp:35955
int16_t _pos_x
Definition: HandledPackets.hpp:35963
void handle(ByteBuffer &&buf)
CZ_USE_SKILL_TOGROUND2.
Definition: HandledPackets.cpp:2525
CZ_USE_SKILL_TOGROUND2(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:35952
int16_t _skill_lv
Definition: HandledPackets.hpp:35961
int16_t _skill_id
Definition: HandledPackets.hpp:35962
int16_t _pos_y
Definition: HandledPackets.hpp:35964
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:2529
Main object for the aegis packet: CZ_USE_SKILL_TOGROUND_WITHTALKBOX2.
Definition: HandledPackets.hpp:36487
char _contents[MAX_TALKBOX_CONTENT_SIZE]
Definition: HandledPackets.hpp:36502
int16_t _pos_y
Definition: HandledPackets.hpp:36501
CZ_USE_SKILL_TOGROUND_WITHTALKBOX2(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:36489
virtual ~CZ_USE_SKILL_TOGROUND_WITHTALKBOX2()
Definition: HandledPackets.hpp:36492
int16_t _pos_x
Definition: HandledPackets.hpp:36500
void handle(ByteBuffer &&buf)
CZ_USE_SKILL_TOGROUND_WITHTALKBOX2.
Definition: HandledPackets.cpp:2561
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:2566
int16_t _skill_lv
Definition: HandledPackets.hpp:36498
int16_t _skill_id
Definition: HandledPackets.hpp:36499
Main object for the aegis packet: CZ_USE_SKILL_TOGROUND_WITHTALKBOX.
Definition: HandledPackets.hpp:36234
char _contents[MAX_TALKBOX_CONTENT_SIZE]
Definition: HandledPackets.hpp:36249
virtual ~CZ_USE_SKILL_TOGROUND_WITHTALKBOX()
Definition: HandledPackets.hpp:36239
int16_t _pos_x
Definition: HandledPackets.hpp:36247
int16_t _skill_id
Definition: HandledPackets.hpp:36246
void handle(ByteBuffer &&buf)
CZ_USE_SKILL_TOGROUND_WITHTALKBOX.
Definition: HandledPackets.cpp:242
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:247
CZ_USE_SKILL_TOGROUND_WITHTALKBOX(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:36236
int16_t _pos_y
Definition: HandledPackets.hpp:36248
int16_t _skill_lv
Definition: HandledPackets.hpp:36245
Main object for the aegis packet: CZ_USE_SKILL_TOGROUND.
Definition: HandledPackets.hpp:35419
int16_t _skill_id
Definition: HandledPackets.hpp:35431
int16_t _pos_x
Definition: HandledPackets.hpp:35432
virtual ~CZ_USE_SKILL_TOGROUND()
Definition: HandledPackets.hpp:35424
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:232
void handle(ByteBuffer &&buf)
CZ_USE_SKILL_TOGROUND.
Definition: HandledPackets.cpp:228
int16_t _skill_lv
Definition: HandledPackets.hpp:35430
int16_t _pos_y
Definition: HandledPackets.hpp:35433
CZ_USE_SKILL_TOGROUND(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:35421
Main object for the aegis packet: CZ_USE_SKILL.
Definition: HandledPackets.hpp:34562
void handle(ByteBuffer &&buf)
CZ_USE_SKILL.
Definition: HandledPackets.cpp:215
int16_t _skill_lv
Definition: HandledPackets.hpp:34573
int16_t _skill_id
Definition: HandledPackets.hpp:34574
virtual ~CZ_USE_SKILL()
Definition: HandledPackets.hpp:34567
CZ_USE_SKILL(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:34564
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:219
int _target_id
Definition: HandledPackets.hpp:34575
Main object for the aegis packet: CZ_WHISPER.
Definition: HandledPackets.hpp:36538
char * _message
Definition: HandledPackets.hpp:36552
CZ_WHISPER(std::shared_ptr< ZoneSession > s)
Definition: HandledPackets.hpp:36540
void deserialize(ByteBuffer &buf)
Definition: HandledPackets.cpp:1715
void handle(ByteBuffer &&buf)
CZ_WHISPER.
Definition: HandledPackets.cpp:1703
char _name[MAX_UNIT_NAME_LENGTH]
Definition: HandledPackets.hpp:36551
uint16_t _packet_length
0096 <packet len>.W <nick>.24B <message>.?B
Definition: HandledPackets.hpp:36550
virtual ~CZ_WHISPER()
Definition: HandledPackets.hpp:36543
Definition: ZoneSession.hpp:63
@ ID_CZ_MOVE_ITEM_FROM_STORE_TO_BODY2
Definition: HandledPackets.hpp:14906
@ ID_CZ_IRMAIL_LIST
Definition: HandledPackets.hpp:8659
@ ID_CZ_REQ_OPENSTORE
Definition: HandledPackets.hpp:27776
@ ID_CZ_PING
Definition: HandledPackets.hpp:17886
@ ID_CZ_DELETE_FRIENDS
Definition: HandledPackets.hpp:5828
@ ID_CZ_SIMPLE_BUY_CASH_POINT_ITEM
Definition: HandledPackets.hpp:32734
@ ID_CZ_JOIN_BABY
Definition: HandledPackets.hpp:11247
@ ID_CZ_REQ_READ_RODEX
Definition: HandledPackets.hpp:29086
@ ID_CZ_REQ_TRADE_BUYING_STORE
Definition: HandledPackets.hpp:29772
@ ID_CZ_GRADE_ENCHANT_SELECT_EQUIPMENT
Definition: HandledPackets.hpp:8059
@ ID_CZ_USE_SKILL_TOGROUND
Definition: HandledPackets.hpp:35151
@ ID_CZ_REQ_ENTER_ROOM
Definition: HandledPackets.hpp:25955
@ ID_CZ_REQ_AGIT_INVESTMENT
Definition: HandledPackets.hpp:23642
@ ID_CZ_DEATH_QUESTION
Definition: HandledPackets.hpp:5782
@ ID_CZ_ES_CANCEL
Definition: HandledPackets.hpp:6898
@ ID_CZ_AUCTION_ADD_ITEM
Definition: HandledPackets.hpp:2334
@ ID_CZ_REQ_MAKINGARROW
Definition: HandledPackets.hpp:27476
@ ID_CZ_ITEM_REFORM
Definition: HandledPackets.hpp:10412
@ ID_CZ_UNUSED_MER_USE_SKILL
Definition: HandledPackets.hpp:34062
@ ID_CZ_REQ_BUY_FROMMC
Definition: HandledPackets.hpp:24048
@ ID_CZ_REQUEST_CHAT
Definition: HandledPackets.hpp:21378
@ ID_CZ_REQ_ITEMREPAIR
Definition: HandledPackets.hpp:26929
@ ID_CZ_CHANGE_DIRECTION2
Definition: HandledPackets.hpp:3696
@ ID_CZ_REQUEST_PERFECT_ENCHANT
Definition: HandledPackets.hpp:22468
@ ID_CZ_SKILL_SELECT_RESPONSE
Definition: HandledPackets.hpp:32817
@ ID_CZ_PARTY_RECRUIT_REQ_REGISTER
Definition: HandledPackets.hpp:17333
@ ID_CZ_REQ_GUILD_EMBLEM_IMG3
Definition: HandledPackets.hpp:26531
@ ID_CZ_RENAME_PET
Definition: HandledPackets.hpp:18714
@ ID_CZ_REQ_ADD_ITEM_RODEX
Definition: HandledPackets.hpp:23592
@ ID_CZ_SEEK_PARTY
Definition: HandledPackets.hpp:32071
@ ID_CZ_REQUEST_RANDOM_ENCHANT
Definition: HandledPackets.hpp:22550
@ ID_CZ_CHANGE_GROUPEXPOPTION
Definition: HandledPackets.hpp:3983
@ ID_CZ_EXIT_ROOM
Definition: HandledPackets.hpp:7046
@ ID_CZ_REQ_TAKEOFF_EQUIP_ALL
Definition: HandledPackets.hpp:29748
@ ID_CZ_INVENTORY_EXPAND_CONFIRMED
Definition: HandledPackets.hpp:8536
@ ID_CZ_CANCEL_BATTLE_FIELD
Definition: HandledPackets.hpp:2929
@ ID_CZ_ADVENTURER_AGENCY_JOIN_RESULT
Definition: HandledPackets.hpp:1875
@ ID_CZ_REQ_OPEN_BANKING
Definition: HandledPackets.hpp:27872
@ ID_CZ_SEEK_PARTY_MEMBER
Definition: HandledPackets.hpp:32114
@ ID_CZ_REQ_PVPPOINT
Definition: HandledPackets.hpp:28932
@ ID_CZ_REQ_ZENY_FROM_RODEX
Definition: HandledPackets.hpp:30777
@ ID_CZ_PRIVATE_AIRSHIP_REQUEST
Definition: HandledPackets.hpp:17972
@ ID_CZ_REQ_CLOSE_BUYING_STORE
Definition: HandledPackets.hpp:25172
@ ID_CZ_KSY_EVENT
Definition: HandledPackets.hpp:12192
@ ID_CZ_REQUEST_QUIT
Definition: HandledPackets.hpp:22498
@ ID_CZ_REQ_WEAPONREFINE
Definition: HandledPackets.hpp:30597
@ ID_CZ_REQ_BAN_GUILD
Definition: HandledPackets.hpp:23918
@ ID_CZ_REQ_GUILD_MENUINTERFACE
Definition: HandledPackets.hpp:26654
@ ID_CZ_STANDING_RESURRECTION
Definition: HandledPackets.hpp:33621
@ ID_CZ_REQMAKINGHOMUN
Definition: HandledPackets.hpp:18841
@ ID_CZ_GPK_AUTH
Definition: HandledPackets.hpp:7895
@ ID_CZ_GROUPINFO_CHANGE_V2
Definition: HandledPackets.hpp:8086
@ ID_CZ_REQ_LEAVE_GROUP
Definition: HandledPackets.hpp:27284
@ ID_CZ_REQ_REMOVE_BARGAIN_SALE_ITEM
Definition: HandledPackets.hpp:29221
@ ID_CZ_AUCTION_REQ_MY_SELL_STOP
Definition: HandledPackets.hpp:2574
@ ID_CZ_STOP_USE_SKILL
Definition: HandledPackets.hpp:33752
@ ID_CZ_REQ_ONECLICK_ITEMIDENTIFY
Definition: HandledPackets.hpp:27732
@ ID_CZ_CHANGE_GROUP_MASTER
Definition: HandledPackets.hpp:4027
@ ID_CZ_MOVE_ITEM_FROM_GUILDSTORAGE_TO_BODY
Definition: HandledPackets.hpp:14276
@ ID_CZ_REQ_ITEMREPAIR2
Definition: HandledPackets.hpp:26986
@ ID_CZ_RANDOM_COMBINE_ITEM_UI_CLOSE
Definition: HandledPackets.hpp:18076
@ ID_CZ_BLACKSMITH_RANK
Definition: HandledPackets.hpp:2709
@ ID_CZ_ALT_EQUIPMENT_EQUIP
Definition: HandledPackets.hpp:2075
@ ID_CZ_REQ_DISORGANIZE_GUILD
Definition: HandledPackets.hpp:25861
@ ID_CZ_REQUEST_UPGRADE_ENCHANT
Definition: HandledPackets.hpp:23478
@ ID_CZ_USE_SKILL
Definition: HandledPackets.hpp:34303
@ ID_CZ_CONTACTNPC
Definition: HandledPackets.hpp:5643
@ ID_CZ_SELECT_WARPPOINT
Definition: HandledPackets.hpp:32292
@ ID_CZ_REQ_REMOVE_RODEX_ITEM
Definition: HandledPackets.hpp:29261
@ ID_CZ_ITEM_PICKUP
Definition: HandledPackets.hpp:9543
@ ID_CZ_REMOVE_AID
Definition: HandledPackets.hpp:18580
@ ID_CZ_PARTY_BOOKING_REQ_DELETE
Definition: HandledPackets.hpp:15752
@ ID_CZ_RECALL_GID
Definition: HandledPackets.hpp:18190
@ ID_CZ_REPLY_ENTRY_QUEUE_ADMISSION
Definition: HandledPackets.hpp:18758
@ ID_CZ_COOLDOWN_RESET
Definition: HandledPackets.hpp:5688
@ ID_CZ_ENTER2
Definition: HandledPackets.hpp:6596
@ ID_CZ_MAKE_GROUP2
Definition: HandledPackets.hpp:12993
@ ID_CZ_REQ_REMAINTIME
Definition: HandledPackets.hpp:29178
@ ID_CZ_REQ_RANDOM_UPGRADE_ITEM
Definition: HandledPackets.hpp:29018
@ ID_CZ_LOCALBROADCAST
Definition: HandledPackets.hpp:12285
@ ID_CZ_CLOSE_SIMPLECASH_SHOP
Definition: HandledPackets.hpp:4586
@ ID_CZ_MAIL_OPEN
Definition: HandledPackets.hpp:12801
@ ID_CZ_MACRO_ITEM_PICKUP
Definition: HandledPackets.hpp:12330
@ ID_CZ_UNINSTALLATION
Definition: HandledPackets.hpp:33974
@ ID_CZ_HACKSH_CPX_MSG
Definition: HandledPackets.hpp:8310
@ ID_CZ_MOVE_ITEM_FROM_BODY_TO_STORE2
Definition: HandledPackets.hpp:13871
@ ID_CZ_ITEM_CREATE_EX
Definition: HandledPackets.hpp:9491
@ ID_CZ_AUCTION_ADD_CANCEL
Definition: HandledPackets.hpp:2287
@ ID_CZ_SHIFT
Definition: HandledPackets.hpp:32587
@ ID_CZ_RECALL_SSO
Definition: HandledPackets.hpp:18234
@ ID_CZ_GET_ACCOUNT_LIMTIED_SALE_LIST
Definition: HandledPackets.hpp:7828
@ ID_CZ_USE_SKILL_NEW_JAPEN
Definition: HandledPackets.hpp:35108
@ ID_CZ_REQ_CLICK_TO_BUYING_STORE
Definition: HandledPackets.hpp:24350
@ ID_CZ_CANCEL_EXCHANGE_ITEM
Definition: HandledPackets.hpp:2972
@ ID_CZ_GUILD_NOTICE
Definition: HandledPackets.hpp:8183
@ ID_CZ_REQ_BATTLE_STATE_MONITOR
Definition: HandledPackets.hpp:23965
@ ID_CZ_REQ_JOIN_BABY
Definition: HandledPackets.hpp:27056
@ ID_CZ_LESSEFFECT
Definition: HandledPackets.hpp:12238
@ ID_CZ_MAIL_GET_ITEM
Definition: HandledPackets.hpp:12708
@ ID_CZ_REQ_OPEN_MEMBER_INFO
Definition: HandledPackets.hpp:28652
@ ID_CZ_REQ_OPENSTORE2
Definition: HandledPackets.hpp:27825
@ ID_CZ_REQ_GUILDSTORAGE_LOG
Definition: HandledPackets.hpp:26398
@ ID_CZ_REQ_WHISPER_LIST
Definition: HandledPackets.hpp:30734
@ ID_CZ_PC_PURCHASE_ITEMLIST
Definition: HandledPackets.hpp:17563
@ ID_CZ_CHOOSE_MENU_ZERO
Definition: HandledPackets.hpp:4218
@ ID_CZ_PARTY_BOOKING_REQ_UPDATE
Definition: HandledPackets.hpp:16569
@ ID_CZ_REQUEST_ACTNPC
Definition: HandledPackets.hpp:21329
@ ID_CZ_REQ_ITEMCOMPOSITION_LIST
Definition: HandledPackets.hpp:26835
@ ID_CZ_PETEGG_INFO
Definition: HandledPackets.hpp:17753
@ ID_CZ_RECV_ROULETTE_ITEM
Definition: HandledPackets.hpp:18275
@ ID_CZ_MOVETO_MAP
Definition: HandledPackets.hpp:13181
@ ID_CZ_SEARCH_STORE_INFO
Definition: HandledPackets.hpp:30907
@ ID_CZ_UNKNOWN_BOOKING_SOMMON_MEMBER_08f5
Definition: HandledPackets.hpp:33998
@ ID_CZ_MAIL_ADD_ITEM
Definition: HandledPackets.hpp:12613
@ ID_CZ_GRADE_ENCHANT_CLOSE_UI
Definition: HandledPackets.hpp:7985
@ ID_CZ_REQ_NEXT_SCRIPT
Definition: HandledPackets.hpp:27688
@ ID_CZ_ALT_EQUIPMENT_ADD
Definition: HandledPackets.hpp:2040
@ ID_CZ_REQUEST_MOVE
Definition: HandledPackets.hpp:21511
@ ID_CZ_REQ_CLOSE_GUILD_STORAGE
Definition: HandledPackets.hpp:25603
@ ID_CZ_MACRO_REQUEST_MOVE
Definition: HandledPackets.hpp:12410
@ ID_CZ_USE_SKILL_TOGROUND_WITHTALKBOX
Definition: HandledPackets.hpp:35973
@ ID_CZ_REQ_ENTRY_QUEUE_CANCEL
Definition: HandledPackets.hpp:26040
@ ID_CZ_ATTENDANCE_REWARD_REQUEST
Definition: HandledPackets.hpp:2195
@ ID_CZ_REQ_CLOSE_BANKING
Definition: HandledPackets.hpp:24855
@ ID_CZ_PARTY_RECRUIT_ADD_FILTERLINGLIST
Definition: HandledPackets.hpp:17217
@ ID_CZ_USE_SKILL_TOGROUND_WITHTALKBOX2
Definition: HandledPackets.hpp:36379
@ ID_CZ_REQ_STATUS
Definition: HandledPackets.hpp:29521
@ ID_CZ_REQ_NEXT_RODEX
Definition: HandledPackets.hpp:27645
@ ID_CZ_REQ_ENTRY_QUEUE_RANKING
Definition: HandledPackets.hpp:26080
@ ID_CZ_CHANGE_CHATROOM
Definition: HandledPackets.hpp:3104
@ ID_CZ_INVENTORY_EXPAND
Definition: HandledPackets.hpp:8496
@ ID_CZ_ACK_REQ_ADD_FRIENDS
Definition: HandledPackets.hpp:265
@ ID_CZ_GRADE_ENCHANT_REQUEST
Definition: HandledPackets.hpp:8022
@ ID_CZ_MOVE_ITEM_FROM_BODY_TO_CART
Definition: HandledPackets.hpp:13230
@ ID_CZ_REQ_MAKINGITEM
Definition: HandledPackets.hpp:27523
@ ID_CZ_ACK_CASH_PASSWORD
Definition: HandledPackets.hpp:126
@ ID_CZ_SHORTCUT_KEY_CHANGE
Definition: HandledPackets.hpp:32679
@ ID_CZ_REQ_CARTOFF
Definition: HandledPackets.hpp:24135
@ ID_CZ_REQ_OPEN_ROULETTE
Definition: HandledPackets.hpp:28695
@ ID_CZ_REQ_CHANGE_TITLE
Definition: HandledPackets.hpp:24313
@ ID_CZ_RECALL
Definition: HandledPackets.hpp:18143
@ ID_CZ_REQ_COUNT_BARGAIN_SALE_ITEM
Definition: HandledPackets.hpp:25683
@ ID_CZ_GUILD_ZENY
Definition: HandledPackets.hpp:8232
@ ID_CZ_MAIL_SEND
Definition: HandledPackets.hpp:12895
@ ID_CZ_REQ_BANKING_WITHDRAW
Definition: HandledPackets.hpp:23875
@ ID_CZ_CLIENT_VERSION
Definition: HandledPackets.hpp:4339
@ ID_CZ_USE_SKILL_TOGROUND2
Definition: HandledPackets.hpp:35698
@ ID_CZ_TRYCAPTURE_MONSTER
Definition: HandledPackets.hpp:33881
@ ID_CZ_SE_CASHSHOP_OPEN
Definition: HandledPackets.hpp:32467
@ ID_CZ_ADVENTURER_AGENCY_JOIN_REQ
Definition: HandledPackets.hpp:1838
@ ID_CZ_DYNAMICNPC_CREATE_REQUEST
Definition: HandledPackets.hpp:6012
@ ID_CZ_REQ_MAIL_RETURN
Definition: HandledPackets.hpp:27380
@ ID_CZ_REQ_GUILD_NAME
Definition: HandledPackets.hpp:26697
@ ID_CZ_BLOCKING_PLAY_CANCEL
Definition: HandledPackets.hpp:2752
@ ID_CZ_NOTIFY_ACTORINIT
Definition: HandledPackets.hpp:15220
@ ID_CZ_MONSTER_TALK
Definition: HandledPackets.hpp:13135
@ ID_CZ_PARTY_RECRUIT_SUB_FILTERLINGLIST
Definition: HandledPackets.hpp:17478
@ ID_CZ_AUCTION_BUY
Definition: HandledPackets.hpp:2382
@ ID_CZ_REQUEST_CHAT_PARTY
Definition: HandledPackets.hpp:21466
@ ID_CZ_AGREE_STARPLACE
Definition: HandledPackets.hpp:1905
@ ID_CZ_INVENTORY_TAB
Definition: HandledPackets.hpp:8616
@ ID_CZ_USE_ITEM2
Definition: HandledPackets.hpp:34212
@ ID_CZ_ACK_SELECT_DEALTYPE
Definition: HandledPackets.hpp:314
@ ID_CZ_SELECTCART
Definition: HandledPackets.hpp:32203
@ ID_CZ_CLOSE_RODEXBOX
Definition: HandledPackets.hpp:4506
@ ID_CZ_REQ_DELETE_RODEX
Definition: HandledPackets.hpp:25771
@ ID_CZ_MACRO_USE_SKILL
Definition: HandledPackets.hpp:12530
@ ID_CZ_ITEM_PICKUP_NEW_JAPEN
Definition: HandledPackets.hpp:10360
@ ID_CZ_AUCTION_CREATE
Definition: HandledPackets.hpp:2430
@ ID_CZ_BATTLEFIELD_CHAT
Definition: HandledPackets.hpp:2621
@ ID_CZ_REFINE_WINDOW_CLOSE
Definition: HandledPackets.hpp:18395
@ ID_CZ_REQ_CLOSE_ROULETTE
Definition: HandledPackets.hpp:25643
@ ID_CZ_REQ_GUILD_MENU
Definition: HandledPackets.hpp:26607
@ ID_CZ_REQ_ENTRY_QUEUE_APPLY
Definition: HandledPackets.hpp:26000
@ ID_CZ_REQ_CASH_BARGAIN_SALE_ITEM_INFO
Definition: HandledPackets.hpp:24178
@ ID_CZ_REQ_CHANGECART
Definition: HandledPackets.hpp:24221
@ ID_CZ_ITEM_CREATE
Definition: HandledPackets.hpp:9447
@ ID_CZ_CONCLUDE_EXCHANGE_ITEM
Definition: HandledPackets.hpp:5549
@ ID_CZ_REQ_EMOTION
Definition: HandledPackets.hpp:25908
@ ID_CZ_SE_PC_BUY_CASHITEM_LIST
Definition: HandledPackets.hpp:32544
@ ID_CZ_DORIDORI
Definition: HandledPackets.hpp:5969
@ ID_CZ_DISCONNECT_ALL_CHARACTER
Definition: HandledPackets.hpp:5876
@ ID_CZ_AUCTION_ITEM_SEARCH
Definition: HandledPackets.hpp:2477
@ ID_CZ_CLOSE_REFORM_UI
Definition: HandledPackets.hpp:4479
@ ID_CZ_REQ_BEFORE_WORLD_INFO
Definition: HandledPackets.hpp:24005
@ ID_CZ_REQ_ITEM_FROM_RODEX
Definition: HandledPackets.hpp:27013
@ ID_CZ_MAIL_DELETE
Definition: HandledPackets.hpp:12661
@ ID_CZ_USE_ITEM_NEW_JAPEN
Definition: HandledPackets.hpp:34260
@ ID_CZ_REQUEST_RESET_ENCHANT
Definition: HandledPackets.hpp:22586
@ ID_CZ_ENTER
Definition: HandledPackets.hpp:6106
@ ID_CZ_USE_ITEM
Definition: HandledPackets.hpp:34178
@ ID_CZ_EQUIPWIN_MICROSCOPE
Definition: HandledPackets.hpp:6857
@ ID_CZ_REQ_JOIN_COUPLE
Definition: HandledPackets.hpp:27103
@ ID_CZ_PARTY_RECRUIT_ACK_RECALL
Definition: HandledPackets.hpp:17188
@ ID_CZ_SIMPLE_CASH_BTNSHOW
Definition: HandledPackets.hpp:32777
@ ID_CZ_ACK_EXCHANGE_ITEM
Definition: HandledPackets.hpp:172
@ ID_CZ_RESTART
Definition: HandledPackets.hpp:30866
@ ID_CZ_AUCTION_ADD
Definition: HandledPackets.hpp:2238
@ ID_CZ_REQ_GUILD_MEMBER_INFO
Definition: HandledPackets.hpp:26561
@ ID_CZ_PARTY_JOIN_REQ
Definition: HandledPackets.hpp:16812
@ ID_CZ_REQ_APPLY_MACRO_DETECTOR
Definition: HandledPackets.hpp:23768
@ ID_CZ_MOVE_ITEM_FROM_BODY_TO_GUILDSTORAGE
Definition: HandledPackets.hpp:13275
@ ID_CZ_REQ_OPEN_UI
Definition: HandledPackets.hpp:28735
@ ID_CZ_REQ_OPEN_GUILD_STORAGE
Definition: HandledPackets.hpp:28609
@ ID_CZ_PARTY_RECRUIT_CANCEL_VOLUNTEER
Definition: HandledPackets.hpp:17246
@ ID_CZ_CLOSE_BARGAIN_SALE_TOOL
Definition: HandledPackets.hpp:4383
@ ID_CZ_AUCTION_REQ_MY_INFO
Definition: HandledPackets.hpp:2527
@ ID_CZ_REQ_ITEMIDENTIFY
Definition: HandledPackets.hpp:26882
@ ID_CZ_SRPACKET_START
Definition: HandledPackets.hpp:32892
@ ID_CZ_REQ_APPLY_BARGAIN_SALE_ITEM
Definition: HandledPackets.hpp:23718
@ ID_CZ_REQ_EXPEL_GROUP_MEMBER
Definition: HandledPackets.hpp:26170
@ ID_CZ_BROADCAST
Definition: HandledPackets.hpp:2844
@ ID_CZ_MER_COMMAND
Definition: HandledPackets.hpp:13089
@ ID_CZ_MOVE_ITEM_FROM_CART_TO_STORE
Definition: HandledPackets.hpp:14231
@ ID_CZ_REQ_BANKING_DEPOSIT
Definition: HandledPackets.hpp:23835
@ ID_CZ_ES_CHOOSE
Definition: HandledPackets.hpp:6930
@ ID_CZ_PARTY_RECRUIT_REFUSE_VOLUNTEER
Definition: HandledPackets.hpp:17275
@ ID_CZ_NPC_BARTER_PURCHASE
Definition: HandledPackets.hpp:15303
@ ID_CZ_CHANGE_DIRECTION
Definition: HandledPackets.hpp:3152
@ ID_CZ_PET_ACT
Definition: HandledPackets.hpp:17799
@ ID_CZ_PARTY_BOOKING_REQ_REGISTER
Definition: HandledPackets.hpp:16073
@ ID_CZ_REQ_MERGE_ITEM
Definition: HandledPackets.hpp:27568
@ ID_CZ_CANCEL_LOCKON
Definition: HandledPackets.hpp:3018
@ ID_CZ_MACRO_START
Definition: HandledPackets.hpp:12450
@ ID_CZ_REQ_OPEN_BUYING_STORE
Definition: HandledPackets.hpp:28183
@ ID_CZ_ALT_EQUIPMENT_REMOVE
Definition: HandledPackets.hpp:2115
@ ID_CZ_REQ_SEND_RODEX
Definition: HandledPackets.hpp:29426
@ ID_CZ_CONFIG
Definition: HandledPackets.hpp:5595
@ ID_CZ_REG_CHANGE_GUILD_POSITIONINFO
Definition: HandledPackets.hpp:18486
@ ID_CZ_NPC_BARTER_CLOSE
Definition: HandledPackets.hpp:15263
@ ID_CZ_REFINE_ITEM_REQUEST
Definition: HandledPackets.hpp:18355
@ ID_CZ_REQ_STYLE_CHANGE
Definition: HandledPackets.hpp:29612
@ ID_CZ_MOVE_ITEM_FROM_STORE_TO_CART
Definition: HandledPackets.hpp:15172
@ ID_CZ_SEARCH_STORE_INFO_NEXT_PAGE
Definition: HandledPackets.hpp:31352
@ ID_CZ_REQ_WEAR_EQUIP_V5
Definition: HandledPackets.hpp:30689
@ ID_CZ_CHOOSE_MENU
Definition: HandledPackets.hpp:4164
@ ID_CZ_REQ_SE_CASH_TAB_CODE
Definition: HandledPackets.hpp:29478
@ ID_CZ_REQ_REFRESH_RODEX
Definition: HandledPackets.hpp:29123
@ ID_CZ_COMMAND_PET
Definition: HandledPackets.hpp:5465
@ ID_CZ_REQ_SCHEDULER_CASHITEM
Definition: HandledPackets.hpp:29389
@ ID_CZ_ITEMLISTWIN_RES
Definition: HandledPackets.hpp:9013
@ ID_CZ_STYLE_CLOSE
Definition: HandledPackets.hpp:33792
@ ID_CZ_COMMAND_MER
Definition: HandledPackets.hpp:4743
@ ID_CZ_ACK_STORE_PASSWORD
Definition: HandledPackets.hpp:362
@ ID_CZ_NPC_MARKET_PURCHASE
Definition: HandledPackets.hpp:15457
@ ID_CZ_REQ_GUILD_EMBLEM_IMG2
Definition: HandledPackets.hpp:26494
@ ID_CZ_ALCHEMIST_RANK
Definition: HandledPackets.hpp:1952
@ ID_CZ_SRPACKETR2_START
Definition: HandledPackets.hpp:32860
@ ID_CZ_MOVE_ITEM_FROM_STORE_TO_BODY
Definition: HandledPackets.hpp:14360
@ ID_CZ_TAEKWON_RANK
Definition: HandledPackets.hpp:33835
@ ID_CZ_REQ_ROULETTE_INFO
Definition: HandledPackets.hpp:29349
@ ID_CZ_REQ_OPEN_WRITE_RODEX
Definition: HandledPackets.hpp:28775
@ ID_CZ_RANDOM_UPGRADE_ITEM_UI_CLOSE
Definition: HandledPackets.hpp:18113
@ ID_CZ_ACK_GAME_GUARD
Definition: HandledPackets.hpp:219
@ ID_CZ_REQ_CLOSESTORE
Definition: HandledPackets.hpp:24812
@ ID_CZ_PC_PURCHASE_ITEMLIST_FROMMC
Definition: HandledPackets.hpp:17611
@ ID_CZ_ALT_EQUIPMENT_SWITCH
Definition: HandledPackets.hpp:2155
@ ID_CZ_ACTIVE_QUEST
Definition: HandledPackets.hpp:1029
@ ID_CZ_SELECTAUTOSPELL
Definition: HandledPackets.hpp:32160
@ ID_CZ_REQ_CHANGE_MEMBERPOS
Definition: HandledPackets.hpp:24268
@ ID_CZ_REQUEST_MOVE2
Definition: HandledPackets.hpp:22050
@ ID_CZ_REQ_USER_COUNT
Definition: HandledPackets.hpp:30551
@ ID_CZ_GANGSI_RANK
Definition: HandledPackets.hpp:7124
@ ID_CZ_PC_BUY_CASH_POINT_ITEM
Definition: HandledPackets.hpp:17513
@ ID_CZ_ACK_AU_BOT
Definition: HandledPackets.hpp:83
@ ID_CZ_UPLOAD_MACRO_DETECTOR_CAPTCHA
Definition: HandledPackets.hpp:34151
@ ID_CZ_PARTY_RECRUIT_SHOW_EQUIPMENT
Definition: HandledPackets.hpp:17449
@ ID_CZ_REQ_GUILD_EMBLEM_IMG
Definition: HandledPackets.hpp:26441
@ ID_CZ_REQ_PREVIEW_MACRO_DETECTOR
Definition: HandledPackets.hpp:28902
@ ID_CZ_NPC_EXPANDED_BARTER_MARKET_CLOSE
Definition: HandledPackets.hpp:15353
@ ID_CZ_REQNAME_BYGID2
Definition: HandledPackets.hpp:20259
@ ID_CZ_SETTING_WHISPER_STATE
Definition: HandledPackets.hpp:32384
@ ID_CZ_ES_GET_LIST
Definition: HandledPackets.hpp:6962
@ ID_CZ_BOT_CHECK
Definition: HandledPackets.hpp:2798
@ ID_CZ_GAMEGUARD_LINGO_READY
Definition: HandledPackets.hpp:7089
@ ID_CZ_ADD_FRIENDS
Definition: HandledPackets.hpp:1406
@ ID_CZ_JOIN_GUILD
Definition: HandledPackets.hpp:12098
@ ID_CZ_CLOSE_UI_ENCHANT
Definition: HandledPackets.hpp:4670
@ ID_CZ_GUILD_CHAT
Definition: HandledPackets.hpp:8135
@ ID_CZ_HACKSHIELD_CRC_MSG
Definition: HandledPackets.hpp:8275
@ ID_CZ_CHANGE_EFFECTSTATE
Definition: HandledPackets.hpp:3936
@ ID_CZ_HUNTINGLIST
Definition: HandledPackets.hpp:8356
@ ID_CZ_PARTY_RECRUIT_REQ_SEARCH
Definition: HandledPackets.hpp:17362
@ ID_CZ_REQUEST_ACT
Definition: HandledPackets.hpp:20528
@ ID_CZ_REPLY_LOBBY_ADMISSION
Definition: HandledPackets.hpp:18798
@ ID_CZ_MOVE_ITEM_FROM_CART_TO_BODY
Definition: HandledPackets.hpp:14141
@ ID_CZ_SELECT_PETEGG
Definition: HandledPackets.hpp:32246
@ ID_CZ_TRYCOLLECTION
Definition: HandledPackets.hpp:33924
@ ID_CZ_REQ_GIVE_MANNER_POINT
Definition: HandledPackets.hpp:26352
@ ID_CZ_JOIN_COUPLE
Definition: HandledPackets.hpp:12004
@ ID_CZ_ITEM_PICKUP2
Definition: HandledPackets.hpp:10089
@ ID_CZ_ADD_EXCHANGE_ITEM
Definition: HandledPackets.hpp:1077
@ ID_CZ_REQ_GIVE_MANNER_BYNAME
Definition: HandledPackets.hpp:26305
@ ID_CZ_REQ_BANKING_CHECK
Definition: HandledPackets.hpp:23795
@ ID_CZ_MEMORIALDUNGEON_COMMAND
Definition: HandledPackets.hpp:13042
@ ID_CZ_INVENTORY_EXPAND_REJECTED
Definition: HandledPackets.hpp:8576
@ ID_CZ_REQ_JOIN_GROUP
Definition: HandledPackets.hpp:27149
@ ID_CZ_START_USE_SKILL
Definition: HandledPackets.hpp:33664
@ ID_CZ_REQ_ACH_REWARD
Definition: HandledPackets.hpp:23552
@ ID_CZ_NPC_EXPANDED_BARTER_MARKET_PURCHASE
Definition: HandledPackets.hpp:15390
@ ID_CZ_SETTING_WHISPER_PC
Definition: HandledPackets.hpp:32338
@ ID_CZ_SE_CASHSHOP_CLOSE
Definition: HandledPackets.hpp:32427
@ ID_CZ_MAKE_GROUP
Definition: HandledPackets.hpp:12946
@ ID_CZ_PARTY_RECRUIT_REQ_UPDATE
Definition: HandledPackets.hpp:17391
@ ID_CZ_KILLER_RANK
Definition: HandledPackets.hpp:12146
@ ID_CZ_GPK_DYNCODE_RELOAD
Definition: HandledPackets.hpp:7935
@ ID_CZ_OPEN_BARGAIN_SALE_TOOL
Definition: HandledPackets.hpp:15617
@ ID_CZ_REQ_CANCEL_WRITE_RODEX
Definition: HandledPackets.hpp:24092
@ ID_CZ_REQ_LEAVE_GUILD
Definition: HandledPackets.hpp:27330
@ ID_CZ_OPEN_RODEXBOX
Definition: HandledPackets.hpp:15654
@ ID_CZ_CAMERA_INFO
Definition: HandledPackets.hpp:2889
@ ID_CZ_COMPLETE_APPLY_MACRO_DETECTOR_CAPTCHA
Definition: HandledPackets.hpp:5519
@ ID_CZ_MOVE_ITEM_FROM_BODY_TO_STORE
Definition: HandledPackets.hpp:13312
@ ID_CZ_PKMODE_CHANGE
Definition: HandledPackets.hpp:17929
@ ID_CZ_REQ_GENERATE_ROULETTE
Definition: HandledPackets.hpp:26262
@ ID_CZ_PARTY_RECRUIT_REQ_DELETE
Definition: HandledPackets.hpp:17304
@ ID_CZ_PROGRESS
Definition: HandledPackets.hpp:18023
@ ID_CZ_REQ_PARTY_NAME
Definition: HandledPackets.hpp:28815
@ ID_CZ_REQ_WEAR_EQUIP
Definition: HandledPackets.hpp:30644
@ ID_CZ_WHISPER
Definition: HandledPackets.hpp:36514
@ ID_CZ_REQ_DISCONNECT
Definition: HandledPackets.hpp:25814
@ ID_CZ_REQ_JOIN_GUILD2
Definition: HandledPackets.hpp:27240
@ ID_CZ_REQ_DELETE_RELATED_GUILD
Definition: HandledPackets.hpp:25726
@ ID_CZ_REQUEST_ACT2
Definition: HandledPackets.hpp:21061
@ ID_CZ_REMOVE_AID_SSO
Definition: HandledPackets.hpp:18623
@ ID_CZ_REQUEST_MOVETOOWNER
Definition: HandledPackets.hpp:22369
@ ID_CZ_REQ_MOVE_GUILD_AGIT
Definition: HandledPackets.hpp:27618
@ ID_CZ_REQMAKINGITEM
Definition: HandledPackets.hpp:18887
@ ID_CZ_CANCEL_MERGE_ITEM
Definition: HandledPackets.hpp:3061
@ ID_CZ_REQUEST_TIME
Definition: HandledPackets.hpp:22616
@ ID_CZ_EXEC_EXCHANGE_ITEM
Definition: HandledPackets.hpp:7000
@ ID_CZ_CHOPOKGI
Definition: HandledPackets.hpp:4248
@ ID_CZ_REQ_MAKE_GUILD
Definition: HandledPackets.hpp:27428
@ ID_CZ_USE_SKILL2
Definition: HandledPackets.hpp:34835
@ ID_CZ_REQ_JOIN_GUILD
Definition: HandledPackets.hpp:27196
@ ID_CZ_JOIN_GROUP
Definition: HandledPackets.hpp:12050
@ ID_CZ_GM_FULLSTRIP
Definition: HandledPackets.hpp:7855
@ ID_CZ_REQ_RANKING
Definition: HandledPackets.hpp:29045
@ ID_CZ_REQ_ROLE_CHANGE
Definition: HandledPackets.hpp:29304
@ ID_CZ_PARTY_BOOKING_REQ_SEARCH
Definition: HandledPackets.hpp:16524
@ ID_CZ_INPUT_EDITDLGSTR
Definition: HandledPackets.hpp:8450
@ ID_CZ_BATTLE_FIELD_LIST
Definition: HandledPackets.hpp:2666
@ ID_CZ_REFINE_ADD_ITEM
Definition: HandledPackets.hpp:18315
@ ID_CZ_CREATE_CHATROOM
Definition: HandledPackets.hpp:5731
@ ID_CZ_MAIL_GET_LIST
Definition: HandledPackets.hpp:12755
@ ID_CZ_REQ_EXPEL_MEMBER
Definition: HandledPackets.hpp:26218
@ ID_CZ_MOVE_ITEM_FROM_CART_TO_GUILDSTORAGE
Definition: HandledPackets.hpp:14186
@ ID_CZ_REQ_RANDOM_COMBINE_ITEM
Definition: HandledPackets.hpp:28981
@ ID_CZ_MAIL_RESET_ITEM
Definition: HandledPackets.hpp:12848
@ ID_CZ_REQ_STATUS_GM
Definition: HandledPackets.hpp:29568
@ ID_CZ_MACRO_STOP
Definition: HandledPackets.hpp:12490
@ ID_CZ_IRMAIL_SEND
Definition: HandledPackets.hpp:8705
@ ID_CZ_PARTY_JOIN_REQ_ACK
Definition: HandledPackets.hpp:17146
@ ID_CZ_REQUEST_TIME2
Definition: HandledPackets.hpp:23212
@ ID_CZ_UPGRADE_SKILLLEVEL
Definition: HandledPackets.hpp:34097
@ ID_CZ_REQUEST_MOVE_NEW_JAPEN
Definition: HandledPackets.hpp:22416
@ ID_CZ_REQ_STYLE_CHANGE2
Definition: HandledPackets.hpp:29652
@ ID_CZ_OFFLINE_STORE_CREATE
Definition: HandledPackets.hpp:15577
@ ID_CZ_INPUT_EDITDLG
Definition: HandledPackets.hpp:8402
@ ID_CZ_NPROTECTGAMEGUARDCSAUTH
Definition: HandledPackets.hpp:15537
@ ID_CZ_PC_PURCHASE_ITEMLIST_FROMMC2
Definition: HandledPackets.hpp:17657
@ ID_CZ_REQNAME
Definition: HandledPackets.hpp:18932
@ ID_CZ_MACRO_USE_SKILL_TOGROUND
Definition: HandledPackets.hpp:12570
@ ID_CZ_RESET
Definition: HandledPackets.hpp:30820
@ ID_CZ_NPC_TRADE_QUIT
Definition: HandledPackets.hpp:15497
@ ID_CZ_REQ_ALLY_GUILD
Definition: HandledPackets.hpp:23672
@ ID_CZ_REQNAME2
Definition: HandledPackets.hpp:19463
@ ID_CZ_RENAME_MER
Definition: HandledPackets.hpp:18667
@ ID_CZ_PARTY_CONFIG
Definition: HandledPackets.hpp:16613
@ ID_CZ_REMEMBER_WARPPOINT
Definition: HandledPackets.hpp:18534
@ ID_CZ_PARTY_RECRUIT_REQ_VOLUNTEER
Definition: HandledPackets.hpp:17420
@ ID_CZ_JOIN_BATTLE_FIELD
Definition: HandledPackets.hpp:11293
@ ID_CZ_CLOSE_DIALOG
Definition: HandledPackets.hpp:4426
@ ID_CZ_REGISTER_GUILD_EMBLEM_IMG
Definition: HandledPackets.hpp:18438
@ ID_CZ_REQ_ITEMCOMPOSITION
Definition: HandledPackets.hpp:26787
@ ID_CZ_MOVE_ITEM_FROM_GUILDSTORAGE_TO_CART
Definition: HandledPackets.hpp:14318
@ ID_CZ_UNUSED_MER_UPGRADE_SKILLLEVEL
Definition: HandledPackets.hpp:34030
@ ID_CZ_ALLY_GUILD
Definition: HandledPackets.hpp:1998
@ ID_CZ_CHECK_RECEIVE_CHARACTER_NAME
Definition: HandledPackets.hpp:4120
@ ID_CZ_REQ_HOSTILE_GUILD
Definition: HandledPackets.hpp:26740
@ ID_CZ_REQ_ACCOUNTNAME
Definition: HandledPackets.hpp:23508
@ ID_CZ_OPEN_SIMPLE_CASHSHOP_ITEMLIST
Definition: HandledPackets.hpp:15709
@ ID_CZ_CLAN_CHAT
Definition: HandledPackets.hpp:4297
@ ID_CZ_DISCONNECT_CHARACTER
Definition: HandledPackets.hpp:5922
@ ID_CZ_REQUEST_MOVENPC
Definition: HandledPackets.hpp:22320
@ ID_CZ_MACRO_REQUEST_ACT
Definition: HandledPackets.hpp:12370
@ ID_CZ_ITEM_THROW2
Definition: HandledPackets.hpp:10988
@ ID_CZ_ACK_ANSWER_MACRO_DETECTOR
Definition: HandledPackets.hpp:56
@ ID_CZ_SHORTCUTKEYBAR_ROTATE
Definition: HandledPackets.hpp:32627
@ ID_CZ_PET_EVOLUTION
Definition: HandledPackets.hpp:17843
@ ID_CZ_REQ_EXCHANGE_ITEM
Definition: HandledPackets.hpp:26123
@ ID_CZ_CLOSE_WINDOW
Definition: HandledPackets.hpp:4700
@ ID_CZ_SSILIST_ITEM_CLICK
Definition: HandledPackets.hpp:32921
@ ID_CZ_REQ_PLAYER_AID_IN_RANGE
Definition: HandledPackets.hpp:28865
@ ID_CZ_PC_SELL_ITEMLIST
Definition: HandledPackets.hpp:17704
@ ID_CZ_STATUS_CHANGE
Definition: HandledPackets.hpp:33707
@ ID_CZ_REQNAME_BYGID
Definition: HandledPackets.hpp:19716
@ ID_CZ_ITEM_THROW
Definition: HandledPackets.hpp:10439
@ ID_CZ_CLOSE_SEARCH_STORE_INFO
Definition: HandledPackets.hpp:4546
@ ID_CZ_NPC_MARKET_CLOSE
Definition: HandledPackets.hpp:15417
@ ID_CZ_REQ_TAKEOFF_EQUIP
Definition: HandledPackets.hpp:29695
@ ID_CZ_CLOSE_STORE
Definition: HandledPackets.hpp:4629
@ ID_CZ_CHANGE_MAPTYPE
Definition: HandledPackets.hpp:4074
@ ID_CZ_SE_CASHSHOP_OPEN2
Definition: HandledPackets.hpp:32517
@ ID_CZ_REQ_UPLOAD_MACRO_DETECTOR
Definition: HandledPackets.hpp:30521
Definition: Element.hpp:7