![]() |
|
|
#1 |
|
Архивный участник
Join Date: Apr 2006
Posts: 461
|
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() Code:
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 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. |
|
|
| Thread Tools | Search this Thread |
| Display Modes | |
|
|