From 5eb1f6ded420742febf81603f4b23920121fdeb0 Mon Sep 17 00:00:00 2001 From: Inkfish Date: Tue, 19 May 2009 08:58:08 +0000 Subject: Added missing packet 0x2c9 and fixed 0x2da's length error git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13791 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/clif.c | 24 +++++++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) (limited to 'src/map') diff --git a/src/map/clif.c b/src/map/clif.c index ee3e24c5f..13014d7f0 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -5509,6 +5509,23 @@ int clif_party_info(struct party_data* p, struct map_session_data *sd) return 0; } + +/*========================================== + * The player's 'party invite' state, sent during login + * R 02c9 .B + *------------------------------------------*/ +void clif_partyinvitationstate(struct map_session_data* sd) +{ + int fd; + nullpo_retv(sd); + fd = sd->fd; + + WFIFOHEAD(fd, packet_len(0x2c9)); + WFIFOW(fd, 0) = 0x2c9; + WFIFOB(fd, 2) = 0; // not implemented + WFIFOSET(fd, packet_len(0x2c9)); +} + /*========================================== * p[eBU *------------------------------------------*/ @@ -7582,7 +7599,7 @@ void clif_equipcheckbox(struct map_session_data* sd) WFIFOHEAD(fd, packet_len(0x2da)); WFIFOW(fd, 0) = 0x2da; - WFIFOW(fd, 2) = (sd->status.show_equip ? 1 : 0); + WFIFOB(fd, 2) = (sd->status.show_equip ? 1 : 0); WFIFOSET(fd, packet_len(0x2da)); } @@ -8101,6 +8118,7 @@ void clif_parse_LoadEndAck(int fd,struct map_session_data *sd) } #if PACKETVER >= 20070918 + clif_partyinvitationstate(sd); clif_equipcheckbox(sd); #endif @@ -13314,8 +13332,8 @@ static int packetdb_readdb(void) 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,191, 0, 0, 0, 0, 0, 0, //#0x02C0 - 0, 0, 0, 0, 0, 30, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 6, -1, 10, 10, 0, 0, -1, 32, 6, 0, + 0, 0, 0, 0, 0, 30, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 6, -1, 10, 10, 3, 0, -1, 32, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, //#0x0300 -- cgit v1.2.3-70-g09d2