summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2009-03-30 10:02:41 +0000
committerultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2009-03-30 10:02:41 +0000
commitbd856899e58039684d6220c6f17dd9a9fec4a7a2 (patch)
tree609fff365c7c6f9d103b79c24c38ee36cce06440
parent2eb1feda73d19275c2fb24611769c6fc4c5d5233 (diff)
downloadhercules-bd856899e58039684d6220c6f17dd9a9fec4a7a2.tar.gz
hercules-bd856899e58039684d6220c6f17dd9a9fec4a7a2.tar.bz2
hercules-bd856899e58039684d6220c6f17dd9a9fec4a7a2.tar.xz
hercules-bd856899e58039684d6220c6f17dd9a9fec4a7a2.zip
Defined new server-side PACKETVER 20081126 to add support for the modified pet information packet (topic:197874).
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13641 54d463be-8e91-2dee-dedb-b68131a5f0ec
-rw-r--r--db/packet_db.txt22
-rw-r--r--src/map/clif.c7
-rw-r--r--src/map/clif.h3
3 files changed, 31 insertions, 1 deletions
diff --git a/db/packet_db.txt b/db/packet_db.txt
index 30cdb02ae..cd6eae1d9 100644
--- a/db/packet_db.txt
+++ b/db/packet_db.txt
@@ -1220,5 +1220,27 @@ packet_ver: 23
0x0446,14
0x0448,-1
+//2008-11-13aSakexe
+0x043d,8
+0x043e,-1
+0x043f,8
+
+//2008-11-26aSakexe
+0x01a2,37
+0x0440,10
+0x0441,4
+
+//2008-12-10aSakexe
+0x0442,8
+0x0443,8
+
+//2009-01-14aSakexe
+0x043f,19
+0x0444,-1
+0x0445,10
+
+//2009-02-18aSakexe
+0x0446,14
+
//Add new packets here
//packet_ver: 24
diff --git a/src/map/clif.c b/src/map/clif.c
index 2da84de34..9887b7bad 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -5939,6 +5939,9 @@ int clif_send_petstatus(struct map_session_data *sd)
WFIFOW(fd,29)=pet->hungry;
WFIFOW(fd,31)=pet->intimate;
WFIFOW(fd,33)=pet->equip;
+#if PACKETVER >= 20081126
+ WFIFOW(fd,35)=pet->class_;
+#endif
WFIFOSET(fd,packet_len(0x1a2));
return 0;
@@ -13251,7 +13254,11 @@ static int packetdb_readdb(void)
#else // 196 comodo以降 状態表示アイコン用
90, 86, 24, 6, 30,102, 9, 4, 8, 4, 14, 10, -1, 6, 2, 6,
#endif
+#if PACKETVER < 20081126
3, 3, 35, 5, 11, 26, -1, 4, 4, 6, 10, 12, 6, -1, 4, 4,
+#else // 0x1a2 changed (35->37)
+ 3, 3, 37, 5, 11, 26, -1, 4, 4, 6, 10, 12, 6, -1, 4, 4,
+#endif
11, 7, -1, 67, 12, 18,114, 6, 3, 6, 26, 26, 26, 26, 2, 3,
//#0x01C0, Set 0x1d5=-1
2, 14, 10, -1, 22, 22, 4, 2, 13, 97, 3, 9, 9, 30, 6, 28,
diff --git a/src/map/clif.h b/src/map/clif.h
index bc0855b7e..f529b8779 100644
--- a/src/map/clif.h
+++ b/src/map/clif.h
@@ -40,8 +40,9 @@ struct quest;
// 20070821 - 2007-08-21aSakexe+ - 0x2c5
// 20070918 - 2007-09-18aSakexe+ - 0x2d7, 0x2d9, 0x2da
// 20071106 - 2007-11-06aSakexe+ - 0x78, 0x7c, 0x22c
+// 20081126 - 2008-11-26aSakexe+ - 0x1a2
#ifndef PACKETVER
- #define PACKETVER 20071106
+ #define PACKETVER 20081126
#endif
// backward compatible PACKETVER 8 and 9
#if PACKETVER == 8