|
You last visited: Today at 23:10
Advertisement
Chat channel does not display
Discussion on Chat channel does not display within the Flyff Private Server forum part of the Flyff category.
02/01/2020, 18:12
|
#1
|
elite*gold: 0
Join Date: Jan 2020
Posts: 78
Received Thanks: 0
|
Chat channel does not display
Please help me to see where the code is missing or wrong, thanks
Chat box, send new messages, only normal channels, normally show what you say, other channels do not show anything I say
Shouting in code
Quote:
void CDPClient::OnShout( CAr & ar )
{
static \
CHAR lpszPlayer[MAX_PLAYER], lpString[260];
OBJID objid;
u_long idPlayer;
ar >> objid;
ar >> idPlayer;
ar.ReadString( lpszPlayer, MAX_PLAYER );
ar.ReadString( lpString, 260 );
DWORD dwColor = 0xffff99cc;
#if __VER >= 12 // __LORD
ar >> dwColor;
#endif // __LORD
CMover* pMover = prj.GetMover( objid );
#ifdef __YS_CHATTING_BLOCKING_SYSTEM
if( pMover && pMover->IsPlayer() == TRUE )
{
set< CString >::iterator BlockedUserIterator = prj.m_setBlockedUserID.find( lpszPlayer );
if( BlockedUserIterator != prj.m_setBlockedUserID.end() )
return;
}
#endif // __YS_CHATTING_BLOCKING_SYSTEM
// 富窍绰局啊 辨靛哪诡 甘俊辑 捞具扁甫 沁促搁...八荤秦辑...公矫茄促..-_-
if( IsValidObj( pMover ) && pMover->GetWorld() && pMover->GetWorld()->GetID() == WI_WORLD_GUILDWAR )
{
if( pMover->IsMode(GCWAR_RENDER_SKIP_MODE) )
return;
}
if( g_Option.m_bShout )
{
CString str;
//Shout
#ifdef __NEW_RICH_TEXT
if( idPlayer == 0 ) //Monster shout
str.Format("%s", TEXTTYPE_SHOUT, lpString );
else
str.Format("#-%02d %s[ID;#aB{char=%08X}%u#aE]:%s", TEXTTYPE_SHOUT , lpszPlayer, idPlayer, idPlayer, lpString );
#else //__NEW_RICH_TEXT
str.Format( "[%s]: %s", lpszPlayer, lpString );
#endif //__NEW_RICH_TEXT
//str.Format( "[%s] %s", lpszPlayer, lpString );
g_WndMng.PutString( str, NULL, dwColor, CHATSTY_SHOUT );
if( g_pPlayer && g_pPlayer->m_dwAuthorization >= AUTH_GAMEMASTER )
FILEOUT( "CHAT.LOG", (LPCSTR)str );
if( IsValidObj( pMover ) )
{
if( strlen( lpString ) )
g_DialogMsg.AddMessage( pMover, lpString, 0xfffffff, CHAT_SHOUT );
}
}
}
|
Common channel code. It ’s just that what this channel says can be displayed normally
Quote:
void CDPClient::OnChat( OBJID objid, CAr & ar )
{
ar.ReadString( szBuf, 1024 );
CMover* pMover = prj.GetMover( objid );
if( IsValidObj( pMover ) )
{
#ifdef __YS_CHATTING_BLOCKING_SYSTEM
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
// 富窍绰局啊 辨靛哪诡 甘俊辑 捞具扁甫 沁促搁...八荤秦辑...公矫茄促..-_-
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;
if (pMover->IsPlayer())
{
//sprintf( szChat, "%s : %s", pMover->GetName( TRUE ), szBuf );
//ordinary
#ifdef __NEW_RICH_TEXT
sprintf( szChat, "#-%02d %s[ID;#aB{char=%08X}%u#aE]:%s", TEXTTYPE_CHAT, pMover->GetName( TRUE ), pMover->m_idPlayer, pMover->m_idPlayer, szBuf );
str.Format("#-%02d %s[ID;#aB{char=%08X}%u#aE]:%s", TEXTTYPE_PARTY, lpName, idPlayer, idPlayer, lpString);
#else //__NEW_RICH_TEXT
sprintf( szChat, "%s[%d]: %s", pMover->GetName( TRUE ),pMover->m_idPlayer, szBuf );
#endif //__NEW_RICH_TEXT
g_WndMng.PutString( (LPCTSTR)szChat, pMover, 0xffffffff, CHATSTY_GENERAL );
}else {
g_WndMng.PutString((LPCTSTR)szBuf, pMover, 0xffffffff, CHATSTY_GENERAL);
}
}
}
}
|
|
|
|
02/04/2020, 04:27
|
#2
|
elite*gold: 0
Join Date: Jan 2020
Posts: 78
Received Thanks: 0
|
Does anyone tell me what went wrong
|
|
|
02/05/2020, 00:58
|
#3
|
elite*gold: 0
Join Date: Aug 2014
Posts: 653
Received Thanks: 217
|
try to define back some code you remove like this // and read the error so maybe you mess a thing .,
|
|
|
02/05/2020, 04:18
|
#4
|
elite*gold: 0
Join Date: Jan 2020
Posts: 78
Received Thanks: 0
|
Quote:
Originally Posted by Ecrypter
try to define back some code you remove like this // and read the error so maybe you mess a thing .,
|
Yes, the original work is normal. I transplanted a system in the chat model, and then there was a non-display error.
|
|
|
02/05/2020, 07:01
|
#5
|
elite*gold: 0
Join Date: Aug 2014
Posts: 653
Received Thanks: 217
|
Quote:
Originally Posted by siono01
Yes, the original work is normal. I transplanted a system in the chat model, and then there was a non-display error.
|
then you need more time to explore the code. other code may not define in the feature but its function the system you added.., this feature i think from china source release last year, correct me if i am wrong., i'd never see the full system as of this time since im busy of my daily work and with my family, no time for flyff management. but im still updated here in this forum, trying to help the people's in need.
|
|
|
02/05/2020, 08:54
|
#6
|
elite*gold: 0
Join Date: Jan 2020
Posts: 78
Received Thanks: 0
|
Quote:
Originally Posted by Ecrypter
then you need more time to explore the code. other code may not define in the feature but its function the system you added.., this feature i think from china source release last year, correct me if i am wrong., i'd never see the full system as of this time since im busy of my daily work and with my family, no time for flyff management. but im still updated here in this forum, trying to help the people's in need.
|
Yes, it is the code obtained in the Chinese version. I think there should be some other code. I have n’t checked it.
|
|
|
 |
