summaryrefslogtreecommitdiff
path: root/src/map/chrif.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/chrif.c')
-rw-r--r--src/map/chrif.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/map/chrif.c b/src/map/chrif.c
index 492f57051..9b38a642e 100644
--- a/src/map/chrif.c
+++ b/src/map/chrif.c
@@ -627,7 +627,7 @@ int auth_db_cleanup_sub(DBKey key,void *data,va_list ap)
default:
//Clear data. any connected players should have timed out by now.
ShowInfo("auth_db: Node (state %s) timed out for %d:%d\n", states[node->state], node->account_id, node->char_id);
- chrif_char_offline(node->sd);
+ chrif_char_offline_nsd(node->account_id, node->char_id);
chrif_auth_delete(node->account_id, node->char_id, node->state);
break;
}
@@ -1263,6 +1263,18 @@ int chrif_char_offline(struct map_session_data *sd)
return 0;
}
+int chrif_char_offline_nsd(int account_id, int char_id)
+{
+ chrif_check(-1);
+
+ WFIFOHEAD(char_fd,10);
+ WFIFOW(char_fd,0) = 0x2b17;
+ WFIFOL(char_fd,2) = char_id;
+ WFIFOL(char_fd,6) = account_id;
+ WFIFOSET(char_fd,10);
+
+ return 0;
+}
/*=========================================
* Tell char-server to reset all chars offline [Wizputer]