summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorInkfish <Inkfish@54d463be-8e91-2dee-dedb-b68131a5f0ec>2009-05-19 08:58:08 +0000
committerInkfish <Inkfish@54d463be-8e91-2dee-dedb-b68131a5f0ec>2009-05-19 08:58:08 +0000
commit5eb1f6ded420742febf81603f4b23920121fdeb0 (patch)
tree35c1bfc15d99cbbc5ae1d3c2f77400796e996d9f /src
parent9ccaf9b439bb3254733c65d92ffc33e4e984b56c (diff)
downloadhercules-5eb1f6ded420742febf81603f4b23920121fdeb0.tar.gz
hercules-5eb1f6ded420742febf81603f4b23920121fdeb0.tar.bz2
hercules-5eb1f6ded420742febf81603f4b23920121fdeb0.tar.xz
hercules-5eb1f6ded420742febf81603f4b23920121fdeb0.zip
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
Diffstat (limited to 'src')
-rw-r--r--src/map/clif.c24
1 files changed, 21 insertions, 3 deletions
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 <flag>.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