Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Perfect World > PW Hacks, Bots, Cheats, Exploits
You last visited: Today at 01:15

  • Please register to post and access all features, it's quick, easy and FREE!

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.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Mar 2011
Posts: 13
Received Thanks: 0
Cool 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
marcelo380 is offline  
Old 06/12/2012, 14:01   #2
 
Sᴡoosh's Avatar
 
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
Sᴡoosh is offline  
Old 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.
marcelo380 is offline  
Reply


Similar Threads 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.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.