Merged a few updates for supporting renewal clients (thanks to Diablo): [Skotlex]
- Updated packet_db entries - Added slot info on packet 0x6b (PACKETVER > 20100413) - Trade add-item use packet 0x80f (PACKETVER > 20100223) - Guild storage add-item use packet 0x1c4 (PACKETVER > 20090603) - Vending list use packet 0x800 (PACKETVER > 20100105) - Allow client to change item-share party settings (PACKETVER > 20090603) git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14286 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
@@ -1601,15 +1601,23 @@ int mmo_char_tobuf(uint8* buffer, struct mmo_charstatus* p)
|
||||
|
||||
int mmo_char_send006b(int fd, struct char_session_data* sd)
|
||||
{
|
||||
int j;
|
||||
int j, offset = 0;
|
||||
#if PACKETVER >= 20100413
|
||||
offset += 3;
|
||||
#endif
|
||||
|
||||
if (save_log)
|
||||
ShowInfo("Loading Char Data ("CL_BOLD"%d"CL_RESET")\n",sd->account_id);
|
||||
|
||||
j = 24; // offset
|
||||
j = 24 + offset; // offset
|
||||
WFIFOHEAD(fd,j + MAX_CHARS*MAX_CHAR_BUF);
|
||||
WFIFOW(fd,0) = 0x6b;
|
||||
memset(WFIFOP(fd,4), 0, 20); // unknown bytes
|
||||
#if PACKETVER >= 20100413
|
||||
WFIFOB(fd,4) = MAX_CHARS; // Max slots.
|
||||
WFIFOB(fd,5) = MAX_CHARS; // Available slots.
|
||||
WFIFOB(fd,6) = MAX_CHARS; // Premium slots.
|
||||
#endif
|
||||
memset(WFIFOP(fd,4 + offset), 0, 20); // unknown bytes
|
||||
j+=mmo_chars_fromsql(sd, WFIFOP(fd,j));
|
||||
WFIFOW(fd,2) = j; // packet len
|
||||
WFIFOSET(fd,j);
|
||||
|
||||
Reference in New Issue
Block a user