ActualNoob
2013-07-24 14:13:55
So i have gotten a working bot for this game, but i would like to try and get useful information like coordinates,hp, sp etc without having to use whats visible on the screen.
Iam using http://villavu.com/forum/showthread.php?t=99380 by CynicRus to try and read from memory, but its giving me unexpected values. Hopefully someone can help.
using a memory editing program i was able to find the values and they agree with the ingame values, but when i try use simba to access these memory addresses it goes bananas.

OUTPUT
Iam using http://villavu.com/forum/showthread.php?t=99380 by CynicRus to try and read from memory, but its giving me unexpected values. Hopefully someone can help.
using a memory editing program i was able to find the values and they agree with the ingame values, but when i try use simba to access these memory addresses it goes bananas.

program new;
{$loadlib bothelper.dll}
var
PID :Integer;
HP,SP : Integer;
HP_MAX, SP_MAX : Integer;
Handle : Integer;
begin
PId:=GetProcessIdByName('App.exe');
Handle:=GetWndHandleByPid(PId);
HP:=ReadMemoryFromPID(PId,$00884070,4);
HP_MAX:=ReadMemoryFromPID(PId,$00884074,4);
SP:=ReadMemoryFromPID(PId,$00884078,4);
SP_MAX:=ReadMemoryFromPID(PId,$0088407C,4);
WriteLn('my hp is ' + tostr(hp) + '/' + tostr(HP_MAX));
WriteLn('my sp is ' + tostr(hp)+ '/' + tostr(SP_MAX));
end.
OUTPUT
Compiled successfully in 16 ms.
my hp is 4246695/4246695
my sp is 4246695/4246695
Successfully executed.