From 0042fdf7678e8a8ba386668f4149a27e71ef8a13 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 25 Jan 2019 22:21:54 +0300 Subject: Update version checks for packet CMSG_PRIVATE_AIRSHIP_REQUEST --- src/net/eathena/npchandler.cpp | 4 +++- src/net/eathena/packetsout.inc | 7 +++++++ 2 files changed, 10 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/net/eathena/npchandler.cpp b/src/net/eathena/npchandler.cpp index 7fd69601e..f44043a85 100644 --- a/src/net/eathena/npchandler.cpp +++ b/src/net/eathena/npchandler.cpp @@ -48,6 +48,7 @@ extern int packetVersion; extern int packetVersionMain; extern int packetVersionRe; +extern bool packets_zero; extern int itemIdLen; namespace EAthena @@ -374,7 +375,8 @@ void NpcHandler::requestAirship(const std::string &mapName, const int itemId) const { if (packetVersionRe < 20180321 && - packetVersionMain < 20180620) + packetVersionMain < 20180620 && + packets_zero == false) { return; } diff --git a/src/net/eathena/packetsout.inc b/src/net/eathena/packetsout.inc index aca3e0b8f..ca3b0b2d4 100644 --- a/src/net/eathena/packetsout.inc +++ b/src/net/eathena/packetsout.inc @@ -1384,6 +1384,11 @@ if (packetVersion >= 20170419) packet(CMSG_MAIL2_REFRESH_MAIL_LIST, 0x0ac1, 26, clif->pRodexRefreshMaillist); } +if (packets_zero >= true) +{ + packet(CMSG_PRIVATE_AIRSHIP_REQUEST, 0x0a49, 20, clif->pPrivateAirshipRequest); +} + // 20171214 zero if (packetVersionZero >= 20171214) { @@ -1530,12 +1535,14 @@ if (packetVersionZero >= 20181114) packet(CMSG_INVENTORY_EXPAND_CONFIRM, 0x0b16, 2, clif->pInventoryExpansionConfirm); packet(CMSG_INVENTORY_EXPAND_REJECT, 0x0b19, 2, clif->pInventoryExpansionReject); packet(CMSG_NPC_SELECT_ARROW, 0x01ae, 6, clif->pSelectArrow); + packet(CMSG_PRIVATE_AIRSHIP_REQUEST, 0x0a49, 22, clif->pPrivateAirshipRequest); } // 20181121 main if (packetVersionMain >= 20181121) { packet(CMSG_NPC_SELECT_ARROW, 0x01ae, 6, clif->pSelectArrow); + packet(CMSG_PRIVATE_AIRSHIP_REQUEST, 0x0a49, 22, clif->pPrivateAirshipRequest); } // 20181226 zero -- cgit v1.2.3-70-g09d2