[Mini-Release] Status HP in tausender

12/25/2013 18:53 Iban24#1
Wenn ihr mehr von solchen kleinen dingen haben wollt schreibt eure wünsche hier.


[Only registered and activated users can see links. Click Here To Register...]

File: WndField

Sucht nach:
Code:
void CWndStatus::OnDraw(C2DRender* p2DRender)
ersetzt:
Code:
		else
		{
			nCharHP = wsprintf(cbufHp, "%d", pMover->GetHitPoint());
			nCharMP = wsprintf(cbufMp, "%d", pMover->GetManaPoint());
			nCharFP = wsprintf(cbufFp, "%d", pMover->GetFatiguePoint());

			int x = lpHP->rect.right - 82;
			p2DRender->TextOut( x - (int)(((float)nCharHP / 2.0f) * size.cx), lpHP->rect.top - nTopGap, cbufHp, dwColor, 0xff000000 );
			p2DRender->TextOut( x - (int)(((float)nCharMP / 2.0f) * size.cx), lpMP->rect.top - nTopGap, cbufMp, dwColor, 0xff000000 );
			p2DRender->TextOut( x - (int)(((float)nCharFP / 2.0f) * size.cx), lpFP->rect.top - nTopGap, cbufFp, dwColor, 0xff000000 );

			nCharHP = wsprintf(cbufHp, "%d", pMover->GetHitPoint());
			nCharMP = wsprintf(cbufMp, "%d", pMover->GetMaxManaPoint());
			nCharFP = wsprintf(cbufFp, "%d", pMover->GetMaxFatiguePoint());

			x = lpHP->rect.right - 30;
			p2DRender->TextOut( x - (int)(((float)nCharHP / 2.0f) * size.cx), lpHP->rect.top - nTopGap, cbufHp, dwColor, 0xff000000 );
			p2DRender->TextOut( x - (int)(((float)nCharMP / 2.0f) * size.cx), lpMP->rect.top - nTopGap, cbufMp, dwColor, 0xff000000 );
			p2DRender->TextOut( x - (int)(((float)nCharFP / 2.0f) * size.cx), lpFP->rect.top - nTopGap, cbufFp, dwColor, 0xff000000 );

			LPWNDCTRL lpHP = GetWndCtrl( WIDC_CUSTOM1 );
			int nWidthCustom = lpHP->rect.Width();
			int nGap = (int)( ((nWidthCustom / 2.0f) + (size.cx / 2.0f)) );

			p2DRender->TextOut( lpHP->rect.right - nGap, lpHP->rect.top - nTopGap, "/", dwColor, 0xff000000 );
			p2DRender->TextOut( lpMP->rect.right - nGap, lpMP->rect.top - nTopGap, "/", dwColor, 0xff000000 );
			p2DRender->TextOut( lpFP->rect.right - nGap, lpFP->rect.top - nTopGap, "/", dwColor, 0xff000000 );
		}
