Ejemplo n.º 1
0
/// Called when all the connection steps are completed.
void chrif_on_ready(void)
{
	ShowStatus("Map Server is now online.\n");
	chrif_state = 2;
	chrif_check_shutdown();

	//If there are players online, send them to the char-server. [Skotlex]
	send_users_tochar();

	//Auth db reconnect handling
	auth_db->foreach(auth_db,chrif_reconnect);

	//Re-save any storages that were modified in the disconnection time. [Skotlex]
	do_reconnect_storage();
}
Ejemplo n.º 2
0
// received after a character has been "final saved" on the char-server
static void chrif_save_ack(int fd) {
	chrif_auth_delete(RFIFOL(fd,2), RFIFOL(fd,6), ST_LOGOUT);
	chrif_check_shutdown();
}