diff options
Diffstat (limited to 'src/net')
-rw-r--r-- | src/net/gameserver/player.cpp | 8 | ||||
-rw-r--r-- | src/net/gameserver/player.h | 1 |
2 files changed, 9 insertions, 0 deletions
diff --git a/src/net/gameserver/player.cpp b/src/net/gameserver/player.cpp index 29d711d7..feba5565 100644 --- a/src/net/gameserver/player.cpp +++ b/src/net/gameserver/player.cpp @@ -139,3 +139,11 @@ void Net::GameServer::Player::tradeItem(int slot, int amount) msg.writeByte(amount); Net::GameServer::connection->send(msg); } + +void Net::GameServer::Player::tradeWithNPC(int item, int amount) +{ + MessageOut msg(PGMSG_NPC_BUYSELL); + msg.writeShort(item); + msg.writeShort(amount); + Net::GameServer::connection->send(msg); +} diff --git a/src/net/gameserver/player.h b/src/net/gameserver/player.h index d21e656e..dcf3f267 100644 --- a/src/net/gameserver/player.h +++ b/src/net/gameserver/player.h @@ -49,6 +49,7 @@ namespace Net void requestTrade(int id); void acceptTrade(bool accept); void tradeItem(int slot, int amount); + void tradeWithNPC(int item, int amount); } } } |