diff options
author | Eugenio Favalli <elvenprogrammer@gmail.com> | 2004-09-30 16:19:04 +0000 |
---|---|---|
committer | Eugenio Favalli <elvenprogrammer@gmail.com> | 2004-09-30 16:19:04 +0000 |
commit | 9353cfbee08ae3e130e2e9dcfb0942ff465a8329 (patch) | |
tree | f5a8df60d604a5a03d1b19e464c1fa912cfc154a /src/game.cpp | |
parent | 41c001e2eeda8fede8dcc79339c1993f99fcffda (diff) | |
download | mana-9353cfbee08ae3e130e2e9dcfb0942ff465a8329.tar.gz mana-9353cfbee08ae3e130e2e9dcfb0942ff465a8329.tar.bz2 mana-9353cfbee08ae3e130e2e9dcfb0942ff465a8329.tar.xz mana-9353cfbee08ae3e130e2e9dcfb0942ff465a8329.zip |
*** empty log message ***
Diffstat (limited to 'src/game.cpp')
-rw-r--r-- | src/game.cpp | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/game.cpp b/src/game.cpp index 0003170b..c6e8d855 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -460,13 +460,13 @@ void do_parse() { //Get the items case 0x01ee: for(int loop=0;loop<(RFIFOW(2)-4)/18;loop++) - inventory.addItem(RFIFOW(4+loop*18+2), RFIFOW(4+loop*18+6)); + inventory.add_item(RFIFOW(4+loop*18), RFIFOW(4+loop*18+2), RFIFOW(4+loop*18+6)); break; case 0x00a8: // could I use the item? // index RFIFOW(2) // succes or not RFIFOB(6); - if(RFIFOB(6)) - inventory.addItem(RFIFOW(2),RFIFOW(4)); + //if(RFIFOB(6)) + // inventory.add_item(RFIFOW(2),RFIFOW(4)); break; // Warp case 0x0091: @@ -649,8 +649,10 @@ void do_parse() { break; // Buy/Sell dialog case 0x00c4: - show_npc_dialog = 2; - current_npc = RFIFOL(2); + if(show_npc_dialog==0) { + show_npc_dialog = 2; + current_npc = RFIFOL(2); + } break; // Buy dialog case 0x00c6: @@ -682,7 +684,7 @@ void do_parse() { break; // Add item to inventory case 0x00a0: - inventory.addItem(RFIFOW(6), RFIFOW(4)); + inventory.add_item(RFIFOW(2), RFIFOW(6), RFIFOW(4)); break; // Manage non implemented packets default: |