diff options
author | Guillaume Melquiond <guillaume.melquiond@gmail.com> | 2007-10-28 15:04:58 +0000 |
---|---|---|
committer | Guillaume Melquiond <guillaume.melquiond@gmail.com> | 2007-10-28 15:04:58 +0000 |
commit | ded755e810ef9ec94c65b0c4282d6419c84e21d0 (patch) | |
tree | 5de12d8c43f73b850fa9726375f744a28f2215a4 /src/net/gameserver | |
parent | aea08a9368265c6afd6741fa84c97491552bfb84 (diff) | |
download | mana-client-ded755e810ef9ec94c65b0c4282d6419c84e21d0.tar.gz mana-client-ded755e810ef9ec94c65b0c4282d6419c84e21d0.tar.bz2 mana-client-ded755e810ef9ec94c65b0c4282d6419c84e21d0.tar.xz mana-client-ded755e810ef9ec94c65b0c4282d6419c84e21d0.zip |
Fixed display of trade window. Completed trade protocol.
Diffstat (limited to 'src/net/gameserver')
-rw-r--r-- | src/net/gameserver/player.cpp | 7 | ||||
-rw-r--r-- | src/net/gameserver/player.h | 1 |
2 files changed, 8 insertions, 0 deletions
diff --git a/src/net/gameserver/player.cpp b/src/net/gameserver/player.cpp index feba5565..95f7dff9 100644 --- a/src/net/gameserver/player.cpp +++ b/src/net/gameserver/player.cpp @@ -140,6 +140,13 @@ void Net::GameServer::Player::tradeItem(int slot, int amount) Net::GameServer::connection->send(msg); } +void Net::GameServer::Player::tradeMoney(int amount) +{ + MessageOut msg(PGMSG_TRADE_SET_MONEY); + msg.writeLong(amount); + Net::GameServer::connection->send(msg); +} + void Net::GameServer::Player::tradeWithNPC(int item, int amount) { MessageOut msg(PGMSG_NPC_BUYSELL); diff --git a/src/net/gameserver/player.h b/src/net/gameserver/player.h index dcf3f267..b5f3e6d7 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 tradeMoney(int amount); void tradeWithNPC(int item, int amount); } } |