mit :
Code:
		else
		{
			if ( pMover->GetHitPoint() >= 10000)
				nCharHP = wsprintf(cbufHp, "%dk", pMover->GetHitPoint() / 1000);
			else if ( pMover->GetHitPoint() >= 1000000)
				nCharHP = wsprintf(cbufHp, "%dm", pMover->GetHitPoint() / 100000);
			else
				nCharHP = wsprintf(cbufHp, "%d", pMover->GetHitPoint());

			nCharMP = wsprintf(cbufMp, "%d", pMover->GetManaPoint());
			nCharFP = wsprintf(cbufFp, "%d", pMover->GetFatiguePoint());

			int x = lpHP->rect.right - 82;
			p2DRender->TextOut( x - (int)(((float)nCharHP / 2.0f) * size.cx), lpHP->rect.top - nTopGap, cbufHp, dwColor, 0xff000000 );
			p2DRender->TextOut( x - (int)(((float)nCharMP / 2.0f) * size.cx), lpMP->rect.top - nTopGap, cbufMp, dwColor, 0xff000000 );
			p2DRender->TextOut( x - (int)(((float)nCharFP / 2.0f) * size.cx), lpFP->rect.top - nTopGap, cbufFp, dwColor, 0xff000000 );

			if ( pMover->GetMaxHitPoint() >= 10000)
				nCharHP = wsprintf(cbufHp, "%dk", pMover->GetMaxHitPoint() / 1000);
			else if ( pMover->GetMaxHitPoint() >= 1000000)
				nCharHP = wsprintf(cbufHp, "%dm", pMover->GetMaxHitPoint() / 100000);
			else
				nCharHP = wsprintf(cbufHp, "%d", pMover->GetHitPoint());
			nCharMP = wsprintf(cbufMp, "%d", pMover->GetMaxManaPoint());
			nCharFP = wsprintf(cbufFp, "%d", pMover->GetMaxFatiguePoint());

			x = lpHP->rect.right - 30;
			p2DRender->TextOut( x - (int)(((float)nCharHP / 2.0f) * size.cx), lpHP->rect.top - nTopGap, cbufHp, dwColor, 0xff000000 );
			p2DRender->TextOut( x - (int)(((float)nCharMP / 2.0f) * size.cx), lpMP->rect.top - nTopGap, cbufMp, dwColor, 0xff000000 );
			p2DRender->TextOut( x - (int)(((float)nCharFP / 2.0f) * size.cx), lpFP->rect.top - nTopGap, cbufFp, dwColor, 0xff000000 );

			LPWNDCTRL lpHP = GetWndCtrl( WIDC_CUSTOM1 );
			int nWidthCustom = lpHP->rect.Width();
			int nGap = (int)( ((nWidthCustom / 2.0f) + (size.cx / 2.0f)) );

			p2DRender->TextOut( lpHP->rect.right - nGap, lpHP->rect.top - nTopGap, "/", dwColor, 0xff000000 );
			p2DRender->TextOut( lpMP->rect.right - nGap, lpMP->rect.top - nTopGap, "/", dwColor, 0xff000000 );
			p2DRender->TextOut( lpFP->rect.right - nGap, lpFP->rect.top - nTopGap, "/", dwColor, 0xff000000 );
		}


Credits: 100% meeeee
12/26/2013 00:53 *~Valvatorez~*#2
Klein aber fein. Absolut brauchbar ^.^
12/26/2013 02:34 Magnus_#3
Thank you for releasing this code.
12/26/2013 02:34 Serenity-.#4
Wäre nicht schlecht wenn man anstatt 1000k 1m da stehen hat :D

ansonsten hammer geil *-*
12/26/2013 02:43 Magnus_#5
[Only registered and activated users can see links. Click Here To Register...]

How can i fix this 1?
12/26/2013 04:21 Serenity-.#6
Why do you need 17m hp? 0.o
12/26/2013 04:27 Magnus_#7
Quote:
Originally Posted by Serenity-. View Post
Why do you need 17m hp? 0.o
My players get the hp 1m ..
12/26/2013 04:52 ©ross#8
Ist zwar einfach realisiert, aber mir persöhnlich fehlt dann eine weitere Unterteilung in Millionen. Highrate GW Eckel Server brauchen so einen müll mit Werten jenseits der Millionen^^

greetz

Ist zwar einfach realisiert, aber mir persöhnlich fehlt dann eine weitere Unterteilung in Millionen. Highrate GW Ekel Server brauchen so einen müll mit Werten jenseits der Millionen^^

greetz
12/26/2013 07:40 raventh1984#9
Quote:
Originally Posted by Magnus_ View Post
[Only registered and activated users can see links. Click Here To Register...]

How can i fix this 1?

You can use your brain to fix that its not that hard.
Here
Code:
if( pMover->GetMaxHitPoint() >= 10000 && pMover->GetMaxHitPoint() <= 1000000 )
	nCharHP = wsprintf( cbufHp, "%dk", pMover->GetMaxHitPoint() / 1000 )
else if( pMover->GetMaxHitPoint() >= 1000000 )
	nCharHP = wsprintf( cbufHp, "%dm", pMover-GetMaxHitPoint() / 1000 )
else
	nCharHP = wsprintf( cbufHp, "%d", pMover->GetHitPoint() );
Ddint test it but should work
12/26/2013 14:03 Rhyder'#10
Quote:
Originally Posted by Magnus_ View Post
[Only registered and activated users can see links. Click Here To Register...]

