From 143ec36c93ea41b4516b5c8b99f021b8bec79164 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 10 Sep 2014 18:13:44 +0300 Subject: eathena: add packet CMSG_PARTY_INVITE2 0x08a9. --- src/net/eathena/partyhandler.cpp | 7 ++++++- src/net/eathena/protocol.h | 1 + 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/net/eathena/partyhandler.cpp b/src/net/eathena/partyhandler.cpp index b955101d1..43cb8066f 100644 --- a/src/net/eathena/partyhandler.cpp +++ b/src/net/eathena/partyhandler.cpp @@ -143,7 +143,12 @@ void PartyHandler::invite(const std::string &name) const if (being) { MessageOut outMsg(CMSG_PARTY_INVITE); - outMsg.writeInt32(being->getId()); + outMsg.writeInt32(being->getId(), "account id"); + } + else + { + MessageOut outMsg(CMSG_PARTY_INVITE2); + outMsg.writeString(name, 24, "nick"); } } diff --git a/src/net/eathena/protocol.h b/src/net/eathena/protocol.h index 7ae554664..15bfcbf3c 100644 --- a/src/net/eathena/protocol.h +++ b/src/net/eathena/protocol.h @@ -275,6 +275,7 @@ #define CMSG_PARTY_CREATE 0x00f9 #define CMSG_PARTY_CREATE2 0x01e8 #define CMSG_PARTY_INVITE 0x00fc +#define CMSG_PARTY_INVITE2 0x08a9 #define CMSG_PARTY_INVITED 0x00ff #define CMSG_PARTY_LEAVE 0x0100 #define CMSG_PARTY_SETTINGS 0x0102 -- cgit v1.2.3-70-g09d2