LEvel Cap

Newbie Spellweaver
Joined
Jun 20, 2010
Messages
26
Reaction score
0
How do i set a level cap so players cant level past 200, because im using chaotic and when u make level 255 and level again u go to 0 and wont be able to get any exp.
 
He means that if he goes to level 255, and leveling up again he will become level 0 1 2
I think that you can't change that
 
Upvote 0
Why would you change the level limit to begin with? It just means changing the EXP table/adding onto it.

Oh, since Nexon uses a byte value for the character's level, the high end of the precision being 255; when the value tries to exceed this number it will overflow and instead of increment further, it will become 0.
 
Upvote 0
No source can go past level 255, if I am correct.
in a way it can it when your level 255 and u level up again u become level 0, but there's no such thing as level 0 so no exp can be obtained, and no equips that level 1+ cannot be equiped..... that is the problem.. i want to stop player s from leveling past 200
 
Upvote 0
Why would you change the level limit to begin with? It just means changing the EXP table/adding onto it.

Oh, since Nexon uses a byte value for the character's level, the high end of the precision being 255; when the value tries to exceed this number it will overflow and instead of increment further, it will become 0.

What is this exp table u speak of?????
 
Upvote 0
What is this exp table u speak of?????

This one!!!!!

PHP:
private static final int[] exp = {0, 15, 34, 57, 92, 135, 372, 560, 840, 1242, 1144,
        1573, 2144, 2800, 3640, 4700, 5893, 7360, 9144, 11120, 13478,
        16268, 19320, 22881, 27009, 31478, 36601, 42446, 48722, 55816, 76560,
        86784, 98208, 110932, 124432, 139372, 155865, 173280, 192400, 213345, 235372,
        259392, 285532, 312928, 342624, 374760, 408336, 444544, 483532, 524160, 567772,
        598886, 631704, 666321, 702836, 741351, 781976, 824828, 870028, 917705, 967995,
        1021040, 1076993, 1136012, 1198265, 1263930, 1333193, 1406252, 1483314, 1564600, 1650340,
        1740778, 1836172, 1936794, 2042930, 2154882, 2272969, 2397528, 2528912, 2667496, 2813674,
        2967863, 3130501, 3302052, 3483004, 3673872, 3875200, 4087561, 4311559, 4547832, 4797052,
        5059931, 5337215, 5629694, 5938201, 6263614, 6606860, 6968915, 7350811, 7753635, 8178534,
        8626717, 9099461, 9598112, 10124088, 10678888, 11264090, 11881362, 12532460, 13219239, 13943652,
        14707764, 15513749, 16363902, 17260644, 18206527, 19204244, 20256636, 21366700, 22537594, 23772654,
        25075395, 26449526, 27898960, 29427822, 31040466, 32741483, 34535716, 36428272, 38424541, 40530206,
        42751261, 45094030, 47565183, 50171755, 52921167, 55821246, 58880250, 62106888, 65510344, 69100311,
        72887008, 76881216, 81094306, 85538273, 90225770, 95170142, 100385465, 105886588, 111689173, 117809740,
        124265713, 131075474, 138258409, 145834970, 153826726, 162256430, 171148082, 180526996, 190419876, 200854884,
        211861732, 223471754, 235718006, 248635352, 262260569, 276632448, 291791906, 307782102, 324648561, 342439302,
        361204976, 380999008, 401877753, 423900654, 447130409, 471633156, 497478652, 524740482, 553496260, 583827855,
        615821621, 649568646, 685165008, 722712050, 762316670, 804091623, 848155844, 894634784, 943660769, 995373379,
        1049919840, 1107455447, 1168144005, 1232158296, 1299680571, 1370903066, 1446028554, 1525270918, 1608855764, 1767659560};
 
Upvote 0
src/constants/ExpTable.java o.o

for the level cap just change this in MapleCharacter.java
PHP:
public int getMaxLevel() {
        return isCygnus() ? 120 : 200;
    }
to this
PHP:
public int getMaxLevel() {
        return level; //replace "level" with the level
    }

Just don't forget to add to the ExpTable for each level added. Honestly I have no idea why you'd want to do this or if it would even work but have fun o-o
 
Last edited:
Upvote 0
Back