How can i fix this 1?
stop leeching dirk.. just learn c++ its not hard to do it lol

look at what i did:
[Only registered and activated users can see links. Click Here To Register...]
[Only registered and activated users can see links. Click Here To Register...]

HP,MP,FP Preview :P
[Only registered and activated users can see links. Click Here To Register...]

;)

@Pixelhut:
Thanks for the code as a guide :)

@ravent:
that one doesn't work.. just put braces behind your code :) because c++ don't know what to do with that :D
12/26/2013 14:53 .SnoX#11
Quote:
Originally Posted by raventh1984 View Post
You can use your brain to fix that its not that hard.
Here
Code:
if( pMover->GetMaxHitPoint() >= 10000 && pMover->GetMaxHitPoint() <= 1000000 )
	nCharHP = wsprintf( cbufHp, "%dk", pMover->GetMaxHitPoint() / 1000 )
else if( pMover->GetMaxHitPoint() >= 1000000 )
	nCharHP = wsprintf( cbufHp, "%dm", pMover-GetMaxHitPoint() / 1000 )
else
	nCharHP = wsprintf( cbufHp, "%d", pMover->GetHitPoint() );
Ddint test it but should work
lol. You mean this?

Quote:
if ( pMover->GetHitPoint() >= 10000)
nCharHP = wsprintf( cbufHp, "%dk", pMover->GetHitPoint() / 1000 );
else if ( pMover->GetHitPoint() >= 1000000)
nCharHP = wsprintf( cbufHp, "%dm", pMover->GetHitPoint() / 1000000 );
else
nCharHP = wsprintf( cbufHp, "%d", pMover->GetHitPoint() );
-edit-

Here a better version for my Leechfriends.

PHP Code:
#ifdef __NEW_SHIT
            
if( pMover->GetHitPoint() >= 10000 && pMover->GetHitPoint() < 1000000 )
                
nCharHP wsprintf(cbufHp"%dk"pMover->GetHitPoint() / 1000);
            else if( 
pMover->GetHitPoint() >= 1000000 )
                
nCharHP wsprintf(cbufHp"%dm"pMover->GetHitPoint() / 1000000);
            else
                
nCharHP wsprintf(cbufHp"%d"pMover->GetHitPoint() );

            if( 
pMover->GetManaPoint() >= 10000 && pMover->GetManaPoint() < 1000000 )
                
nCharMP wsprintf(cbufMp"%dk"pMover->GetManaPoint() / 1000);
            else if( 
pMover->GetManaPoint() >= 1000000 )
                
nCharMP wsprintf(cbufMp"%dm"pMover->GetManaPoint() / 1000000);
            else
                
nCharMP wsprintf(cbufMp"%d"pMover->GetManaPoint() );

            if( 
pMover->GetFatiguePoint() >= 10000 && pMover->GetFatiguePoint() < 1000000 )
                
nCharFP wsprintf(cbufFp"%dk"pMover->GetFatiguePoint() / 1000);
            else if( 
pMover->GetFatiguePoint() >= 10000 )
                
nCharFP wsprintf(cbufFp"%dm"pMover->GetFatiguePoint() / 1000000);
            else
                
nCharFP wsprintf(cbufFp"%d"pMover->GetFatiguePoint() );
#else
            
nCharHP wsprintf(cbufHp"%d"pMover->GetHitPoint());
            
nCharMP wsprintf(cbufMp"%d"pMover->GetManaPoint());
            
nCharFP wsprintf(cbufFp"%d"pMover->GetFatiguePoint());
#endif // __NEW_SHIT 
You have to define it. VersionCommon.h(Neuz)
12/27/2013 16:41 Cloud'#12
warum wird es nicht funktionieren? nur 1000k Zustand nicht 1m
12/28/2013 05:17 Rhyder'#13
Quote:
Originally Posted by .SnoX View Post
lol. You mean this?



-edit-

Here a better version for my Leechfriends.

PHP Code:
#ifdef __NEW_SHIT
            
if( pMover->GetHitPoint() >= 10000 && pMover->GetHitPoint() < 1000000 )
                
