diff options
-rw-r--r-- | Changelog-Trunk.txt | 2 | ||||
-rw-r--r-- | db/packet_db.txt | 2 | ||||
-rw-r--r-- | src/map/clif.c | 4 |
3 files changed, 6 insertions, 2 deletions
diff --git a/Changelog-Trunk.txt b/Changelog-Trunk.txt index 7ad1e3d79..864dc4119 100644 --- a/Changelog-Trunk.txt +++ b/Changelog-Trunk.txt @@ -1,5 +1,7 @@ Date Added +2011/09/17 + * Fixed missing edits for cash shop support for clients 2007-07-10aSakexe and older (follow up to r14932). 2011/09/08 * Fix C++ compilation issues. [FlavioJS] 2011/09/05 diff --git a/db/packet_db.txt b/db/packet_db.txt index 662a41779..74dbe5763 100644 --- a/db/packet_db.txt +++ b/db/packet_db.txt @@ -910,7 +910,7 @@ packet_ver: 20 0x0285,6 0x0286,4 0x0287,-1 -0x0288,6 +0x0288,6,cashshopbuy,2:4 0x0289,8 0x028a,18 0x028b,-1 diff --git a/src/map/clif.c b/src/map/clif.c index 5d6a828d3..f81675d69 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -13383,13 +13383,15 @@ void clif_cashshop_ack(struct map_session_data* sd, int error) /// 0288 <packet len>.W <kafra points>.L <count>.W { <amount>.W <name id>.W }.4B*count (PACKETVER >= 20100803) void clif_parse_cashshop_buy(int fd, struct map_session_data *sd) { - int fail = 0, amount, points; + int fail = 0, amount, points = 0; short nameid; nullpo_retv(sd); nameid = RFIFOW(fd,2); amount = RFIFOW(fd,4); +#if PACKETVER >= 20070711 points = RFIFOL(fd,6); // Not Implemented. Should be 0 +#endif if( sd->state.trading || !sd->npc_shopid ) fail = 1; |