summaryrefslogtreecommitdiff
path: root/src/char
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-12-20 17:21:56 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-12-20 17:21:56 +0000
commit223309b9b30b5221163ef97984ae5e84b712d6d5 (patch)
tree3974e6cb81adbc1cd147aaf55c36dca4f3ea3821 /src/char
parent9855d5724bd4bc11b2ee2e155ce827c3acb66618 (diff)
downloadhercules-223309b9b30b5221163ef97984ae5e84b712d6d5.tar.gz
hercules-223309b9b30b5221163ef97984ae5e84b712d6d5.tar.bz2
hercules-223309b9b30b5221163ef97984ae5e84b712d6d5.tar.xz
hercules-223309b9b30b5221163ef97984ae5e84b712d6d5.zip
- Moved PACKETVER to mmo.h, and added support for the expanded character info window on the char-server when PACKETVER is above 7.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9539 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/char')
-rw-r--r--src/char/char.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/char/char.c b/src/char/char.c
index 1978b225b..f3bc477d8 100644
--- a/src/char/char.c
+++ b/src/char/char.c
@@ -1685,10 +1685,16 @@ int mmo_char_send006b(int fd, struct char_session_data *sd) {
for(i = found_num; i < 9; i++)
sd->found_char[i] = -1;
+#if PACKETVER > 7
+ WFIFOHEAD(fd, offset + found_num * 108);
+ memset(WFIFOP(fd,0), 0, offset + found_num * 108);
+ WFIFOW(fd,2) = offset + found_num * 108;
+#else
WFIFOHEAD(fd, offset + found_num * 106);
memset(WFIFOP(fd,0), 0, offset + found_num * 106);
- WFIFOW(fd,0) = 0x6b;
WFIFOW(fd,2) = offset + found_num * 106;
+#endif
+ WFIFOW(fd,0) = 0x6b;
for(i = 0; i < found_num; i++) {
p = &char_dat[sd->found_char[i]].status;
@@ -1733,7 +1739,12 @@ int mmo_char_send006b(int fd, struct char_session_data *sd) {
WFIFOB(fd,j+101) = (p->int_ > 255) ? 255 : p->int_;
WFIFOB(fd,j+102) = (p->dex > 255) ? 255 : p->dex;
WFIFOB(fd,j+103) = (p->luk > 255) ? 255 : p->luk;
+#if PACKETVER > 7
+ WFIFOW(fd,j+104) = p->char_num;
+ WFIFOB(fd,j+106) = 1; //TODO: Handle this rename bit: 0 to enable renaming
+#else
WFIFOB(fd,j+104) = p->char_num;
+#endif
}
WFIFOSET(fd,WFIFOW(fd,2));