Mana Point

05/11/2021 20:05 darkwar01#1
What line where can i find the if u put int go u mp same thing with the if put sta u get hp and fp. Thanks!
05/12/2021 08:30 Naltalah#2
HTML Code:
int CMover::GetMaxOriginManaPoint(BOOL bOriginal)
{
	int nInt = 0;
	if (bOriginal)
	{
		nInt = m_nInt;
	}
	else
	{
		nInt = GetInt();
	}

	if (IsPlayer())
	{
		JobProp* pProperty = prj.GetJobProp(GetJob());
		float factor = pProperty->fFactorMaxMP;

		int nMaxMP = (int)(((((m_nLevel * 2.0F) + (nInt * 8.0F)) * factor) + 22.0F) + (nInt * factor));
		return nMaxMP;
	}
	return ((m_nLevel * 2) + (nInt * 8) + 22);
}
05/12/2021 12:51 darkwar01#3
HTML Code:
int CMover::GetMaxOriginManaPoint(BOOL bOriginal)
{
	int nInt, nStr, nDex;
	if (bOriginal)
	{
		nInt = m_nInt;
		nStr = m_nStr;
		nDex = m_nDex;
	}
	else
	{
		nInt = GetInt();
		nStr = GetStr();
		nDex = GetDex();
	}

	if (IsPlayer())
	{
		JobProp* pProperty = prj.GetJobProp(GetJob());
		float factor = pProperty->fFactorMaxMP;

		int nMaxMP = (int)(((((m_nLevel * 2.0f) + (nInt * 8.0f)) * factor) + 22.0f) + (nInt * factor) + (nStr * factor) + (nDex * factor));
		return nMaxMP;
	}
	return 	((m_nLevel * 2) + (nInt * 8) + 22) + (nStr * 5) + (nDex * 5);
}
If I want the str,dex also gain mana point is this correct?