|
You last visited: Today at 01:15
Advertisement
Taking coordinates & Target Npc in delphi
Discussion on Taking coordinates & Target Npc in delphi within the PW Hacks, Bots, Cheats, Exploits forum part of the Perfect World category.
06/12/2012, 13:29
|
#1
|
elite*gold: 0
Join Date: Mar 2011
Posts: 13
Received Thanks: 0
|
Taking coordinates & Target Npc in delphi
I would like to get the coordinates but I'm doing something wrong:
My Code:
Code:
var
H, TI, PI, W, rw, GameHandle: DWORD;
eax, written, Base: cardinal;
CoordinatesX, CoordinatesZ, CoordinatesY: DWORD;
ProcessId: Integer;
begin
H := FindWindow(nil, 'Element Client');
GetWindowThreadProcessId(H, @ProcessId);
GameHandle := OpenProcess(PROCESS_VM_READ, False, ProcessId);
if (H <= 0) then
exit;
try
ReadProcessMemory(GameHandle, ptr($00B3B24C), @eax, 4, written); //BASE
ReadProcessMemory(GameHandle, ptr(eax + $1C), @eax, 4, written);
ReadProcessMemory(GameHandle, ptr(eax + $34), @Base, 4, written);
// ################################ Coordinates Pointer ############################
ReadProcessMemory(GameHandle, ptr(Base + $003C), @CoordinatesX, 4, written); //pointer X
ReadProcessMemory(GameHandle, ptr(Base + $0044), @CoordinatesY, 4, written); //pointer Y
//######################################################################################
label7.Caption := 'Coordinates: '+IntToStr(CoordinatesX)+'/'+IntToStr(CoordinatesY);
finally
end;
How can I get the name of the target?
My Code:
Code:
var
H, TI, PI, W, rw: DWORD;
Pointer, PointerName: DWORD;
Name: Array [0 .. 100] of Char;
begin
H := FindWindow(nil, 'Element Client');
if (H <= 0) then
exit;
try
TI := GetWindowThreadProcessId(H, @PI);
W := OpenProcess(PROCESS_ALL_ACCESS, False, PI);
ReadProcessMemory(W, ptr($00B3B24C), @Pointer, 4, rw);
ReadProcessMemory(W, ptr(Pointer + $0034), @Pointer, 4, rw);
ReadProcessMemory(W, ptr(Pointer + $0260), @PointerName, 4, rw);
ReadProcessMemory(W, ptr(PointerName), @Name, SizeOf(Name), rw);
LABEL1.Caption:='Target: '+ name;
finally
end;
thanks
|
|
|
06/12/2012, 14:01
|
#2
|
elite*gold: 20
Join Date: May 2009
Posts: 1,290
Received Thanks: 325
|
I think before you do anything more you should learn some basics about datatypes. And why didn't you ask all your questions in one topic - not spam forum full of 2 liners.
You need Single.
I'll leave it to others to spoon feed ya - I don't need another bot on these forums
|
|
|
06/12/2012, 15:04
|
#3
|
elite*gold: 0
Join Date: Mar 2011
Posts: 13
Received Thanks: 0
|
I just want to learn, to be able to help. I do not want to create a bot paid as yours! For all that I can put the code in order to help others!
Pesso apologize for creating two topics.
|
|
|
|
Similar Threads
|
DELPHI - Who make Exploits, Hacks and Tools with DELPHI?
05/15/2013 - CO2 Programming - 13 Replies
Hi all.
Iwith DELPHI, but a dont now.
hello, I use Delphi to program and i like someone put here source code of make Exploits, Hacks and Tools bot here, or part of the code.
ty to all
|
[DELPHI&METIN]Wie sind die Delphi Befehle für einen Bot?
03/07/2010 - General Coding - 3 Replies
Hallo liebe com,
ich habe mal eine Frage: Ich möchte einen Metin Bot in Delphi schreiben aber ich weiß nicht die Befehle für
eine bestimmte Taste senden etc.
könnt ihr mir die pls sagen oder per pn geben
MfGGGGGG
|
[Delphi] Problem with target.
10/07/2009 - Perfect World - 2 Replies
Well, I'm a little problem, I am creating a component in Delphi for the facilitate the lives of those who want to create a bot or something, but I can not set the "target", you get all the other information such as hp and mp, my only problem being that, if someone can give me an idea of how to do this I am grateful. Below is the code I'm using to try to define the "target".
var
PH : THandle;
PID, ThID : DWORD;
b : DWORD;
H : THandle;
currentvalue: Integer;
valueTarget:...
|
All times are GMT +2. The time now is 01:15.
|
|