[C++] Change Lv 255 [EN]

Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

Rullez

Banned
Banned
Joined
Jul 4, 2019
Messages
20
Credits
9
Hey guys
I saw that was missing a lill "tut" about changing lvl's so I do it

/usr/src/mainline/Srcs/Server/common/length.h

PLAYER_EXP_TABLE_MAX = 120,
PLAYER_MAX_LEVEL_CONST = 120,

Change into what we want


PLAYER_EXP_TABLE_MAX = xxx,
PLAYER_MAX_LEVEL_CONST = xxx,

We also edit

/usr/src/mainline/Srcs/Server/game/src/constants.cpp

When you see this you will know what to do, just add more exp for each level.


const DWORD exp_table_euckr[PLAYER_EXP_TABLE_MAX + 1] =

Y este:

const DWORD exp_table_common[PLAYER_EXP_TABLE_MAX + 1] =

Y este:

const DWORD exp_table_newcibn[PLAYER_EXP_TABLE_MAX + 1 ] =

From here it is to put more than 255.

Also if we want more than 2 55 you have to design the player table, and change in level tinyint by mediumint or higher.

File char.cpp in game.

SetLevel(byte level) --> SetLevel(short level)

File char.h in game.

SetLevel(byte level) --> SetLevel(short level)

Edit:

And in these two files we change this too.
Game --> Archivo /common/tables.h
Game --> Archivo /src/char.h

Attention in these files there is more than one level, it has to be the player level, not the guild level or another.

http://prntscr.com/obco8t

http://prntscr.com/obcog9

Personal Edit: Exp Party

File /usr/src/mainline/Srcs/Server/game/src/constants.cpp

http://prntscr.com/obcpbj

Edit for the percentage of exp exp.

http://prntscr.com/obcpoz

Personal Edit: (overflow en python)

(If you do not change the two you can roll brown)

bylevel -> Change byte by short

File: Client\UserInterface\Packet.h
http://prntscr.com/obcqeg

File: mainline\common\tables.h

http://prntscr.com/obcqm3
 
Nice. In addition to your tutorial, if your exp amount in constants.cpp, is greater than 2050000000(level 99), make sure that you write it as unsigned int, or simply add u after each integer, like let's say 2500000000u.
This way you don't get errors from your compiler.
 
Back
Top