From 60757643df53ff5d9d6aa361486348bc6d4bf0f2 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 25 Jun 2012 23:37:28 +0300 Subject: From eAthena netcode remove some evol packets implimentations. --- src/net/eathena/npchandler.cpp | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) (limited to 'src/net/eathena/npchandler.cpp') 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(amount)); - outMsg.writeInt16(static_cast(itemId)); - outMsg.writeInt8(color); - outMsg.writeInt8(0); - } - else - { - outMsg.writeInt16(8); // One item (length of packet) - outMsg.writeInt16(static_cast(amount)); - outMsg.writeInt16(static_cast(itemId)); - } + outMsg.writeInt16(8); // One item (length of packet) + outMsg.writeInt16(static_cast(amount)); + outMsg.writeInt16(static_cast(itemId)); } void NpcHandler::sellItem(int beingId A_UNUSED, int itemId, int amount) -- cgit v1.2.3-70-g09d2