Paketlerin Karşılığını Bulun değiştirin
Kod:
uint16 CGameServerDlg::GetKnightsAllMembers(uint16 sClanID, Packet & result, uint16 & pktSize, bool bClanLeader)
{
CKnights* pKnights = GetClanPtr(sClanID);
if (pKnights == nullptr)
return 0;
uint16 count = 0;
foreach_array (i, pKnights->m_arKnightsUser)
{
_KNIGHTS_USER *p = &pKnights->m_arKnightsUser[i];
if (!p->byUsed)
continue;
CUser *pUser = p->pSession;
if (pUser != nullptr)
result << pUser->GetName() << pUser->GetFame()<<uint8() << pUser->GetLevel() << pUser->m_sClass << uint8(1)<< uint8(0);
else // normally just clan leaders see this, but we can be generous now.
result << pKnights->m_arKnightsUser[i].strUserName << uint8(0) << uint8(0)<<uint8(0) << uint16(0) << uint8(0) <<uint8(1) <<uint8(0);
count++;
}
return count;
}
View hidden content is available for registered users!