nCharHP wsprintf(cbufHp"%dk"pMover->GetHitPoint() / 1000);
            else if( 
pMover->GetHitPoint() >= 1000000 )
                
nCharHP wsprintf(cbufHp"%dm"pMover->GetHitPoint() / 1000000);
            else
                
nCharHP wsprintf(cbufHp"%d"pMover->GetHitPoint() );

            if( 
pMover->GetManaPoint() >= 10000 && pMover->GetManaPoint() < 1000000 )
                
nCharMP wsprintf(cbufMp"%dk"pMover->GetManaPoint() / 1000);
            else if( 
pMover->GetManaPoint() >= 1000000 )
                
nCharMP wsprintf(cbufMp"%dm"pMover->GetManaPoint() / 1000000);
            else
                
nCharMP wsprintf(cbufMp"%d"pMover->GetManaPoint() );

            if( 
pMover->GetFatiguePoint() >= 10000 && pMover->GetFatiguePoint() < 1000000 )
                
nCharFP wsprintf(cbufFp"%dk"pMover->GetFatiguePoint() / 1000);
            else if( 
pMover->GetFatiguePoint() >= 10000 )
                
nCharFP wsprintf(cbufFp"%dm"pMover->GetFatiguePoint() / 1000000);
            else
                
nCharFP wsprintf(cbufFp"%d"pMover->GetFatiguePoint() );
#else
            
nCharHP wsprintf(cbufHp"%d"pMover->GetHitPoint());
            
nCharMP wsprintf(cbufMp"%d"pMover->GetManaPoint());
            
