summaryrefslogtreecommitdiff
path: root/src/gui/buysell.cpp
diff options
context:
space:
mode:
authorEugenio Favalli <elvenprogrammer@gmail.com>2005-09-17 13:51:37 +0000
committerEugenio Favalli <elvenprogrammer@gmail.com>2005-09-17 13:51:37 +0000
commite846d4502b59a1a3b8d658a37ae5b5ce4aa1c00c (patch)
tree8feb8b51d731057412a59aeddbbe83b75b09912a /src/gui/buysell.cpp
parent3bfcee0d9c033a46fe1b13795d89909c8fb6a239 (diff)
downloadmana-client-e846d4502b59a1a3b8d658a37ae5b5ce4aa1c00c.tar.gz
mana-client-e846d4502b59a1a3b8d658a37ae5b5ce4aa1c00c.tar.bz2
mana-client-e846d4502b59a1a3b8d658a37ae5b5ce4aa1c00c.tar.xz
mana-client-e846d4502b59a1a3b8d658a37ae5b5ce4aa1c00c.zip
Completed transition to use MessageOut.
Diffstat (limited to 'src/gui/buysell.cpp')
-rw-r--r--src/gui/buysell.cpp12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/gui/buysell.cpp b/src/gui/buysell.cpp
index 6a56e67f..47777ca0 100644
--- a/src/gui/buysell.cpp
+++ b/src/gui/buysell.cpp
@@ -22,9 +22,14 @@
*/
#include "buysell.h"
+
#include "button.h"
+
#include "../game.h"
+
+#include "../net/messageout.h"
#include "../net/network.h"
+#include "../net/protocol.h"
BuySellDialog::BuySellDialog():
Window("Shop")
@@ -77,9 +82,10 @@ void BuySellDialog::action(const std::string& eventId)
current_npc = 0;
}
if (actionId > -1) {
- writeWord(0, 0x00c5);
- writeLong(2, current_npc);
- writeByte(6, actionId);
+ MessageOut outMsg;
+ outMsg.writeShort(CMSG_NPC_BUY_SELL_REQUEST);
+ outMsg.writeLong(current_npc);
+ outMsg.writeByte(actionId);
writeSet(7);
}