summaryrefslogtreecommitdiff
path: root/src/map/clif.c
diff options
context:
space:
mode:
authorultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-04-08 17:51:45 +0000
committerultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-04-08 17:51:45 +0000
commitc9c4c49738355d8896fe72e27864262aa268e26d (patch)
tree1f59ee8bcf0494cf87f05108ec0ed511fbac1ecc /src/map/clif.c
parent8d430568c2206ada7a37ef86b29195975ef7ad56 (diff)
downloadhercules-c9c4c49738355d8896fe72e27864262aa268e26d.tar.gz
hercules-c9c4c49738355d8896fe72e27864262aa268e26d.tar.bz2
hercules-c9c4c49738355d8896fe72e27864262aa268e26d.tar.xz
hercules-c9c4c49738355d8896fe72e27864262aa268e26d.zip
Fixed party invitation ack messages not displaying on recent clients (bugreport:1308)
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12540 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/clif.c')
-rw-r--r--src/map/clif.c15
1 files changed, 13 insertions, 2 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index 6f3dfd7e1..80edb3952 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -5361,7 +5361,10 @@ int clif_party_invite(struct map_session_data *sd,struct map_session_data *tsd)
}
/*==========================================
- * Party invitation result. Flag values are:
+ * Party invitation result.
+ * R 00fd <nick>.24S <flag>.B
+ * R 02c5 <nick>.24S <flag>.L
+ * Flag values are:
* 0 -> char is already in a party
* 1 -> party invite was rejected
* 2 -> party invite was accepted
@@ -5374,11 +5377,19 @@ void clif_party_inviteack(struct map_session_data* sd, const char* nick, int fla
nullpo_retv(sd);
fd=sd->fd;
+#if PACKETVER < 20070821
WFIFOHEAD(fd,packet_len(0xfd));
WFIFOW(fd,0) = 0xfd;
safestrncpy((char*)WFIFOP(fd,2),nick,NAME_LENGTH);
WFIFOB(fd,26) = flag;
WFIFOSET(fd,packet_len(0xfd));
+#else
+ WFIFOHEAD(fd,packet_len(0x2c5));
+ WFIFOW(fd,0) = 0x2c5;
+ safestrncpy((char*)WFIFOP(fd,2),nick,NAME_LENGTH);
+ WFIFOL(fd,26) = flag;
+ WFIFOSET(fd,packet_len(0x2c5));
+#endif
}
/*==========================================
@@ -12389,7 +12400,7 @@ 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 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, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,