Post Pacific  

Go Back   Post Pacific > Восстановленный архив > Темы без сохранившегося раздела
FAQ Community Calendar Today's Posts Search

Notices

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old 16.09.2006, 04:46   #1
mcrabben7
Архивный участник
 
Join Date: Apr 2006
Posts: 461
Default [HOWTO] Change Max Level

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
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.
mcrabben7 is offline  
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 17:03.