diff options
author | Jan-Fabian Humann <malastare@gmx.net> | 2005-04-06 22:09:54 +0000 |
---|---|---|
committer | Jan-Fabian Humann <malastare@gmx.net> | 2005-04-06 22:09:54 +0000 |
commit | 361daccb9d2bed324dee09ba308b8c12ef43f06c (patch) | |
tree | 857511010327087d500d343e309a9e6f91a2f5c7 /src/game.cpp | |
parent | 22774c178e7bab484485bded6950e76c8fa54b00 (diff) | |
download | mana-361daccb9d2bed324dee09ba308b8c12ef43f06c.tar.gz mana-361daccb9d2bed324dee09ba308b8c12ef43f06c.tar.bz2 mana-361daccb9d2bed324dee09ba308b8c12ef43f06c.tar.xz mana-361daccb9d2bed324dee09ba308b8c12ef43f06c.zip |
trade update: now both guys see the added item
Diffstat (limited to 'src/game.cpp')
-rw-r--r-- | src/game.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/game.cpp b/src/game.cpp index 2d773fc1..2c7b1f2f 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -772,6 +772,7 @@ void do_parse() { break; case 3: // Trade accepted + tradeWindow->reset(); tradeWindow->setVisible(true); break; case 4: @@ -785,6 +786,16 @@ void do_parse() { break; } break; + // Trade: Item added on trade partner's side + case 0x00e9: + // Should do: + // Maybe also handle indentified, etc + // later also de-clicked the ok button + // handle zeny as well + tradeWindow->addItem( + tradeWindow->trade_items->getFreeSlot(), RFIFOW(6), + false, RFIFOL(2), false); + break; // Trade: Item add response case 0x00ea: switch (RFIFOB(4)) { @@ -820,6 +831,7 @@ void do_parse() { case 0x00ee: chatWindow->chat_log("Trade cancelled.", BY_SERVER); tradeWindow->setVisible(false); + tradeWindow->reset(); break; // Get the items |