diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-04-01 20:33:27 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-04-01 20:33:27 +0300 |
commit | 92a0ea927379fcb8ec7da184fd38ccf84ec1c3d5 (patch) | |
tree | 4982a05f077153cfde78aaa6a32e3ea1d91f164d /src | |
parent | f343b136913477cb0593dff4cad642cb3038d98d (diff) | |
download | manaplus-92a0ea927379fcb8ec7da184fd38ccf84ec1c3d5.tar.gz manaplus-92a0ea927379fcb8ec7da184fd38ccf84ec1c3d5.tar.bz2 manaplus-92a0ea927379fcb8ec7da184fd38ccf84ec1c3d5.tar.xz manaplus-92a0ea927379fcb8ec7da184fd38ccf84ec1c3d5.zip |
Sort more packets. Add version checks inside packets.
Diffstat (limited to 'src')
-rw-r--r-- | src/net/eathena/packetsin.inc | 8 | ||||
-rw-r--r-- | src/net/eathena/petrecv.cpp | 5 |
2 files changed, 9 insertions, 4 deletions
diff --git a/src/net/eathena/packetsin.inc b/src/net/eathena/packetsin.inc index b83816622..cb914ee39 100644 --- a/src/net/eathena/packetsin.inc +++ b/src/net/eathena/packetsin.inc @@ -139,6 +139,9 @@ packet(SMSG_BEING_FONT, 0x02ef, 8, &BeingRecv::processBeing packet(SMSG_NPC_SHOW_PROGRESS_BAR, 0x02f0, 10, &NpcRecv::processNpcShowProgressBar, 20080318); packet(SMSG_NPC_PROGRESS_BAR_ABORT, 0x02f2, 2, &NpcRecv::processProgressBarAbort, 20080318); +// 20081126 +packet(SMSG_PET_STATUS, 0x01a2, 37, &PetRecv::processPetStatus, 20081126); + // 20081210 packet(SMSG_AUTOSHADOW_SPELL_LIST, 0x0442, -1, &PlayerRecv::processPlayerAutoShadowSpellList, 20081210); @@ -389,8 +392,6 @@ packet(SMSG_PARTY_LEADER, 0x07fc, 10, &PartyRecv::processParty packet(SMSG_PARTY_LEAVE, 0x0105, 31, &Ea::PartyRecv::processPartyLeave, 0); packet(SMSG_PARTY_MEMBER_INFO, 0x01e9, 81, &PartyRecv::processPartyMemberInfo, 0); packet(SMSG_PARTY_MESSAGE, 0x0109, -1, &PartyRecv::processPartyMessage, 0); - -// 20150000 or near packet(SMSG_PARTY_UPDATE_COORDS, 0x0107, 10, &Ea::PartyRecv::processPartyUpdateCoords, 0); packet(SMSG_PET_CATCH_PROCESS, 0x019e, 2, &PetRecv::processPetCatchProcess, 0); packet(SMSG_PET_DATA, 0x01a4, 11, &PetRecv::processPetData, 0); @@ -398,7 +399,8 @@ packet(SMSG_PET_EGGS_LIST, 0x01a6, -1, &PetRecv::processEggsLis packet(SMSG_PET_FOOD, 0x01a3, 5, &PetRecv::processPetFood, 0); packet(SMSG_PET_MESSAGE, 0x01aa, 10, &PetRecv::processPetMessage, 0); packet(SMSG_PET_ROULETTE, 0x01a0, 3, &PetRecv::processPetRoulette, 0); -packet(SMSG_PET_STATUS, 0x01a2, 37, &PetRecv::processPetStatus, 0); + +// 20150000 or near packet(SMSG_PK_RANKS_LIST, 0x0238, 282, &BeingRecv::processPkRanksList, 0); packet(SMSG_PLAYER_ADD_SKILL, 0x0111, 39, &SkillRecv::processSkillAdd, 0); packet(SMSG_PLAYER_ARROW_EQUIP, 0x013c, 4, &Ea::InventoryRecv::processPlayerArrowEquip, 0); diff --git a/src/net/eathena/petrecv.cpp b/src/net/eathena/petrecv.cpp index da209e268..d3823f6e6 100644 --- a/src/net/eathena/petrecv.cpp +++ b/src/net/eathena/petrecv.cpp @@ -183,7 +183,10 @@ void PetRecv::processPetStatus(Net::MessageIn &msg) info->hungry = hungry; info->intimacy = intimacy; info->equip = equip; - info->race = race; + if (msg.getVersion() >= 20081126) + info->race = race; + else + info->race = 0; } void PetRecv::processPetFood(Net::MessageIn &msg) |