diff options
Diffstat (limited to 'src/net')
-rw-r--r-- | src/net/ea/beinghandler.cpp | 10 | ||||
-rw-r--r-- | src/net/ea/network.cpp | 2 | ||||
-rw-r--r-- | src/net/ea/protocol.h | 1 |
3 files changed, 11 insertions, 2 deletions
diff --git a/src/net/ea/beinghandler.cpp b/src/net/ea/beinghandler.cpp index fd08ecaf..56f23fdb 100644 --- a/src/net/ea/beinghandler.cpp +++ b/src/net/ea/beinghandler.cpp @@ -56,6 +56,7 @@ BeingHandler::BeingHandler(bool enableSync): SMSG_BEING_CHANGE_LOOKS, SMSG_BEING_CHANGE_LOOKS2, SMSG_BEING_NAME_RESPONSE, + SMSG_PLAYER_GUILD_PARTY_INFO, SMSG_BEING_CHANGE_DIRECTION, SMSG_PLAYER_UPDATE_1, SMSG_PLAYER_UPDATE_2, @@ -480,7 +481,14 @@ void BeingHandler::handleMessage(Net::MessageIn &msg) dstBeing->setName(msg.readString(24)); } break; - + case SMSG_PLAYER_GUILD_PARTY_INFO: + if ((dstBeing = beingManager->findBeing(msg.readInt32()))) + { + dstBeing->setPartyName(msg.readString(24)); + dstBeing->setGuildName(msg.readString(24)); + dstBeing->setGuildPos(msg.readString(24)); + } + break; case SMSG_BEING_CHANGE_DIRECTION: if (!(dstBeing = beingManager->findBeing(msg.readInt32()))) { diff --git a/src/net/ea/network.cpp b/src/net/ea/network.cpp index 28cf60dd..7214ef10 100644 --- a/src/net/ea/network.cpp +++ b/src/net/ea/network.cpp @@ -69,7 +69,7 @@ short packet_lengths[] = { 14, 30, 10, 3, -1, 6,106, -1, 4, 5, 4, -1, 6, 7, -1, -1, // #0x0180 6, 3,106, 10, 10, 34, 0, 6, 8, 4, 4, 4, 29, -1, 10, 6, - 90, 86, 24, 6, 30,102, 9, 4, 8, 4, 14, 10, 4, 6, 2, 6, + 90, 86, 24, 6, 30, 78, 9, 4, 8, 4, 14, 10, 4, 6, 2, 6, 3, 3, 35, 5, 11, 26, -1, 4, 4, 6, 10, 12, 6, -1, 4, 4, 11, 7, -1, 67, 12, 18,114, 6, 3, 6, 26, 26, 26, 26, 2, 3, // #0x01C0 diff --git a/src/net/ea/protocol.h b/src/net/ea/protocol.h index 75920e18..24fe5ba5 100644 --- a/src/net/ea/protocol.h +++ b/src/net/ea/protocol.h @@ -133,6 +133,7 @@ static const int STORAGE_OFFSET = 1; #define SMSG_BEING_RESURRECT 0x0148 #define SMSG_PLAYER_STATUS_CHANGE 0x0119 +#define SMSG_PLAYER_GUILD_PARTY_INFO 0x0195 #define SMSG_BEING_STATUS_CHANGE 0x0196 #define SMSG_NPC_MESSAGE 0x00b4 |