summaryrefslogtreecommitdiff
path: root/src/net/tmwa
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-09-18 20:25:42 +0300
committerAndrei Karas <akaras@inbox.ru>2014-09-18 20:25:42 +0300
commit39fadb44e907ffe2209f81643ce182b03e5c6245 (patch)
treeb5905d463a7035d95a8044b4d8f1fd111f3fa201 /src/net/tmwa
parentf35a9907a5ab7ff08bf8fc0d54090fa3fe05a63e (diff)
downloadplus-39fadb44e907ffe2209f81643ce182b03e5c6245.tar.gz
plus-39fadb44e907ffe2209f81643ce182b03e5c6245.tar.bz2
plus-39fadb44e907ffe2209f81643ce182b03e5c6245.tar.xz
plus-39fadb44e907ffe2209f81643ce182b03e5c6245.zip
Move processPlayerGuilPartyInfo from ea namespace into eathena and tmwa.
Diffstat (limited to 'src/net/tmwa')
-rw-r--r--src/net/tmwa/beinghandler.cpp29
-rw-r--r--src/net/tmwa/beinghandler.h2
2 files changed, 31 insertions, 0 deletions
diff --git a/src/net/tmwa/beinghandler.cpp b/src/net/tmwa/beinghandler.cpp
index a8fe157da..5160930a2 100644
--- a/src/net/tmwa/beinghandler.cpp
+++ b/src/net/tmwa/beinghandler.cpp
@@ -1617,4 +1617,33 @@ void BeingHandler::processBeingResurrect(Net::MessageIn &msg) const
BLOCK_END("BeingHandler::processBeingResurrect")
}
+void BeingHandler::processPlayerGuilPartyInfo(Net::MessageIn &msg) const
+{
+ BLOCK_START("BeingHandler::processPlayerGuilPartyInfo")
+ if (!actorManager)
+ {
+ BLOCK_END("BeingHandler::processPlayerGuilPartyInfo")
+ return;
+ }
+
+ Being *const dstBeing = actorManager->findBeing(msg.readInt32("being id"));
+
+ if (dstBeing)
+ {
+ dstBeing->setPartyName(msg.readString(24, "party name"));
+ if (!guildManager || !GuildManager::getEnableGuildBot())
+ {
+ dstBeing->setGuildName(msg.readString(24, "guild name"));
+ dstBeing->setGuildPos(msg.readString(24, "guild pos"));
+ }
+ else
+ {
+ msg.skip(48);
+ }
+ dstBeing->addToCache();
+ msg.readString(24, "?");
+ }
+ BLOCK_END("BeingHandler::processPlayerGuilPartyInfo")
+}
+
} // namespace TmwAthena
diff --git a/src/net/tmwa/beinghandler.h b/src/net/tmwa/beinghandler.h
index 2087b5c53..7c22c3e93 100644
--- a/src/net/tmwa/beinghandler.h
+++ b/src/net/tmwa/beinghandler.h
@@ -85,6 +85,8 @@ class BeingHandler final : public MessageHandler, public Ea::BeingHandler
void processBeingResurrect(Net::MessageIn &msg) const;
+ void processPlayerGuilPartyInfo(Net::MessageIn &msg) const;
+
static void setServerGender(Being *const being,
const uint8_t gender);