summaryrefslogtreecommitdiff
path: root/src/net/tmwa/npchandler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/tmwa/npchandler.cpp')
-rw-r--r--src/net/tmwa/npchandler.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/net/tmwa/npchandler.cpp b/src/net/tmwa/npchandler.cpp
index b892e152a..898e9fff4 100644
--- a/src/net/tmwa/npchandler.cpp
+++ b/src/net/tmwa/npchandler.cpp
@@ -117,6 +117,13 @@ void NpcHandler::buy(const Being *const being) const
outMsg.writeInt8(0, "action");
}
+void NpcHandler::buy(const BeingId beingId) const
+{
+ createOutPacket(CMSG_NPC_BUY_SELL_REQUEST);
+ outMsg.writeBeingId(beingId, "npc id");
+ outMsg.writeInt8(0, "action");
+}
+
void NpcHandler::sell(const BeingId beingId) const
{
createOutPacket(CMSG_NPC_BUY_SELL_REQUEST);