PDA

View Full Version : [HOWTO] Change Max Level


mcrabben7
16.09.2006, 04:46
Here is where you should be able to change the max level for your retail C4 server. Simply hex it like you used to on the old C1 server files.

Function CCreature::ValidateLevel()
00517C95 mov rax, [rbx+588h] ; CSharedData class
00517C9C mov esi, [rax+11Ch]
00517CA2 mov ebp, [rax+444h] ; level
00517CA8 mov rax, [rbx]
00517CAB mov rcx, rbx
00517CAE mov rax, [rax+28h]
00517CB2 call rax
00517CB4 mov ecx, 4Eh ; mov 78 into ecx
00517CB9 mov r12d, 57h
00517CBF test al, al
00517CC1 cmovnz r12d, ecx
00517CC5 cmp ebp, r12d ; cmp level to 78
00517CC8 cmovg ebp, r12d ; if < 78, make it 78
00517CCC mov eax, 1
00517CD1 cmp ebp, eax ; cmp level to 1
00517CD3 cmovl ebp, eax ; if < 1, make it 1

I didn't test this yet, but if you change the 4Eh ( 78 ) to a different number, you should be able to change the max level. I didn't test this, just throwing some stuff out to get the community working on stuff again.

If anyone wonders why I was gone for so long, it's a long story. I haven't been able to do anything L2 for about 6 weeks.

Anyways, someone go test it. I can't say if it works yet, since I'm just code diving right now.

demon
17.09.2006, 07:26
why someone changes max level ?..
should we make it 400 like muonline ? and make auto reset script also ?

SoaPy
17.09.2006, 08:14
maybe because in C5 they changed the max level to 80 ^^ ¿?