summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorai4rei <ai4rei@54d463be-8e91-2dee-dedb-b68131a5f0ec>2011-09-17 11:02:00 +0000
committerai4rei <ai4rei@54d463be-8e91-2dee-dedb-b68131a5f0ec>2011-09-17 11:02:00 +0000
commita3b5d7d0f3e6724836b411183fa8f7fd0bc5bf8e (patch)
tree022a8a0f10f4edce1b32ccabdef371525400b987
parente1004c6e1ed06d985814b7e1ca7faf7e0beb5aef (diff)
downloadhercules-a3b5d7d0f3e6724836b411183fa8f7fd0bc5bf8e.tar.gz
hercules-a3b5d7d0f3e6724836b411183fa8f7fd0bc5bf8e.tar.bz2
hercules-a3b5d7d0f3e6724836b411183fa8f7fd0bc5bf8e.tar.xz
hercules-a3b5d7d0f3e6724836b411183fa8f7fd0bc5bf8e.zip
* Fixed missing edits for cash shop support for clients 2007-07-10aSakexe and older (follow up to r14932).
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14957 54d463be-8e91-2dee-dedb-b68131a5f0ec
-rw-r--r--Changelog-Trunk.txt2
-rw-r--r--db/packet_db.txt2
-rw-r--r--src/map/clif.c4
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;