Jump to content
  • 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

Expand Maximum Level to 500, after relog 255


I bims 1 WLAN

Question

I finished this, i have all config lvl 500

In constants all to 500

 

I do this:

 

char.h

Search:

DWORD GetNextExp() const;



Replace:

		long long    GetNextExp();

Done here..!

 

char.cpp

Search:

DWORD CHARACTER::GetNextExp() const

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

Replace:

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

But after relog is my lvl 255 and EXP is -9

From lvl 499 to 500 i need -EXP

And i will maximum value higher than 4294967295

 

Edited by I bims 1 WLAN
Link to comment
Share on other sites

  • Answers 2
  • Created
  • Last Reply

Top Posters For This Question

Popular Days

Top Posters For This Question

2 answers to this question

Recommended Posts

  • 0
3 hours ago, I bims 1 WLAN said:

I finished this, i have all config lvl 500

In constants all to 500

 

I do this:

 

char.h

Search:

DWORD GetNextExp() const;



Replace:

		long long    GetNextExp();

Done here..!

 

char.cpp

Search:

DWORD CHARACTER::GetNextExp() const

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

Replace:

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

But after relog is my lvl 255 and EXP is -9

From lvl 499 to 500 i need -EXP

And i will maximum value higher than 4294967295

 

check your database (mysql) level integer type, its probably TINYINT (BYTE / uint8_t) chech with SMALLINT

Link to comment
Share on other sites

  • 0
Posted (edited)
13 hours ago, Denizeri24 said:

check your database (mysql) level integer type, its probably TINYINT (BYTE / uint8_t) chech with SMALLINT

level    smallint    11    0    0    0    -1    0    0    1    0                    0    0

I have only the Problem with lvl 499+500

https://metin2.download/picture/r3F9504x09DVmF8K988YXgTtGTP6KMUj/.gif

And i will more then than 4294967295 EXP

I change to type bigint lenght 8

but got error

Edited by Metin2 Dev
Core X - External 2 Internal
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.