summaryrefslogtreecommitdiff
path: root/src/net/eathena/npchandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-04-28 23:18:17 +0300
committerAndrei Karas <akaras@inbox.ru>2017-04-28 23:18:17 +0300
commitdfefb83dedc4491ace627dc204f841ef8c6d7052 (patch)
tree29c1c5becdfb4e0c12a86fcace35f822e0f570fc /src/net/eathena/npchandler.cpp
parent15919532c723ca0186b0c0c932cd1b90c7d2e570 (diff)
downloadmv-dfefb83dedc4491ace627dc204f841ef8c6d7052.tar.gz
mv-dfefb83dedc4491ace627dc204f841ef8c6d7052.tar.bz2
mv-dfefb83dedc4491ace627dc204f841ef8c6d7052.tar.xz
mv-dfefb83dedc4491ace627dc204f841ef8c6d7052.zip
Add workaround to open npc buy shop if npc invisible.
For hercules it lost npc type.
Diffstat (limited to 'src/net/eathena/npchandler.cpp')
-rw-r--r--src/net/eathena/npchandler.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/net/eathena/npchandler.cpp b/src/net/eathena/npchandler.cpp
index 6cb30bb81..5f2da7255 100644
--- a/src/net/eathena/npchandler.cpp
+++ b/src/net/eathena/npchandler.cpp
@@ -133,6 +133,14 @@ void NpcHandler::buy(const Being *const being) const
EAthena::NpcRecv::mNpcTypeId = being->getSubType();
}
+void NpcHandler::buy(const BeingId beingId) const
+{
+ createOutPacket(CMSG_NPC_BUY_SELL_REQUEST);
+ outMsg.writeBeingId(beingId, "npc id");
+ outMsg.writeInt8(0, "action");
+ EAthena::NpcRecv::mNpcTypeId = BeingTypeId_zero;
+}
+
void NpcHandler::sell(const BeingId beingId) const
{
createOutPacket(CMSG_NPC_BUY_SELL_REQUEST);