Jump to content

Expand Maximum Level to 500, after relog 255


Recommended Posts

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

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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

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

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

      OLDGODSMT2 [ MEGA SF RELEASE ]

    2. 24

      Experimental Renderer

    3. 11

      Multi Language System

    4. 0

      [FREE DESIGN] Interface + Logo + Discord Banner and Avatar

    5. 4

      Feeding game source to LLM

    6. 0

      Quest 6/7 Problem

    7. 5

      Effect weapons

    8. 0

      [C++] Fix Core Downer Using Negative Number in GM Codes

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