summaryrefslogtreecommitdiff
path: root/src/char
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2013-05-09 18:00:09 -0300
committershennetsind <ind@henn.et>2013-05-09 18:00:09 -0300
commit890e296e665ab9f78481284a94f3fb2695afd0c2 (patch)
treebb8f9afba812373efd01681afa6614e1eb10c806 /src/char
parentcd2f5e4a687b2abbdb9d795e5c91b874aa0d2546 (diff)
downloadhercules-890e296e665ab9f78481284a94f3fb2695afd0c2.tar.gz
hercules-890e296e665ab9f78481284a94f3fb2695afd0c2.tar.bz2
hercules-890e296e665ab9f78481284a94f3fb2695afd0c2.tar.xz
hercules-890e296e665ab9f78481284a94f3fb2695afd0c2.zip
Fixed character slot change in 2013 clients
Made Possible Thanks to Yommy <3~! Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/char')
-rw-r--r--src/char/char.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/char/char.c b/src/char/char.c
index f68456d9a..975b1d77b 100644
--- a/src/char/char.c
+++ b/src/char/char.c
@@ -1881,13 +1881,18 @@ int mmo_char_tobuf(uint8* buffer, struct mmo_charstatus* p)
return 106+offset;
}
- int mmo_char_send006b(int fd, struct char_session_data* sd);
+/* Made Possible by Yommy~! <3 */
+void mmo_char_send099d(int fd, struct char_session_data *sd) {
+ WFIFOHEAD(fd,4 + (MAX_CHARS*MAX_CHAR_BUF));
+ WFIFOW(fd,0) = 0x99d;
+ WFIFOW(fd,2) = mmo_chars_fromsql(sd, WFIFOP(fd,4)) + 4;
+ WFIFOSET(fd,WFIFOW(fd,2));
+}
+int mmo_char_send006b(int fd, struct char_session_data* sd);
//----------------------------------------
// [Ind/Hercules] notify client about charselect window data
//----------------------------------------
void mmo_char_send082d(int fd, struct char_session_data* sd) {
- if (save_log)
- ShowInfo("Loading Char Data ("CL_BOLD"%d"CL_RESET")\n",sd->account_id);
WFIFOHEAD(fd,29);
WFIFOW(fd,0) = 0x82d;
@@ -4338,7 +4343,7 @@ int parse_char(int fd)
/* for some stupid reason it requires the char data again (gravity -_-) */
if( ret )
#if PACKETVER >= 20130000
- mmo_char_send082d(fd, sd);
+ mmo_char_send099d(fd, sd);
#else
mmo_char_send006b(fd, sd);
#endif