Fixed an error popup at the char select

for clients from 2015-10-01 and onwards
This commit is contained in:
Lemongrass3110 2016-03-16 23:53:23 +01:00
parent 2a4fc75baa
commit aea025eca2

View File

@ -302,11 +302,20 @@ int chclif_parse_pincode_setnew( int fd, struct char_session_data* sd ){
// Tell client how many pages, kRO sends 17 (Yommy)
//----------------------------------------
void chclif_charlist_notify( int fd, struct char_session_data* sd ){
#if PACKETVER >= 20151001
WFIFOHEAD(fd, 10);
WFIFOW(fd, 0) = 0x9a0;
// pages to req / send them all in 1 until mmo_chars_fromsql can split them up
WFIFOL(fd, 2) = (sd->char_slots>3)?sd->char_slots/3:1; //int TotalCnt (nb page to load)
WFIFOL(fd, 6) = sd->char_slots;
WFIFOSET(fd,10);
#else
WFIFOHEAD(fd, 6);
WFIFOW(fd, 0) = 0x9a0;
// pages to req / send them all in 1 until mmo_chars_fromsql can split them up
WFIFOL(fd, 2) = (sd->char_slots>3)?sd->char_slots/3:1; //int TotalCnt (nb page to load)
WFIFOSET(fd,6);
#endif
}
//----------------------------------------