Hi, I'm using Google translator.
I'm having some trouble making the Walk on Water function.
In the C # code works perfectly:
PHP Code:
if (chb_WW.Checked == true)
{
if (MemoryWR.ReadByte("Wow", WaterwalkPatch, 1) == 117)
{
return;
}
MemoryWR.WriteByte("Wow", WaterwalkPatch, 0x75, 1);
}
else
{
MemoryWR.WriteByte("Wow", WaterwalkPatch, 0x74, 1);
}
However'm doing in dll in Delphi, where the same Access violation:
PHP Code:
begin
try
if chb_WW.Checked = true then begin
PBYTE(WaterwalkPatch)^:= $75;
end
else begin
PBYTE(WaterwalkPatch)^:= $74;
end;
except
end;
end;
Address: 0075E439
Also already tried manipulates endereçamente of memory, sending the game into the dll and doing the code in asm, however also without success, only in C # is working perfectly.
Would help to know how to solve this problem.