summaryrefslogtreecommitdiff
path: root/src/emap/init.c
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-08-16 19:40:07 +0300
committerAndrei Karas <akaras@inbox.ru>2017-08-16 19:40:07 +0300
commit8cf0fdba8fa2efca6e09a08f4c17325a7cd10a98 (patch)
tree1bb8a2ac537bd1a2f7d9123ea803a8a9cb383221 /src/emap/init.c
parentb4409352f8aae56483133b4086a580e60660f761 (diff)
downloadevol-hercules-8cf0fdba8fa2efca6e09a08f4c17325a7cd10a98.tar.gz
evol-hercules-8cf0fdba8fa2efca6e09a08f4c17325a7cd10a98.tar.bz2
evol-hercules-8cf0fdba8fa2efca6e09a08f4c17325a7cd10a98.tar.xz
evol-hercules-8cf0fdba8fa2efca6e09a08f4c17325a7cd10a98.zip
Add evol packets id offset. For now offset is 0.
This allow to change evol packets id if they start conflicting with hercules packets in future.
Diffstat (limited to 'src/emap/init.c')
-rw-r--r--src/emap/init.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/emap/init.c b/src/emap/init.c
index 6b46b0a..8cd7cd4 100644
--- a/src/emap/init.c
+++ b/src/emap/init.c
@@ -196,18 +196,18 @@ HPExport void plugin_init (void)
do_init_langs();
addPacket(0x7530, 22, map_parse_version, hpClif_Parse);
- addPacket(0xb07, 26, map_parse_join_channel, hpClif_Parse);
- addPacket(0xb09, 26, map_parse_part_channel, hpClif_Parse);
- addPacket(0xb0c, -1, map_parse_pet_say, hpClif_Parse);
- addPacket(0xb0d, 3, map_parse_pet_emote, hpClif_Parse);
- addPacket(0xb0e, 4, map_parse_set_status, hpClif_Parse);
- addPacket(0xb0f, 2, map_parse_get_online_list, hpClif_Parse);
- addPacket(0xb11, 10, map_parse_pet_move, hpClif_Parse);
- addPacket(0xb12, 9, map_parse_pet_dir, hpClif_Parse);
- addPacket(0xb13, -1, map_parse_homun_say, hpClif_Parse);
- addPacket(0xb14, 3, map_parse_homun_emote, hpClif_Parse);
- addPacket(0xb15, 9, map_parse_homun_dir, hpClif_Parse);
- addPacket(0xb26, 6, map_clif_parse_useitem2, hpClif_Parse);
+ addPacket(0xb07 + evolPacketOffset, 26, map_parse_join_channel, hpClif_Parse);
+ addPacket(0xb09 + evolPacketOffset, 26, map_parse_part_channel, hpClif_Parse);
+ addPacket(0xb0c + evolPacketOffset, -1, map_parse_pet_say, hpClif_Parse);
+ addPacket(0xb0d + evolPacketOffset, 3, map_parse_pet_emote, hpClif_Parse);
+ addPacket(0xb0e + evolPacketOffset, 4, map_parse_set_status, hpClif_Parse);
+ addPacket(0xb0f + evolPacketOffset, 2, map_parse_get_online_list, hpClif_Parse);
+ addPacket(0xb11 + evolPacketOffset, 10, map_parse_pet_move, hpClif_Parse);
+ addPacket(0xb12 + evolPacketOffset, 9, map_parse_pet_dir, hpClif_Parse);
+ addPacket(0xb13 + evolPacketOffset, -1, map_parse_homun_say, hpClif_Parse);
+ addPacket(0xb14 + evolPacketOffset, 3, map_parse_homun_emote, hpClif_Parse);
+ addPacket(0xb15 + evolPacketOffset, 9, map_parse_homun_dir, hpClif_Parse);
+ addPacket(0xb26 + evolPacketOffset, 6, map_clif_parse_useitem2, hpClif_Parse);
addHookPre(atcommand, msgfd, eatcommand_msgfd_pre);
addHookPre(atcommand, msgsd, eatcommand_msgsd_pre);