nCharFP wsprintf(cbufFp"%d"pMover->GetFatiguePoint());
#endif // __NEW_SHIT 
You have to define it. VersionCommon.h(Neuz)
Additional things :) NO DEFINE NEEDED :)
Code:
		else
		{
			/**************************************************************/
			//HP
			/**************************************************************/
			if ( pMover->GetHitPoint() >= 10000 && pMover->GetHitPoint() <= 999999 )
			{
				nCharHP = wsprintf(cbufHp, "%dk", pMover->GetHitPoint() / 1000 );
			}
			else
			if ( pMover->GetHitPoint() >= 1000000 && pMover->GetHitPoint() <= 999999999 )
			{
				nCharHP = wsprintf(cbufHp, "%dm", pMover->GetHitPoint() / 1000000 );
			}
			else
			if ( pMover->GetHitPoint() >= 1000000000 )
			{
				nCharHP = wsprintf(cbufHp, "%db", pMover->GetHitPoint() / 1000000000 );
			}
			else
				nCharHP = wsprintf(cbufHp, "%d", pMover->GetHitPoint());
			/**************************************************************/
			//MP
			/**************************************************************/
			if ( pMover->GetManaPoint() >= 10000 && pMover->GetManaPoint() <= 999999 )
			{
				nCharMP = wsprintf(cbufMp, "%dk", pMover->GetManaPoint() / 1000 );
			}
			else
			if ( pMover->GetManaPoint() >= 1000000 && pMover->GetManaPoint() <= 999999999 )
			{
				nCharMP = wsprintf(cbufMp, "%dm", pMover->GetManaPoint() / 1000000 );
			}
			else
			if ( pMover->GetManaPoint() >= 1000000000 )
			{
				nCharMP = wsprintf(cbufMp, "%db", pMover->GetManaPoint() / 1000000000 );
			}
			else
			nCharMP = wsprintf(cbufMp, "%d", pMover->GetManaPoint());

			/**************************************************************/
			//FP
			/**************************************************************/
			if ( pMover->GetFatiguePoint() >= 10000 && pMover->GetFatiguePoint() <= 999999 )
			{
				nCharFP = wsprintf(cbufFp, "%dk", pMover->GetFatiguePoint() / 1000 );
			}
			else
			if ( pMover->GetFatiguePoint() >= 1000000 && pMover->GetFatiguePoint() <= 999999999 )
			{
				nCharFP = wsprintf(cbufFp, "%dm", pMover->GetFatiguePoint() / 1000000 );
			}
			else
			if ( pMover->GetFatiguePoint() >= 1000000000 )
			{
				nCharFP = wsprintf(cbufFp, "%db", pMover->GetFatiguePoint() / 1000000000 );
			}
			else
			nCharFP = wsprintf(cbufFp, "%d", pMover->GetFatiguePoint());
			
			int x = lpHP->rect.right - 82;
			p2DRender->TextOut( x - (int)(((float)nCharHP / 2.0f) * size.cx), lpHP->rect.top - nTopGap, cbufHp, dwColor, 0xff000000 );
			p2DRender->TextOut( x - (int)(((float)nCharMP / 2.0f) * size.cx), lpMP->rect.top - nTopGap, cbufMp, dwColor, 0xff000000 );
			p2DRender->TextOut( x - (int)(((float)nCharFP / 2.0f) * size.cx), lpFP->rect.top - nTopGap, cbufFp, dwColor, 0xff000000 );

			/**************************************************************/
			//HP
			/**************************************************************/
			if ( pMover->GetMaxHitPoint() >= 10000 && pMover->GetMaxHitPoint() <= 999999 )
			{
				nCharHP = wsprintf(cbufHp, "%dk", pMover->GetMaxHitPoint() / 1000 );
			}
			else
			if ( pMover->GetMaxHitPoint() >= 1000000 && pMover->GetMaxHitPoint() <= 999999999 )
			{
				nCharHP = wsprintf(cbufHp, "%dm", pMover->GetMaxHitPoint() / 1000000 );
			}
			else
			if ( pMover->GetMaxHitPoint() >= 1000000000 )
			{
				nCharHP = wsprintf(cbufHp, "%db", pMover->GetMaxHitPoint() / 1000000000 );
			}
			else
				nCharHP = wsprintf(cbufHp, "%d", pMover->GetHitPoint());

			/**************************************************************/
			//MP
			/**************************************************************/
			if ( pMover->GetMaxManaPoint() >= 10000 && pMover->GetMaxManaPoint() <= 999999 )
			{
				nCharMP = wsprintf(cbufMp, "%dk", pMover->GetMaxManaPoint() / 1000 );
			}
			else
			if ( pMover->GetMaxManaPoint() >= 1000000 && pMover->GetMaxManaPoint() <= 999999999 )
			{
				nCharMP = wsprintf(cbufMp, "%dm", pMover->GetMaxManaPoint() / 1000000 );
			}
			else
			if ( pMover->GetMaxManaPoint() >= 1000000000 )
			{
				nCharMP = wsprintf(cbufMp, "%db", pMover->GetMaxManaPoint() / 1000000000 );
			}
			else
				nCharMP = wsprintf(cbufMp, "%d", pMover->GetMaxManaPoint());

			/**************************************************************/
			//FP
			/**************************************************************/
			if ( pMover->GetMaxFatiguePoint() >= 10000 && pMover->GetMaxFatiguePoint() <= 999999 )
			{
				nCharFP = wsprintf(cbufFp, "%dk", pMover->GetMaxFatiguePoint() / 1000 );
			}
			else
			if ( pMover->GetMaxFatiguePoint() >= 1000000 && pMover->GetMaxFatiguePoint() <= 999999999 )
			{
				nCharFP = wsprintf(cbufFp, "%dm", pMover->GetMaxFatiguePoint() / 1000000 );
			}
			else
			if ( pMover->GetMaxFatiguePoint() >= 1000000000 )
			{
				nCharFP = wsprintf(cbufFp, "%db", pMover->GetMaxFatiguePoint() / 1000000000 );
			}
			else
				nCharFP = wsprintf(cbufFp, "%d", pMover->GetMaxFatiguePoint());

			x = lpHP->rect.right - 30;
			p2DRender->TextOut( x - (int)(((float)nCharHP / 2.0f) * size.cx), lpHP->rect.top - nTopGap, cbufHp, dwColor, 0xff000000 );
			p2DRender->TextOut( x - (int)(((float)nCharMP / 2.0f) * size.cx), lpMP->rect.top - nTopGap, cbufMp, dwColor, 0xff000000 );
			p2DRender->TextOut( x - (int)(((float)nCharFP / 2.0f) * size.cx), lpFP->rect.top - nTopGap, cbufFp, dwColor, 0xff000000 );

			LPWNDCTRL lpHP = GetWndCtrl( WIDC_CUSTOM1 );
			int nWidthCustom = lpHP->rect.Width();
			int nGap = (int)( ((nWidthCustom / 2.0f) + (size.cx / 2.0f)) );

			p2DRender->TextOut( lpHP->rect.right - nGap, lpHP->rect.top - nTopGap, "/", dwColor, 0xff000000 );
			p2DRender->TextOut( lpMP->rect.right - nGap, lpMP->rect.top - nTopGap, "/", dwColor, 0xff000000 );
			p2DRender->TextOut( lpFP->rect.right - nGap, lpFP->rect.top - nTopGap, "/", dwColor, 0xff000000 );
		}
