From fc6207f21a7beaeef968e032917181809f822a67 Mon Sep 17 00:00:00 2001 From: Jan-Fabian Humann Date: Sun, 22 May 2005 02:06:58 +0000 Subject: another trade update: trading money is possible now, left box is for money you send, the right label shows the money you receive. Due to stupid RO protocol money value will only be submitted when you press Ok. --- src/game.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/game.cpp') diff --git a/src/game.cpp b/src/game.cpp index 6aad95fd..f41651e2 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -846,11 +846,14 @@ void do_parse() case 0x00e9: // TODO: // Maybe also handle identified, etc - // handle zeny as well - - tradeWindow->addItem( + if (RFIFOW(6) == 0) + { + tradeWindow->addMoney(RFIFOL(2)); + } else { + tradeWindow->addItem( tradeWindow->partnerItems->getFreeSlot(), RFIFOW(6), false, RFIFOL(2), false); + } break; // Trade: New Item add response case 0x01b1: -- cgit v1.2.3-70-g09d2