View Single Post
Old 08.07.2006, 18:09   #2
HongK
Архивный участник
 
Join Date: Jun 2005
Posts: 258
Default

seraphii it will depend on what l2server.exe you are using? Which one is it? Did it come with the community release recently? Or is it much older?

To Alien:

What were you looking for originally in the code to find NPCINFO? For example your code here:

00496636 . E8 B4E71100 CALL C3server.005B4DEF

004967D1 . E8 19E61100 CALL C3server.005B4DEF

005B4DEF /$ 83EC 14 SUB ESP,14
005B4DF2 |. FF7424 14 PUSH DWORD PTR SS:[ESP+14]
005B4DF6 |. 83C4 1C ADD ESP,1C
005B4DF9 |. 33C9 XOR ECX,ECX
005B4DFB |. 51 PUSH ECX
005B4DFC |. 51 PUSH ECX
005B4DFD |. 51 PUSH ECX
005B4DFE |. 51 PUSH ECX
005B4DFF |. 51 PUSH ECX
005B4E00 |. FFB3 B00A0000 PUSH DWORD PTR DS:[EBX+AB0]
005B4E06 |. 8B4D A8 MOV ECX,[LOCAL.22]
005B4E09 |. 8B55 C4 MOV EDX,[LOCAL.15]
005B4E0C |. 83EC 04 SUB ESP,4
005B4E0F \. C3 RETN

How did you come to find the address 00496636 to tell it to call your address where you wrote your own function? I assume thats just in the right place for npcinfo to get the information it needs from your code. I guess the real question I'm trying to ask is how did you know where NPCINFO was in the l2server.exe? What code around it told you that was NPCINFO?

I only ask because I think the addresses you use here are for a c3 l2server rather than the old c1 one that was modded to c2. So the addresses are completely different.
HongK is offline