Jump to content
  • advertisement_alt
  • advertisement_alt
  • advertisement_alt
  • advertisement_alt
  • advertisement_alt
  • advertisement_alt
  • advertisement_alt
  • advertisement_alt
  • advertisement_alt
  • Join-Us

    https://metin2.dev is the 1st international community on Metin2 development. Join us to develop your skills and share your knowledge with the community, respectful and ethical forum.

  • 0

c++ long long int does not name


Traceur3RUN

Question

12 answers to this question

Recommended Posts

  • 0

In char.h search for:

DWORD GetNextExp() const;

THEN replace the original code with this

long long        GetNextExp();

Done here..!

 

Now open char.cpp and search for

DWORD CHARACTER::GetNextExp() const
DWORD CHARACTER::GetNextExp() const
{
    if (PLAYER_EXP_TABLE_MAX < GetLevel())
        return 2500000000U;
    else
        return exp_table[GetLevel()];
}

then replace the whole function with this

long long CHARACTER::GetNextExp()
{
    if (PLAYER_EXP_TABLE_MAX < GetLevel())
        return 420000000000LLU;
    else
        return exp_table[GetLevel()];
}

It works fine for me on a 32-bit virtual machine.

 

  • Love 1
Link to comment
Share on other sites

  • 0

With > I mean to change to

maybe i bad edit i dont know

DWORD CHARACTER::GetNextExp() const > long long CHARACTER::GetNextExp()
{
	if (PLAYER_EXP_TABLE_MAX < GetLevel())
		return 420000000000;
	else
		return exp_table[GetLevel()];
}

maybe I must have 64 bit freebsd?

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


×
×
  • 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.