Jump to content
×
×
  • Create New...
  • 0

Change Status Points for level


morion

Question

3 answers to this question

Recommended Posts

  • 0

char.cpp function void CHARACTER::PointChange 

case POINT_LEVEL:
    [..]
    if (iLevStep >= 4)
	{
		sys_err("%s LEVEL_STEP bigger than 4! (%d)", GetName(), iLevStep);
		iLevStep = 4;
	}

	if (exp >= next_exp && iLevStep < 4)
	{
		for (int i = 0; i < 4 - iLevStep; ++i)
			PointChange(POINT_LEVEL_STEP, 1, false, true);
	}
	else if (exp >= q * 3 && iLevStep < 3)
	{
		for (int i = 0; i < 3 - iLevStep; ++i)
			PointChange(POINT_LEVEL_STEP, 1, false, true);
	}
	else if (exp >= q * 2 && iLevStep < 2)
	{
		for (int i = 0; i < 2 - iLevStep; ++i)
			PointChange(POINT_LEVEL_STEP, 1, false, true);
	}
	else if (exp >= q && iLevStep < 1)
		PointChange(POINT_LEVEL_STEP, 1);

	if (iExpBalance)
	{
		PointChange(POINT_EXP, iExpBalance);
	}
	

and case POINT_LEVEL_STEP:

 

  • Love 1
Link to comment
Share on other sites

  • 0

char.cpp function void CHARACTER::PointChange 

case POINT_LEVEL:
    [..]
    if (iLevStep >= 4)
	{
		sys_err("%s LEVEL_STEP bigger than 4! (%d)", GetName(), iLevStep);
		iLevStep = 4;
	}

	if (exp >= next_exp && iLevStep < 4)
	{
		for (int i = 0; i < 4 - iLevStep; ++i)
			PointChange(POINT_LEVEL_STEP, 1, false, true);
	}
	else if (exp >= q * 3 && iLevStep < 3)
	{
		for (int i = 0; i < 3 - iLevStep; ++i)
			PointChange(POINT_LEVEL_STEP, 1, false, true);
	}
	else if (exp >= q * 2 && iLevStep < 2)
	{
		for (int i = 0; i < 2 - iLevStep; ++i)
			PointChange(POINT_LEVEL_STEP, 1, false, true);
	}
	else if (exp >= q && iLevStep < 1)
		PointChange(POINT_LEVEL_STEP, 1);

	if (iExpBalance)
	{
		PointChange(POINT_EXP, iExpBalance);
	}
	

and case POINT_LEVEL_STEP:

 

mm ok

i have same idea but i have tried 2 hours without result.....

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.