Similar Threads
|
Text does not display
06/04/2019 - Flyff Private Server - 1 Replies
I have checked the text in txt, inc. I can add text normally, but I don’t display text in the game, and there is no error report.
http://prnt.sc/nwf9rw
|
Delete code does not display folder contents as active links
08/14/2013 - Web Development - 0 Replies
Here are two simple files that should work easily; however, the first, the folder code, does not display the folder contents, and the active links to them that would be needed to delete the files by linking them to delete.php file.
Code for folder containing files that might be deleted
$file = urlencode($dirArray);
print("<td><a href=\"delete.php?file=$file\">Delete $dirArray</a></td>");
$file variable should be defined to show contents of folder, so I tried using scandirectory.
<?php...
|
[HELP] Account does not exist upon first click then does on second
12/28/2011 - Shaiya Private Server - 3 Replies
I have tried searching the forums for this issue but all I find is problems with starting the server, I have mine all set up and "semi" public but when I or anyone else logs in we get a message saying account does not exist but if you click ok and re-enter your password it logs in, does anyone know what the problem is?
|
DB BOT not display skills, not read coordinates
02/16/2011 - SRO Private Server - 4 Replies
I use the DB BOT 0.8.he doesn't show my skills, also don't read coordinates, and against monsters,
For such or 1.3a, I found that many people were such circumstance, who can tell me how to solve, thX!
:rtfm:
|
Since latest patch bot does not display my characters when i am logged on?
11/30/2010 - Battle of the Immortals - 0 Replies
I updated the bot files and all, but when i am in game and open the bot it does not show that i have any characters online. Am i the only one who has this problem? Should i be using a diffirent version of it?
|
All times are GMT +1. The time now is 23:11.
|
|