summaryrefslogtreecommitdiff
path: root/src/net/eathena/npchandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2018-05-18 20:46:07 +0300
committerAndrei Karas <akaras@inbox.ru>2018-05-18 20:46:07 +0300
commitcee847abc0873504b54022c3af8cdf316e2c06c5 (patch)
tree9c9fbbd214db848b0d3b64781a069327575a7053 /src/net/eathena/npchandler.cpp
parente40ff3205395015708b4801a984c25f239089f50 (diff)
downloadmanaplus-cee847abc0873504b54022c3af8cdf316e2c06c5.tar.gz
manaplus-cee847abc0873504b54022c3af8cdf316e2c06c5.tar.bz2
manaplus-cee847abc0873504b54022c3af8cdf316e2c06c5.tar.xz
manaplus-cee847abc0873504b54022c3af8cdf316e2c06c5.zip
Add packet CMSG_PRIVATE_AIRSHIP_REQUEST 0x0a49.
Diffstat (limited to 'src/net/eathena/npchandler.cpp')
-rw-r--r--src/net/eathena/npchandler.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/net/eathena/npchandler.cpp b/src/net/eathena/npchandler.cpp
index 7a9f30a5b..c7783f363 100644
--- a/src/net/eathena/npchandler.cpp
+++ b/src/net/eathena/npchandler.cpp
@@ -46,6 +46,7 @@
#include "debug.h"
extern int packetVersion;
+extern int packetVersionRe;
namespace EAthena
{
@@ -362,4 +363,14 @@ BeingId NpcHandler::getNpc(Net::MessageIn &msg,
return npcId;
}
+void NpcHandler::requestAirship(const std::string &mapName,
+ const int itemId) const
+{
+ if (packetVersionRe < 20180321)
+ return;
+ createOutPacket(CMSG_PRIVATE_AIRSHIP_REQUEST);
+ outMsg.writeString(mapName, 16, "map name");
+ outMsg.writeInt16(itemId, "item");
+}
+
} // namespace EAthena