diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-04-03 19:30:49 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-04-03 19:30:49 +0300 |
commit | 74e3ec3edcae04931238c2e6be93c60c087571e9 (patch) | |
tree | 5dcdb695a6d4ab4cd67a122cfe3c0936436009b3 /src/net | |
parent | 36210fbf89d30c94159780a65bd6407c94b72643 (diff) | |
download | plus-74e3ec3edcae04931238c2e6be93c60c087571e9.tar.gz plus-74e3ec3edcae04931238c2e6be93c60c087571e9.tar.bz2 plus-74e3ec3edcae04931238c2e6be93c60c087571e9.tar.xz plus-74e3ec3edcae04931238c2e6be93c60c087571e9.zip |
Add some missing packet id, add packet SMSG_BATTLE_UPDATE_HP 0x02e0.
Diffstat (limited to 'src/net')
-rw-r--r-- | src/net/eathena/battlegroundrecv.cpp | 9 | ||||
-rw-r--r-- | src/net/eathena/battlegroundrecv.h | 1 | ||||
-rw-r--r-- | src/net/eathena/packetsin.inc | 6 |
3 files changed, 16 insertions, 0 deletions
diff --git a/src/net/eathena/battlegroundrecv.cpp b/src/net/eathena/battlegroundrecv.cpp index eced58928..dc01547b2 100644 --- a/src/net/eathena/battlegroundrecv.cpp +++ b/src/net/eathena/battlegroundrecv.cpp @@ -103,4 +103,13 @@ void BattleGroundRecv::processBattleJoined(Net::MessageIn &msg) msg.readInt32("position"); } +void BattleGroundRecv::processBattleUpdateHp(Net::MessageIn &msg) +{ + UNIMPLIMENTEDPACKET; + msg.readBeingId("account id"); + msg.readString(24, "name"); + msg.readInt16("hp"); + msg.readInt16("max hp"); +} + } // namespace EAthena diff --git a/src/net/eathena/battlegroundrecv.h b/src/net/eathena/battlegroundrecv.h index 4349c532c..59b3e18ce 100644 --- a/src/net/eathena/battlegroundrecv.h +++ b/src/net/eathena/battlegroundrecv.h @@ -41,6 +41,7 @@ namespace EAthena void processBattleBegins(Net::MessageIn &msg); void processBattleNoticeDelete(Net::MessageIn &msg); void processBattleJoined(Net::MessageIn &msg); + void processBattleUpdateHp(Net::MessageIn &msg); } // namespace BattleGroundRecv } // namespace EAthena diff --git a/src/net/eathena/packetsin.inc b/src/net/eathena/packetsin.inc index 13370bc2c..34821a5b6 100644 --- a/src/net/eathena/packetsin.inc +++ b/src/net/eathena/packetsin.inc @@ -44,6 +44,9 @@ packet(SMSG_BEING_STATUS_CHANGE, 0x0196, 9, &BeingRecv::processBeing packet(SMSG_QUEST_LIST, 0x02b1, -1, &QuestRecv::processAddQuests, 1); packet(SMSG_BEING_VIEW_EQUIPMENT, 0x02d7, -1, &BeingRecv::processBeingViewEquipment, 1); packet(SMSG_BEING_MOVE, 0x007b, 60, &BeingRecv::processBeingMove, 1); +packet(SMSG_PARTY_INVITED, 0x00fe, 30, &PartyRecv::processPartyInvited, 1); +packet(SMSG_PARTY_SETTINGS, 0x0101, 6, &PartyRecv::processPartySettings, 1); +packet(SMSG_PLAYER_HP, 0x0106, 10, &BeingRecv::processMonsterHp, 1); // fake packets for add packet name packet(SMSG_SELECT_CART, 0x0000, 0, nullptr, 0); @@ -436,6 +439,7 @@ if (packetVersion >= 20070227) packet(SMSG_BATTLE_EMBLEM, 0x02dd, 32, &BattleGroundRecv::processBattleEmblem, 20070227); packet(SMSG_BATTLE_UPDATE_SCORE, 0x02de, 6, &BattleGroundRecv::processBattleUpdateScore, 20070227); packet(SMSG_BATTLE_UPDATE_COORDS, 0x02df, 36, &BattleGroundRecv::processBattleUpdateCoords, 20070227); + packet(SMSG_BATTLE_UPDATE_HP, 0x02e0, 34, &BattleGroundRecv::processBattleUpdateHp, 20070227); } // 20070821 @@ -749,6 +753,7 @@ if (packetVersion >= 20141022) packet(SMSG_VENDING_OPEN_STATUS, 0x0a28, 3, &VendingRecv::processOpenStatus, 20141022); } +// 0 // evol packets if (serverVersion > 0) { @@ -805,6 +810,7 @@ if (packetVersion >= 20150805) packet(SMSG_SELECT_CART, 0x097f, -1, &InventoryRecv::processSelectCart, 20150805); } +// 0 // evol always packets packet(SMSG_SERVER_VERSION_RESPONSE, 0x7531, -1, &LoginRecv::processServerVersion, 0); packet(SMSG_UPDATE_HOST, 0x0063, -1, &Ea::LoginRecv::processUpdateHost, 0); |