diff options
author | codemaster <codemaster@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2004-11-08 15:28:15 +0000 |
---|---|---|
committer | codemaster <codemaster@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2004-11-08 15:28:15 +0000 |
commit | a19e5ef6a4d26e21b971510501e62036cfb1ecff (patch) | |
tree | 880e1a590234fc86c21c30aa6c5c354c8c8afaf6 /src/map/chrif.c | |
parent | c6ad33ac82efe4768fe950cfa934a7ba1bca0516 (diff) | |
download | hercules-a19e5ef6a4d26e21b971510501e62036cfb1ecff.tar.gz hercules-a19e5ef6a4d26e21b971510501e62036cfb1ecff.tar.bz2 hercules-a19e5ef6a4d26e21b971510501e62036cfb1ecff.tar.xz hercules-a19e5ef6a4d26e21b971510501e62036cfb1ecff.zip |
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/athena@65 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/chrif.c')
-rw-r--r-- | src/map/chrif.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/map/chrif.c b/src/map/chrif.c index 66f496d71..2a5f35a37 100644 --- a/src/map/chrif.c +++ b/src/map/chrif.c @@ -813,6 +813,26 @@ int chrif_accountban(int fd) }
/*==========================================
+ * キャラクター切断通知
+ *------------------------------------------
+ */
+int chrif_chardisconnect(struct map_session_data *sd)
+{
+ nullpo_retr(-1, sd);
+
+ if(char_fd<=0)
+ return -1;
+
+ WFIFOW(char_fd,0)=0x2b18;
+ WFIFOL(char_fd,2)=sd->status.account_id;
+ WFIFOL(char_fd,6)=sd->status.char_id;
+ WFIFOSET(char_fd,10);
+ //printf("chrif: char disconnect: %d %s\n",sd->bl.id,sd->status.name);
+ return 0;
+
+}
+
+/*==========================================
* Receiving GM accounts and their levels from char-server by [Yor]
*------------------------------------------
*/
|