• Welcome to Valhalla Legends Archive.
 

[C#] ReadProcessMemory - Getting life

Started by Insolence, June 29, 2007, 10:21 PM

Previous topic - Next topic

Ringo

Hm, I dont mean to answer somthing thats already been answered, but the life/mana/stamina of your character are stored at:
Life = D2Client + 1035785
mana = D2Client + 1035785 + 16
Stamina = D2Client + 1035785 + 32
Each is stored as 16 bits and location remains the same in a open/closed/single player game.
how ever, I didnt bother to check if it moves when there is more than 1 player in the game. (dont think it will)

Tolk me less than 2min to find this, by reading all of d2client memory, searching it for the value I wanted to find, logging each position it was found at, then did it again but with differnt amounts of life to narrow down the few possible address's.
If the address changes, its just a case of searching the data for the address of the found variable and back track the pointers like that, untill you narrow down the base pointer.

I just thought doing this could have saved you alot of time :)

PS: I have never worked with any memory tools/software before, so no one flame me if there is a simpler way of doing it :P

|