From 7e92c3043da816bcd53bbf014ece526a383f8eb3 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 20 May 2015 18:45:29 +0300 Subject: eathena: impliment packet CMSG_GUILD_CHANGE_POS_INFO. --- src/net/eathena/guildhandler.cpp | 15 +++++++++++++++ src/net/eathena/guildhandler.h | 6 ++++++ 2 files changed, 21 insertions(+) (limited to 'src/net/eathena') diff --git a/src/net/eathena/guildhandler.cpp b/src/net/eathena/guildhandler.cpp index 85000d79f..84dd8eec8 100644 --- a/src/net/eathena/guildhandler.cpp +++ b/src/net/eathena/guildhandler.cpp @@ -477,4 +477,19 @@ void GuildHandler::endAlliance(const int guildId, outMsg.writeInt32(flag, "flag"); } +void GuildHandler::changePostionInfo(const int posId, + const int mode, + const int ranking, + const int payRate, + const std::string &name) const +{ + createOutPacket(CMSG_GUILD_CHANGE_POS_INFO); + outMsg.writeInt16(44, "len"); + outMsg.writeInt32(posId, "position id"); + outMsg.writeInt32(mode, "mode"); + outMsg.writeInt32(ranking, "ranking"); + outMsg.writeInt32(payRate, "pay rate"); + outMsg.writeString(name, 24, "name"); +} + } // namespace EAthena diff --git a/src/net/eathena/guildhandler.h b/src/net/eathena/guildhandler.h index 89144ebad..6f42b4e80 100644 --- a/src/net/eathena/guildhandler.h +++ b/src/net/eathena/guildhandler.h @@ -78,6 +78,12 @@ class GuildHandler final : public Ea::GuildHandler, public MessageHandler void endAlliance(const int guildId, const int flag) const override final; + void changePostionInfo(const int posId, + const int mode, + const int ranking, + const int payRate, + const std::string &name) const override final; + protected: static void processGuildUpdateCoords(Net::MessageIn &msg); -- cgit v1.2.3-70-g09d2