Post Pacific  

Go Back   Post Pacific > Lineage 2 > Lineage 2 Client Modifications ONLY!
FAQ Community Calendar Today's Posts Search

Notices

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old 16.07.2007, 07:09   #40
MartinPacific
Архивный участник
 
Join Date: Jul 2007
Posts: 2
Default

Quote:
Originally Posted by Nevyn View Post
The reason why this wont work for c5 is because the offset is completly wrong. The function you want to hook in nwindow is NCChat:: DrawChatMessage. Just search for the unicode, scroll up the asm til you see Int 3. Boom you're there. Find a call which goes to that adress. Now go and make your own darn irc-clients...
hex dll need only long time for me.

Code:
.text:1000A2A1     loc_1000A2A1:                           ; CODE XREF: SetHooks+21j
.text:1000A2A1 000                 call    SetHookSystemMesStack
.text:1000A2A6 000                 test    eax, eax
.text:1000A2A8 000                 jnz     short loc_1000A2B8
.text:1000A2AA 000                 push    offset aErrorHookingSy ; "error hooking system message stack\n"
.text:1000A2AF 004                 call    DbgPrintProc
.text:1000A2B5 004                 add     esp, 4
.text:1000A2B8     

....

.text:1000A170     SetHookSystemMesStack proc near         ; CODE XREF: SetHooks+31p
.text:1000A170     
.text:1000A170     flOldProtect    = dword ptr -1
.text:1000A170     
.text:1000A170 000                 push    ecx
.text:1000A171 004                 mov     eax, flOldProtect
.text:1000A176 004                 mov     ecx, NWindowDLL_Handle
.text:1000A17C 004                 push    esi
.text:1000A17D 008                 push    1Fh             ; Code_Int
.text:1000A17F 00C                 push    eax             ; flOldProtect
.text:1000A180 010                 push    offset Ident_2
.text:1000A185 014                 push    offset Ident_1
.text:1000A18A 018                 push    ecx             ; NWindowDLL_Handle
.text:1000A18B 01C                 call    SetHook_N_x
P.S. Sory my bad english.
MartinPacific 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 22:01.