Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Flyff > Flyff Private Server
You last visited: Today at 01:17

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Chat box editing question

Discussion on Chat box editing question within the Flyff Private Server forum part of the Flyff category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Aug 2019
Posts: 20
Received Thanks: 0
Chat box editing question

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.


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
flyff886 is offline  
Reply


Similar Threads Similar Threads
[pk2 editing] hitcount color editing
08/16/2018 - Silkroad Online - 2 Replies
Hey guys, i have a question and i hope i find any help here. When you attack a mob in silkroad, white numbers indicate the amount of damage you dealed to the mob. Now i want to change these white numbers to another color (e.g. blue). The numbers itself (as .ddj images) can be found in media.pk2/interface/hitcount. Now I extracted them from media.pk2, converted them to .jpg, changed the color, converted them back to .ddj and placed them back into the .media.pk2. Sadly w/o any...
Packet Editing Or CSV Editing That Is The Question!
11/25/2008 - Dekaron - 17 Replies
Well I'd just like to know what people like better packet or csv editing? I'll be the first to post a opinion, its easy to edit csv's if u got the already edited ones like I do, but like it was said in other threads, less lag and less dc's if u edit the packet file...... It's simple to edit csv's tho and make it work for the game, and its alot easier to read considering its seperated by line but some people can't seem to get it to work like how they were told!! so for them packet editing...



All times are GMT +1. The time now is 01:22.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.