Use Tsearch easy write to apply the data to the memory, you can then read the players health from a fixed offset, more info in the easy write file
works... thx ultimateQuote:
Originally posted by ultimatehaker@Jun 22 2005, 13:40
OK HERE IT si the DMA Injection Functions Just call INjectDMA; to inject the code to solve the DMA
Procedure Patchmem(WindowTitle:Pchar;Address:integer;NumberO fBytes:integer;PokeValue:Dword);
var
WindowName: Integer;
ProcessId: Integer;
ThreadId: Integer;
buf: PChar;
HandleWindow: Integer;
Write: Cardinal;
begin
WindowName := FindWindow(nil, WindowTitle);
ThreadId := GetWindowThreadProcessId(WindowName, @ProcessId);
HandleWindow := OpenProcess(PROCESS_ALL_ACCESS, False, ProcessId);
GetMem(buf, NumberOfBytes);
buf^ := Chr(PokeValue);
WriteProcessMemory(HandleWindow, ptr(Address), buf, NumberOfBytes, Write);
FreeMem(buf);
CloseHandle(HandleWindow);
end;
Procedure InjectDMA;
begin
patchmem('[Conquer]',$10976,5,$578908890D);
patchmem('[Conquer]',$1097b,6,$97090100508B);
patchmem('[Conquer]',$10981,6,$CEE9B75E4600);
patchmem('[Conquer]',$476838,5,$E939A1B9FF);
end;