Jump to content

c++ long long int does not name


Go to solution Solved by M.Sorin,

Recommended Posts

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?

 

Just do what Denis says:

Change this:

DWORD CHARACTER::GetNextExp() const

To this:

long long CHARACTER::GetNextExp()

yes but this is not working lol look...

Screen_Shot_09_01_14_at_06_10_PM.jpg

Edited by Metin2 Dev
Core X - External 2 Internal
long long CHARACTER::GetNextExp()

and in char.h search for

DWORD   GetNextExp();

and change it to:

long long    GetNextExp();

Screen_Shot_09_01_14_at_06_35_PM.jpg

 

not working

Edited by Metin2 Dev
Core X - External 2 Internal
  • Solution

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
  • 2 years later...

Don't use any images from : imgur, turkmmop, freakgamers, inforge, hizliresim... Or your content will be deleted without notice...
Use : https://metin2.download/media/add/

Please use https://metin2.download/ when uploading files smaller than 100MB, otherwise the approval will take longer due to manual upload.

Please sign in to comment

You will be able to leave a comment after signing in



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.