summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/net/eathena/beinghandler.cpp4
-rw-r--r--src/net/eathena/packetsout.inc3
2 files changed, 6 insertions, 1 deletions
diff --git a/src/net/eathena/beinghandler.cpp b/src/net/eathena/beinghandler.cpp
index 418876b0d..1ecb8895c 100644
--- a/src/net/eathena/beinghandler.cpp
+++ b/src/net/eathena/beinghandler.cpp
@@ -29,6 +29,7 @@
#include "debug.h"
extern Net::BeingHandler *beingHandler;
+extern int packetVersion;
extern int serverVersion;
namespace EAthena
@@ -69,6 +70,9 @@ void BeingHandler::undress(Being *const being) const
void BeingHandler::requestRanks(const RankT rank) const
{
+ if (packetVersion < 20130605)
+ return;
+
createOutPacket(CMSG_REQUEST_RANKS);
outMsg.writeInt16(CAST_S16(rank), "type");
}
diff --git a/src/net/eathena/packetsout.inc b/src/net/eathena/packetsout.inc
index fd44935c9..d5b40e2e5 100644
--- a/src/net/eathena/packetsout.inc
+++ b/src/net/eathena/packetsout.inc
@@ -181,7 +181,6 @@ packet(CMSG_SOLVE_CHAR_NAME, 0x0193, 6, clif->pSolveCharName);
packet(CMSG_IGNORE_ALL, 0x00d0, 3, clif->pPMIgnoreAll);
packet(CMSG_IGNORE_NICK, 0x00cf, 27, clif->pPMIgnore);
packet(CMSG_REQUEST_IGNORE_LIST, 0x00d3, 2, clif->pPMIgnoreList);
-packet(CMSG_REQUEST_RANKS, 0x097c, 4, clif->pRanklist);
packet(CMSG_SET_SHORTCUTS, 0x02ba, 11, clif->pHotkey);
packet(CMSG_NPC_COMPLETE_PROGRESS_BAR, 0x02f1, 2, clif->pProgressbar);
packet(CMSG_NPC_PRODUCE_MIX, 0x018e, 10, clif->pProduceMix);
@@ -291,6 +290,7 @@ packet(CMSG_BANK_WITHDRAW, 0x0000, 0, nullptr);
packet(CMSG_BANK_CHECK, 0x0000, 0, nullptr);
packet(CMSG_BANK_OPEN, 0x0000, 0, nullptr);
packet(CMSG_BANK_CLOSE, 0x0000, 0, nullptr);
+packet(CMSG_REQUEST_RANKS, 0x0000, 0, nullptr);
#else
// 20040713
if (packetVersion >= 20040713)
@@ -841,6 +841,7 @@ if (packetVersion >= 20130605)
packet(CMSG_HOMUNCULUS_MENU, 0x0361, 5, clif->pHomMenu);
packet(CMSG_BUYINGSTORE_CREATE, 0x0815, -1, clif->pReqOpenBuyingStore);
packet(CMSG_SKILL_USE_BEING, 0x083c, 10, clif->pUseSkillToId);
+ packet(CMSG_REQUEST_RANKS, 0x097c, 4, clif->pRanklist);
}
// 20130612