05/26/2014 08:54 7rage3#14
Quote:
Originally Posted by Rhyder' View Post
Additional things :) NO DEFINE NEEDED :)
Code:
		else
		{
			/**************************************************************/
			//HP
			/**************************************************************/
			if ( pMover->GetHitPoint() >= 10000 && pMover->GetHitPoint() <= 999999 )
			{
				nCharHP = wsprintf(cbufHp, "%dk", pMover->GetHitPoint() / 1000 );
			}
			else
			if ( pMover->GetHitPoint() >= 1000000 && pMover->GetHitPoint() <= 999999999 )
			{
				nCharHP = wsprintf(cbufHp, "%dm", pMover->GetHitPoint() / 1000000 );
			}
			else
			if ( pMover->GetHitPoint() >= 1000000000 )
			{
				nCharHP = wsprintf(cbufHp, "%db", pMover->GetHitPoint() / 1000000000 );
			}
			else
				nCharHP = wsprintf(cbufHp, "%d", pMover->GetHitPoint());
			/**************************************************************/
			//MP
			/**************************************************************/
			if ( pMover->GetManaPoint() >= 10000 && pMover->GetManaPoint() <= 999999 )
			{
				nCharMP = wsprintf(cbufMp, "%dk", pMover->GetManaPoint() / 1000 );
			}
			else
			if ( pMover->GetManaPoint() >= 1000000 && pMover->GetManaPoint() <= 999999999 )
			{
				nCharMP = wsprintf(cbufMp, "%dm", pMover->GetManaPoint() / 1000000 );
			}
			else
			if ( pMover->GetManaPoint() >= 1000000000 )
			{
				nCharMP = wsprintf(cbufMp, "%db", pMover->GetManaPoint() / 1000000000 );
			}
			else
			nCharMP = wsprintf(cbufMp, "%d", pMover->GetManaPoint());

			/**************************************************************/
			//FP
			/**************************************************************/
			if ( pMover->GetFatiguePoint() >= 10000 && pMover->GetFatiguePoint() <= 999999 )
			{
				nCharFP = wsprintf(cbufFp, "%dk", pMover->GetFatiguePoint() / 1000 );
			}
			else
			if ( pMover->GetFatiguePoint() >= 1000000 && pMover->GetFatiguePoint() <= 999999999 )
			{
				nCharFP = wsprintf(cbufFp, "%dm", pMover->GetFatiguePoint() / 1000000 );
			}
			else
			if ( pMover->GetFatiguePoint() >= 1000000000 )
			{
				nCharFP = wsprintf(cbufFp, "%db", pMover->GetFatiguePoint() / 1000000000 );
			}
			else
			nCharFP = wsprintf(cbufFp, "%d", pMover->GetFatiguePoint());
			
			int x = lpHP->rect.right - 82;
			p2DRender->TextOut( x - (int)(((float)nCharHP / 2.0f) * size.cx), lpHP->rect.top - nTopGap, cbufHp, dwColor, 0xff000000 );
			p2DRender->TextOut( x - (int)(((float)nCharMP / 2.0f) * size.cx), lpMP->rect.top - nTopGap, cbufMp, dwColor, 0xff000000 );
			p2DRender->TextOut( x - (int)(((float)nCharFP / 2.0f) * size.cx), lpFP->rect.top - nTopGap, cbufFp, dwColor, 0xff000000 );

			/**************************************************************/
			//HP
			/**************************************************************/
			if ( pMover->GetMaxHitPoint() >= 10000 && pMover->GetMaxHitPoint() <= 999999 )
			{
				nCharHP = wsprintf(cbufHp, "%dk", pMover->GetMaxHitPoint() / 1000 );
			}
			else
			if ( pMover->GetMaxHitPoint() >= 1000000 && pMover->GetMaxHitPoint() <= 999999999 )
			{
				nCharHP = wsprintf(cbufHp, "%dm", pMover->GetMaxHitPoint() / 1000000 );
			}
			else
			if ( pMover->GetMaxHitPoint() >= 1000000000 )
			{
				nCharHP = wsprintf(cbufHp, "%db", pMover->GetMaxHitPoint() / 1000000000 );
			}
			else
				nCharHP = wsprintf(cbufHp, "%d", pMover->GetHitPoint());

			/**************************************************************/
			//MP
			/**************************************************************/
			if ( pMover->GetMaxManaPoint() >= 10000 && pMover->GetMaxManaPoint() <= 999999 )
			{
				nCharMP = wsprintf(cbufMp, "%dk", pMover->GetMaxManaPoint() / 1000 );
			}
			else
			if ( pMover->GetMaxManaPoint() >= 1000000 && pMover->GetMaxManaPoint() <= 999999999 )
			{
				nCharMP = wsprintf(cbufMp, "%dm", pMover->GetMaxManaPoint() / 1000000 );
			}
			else
			if ( pMover->GetMaxManaPoint() >= 1000000000 )
			{
				nCharMP = wsprintf(cbufMp, "%db", pMover->GetMaxManaPoint() / 1000000000 );
			}
			else
				nCharMP = wsprintf(cbufMp, "%d", pMover->GetMaxManaPoint());

			/**************************************************************/
			//FP
			/**************************************************************/
			if ( pMover->GetMaxFatiguePoint() >= 10000 && pMover->GetMaxFatiguePoint() <= 999999 )
			{
				nCharFP = wsprintf(cbufFp, "%dk", pMover->GetMaxFatiguePoint() / 1000 );
			}
			else
			if ( pMover->GetMaxFatiguePoint() >= 1000000 && pMover->GetMaxFatiguePoint() <= 999999999 )
			{
				nCharFP = wsprintf(cbufFp, "%dm", pMover->GetMaxFatiguePoint() / 1000000 );
			}
			else
			if ( pMover->GetMaxFatiguePoint() >= 1000000000 )
			{
				nCharFP = wsprintf(cbufFp, "%db", pMover->GetMaxFatiguePoint() / 1000000000 );
			}
			else
				nCharFP = wsprintf(cbufFp, "%d", pMover->GetMaxFatiguePoint());

			x = lpHP->rect.right - 30;
			p2DRender->TextOut( x - (int)(((float)nCharHP / 2.0f) * size.cx), lpHP->rect.top - nTopGap, cbufHp, dwColor, 0xff000000 );
			p2DRender->TextOut( x - (int)(((float)nCharMP / 2.0f) * size.cx), lpMP->rect.top - nTopGap, cbufMp, dwColor, 0xff000000 );
			p2DRender->TextOut( x - (int)(((float)nCharFP / 2.0f) * size.cx), lpFP->rect.top - nTopGap, cbufFp, dwColor, 0xff000000 );

			LPWNDCTRL lpHP = GetWndCtrl( WIDC_CUSTOM1 );
			int nWidthCustom = lpHP->rect.Width();
			int nGap = (int)( ((nWidthCustom / 2.0f) + (size.cx / 2.0f)) );

			p2DRender->TextOut( lpHP->rect.right - nGap, lpHP->rect.top - nTopGap, "/", dwColor, 0xff000000 );
			p2DRender->TextOut( lpMP->rect.right - nGap, lpMP->rect.top - nTopGap, "/", dwColor, 0xff000000 );
			p2DRender->TextOut( lpFP->rect.right - nGap, lpFP->rect.top - nTopGap, "/", dwColor, 0xff000000 );
		}

can anyone translate it to english icant find the specific file that i will edit t
05/27/2014 07:29 raventh1984#15
Open your source press ctrl+f and search entire solution for this

void CWndStatus::OnDraw(C2DRender* p2DRender)

Or open WndField.cpp and search for the same thing