Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Flyff > Flyff Private Server > Flyff PServer Guides & Releases
You last visited: Today at 16:10

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

Advertisement



[Mini-Release] BUFF display time (SMHJ)

Discussion on [Mini-Release] BUFF display time (SMHJ) within the Flyff PServer Guides & Releases forum part of the Flyff Private Server category.

Reply
 
Old   #1
 
Steffen Tequila's Avatar
 
elite*gold: 51
Join Date: May 2009
Posts: 338
Received Thanks: 76
[Mini-Release] BUFF display time (SMHJ)

I had not found anything about it and hope there is not something like that yet.


Picture of BUFF display time



Neuz versioncommon.h
Quote:
#define __BUFF_ANZEIGE_SMHJ

Search on WndField.cpp: "void CWndBuffStatus::RenderOptBuffTime"
Exchange the full function with,


Code:
void CWndBuffStatus::RenderOptBuffTime(C2DRender *p2DRender, CPoint& point, CTimeSpan &ct, DWORD dwColor )
{
	if(g_Option.m_bVisibleBuffTimeRender)
	{
		CString str;
#ifdef __BUFF_ANZEIGE_SMHJ
		int nTime[3];
		nTime[0] = (int)(ct.GetTotalSeconds());
		nTime[1] = (int)(ct.GetTotalMinutes());
		nTime[2] = (int)(ct.GetTotalHours());
		
		if( nTime[0] > 0 && nTime[0] <= 59 )
			str.Format( "%ds", nTime[0] );
		
		else if( nTime[1] > 0 && nTime[1] <= 59 )
			str.Format( "%dm", nTime[1] );
		
		else if( nTime[2] > 0 && nTime[2] <= 23 )
			str.Format( "%dh", nTime[2] );
		
		else if( nTime[2] > 23 )
			str.Format( "%dj", nTime[2]/24 );	
						
		CD3DFont* pOldFont = p2DRender->GetFont();
		p2DRender->SetFont( CWndBase::m_Theme.m_pFontWndTitle );
		p2DRender->TextOut( point.x+12, point.y+20, str, dwColor );
		p2DRender->SetFont( pOldFont );
#else // __BUFF_ANZEIGE_SMHJ
		int seconds = (int)(ct.GetTotalSeconds());
		str.Format( "%d" , seconds );
		p2DRender->TextOut(point.x+2, point.y+22, str, dwColor, 0xFF000000);
#endif // __BUFF_ANZEIGE_SMHJ
	}
}

Have fun with it
Steffen Tequila is offline  
Thanks
5 Users
Old 12/01/2019, 10:39   #2
 
Ecrypter's Avatar
 
elite*gold: 0
Join Date: Aug 2014
Posts: 653
Received Thanks: 217
its already im my release source
Ecrypter is offline  
Reply


Similar Threads Similar Threads
[Selling] Ipad mini 2 [Retina Display&4G/WiFi] Weiß 32GB
09/24/2015 - Trading - 0 Replies
Hallo, Ich verkaufe ein Ipad mini 2 Weiß 32GB so gut wie neu wurde nur auf 2 Geschäftsreisen genutzt im Flugzeug. Preis ist 280€ VHB. Ich akzeptiere nur Überweisung. Fotos:
Display buff / debuff bar Hp (Help)
06/11/2014 - Shaiya - 1 Replies
Spanish: Hola, Tengo un amigo que necesita ayuda, Queremos Desbloquear la Barra indicadora del Hp de los Mobs y otros PJ's, es decir al hacerle click poder ver sus buff y debuffes activos aqui dejo una foto de ejemplo. Así está la barra en el Shaiya: https://fbcdn-sphotos-c-a.akamaihd.net/hphotos-ak -xap1/t1.0-9/10450876_739549672769969_285347652021 0552110_n.jpg Así queremos que quede despues:...
[WTB] unded mini ghostly/mini panada/mini polar bear
05/07/2012 - Guild Wars Trading - 2 Replies
Hi, Would like to buy one of those pets. Make me an offer if you got one. Thanks.
[mini mini Release] Warning for IE for heni script
09/19/2011 - Metin2 PServer Guides & Strategies - 14 Replies
this is nothing special I just i see a lots of people have troubles with the Internet Explorer browser on the almost all HP have be release on epvp so i will explain a bether way to warning the user he is using the internet explorer and you recomend use firefox or chrone without using enterpage 1 put this code inside the <head> </head> tag <!--> <script type="text/javascript">



All times are GMT +1. The time now is 16:10.


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.