From 9c7134fb1991509f9795fb8cd8eec4cf818a93fc Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 25 Sep 2018 22:14:49 +0300 Subject: Add packet SMSG_GUILD_SET_POSITION 0x0afd. --- src/net/eathena/guildrecv.cpp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'src/net/eathena/guildrecv.cpp') diff --git a/src/net/eathena/guildrecv.cpp b/src/net/eathena/guildrecv.cpp index 574090c8f..b5450e1aa 100644 --- a/src/net/eathena/guildrecv.cpp +++ b/src/net/eathena/guildrecv.cpp @@ -802,4 +802,21 @@ void GuildRecv::processOnlineInfo(Net::MessageIn &msg) msg.readInt32("online"); } +void GuildRecv::processGuildSetPosition(Net::MessageIn &msg) +{ + const int positionLen = msg.readInt16("len") - 8; + const BeingId beingId = msg.readBeingId("being id"); + std::string position; + if (positionLen > 0) + { + position = msg.readString(positionLen, "position"); + } + Being *const dstBeing = actorManager->findBeing(beingId); + if (dstBeing != nullptr) + { + dstBeing->setGuildPos(position); + dstBeing->addToCache(); + } +} + } // namespace EAthena -- cgit v1.2.3-60-g2f50