summaryrefslogtreecommitdiff
path: root/src/game.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game.cpp')
-rw-r--r--src/game.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/game.cpp b/src/game.cpp
index ab50a863..5aca7bad 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -687,12 +687,18 @@ void do_parse() {
case 0x00a0:
inventory.add_item(RFIFOW(2), RFIFOW(6), RFIFOW(4));
break;
+ // Remove item to inventory after you sold it
+ case 0x00af:
+ printf("sell %i\n",-RFIFOW(4));
+ inventory.change_quantity(RFIFOW(2),-RFIFOW(4));
+ break;
case 0x0119:
sprintf(pkt_nfo, "%i %i %i %i", RFIFOL(2), RFIFOW(6), RFIFOW(8), RFIFOW(10));
//alert(pkt_nfo,"","","","",0,0);
break;
// Manage non implemented packets
default:
+ // use when debug packets :) printf("%x\n",id);
//alert(pkt_nfo,"","","","",0,0);
break;
}