Register for your free account! | Forgot your password?

You last visited: Today at 21:00

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

Advertisement



Fix Get: HP/FP/MP

Discussion on Fix Get: HP/FP/MP within the Flyff PServer Guides & Releases forum part of the Flyff Private Server category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: May 2015
Posts: 17
Received Thanks: 1
Fix Get: HP/FP/MP

Hello, I just released a fix for: HP/MP/FP.


In folder _Common:

MoverParam.cpp

Replace:

Code:
int CMover::GetHitPoint()
{
	return GetParam( DST_HP, m_nHitPoint );
}
To:

Code:
int CMover::GetHitPoint()
{
#ifdef	__FIX_GET_HP_MP_FP_POINT
	int hitPoint = GetParam(DST_HP, m_nHitPoint);
	int maxHitPoint = GetMaxHitPoint();

	if (hitPoint > maxHitPoint)
		return maxHitPoint;
	else
		return hitPoint;
#endif  // __FIX_GET_HP_MP_FP_POINT
	return GetParam( DST_HP, m_nHitPoint );
}

Replace:

Code:
int CMover::GetManaPoint()
{
#ifdef __EVENT1206
	if( IsPlayer() && g_eLocal.GetState( EVE_EVENT1206 ) )  // raiders_fix051217
		return GetMaxManaPoint();
#endif	// __EVENT1206
	return GetParam( DST_MP, m_nManaPoint );
}
To:

Code:
int CMover::GetManaPoint()
{
#ifdef __EVENT1206
	if( IsPlayer() && g_eLocal.GetState( EVE_EVENT1206 ) )  // raiders_fix051217
		return GetMaxManaPoint();
#endif	// __EVENT1206
#ifdef	__FIX_GET_HP_MP_FP_POINT
	int manaPoint = GetParam(DST_MP, m_nManaPoint);
	int maxManaPoint = GetMaxManaPoint();

	if (manaPoint > maxManaPoint)
		return maxManaPoint;
	else
		return manaPoint;
#endif // __FIX_GET_HP_MP_FP_POINT
	return GetParam( DST_MP, m_nManaPoint );
}

Replace:

Code:
int CMover::GetFatiguePoint()
{
#ifdef __EVENT1206
	if(  IsPlayer() && g_eLocal.GetState( EVE_EVENT1206 ) )	// raiders_fix051217
		return GetMaxFatiguePoint();
#endif	// __EVENT1206
	return GetParam( DST_FP, m_nFatiguePoint );
}
To:

Code:
int CMover::GetFatiguePoint()
{
#ifdef __EVENT1206
	if(  IsPlayer() && g_eLocal.GetState( EVE_EVENT1206 ) )	// raiders_fix051217
		return GetMaxFatiguePoint();
#endif	// __EVENT1206
#ifdef	__FIX_GET_HP_MP_FP_POINT
	int fatiguePoint = GetParam(DST_FP, m_nFatiguePoint);
	int maxFatiguePoint = GetMaxFatiguePoint();

	if (fatiguePoint > maxFatiguePoint)
		return maxFatiguePoint;
	else
		return fatiguePoint;
#endif // __FIX_GET_HP_MP_FP_POINT
	return GetParam( DST_FP, m_nFatiguePoint );
}
Add in VersionCommon neuz and world:

Code:
#define __FIX_GET_HP_MP_FP_POINT
Thanks
Ychi
YchiYchi is offline  
Thanks
1 User
Old 05/04/2015, 02:18   #2
 
Ecrypter's Avatar
 
elite*gold: 0
Join Date: Aug 2014
Posts: 653
Received Thanks: 217
its useful for the newbie
Ecrypter is offline  
Old 05/10/2015, 14:13   #3
 
elite*gold: 0
Join Date: Jan 2010
Posts: 141
Received Thanks: 8
What does this actually do?
pakinglalat is offline  
Old 05/10/2015, 17:19   #4
 
Marc~'s Avatar
 
elite*gold: 0
Join Date: Sep 2011
Posts: 677
Received Thanks: 390
Quote:
Originally Posted by pakinglalat
What does this actually do?
If you have too much HP/MP/FP it will be decreased to the maximum of it. So you are not able to have 15000/360 MP or something like that, no HP/MP/FP bug.
Marc~ is offline  
Old 05/11/2015, 00:42   #5
 
Ecrypter's Avatar
 
elite*gold: 0
Join Date: Aug 2014
Posts: 653
Received Thanks: 217
YEAH., much better the old hp,mp,fp status
Ecrypter is offline  
Old 05/23/2015, 07:04   #6
 
aoyamananami's Avatar
 
elite*gold: 0
Join Date: Mar 2014
Posts: 243
Received Thanks: 11
hi i would like to ask if anyone here know how to fix the bug on hop, when hop use to hit the player all nearby player will get dc ..

sorry if wrong section :3 please i need your help .. there's no error log show :/
aoyamananami is offline  
Old 05/23/2015, 07:36   #7
 
elite*gold: 2
Join Date: Mar 2009
Posts: 338
Received Thanks: 63
Very Nice
Spraystar is offline  
Old 06/10/2015, 16:12   #8
 
elite*gold: 0
Join Date: Jan 2010
Posts: 141
Received Thanks: 8
Is this something like when you have 108000000 HP then it will say 108M?
pakinglalat is offline  
Old 06/10/2015, 18:17   #9



 
- DK's Avatar
 
elite*gold: 7
Join Date: Sep 2012
Posts: 4,466
Received Thanks: 3,218
Quote:
Originally Posted by pakinglalat View Post
Is this something like when you have 108000000 HP then it will say 108M?
No ^^ Thats was the fix when you have more Hp then your max Hp -> He set it to your Max Hp .. Same like Mana and Fp.
- DK is offline  
Thanks
1 User
Reply




All times are GMT +1. The time now is 21:02.


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.