void CPlayer::LogPlayerStatistic(){
int nSection[11][6];
ZeroMemory(&nSection, sizeof(nSection));
CPlayer *p;
LINKPLAYER_BEGIN(p)
if (p->m_nLevel <= 100)
{
int nNum = (p->m_nLevel - 1) / 10;
++nSection[nNum][p->m_nClass];
++nSection[nNum][STATLOG_TOTAL];
if (p->IsGState(CGS_FISH))
++nSection[nNum][STATLOG_FISH];
if (p->IsGState(CGS_ONSTALL))
++nSection[nNum][STATLOG_STALL];
}
LINKPLAYER_END;
for (int i = 0; i < 10; i++)
{
LOG_NORMAL("(Level Range : ##%02d ~ %02d) : (Kninght : %d) (Mage : %d) (Archer : %d) (Total : %d)", 10 * i + 1, 10 * i + 10, nSection[i][STATLOG_KNIGHT], nSection[i][STATLOG_MAGE], nSection[i][STATLOG_ARCHER], nSection[i][STATLOG_TOTAL]);
LOG_NORMAL("(Level Range : @@%02d ~ %02d) : (State : (Fish : %d) (Stall : %d))", 10 * i + 1, 10 * i + 10, nSection[i][STATLOG_FISH], nSection[i][STATLOG_STALL]);
nSection[10][STATLOG_KNIGHT] += nSection[i][STATLOG_KNIGHT];
nSection[10][STATLOG_MAGE] += nSection[i][STATLOG_MAGE];
nSection[10][STATLOG_ARCHER] += nSection[i][STATLOG_ARCHER];
nSection[10][STATLOG_TOTAL] += nSection[i][STATLOG_TOTAL];
nSection[10][STATLOG_FISH] += nSection[i][STATLOG_FISH];
nSection[10][STATLOG_STALL] += nSection[i][STATLOG_STALL];
}
LOG_NORMAL("##Total Player Statistic : (Kninght : %d) (Mage : %d) (Archer : %d) (Total : %d)", nSection[10][STATLOG_KNIGHT], nSection[10][STATLOG_MAGE], nSection[10][STATLOG_ARCHER], nSection[10][STATLOG_TOTAL]);
LOG_NORMAL("@@Total Player Statistic State : (Fish : %d) (Stall : %d)", nSection[10][STATLOG_FISH], nSection[10][STATLOG_STALL]);
LOG_NORMAL("$$Currency Total : %d", s_nCurrency);
CDBSocket::Write(S2D_STATISTICS, "ddddddd", nSection[10][STATLOG_KNIGHT], nSection[10][STATLOG_MAGE], nSection[10][STATLOG_ARCHER], nSection[10][STATLOG_TOTAL], nSection[10][STATLOG_FISH], nSection[10][STATLOG_STALL], CPlayer::s_nCurrency);
}