summaryrefslogtreecommitdiff
path: root/src/net
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-09-09 22:56:12 +0300
committerAndrei Karas <akaras@inbox.ru>2014-09-09 22:56:12 +0300
commit18038856316fdb9368848251c32e01aa6f18e0f3 (patch)
tree5e45fc9e15c49e64680245ab46abeb713d34dd1f /src/net
parent605691e70927a3b44064562f7507c14e4600c3d3 (diff)
downloadManaVerse-18038856316fdb9368848251c32e01aa6f18e0f3.tar.gz
ManaVerse-18038856316fdb9368848251c32e01aa6f18e0f3.tar.bz2
ManaVerse-18038856316fdb9368848251c32e01aa6f18e0f3.tar.xz
ManaVerse-18038856316fdb9368848251c32e01aa6f18e0f3.zip
eathena: add packet CMSG_NPC_SELECT_ARROW 0x01ae.
Diffstat (limited to 'src/net')
-rw-r--r--src/net/eathena/npchandler.cpp6
-rw-r--r--src/net/eathena/npchandler.h2
-rw-r--r--src/net/eathena/protocol.h2
-rw-r--r--src/net/npchandler.h2
-rw-r--r--src/net/tmwa/npchandler.cpp4
-rw-r--r--src/net/tmwa/npchandler.h2
6 files changed, 18 insertions, 0 deletions
diff --git a/src/net/eathena/npchandler.cpp b/src/net/eathena/npchandler.cpp
index 33fbbea43..8d8cff626 100644
--- a/src/net/eathena/npchandler.cpp
+++ b/src/net/eathena/npchandler.cpp
@@ -235,6 +235,12 @@ void NpcHandler::identify(const int index) const
outMsg.writeInt16(index, "index");
}
+void NpcHandler::selectArrow(const int nameId) const
+{
+ MessageOut outMsg(CMSG_NPC_SELECT_ARROW);
+ outMsg.writeInt16(nameId, "name id");
+}
+
int NpcHandler::getNpc(Net::MessageIn &msg)
{
if (msg.getId() == SMSG_NPC_CHOICE
diff --git a/src/net/eathena/npchandler.h b/src/net/eathena/npchandler.h
index 5bf7ae0c0..323b12d48 100644
--- a/src/net/eathena/npchandler.h
+++ b/src/net/eathena/npchandler.h
@@ -83,6 +83,8 @@ class NpcHandler final : public MessageHandler, public Ea::NpcHandler
void identify(const int index) const override final;
+ void selectArrow(const int nameId) const override final;
+
protected:
static void processNpcCutin(Net::MessageIn &msg);
diff --git a/src/net/eathena/protocol.h b/src/net/eathena/protocol.h
index 3aa0471af..906526e14 100644
--- a/src/net/eathena/protocol.h
+++ b/src/net/eathena/protocol.h
@@ -319,6 +319,8 @@
#define CMSG_NPC_REPAIR 0x01fd
#define CMSG_NPC_REFINE 0x0222
#define CMSG_NPC_IDENTIFY 0x0178
+#define CMSG_NPC_SELECT_ARROW 0x01ae
+
#define CMSG_PLAYER_MAPMOVE 0x0140
#define CMSG_REMOVE_OPTION 0x012a
#define CMSG_PLAYER_SET_MEMO 0x011d
diff --git a/src/net/npchandler.h b/src/net/npchandler.h
index 6aa0f5b01..abebf716f 100644
--- a/src/net/npchandler.h
+++ b/src/net/npchandler.h
@@ -85,6 +85,8 @@ class NpcHandler notfinal
virtual void refine(const int index) const = 0;
virtual void identify(const int index) const = 0;
+
+ virtual void selectArrow(const int nameId) const = 0;
};
} // namespace Net
diff --git a/src/net/tmwa/npchandler.cpp b/src/net/tmwa/npchandler.cpp
index 6c29e6d73..e5815890a 100644
--- a/src/net/tmwa/npchandler.cpp
+++ b/src/net/tmwa/npchandler.cpp
@@ -231,6 +231,10 @@ void NpcHandler::identify(const int index A_UNUSED) const
{
}
+void NpcHandler::selectArrow(const int nameId A_UNUSED) const
+{
+}
+
int NpcHandler::getNpc(Net::MessageIn &msg)
{
if (msg.getId() == SMSG_NPC_CHOICE
diff --git a/src/net/tmwa/npchandler.h b/src/net/tmwa/npchandler.h
index 3b69cf58b..34a8f18c2 100644
--- a/src/net/tmwa/npchandler.h
+++ b/src/net/tmwa/npchandler.h
@@ -86,6 +86,8 @@ class NpcHandler final : public MessageHandler, public Ea::NpcHandler
void refine(const int index) const override final;
void identify(const int index) const override final;
+
+ void selectArrow(const int nameId) const override final;
};
} // namespace TmwAthena