Jump to content

Change Status Points for level


Recommended Posts

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

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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



  • Similar Content

  • Activity

    1. 5

      Effect weapons

    2. 3

      Crystal Metinstone

    3. 3

      Feeding game source to LLM

    4. 113

      Ulthar SF V2 (TMP4 Base)

    5. 3

      Feeding game source to LLM

    6. 0

      Target Information System

    7. 3

      Feeding game source to LLM

    8. 2

      anti exp explanation pls

  • Recently Browsing

    • No registered users viewing this page.
×
×
  • Create New...

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.