Register for your free account! | Forgot your password?

You last visited: Today at 01:43

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

Advertisement



Message fix

Discussion on Message fix within the Flyff PServer Guides & Releases forum part of the Flyff Private Server category.

Reply
 
Old   #1
 
sebariio's Avatar
 
elite*gold: 0
Join Date: Aug 2010
Posts: 98
Received Thanks: 76
Message fix

Hola
This is just a small fix for private message :

Code:
BOOL CWndMessage::OnChildNotify( UINT message, UINT nID, LRESULT* pLResult ) 
{ 
	CWndEdit* pWndText = (CWndEdit*)GetDlgItem( WIDC_EDIT );
	switch(nID)
	{
		case WIDC_EDIT:
#ifdef __CHAT_SCROLL_FIX
			pWndText->m_wndScrollBar.SetMaxScrollPos();
#endif // __CHAT_SCROLL_FIX
			if( message == EN_RETURN)
			{
				if( pWndText->m_string.IsEmpty() == FALSE )
				{
					CString strFormat = pWndText->m_string;					
					pWndText->m_string.GetTextFormat(strFormat);
					CString string;
					string.Format( "/say \"%s\" %s", m_strPlayer, strFormat );
					
					g_DPlay.SendChat( string );
					pWndText->Empty();
				}
				//				pWndText->ResetString();
			}
			break;
		case WIDC_SEND:
			{
				CString str = pWndText->m_string;
				if( str.IsEmpty() == FALSE )
				{
					CString strFormat = pWndText->m_string;

					pWndText->m_string.GetTextFormat(strFormat);

					CString string;
					string.Format( "/say \"%s\" %s", m_strPlayer, strFormat );					
					
					g_DPlay.SendChat( string );
					pWndText->Empty();
	//				pWndText->ResetString();
				}
			}
			break;

	}
	return CWndNeuz::OnChildNotify( message, nID, pLResult ); 
}
This fix allows to do this (instead of being stuck on first line) :
sebariio is offline  
Thanks
15 Users
Old 09/19/2020, 08:03   #2
 
elite*gold: 0
Join Date: Aug 2020
Posts: 6
Received Thanks: 0
Hi may i know where at source i can put this?
Longlong07 is offline  
Old 09/19/2020, 09:48   #3
 
elite*gold: 0
Join Date: Apr 2019
Posts: 81
Received Thanks: 7
Quote:
Originally Posted by Longlong07 View Post
Hi may i know where at source i can put this?
WndMessenger.cpp
IFlyffMc is offline  
Thanks
1 User
Old 09/19/2020, 09:54   #4
 
elite*gold: 0
Join Date: Jun 2009
Posts: 65
Received Thanks: 46
Quote:
Originally Posted by Longlong07 View Post
Hi may i know where at source i can put this?
WndMessenger.cpp

The change he made is this part and it tells you where to put it.

Code:
#ifdef __CHAT_SCROLL_FIX
			pWndText->m_wndScrollBar.SetMaxScrollPos();
#endif // __CHAT_SCROLL_FIX
Even if he didn't say in which file you should put it he atleast gave a clue.
It's related to the messenger, right? So it could be in the "interface" directory, related to a messenger file.
If that leads to nowhere, you can simply search for a unique line, let's say

Code:
string.Format( "/say \"%s\" %s", m_strPlayer, strFormat );
(make sure to have the correct search options too to be able to search through the explorer search function )
VirusAtwar is offline  
Thanks
3 Users
Old 09/20/2020, 12:58   #5
 
elite*gold: 0
Join Date: Aug 2020
Posts: 6
Received Thanks: 0
Can i Add you sir?
Longlong07 is offline  
Reply


Similar Threads Similar Threads
[04.09.13] GigaByte v2.6 [FIX, FIX, FIX, FIX AND FIX]
09/11/2013 - WarRock Hacks, Bots, Cheats & Exploits - 79 Replies
http://www.elitepvpers.com/forum/warrock-hacks-bot s-cheats-exploits/2843300-11-09-gigabyte-public-v2 -7-a.html



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


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.