I modified the chat box dialog, but after I modified it, only one integrated channel sent the text is working normally. But I can't yell with the guild. Can someone help me to point out what went wrong? Can you remind me? Is that file recently linked here? I can't find it in advance. Thank you in advance.
Only the information sent by the integrated channel is normal. Others just do not display the message.
[Only registered and activated users can see links. Click Here To Register...]
This is the integrated channel code
This is the code of the guild
Thank you all
Only the information sent by the integrated channel is normal. Others just do not display the message.
[Only registered and activated users can see links. Click Here To Register...]
This is the integrated channel code
HTML Code:
if( IsValidObj( pMover ) && pMover->GetWorld() && pMover->GetWorld()->GetID() == WI_WORLD_GUILDWAR )
{
if( pMover->IsMode(GCWAR_RENDER_SKIP_MODE) )
return;
}
if( strlen( szBuf ) && ( szBuf[ 0 ] == '/' || szBuf[ 0 ] == '!' ) )
g_DialogMsg.AddMessage( pMover, szBuf );
else
{
int nTextId = -1;
//sprintf( szChat, "%s : %s", pMover->GetName( TRUE ), szBuf );
#ifdef __NEW__TEXT
sprintf( szChat, "#-%02d %s[ID;#aB{char=%08X}%u#aE]:%s", TEXTTYPE_CHAT, pMover->GetName( TRUE ), pMover->m_idPlayer, pMover->m_idPlayer, szBuf );
#else //__NEW__TEXT
sprintf( szChat, "%s[%d]: %s", pMover->GetName( TRUE ),pMover->m_idPlayer, szBuf );
#endif //__NEW__TEXT
g_WndMng.PutString( (LPCTSTR)szChat, pMover, 0xffffffff, CHATSTY_GENERAL );
}
}
}
This is the code of the guild
HTML Code:
void CDPClient::OnGuildChat( CAr & ar )
{
char sChat[1024];
char sPlayer[MAX_PLAYER] = { 0, };
OBJID objid;
u_long idPlayer;
ar >> objid;
ar >> idPlayer;
ar.ReadString( sPlayer, MAX_PLAYER );
ar.ReadString( sChat, 1024 );
#ifdef __YS_CHATTING_BLOCKING_SYSTEM
CMover* pMover = prj.GetMover( objid );
if( pMover && pMover->IsPlayer() == TRUE )
{
set< CString >::iterator BlockedUserIterator = prj.m_setBlockedUserID.find( pMover->GetName( TRUE ) );
if( BlockedUserIterator != prj.m_setBlockedUserID.end() )
return;
}
#endif // __YS_CHATTING_BLOCKING_SYSTEM
CString str;
#if __VER >= 11 // __CSC_VER11_1
#ifdef __NEW__TEXT
str.Format("#-%02d %s[ID;#aB{char=%08X}%u#aE]:%s", TEXTTYPE_GUILD , sPlayer, idPlayer, idPlayer, sChat );
#else //__NEW__TEXT
str.Format( "[%s]: %s", sPlayer, sChat );
#endif //__NEW__TEXT
#else //__CSC_VER11_1
#endif //__CSC_VER11_1
g_WndMng.PutString( str, NULL, prj.GetTextColor( TID_GUILD_CHAT ), CHATSTY_GUILD );
Thank you all