Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Flyff > Flyff Private Server
You last visited: Today at 19:03

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

Advertisement



Little help with Drop_Log

Discussion on Little help with Drop_Log within the Flyff Private Server forum part of the Flyff category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Mar 2017
Posts: 342
Received Thanks: 18
Question Little help with Drop_Log

Fixed!
babyminion is offline  
Old 04/04/2018, 05:32   #2
 
elite*gold: 294
Join Date: Jun 2009
Posts: 407
Received Thanks: 587
look for code for that system ^^; if use applet to determine, move applet. if just print text / image, move to center by calc center point and position. or disable system sir! ^_^
Avalion is offline  
Thanks
1 User
Old 04/04/2018, 20:35   #3


 
Professor Linebeck's Avatar
 
elite*gold: 0
Join Date: Jul 2010
Posts: 1,345
Received Thanks: 1,609
Yes sir it is in WndDropLog.cpp but as sir Availon said you need to calculate the center and work from there sir. Some dirty but useful way is this sir:

WndDropLog.h
class CWndDropLog
Search this
Code:
	void			Render( C2DRender* p2DRender, const int &nWindowHeight);
Replace with this sir
Code:
	void			Render( C2DRender* p2DRender, const int &nWindowHeight, const int &nWindowWidth);

WndDropLog.cpp
CWndDropLog::Render
Replace your function with this(just added calculated center sir)
Code:
void CWndDropLog::Render( C2DRender* p2DRender, const int &nWindowHeight, const int &nWindowWidth)
{
	CPoint	pt;
	DWORD	dwTick = GetTickCount();
	DWORD	dwLeft;
	int 	i = 0;

	if( ( dwLeft = ( dwTick - m_dwLastAddGold ) ) < GOLD_FADEOUT + 1000 )
	{
		DWORD dwAlpha = 255;
		if( dwLeft >= GOLD_FADEOUT )
		{
			dwLeft -= GOLD_FADEOUT;
			DOUBLE alpha = 255.0 - ceil( 255.0 * ( (DOUBLE)dwLeft * 0.001 ) );
			if( alpha < 0.0 )
				dwAlpha = 0;
			else if( alpha > 255.0 )
				dwAlpha = 255;
			else
				dwAlpha = (DWORD)alpha;
		}
		else
		{
			dwLeft = min( 250, dwLeft );
			dwAlpha = (DWORD)ceil( 255.0 * ( (DOUBLE)dwLeft / 250.0 ) );
		}

		pt.SetPoint(-32 + nWindowWidth / 2, 100 + nWindowHeight / 2 );
		p2DRender->RenderTexture( pt, m_pGoldTexture, dwAlpha, 0.75f, 0.75f );
		p2DRender->TextOut( nWindowWidth / 2, 100 + nWindowHeight / 2 + 7, m_szTotalReapGold, D3DCOLOR_ARGB( dwAlpha, 255, 255, 0 ) );
	}
	t_dropLog ptr = m_pHead;
	while( ( ptr ) && ( i++ < 10 ) )
	{
		pt.SetPoint(-32 + nWindowWidth / 2, 100 + nWindowHeight / 2 + ( 27 * i ) );
		p2DRender->RenderTexture( pt, ptr->pTexture, ptr->dwAlpha, 0.75f, 0.75f );
		p2DRender->TextOut(nWindowWidth / 2, 100 + nWindowHeight / 2 + ( 27 * i ) + 7, ptr->szName, ptr->dwNameColor );
		ptr = ptr->next;
	}
}
WndWorld.cpp
CWndWorld::OnDraw
Search for this
Code:
CWndDropLog::GetInstance()->Render( p2DRender, rc.bottom);
Replace with
Code:
CWndDropLog::GetInstance()->Render( p2DRender, rc.bottom, rc.right );




If you still can't get this working then please follow this helpful advice:

Quote:
Originally Posted by Avalion View Post
disable system sir! ^_^
Professor Linebeck is offline  
Thanks
1 User
Old 04/05/2018, 16:46   #4


 
Professor Linebeck's Avatar
 
elite*gold: 0
Join Date: Jul 2010
Posts: 1,345
Received Thanks: 1,609
Quote:
Originally Posted by babyminion View Post
haha! you make me laugh with sir @ advice haha! btw sir @ thank you very much! appriciated! im going to try this
prof.



Edit: i got this sir @
You forgot to edit the WndDropLog.h.
Professor Linebeck is offline  
Thanks
1 User
Old 04/05/2018, 17:03   #5
 
elite*gold: 0
Join Date: Mar 2017
Posts: 342
Received Thanks: 18
Quote:
Originally Posted by Professor Linebeck View Post
You forgot to edit the WndDropLog.h.
this?
WndDroplog.cpp

or this sir?
WndDroplog.h
babyminion is offline  
Old 04/05/2018, 17:18   #6


 
Professor Linebeck's Avatar
 
elite*gold: 0
Join Date: Jul 2010
Posts: 1,345
Received Thanks: 1,609
Quote:
Originally Posted by babyminion View Post
this?
WndDroplog.cpp

or this sir?
WndDroplog.h
You got
Code:
void Render( C2DRender* p2DRender, const int &nWindowHeight, rc.right );
But it must be
Code:
void Render( C2DRender* p2DRender, const int &nWindowHeight, const int &nWindowWidth);
You also didnt replace the function in cpp sir
Professor Linebeck is offline  
Thanks
1 User
Reply


Similar Threads Similar Threads
Need some help with DROP_LOG
10/18/2016 - Flyff Private Server - 9 Replies
Hi! so i tried to inplant the DROP_Log system to my server but getting a few errors in the neuz compile https://gyazo.com/dec472213298dfe94d8d354f78f7b1a 5 Neuz error LNK2019: unresolved external symbol "public: __thiscall CWndDropLog::CWndDropLog(void)" (??0CWndDropLog@@QAE@XZ) referenced in function "public: static class CWndDropLog * __cdecl CWndDropLog::GetInstance(void)" (?GetInstance@CWndDropLog@@SAPAV1@XZ) how to fix unresolved external symbols o_O?
DROP_LOG frage
10/17/2016 - Flyff Private Server - 2 Replies
hallo ich habe da eine frage ich habe nun das system eingefügt aber irgendwie bekomme ich 1 einzigen error und hoffe ihr könnt mir dabei helfen c:\Users\xxxx\Desktop\test\Source\WORLDSERVER\Use r .cpp(4607): error C2601: 'CUser::AddReapGold' : local function definitions are illegal wie bekomme ich diesen weg kann mir das einer sagen wo ich das problem beheben kann oder wie danke im vorraus



All times are GMT +1. The time now is 19:03.


Powered by vBulletin®
Copyright ©2000 - 2026, 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 ©2026 elitepvpers All Rights Reserved.