summaryrefslogtreecommitdiff
path: root/src/net/eathena/npchandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-06-25 23:37:28 +0300
committerAndrei Karas <akaras@inbox.ru>2012-06-25 23:37:28 +0300
commit60757643df53ff5d9d6aa361486348bc6d4bf0f2 (patch)
tree13cf871ba389238ea8c8831f897b6b1135b0ba8e /src/net/eathena/npchandler.cpp
parent32e6e1748c3aa26a55ce4f7281107c4334c80ef3 (diff)
downloadmv-60757643df53ff5d9d6aa361486348bc6d4bf0f2.tar.gz
mv-60757643df53ff5d9d6aa361486348bc6d4bf0f2.tar.bz2
mv-60757643df53ff5d9d6aa361486348bc6d4bf0f2.tar.xz
mv-60757643df53ff5d9d6aa361486348bc6d4bf0f2.zip
From eAthena netcode remove some evol packets implimentations.
Diffstat (limited to 'src/net/eathena/npchandler.cpp')
-rw-r--r--src/net/eathena/npchandler.cpp18
1 files changed, 3 insertions, 15 deletions
diff --git a/src/net/eathena/npchandler.cpp b/src/net/eathena/npchandler.cpp
index 53b7d0b03..5562c51bf 100644
--- a/src/net/eathena/npchandler.cpp
+++ b/src/net/eathena/npchandler.cpp
@@ -54,7 +54,6 @@ NpcHandler::NpcHandler()
SMSG_NPC_CLOSE,
SMSG_NPC_INT_INPUT,
SMSG_NPC_STR_INPUT,
- SMSG_NPC_COMMAND,
SMSG_NPC_CUTIN,
SMSG_NPC_VIEWPOINT,
0
@@ -185,20 +184,9 @@ void NpcHandler::buyItem(int beingId A_UNUSED, int itemId,
unsigned char color, int amount)
{
MessageOut outMsg(CMSG_NPC_BUY_REQUEST);
- if (serverVersion > 0)
- {
- outMsg.writeInt16(10); // One item (length of packet)
- outMsg.writeInt16(static_cast<int16_t>(amount));
- outMsg.writeInt16(static_cast<int16_t>(itemId));
- outMsg.writeInt8(color);
- outMsg.writeInt8(0);
- }
- else
- {
- outMsg.writeInt16(8); // One item (length of packet)
- outMsg.writeInt16(static_cast<int16_t>(amount));
- outMsg.writeInt16(static_cast<int16_t>(itemId));
- }
+ outMsg.writeInt16(8); // One item (length of packet)
+ outMsg.writeInt16(static_cast<int16_t>(amount));
+ outMsg.writeInt16(static_cast<int16_t>(itemId));
}
void NpcHandler::sellItem(int beingId A_UNUSED, int itemId, int amount)