浏览代码

* Added support for clients 2010-11-23aRagexeRE+ and 2011-01-11aRagexeRE+.
- Servers that used packet db version 'default' until now need to be updated to use version '25'.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14791 54d463be-8e91-2dee-dedb-b68131a5f0ec

ai4rei 14 年之前
父节点
当前提交
0641ed4d05
共有 5 个文件被更改,包括 20 次插入3 次删除
  1. 2 0
      Changelog-Trunk.txt
  2. 7 1
      db/packet_db.txt
  3. 5 1
      src/char/char.c
  4. 5 1
      src/char_sql/char.c
  5. 1 0
      src/common/mmo.h

+ 2 - 0
Changelog-Trunk.txt

@@ -1,6 +1,8 @@
 Date	Added
 Date	Added
 
 
 2011/04/10
 2011/04/10
+	* Added support for clients 2010-11-23aRagexeRE+ and 2011-01-11aRagexeRE+. [Ai4rei]
+	- Servers that used packet db version 'default' until now need to be updated to use version '25'.
 	* Fixed switching between musical weapons would cancel ongoing dance skills (bugreport:4756, since r3538). [Ai4rei]
 	* Fixed switching between musical weapons would cancel ongoing dance skills (bugreport:4756, since r3538). [Ai4rei]
 	* Fixed @changegm not updating guild window interface after changing the guild leader (bugreport:408, since r2622, related r3185). [Ai4rei]
 	* Fixed @changegm not updating guild window interface after changing the guild leader (bugreport:408, since r2622, related r3185). [Ai4rei]
 2011/04/09
 2011/04/09

+ 7 - 1
db/packet_db.txt

@@ -1586,5 +1586,11 @@ packet_ver: 25
 0x0842,6,recall2,2
 0x0842,6,recall2,2
 0x0843,6,remove2,2
 0x0843,6,remove2,2
 
 
+//2010-11-23aRagexeRE
+packet_ver: 26
+0x035f,5,walktoxy,2
+0x0360,6,ticksend,2
+0x0368,6,getcharnamerequest,2
+
 //Add new packets here
 //Add new packets here
-//packet_ver: 26
+//packet_ver: 27

+ 5 - 1
src/char/char.c

@@ -1772,7 +1772,7 @@ int count_users(void)
 // Writes char data to the buffer in the format used by the client.
 // Writes char data to the buffer in the format used by the client.
 // Used in packets 0x6b (chars info) and 0x6d (new char info)
 // Used in packets 0x6b (chars info) and 0x6d (new char info)
 // Returns the size
 // Returns the size
-#define MAX_CHAR_BUF 132 //Max size (for WFIFOHEAD calls)
+#define MAX_CHAR_BUF 136 //Max size (for WFIFOHEAD calls)
 int mmo_char_tobuf(uint8* buffer, struct mmo_charstatus* p)
 int mmo_char_tobuf(uint8* buffer, struct mmo_charstatus* p)
 {
 {
 	unsigned short offset = 0;
 	unsigned short offset = 0;
@@ -1835,6 +1835,10 @@ int mmo_char_tobuf(uint8* buffer, struct mmo_charstatus* p)
 #if PACKETVER >= 20100803
 #if PACKETVER >= 20100803
 	WBUFL(buf,124) = TOL(p->delete_date);
 	WBUFL(buf,124) = TOL(p->delete_date);
 	offset += 4;
 	offset += 4;
+#endif
+#if PACKETVER >= 20110111
+	WBUFL(buf,128) = 0;  // robe sprite id
+	offset += 4;
 #endif
 #endif
 	return 106+offset;
 	return 106+offset;
 }
 }

+ 5 - 1
src/char_sql/char.c

@@ -1550,7 +1550,7 @@ int count_users(void)
 // Writes char data to the buffer in the format used by the client.
 // Writes char data to the buffer in the format used by the client.
 // Used in packets 0x6b (chars info) and 0x6d (new char info)
 // Used in packets 0x6b (chars info) and 0x6d (new char info)
 // Returns the size
 // Returns the size
-#define MAX_CHAR_BUF 132 //Max size (for WFIFOHEAD calls)
+#define MAX_CHAR_BUF 136 //Max size (for WFIFOHEAD calls)
 int mmo_char_tobuf(uint8* buffer, struct mmo_charstatus* p)
 int mmo_char_tobuf(uint8* buffer, struct mmo_charstatus* p)
 {
 {
 	unsigned short offset = 0;
 	unsigned short offset = 0;
@@ -1613,6 +1613,10 @@ int mmo_char_tobuf(uint8* buffer, struct mmo_charstatus* p)
 #if PACKETVER >= 20100803
 #if PACKETVER >= 20100803
 	WBUFL(buf,124) = TOL(p->delete_date);
 	WBUFL(buf,124) = TOL(p->delete_date);
 	offset += 4;
 	offset += 4;
+#endif
+#if PACKETVER >= 20110111
+	WBUFL(buf,128) = 0;  // robe sprite id
+	offset += 4;
 #endif
 #endif
 	return 106+offset;
 	return 106+offset;
 }
 }

+ 1 - 0
src/common/mmo.h

@@ -39,6 +39,7 @@
 // 20100721 - 2010-07-21aRagexeRE+ - 0x6b, 0x6d
 // 20100721 - 2010-07-21aRagexeRE+ - 0x6b, 0x6d
 // 20100727 - 2010-07-27aRagexeRE+ - 0x6b, 0x6d
 // 20100727 - 2010-07-27aRagexeRE+ - 0x6b, 0x6d
 // 20100803 - 2010-08-03aRagexeRE+ - 0x6b, 0x6d, 0x827, 0x828, 0x829, 0x82a, 0x82b, 0x82c, 0x842, 0x843
 // 20100803 - 2010-08-03aRagexeRE+ - 0x6b, 0x6d, 0x827, 0x828, 0x829, 0x82a, 0x82b, 0x82c, 0x842, 0x843
+// 20110111 - 2011-01-11aRagexeRE+ - 0x6b, 0x6d
 
 
 #ifndef PACKETVER
 #ifndef PACKETVER
 	#define PACKETVER	20081126
 	#define PACKETVER	20081126