Please, post your questions on forum, not by PM or mail
I spend my time, so please pay a little bit of your time to keep world in equilibrium
Thx for your comment Dwarf, basically i just need to run SendMessage and ReadProcessMemory
i just need to read character information to make auto pot, selection target to attack
If it's allowed to add something to your "Library"...
Here's a function which i use for my AO Bot to read Unicode from memory and put it in a string:
Code:function mem_read_unicode(Process: integer; address: integer; size: integer):string; var Wert: NativeUInt; name: string; Data: PWideChar; begin name := ''; GetMem(Data,size); ReadProcessMemory(Process, ptr(address), Data, Sizeof(Data), Wert); name := WideCharToString(Data); result := name; end;
Hello i am from indonesia, sorry if my language is not good
I just learned to make bots,
I've tried the example you gave by using delphi XE and it worked but sy did not try it in AIKAEN.exe
because i do not have it but i'm trying to make bot for Perfect World indo.
I have difficulty menterjemakan some important point that is
// Base addresses
Game_Addr_Data ->?
Game_Addr_Action ->?
And some functions that use bytes such as example:
GetDWORD (Hdl, PTR_Data + $34F70);
HPCurr := getDWORD (Hdl, PTR_Data + $34F74);
MPMax := getDWORD (Hdl, PTR_Data + $34F78);
and others,
How do you determine which bytes you should use? Is there a trick or something else.?
Thank,