|
You last visited: Today at 11:12
Advertisement
Someone that knows delphi can help?
Discussion on Someone that knows delphi can help? within the Conquer Online 2 forum part of the MMORPGs category.
04/23/2006, 01:18
|
#1
|
elite*gold: 0
Join Date: Jun 2005
Posts: 162
Received Thanks: 1
|
Basically i am trying to write a program to change the value of money in co, I know it can be easily done with programs like TSearch, but I want to make my own simple program, specifally for co and easier.
My code so far:
Code:
unit Unit1;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls;
type
TForm1 = class(TForm)
Button1: TButton;
Edit1: TEdit;
procedure RadioButton1milClick(Sender: TObject);
procedure RadioButton10milClick(Sender: TObject);
procedure Button1Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
Var
WindowName : integer;
ProcessId : integer;
ThreadId : integer; // defining variable's types ;
buf : PChar;
HandleWindow : Integer;
write : cardinal;
PokeValue1 : integer; //!the value that will be wriiten to co ;
Const
WindowTitle = '[Conquer2.0]'; //defines the window name ;
Address1 = $57C140; //defines the address to poke ;
NumberOfBytes1 = 4; //defines amount of bytes to write;
{$R *.dfm}
procedure TForm1.Button1Click(Sender: TObject);
begin
begin
Edit1.Text := StrToInt(PokeValue1);
If WindowName = 0 then // check if the game is running;
begin
MessageDlg('Conquer isnt running idiot.', mtwarning,[mbOK],0);
end;
// the following will writes the value;
ThreadId := GetWindowThreadProcessId(WindowName,@ProcessId);
HandleWindow := OpenProcess(PROCESS_ALL_ACCESS,False,ProcessId);
GetMem(buf,1);
buf^ := Chr(PokeValue1);
WriteProcessMemory(HandleWindow,ptr(Address1),buf,NumberOfBytes1,write);
FreeMem(buf);
closehandle(HandleWindow);
end;
end;
Basically, so far ive just got stuck on writing the value in the text box to the variable PokeValue1 because even though I've done a string to int conversition, it still says incompatiable types string and integer.
Some1 help please
|
|
|
04/23/2006, 01:29
|
#2
|
elite*gold: 20
Join Date: Jun 2005
Posts: 1,013
Received Thanks: 381
|
Fist off I can't see you assigning anything to WindowName. I'm looking all over for
WindowName := FindWindow(0, WindowTitle);
The PokeValue1 is an integer, and you're saying convert this string to an int. I think you want IntToStr.
EDIT: Actually, looking at that again, dont you want to assign the value in the text box to the integer
PokeValue1 := StrToInt(Edit.text)
The 5th arg of WPM should be a pointer, but its optional, may aswell null it.
I'm not well versed with Pascal, so can't help more than that.
|
|
|
04/23/2006, 01:48
|
#3
|
elite*gold: 0
Join Date: Jun 2005
Posts: 162
Received Thanks: 1
|
thank you for trying. Um, no i dont think it shud be PokeValue1 := StrToInt(Edit.text); becos im trying to assign the user input value to the variable pokevalue1, not the otheray round.
|
|
|
04/23/2006, 07:26
|
#4
|
elite*gold: 0
Join Date: Jun 2005
Posts: 162
Received Thanks: 1
|
Bump. Need help :P
|
|
|
05/14/2013, 12:21
|
#5
|
elite*gold: 0
Join Date: Apr 2013
Posts: 6
Received Thanks: 5
|
Have a look on my topic  . On the Unit2.pas have a procedure:
Code:
function WriteByte(Address: Cardinal; ChangeValues: Byte):boolean;
....
Function TForm2.WriteByte(Address: Cardinal; ChangeValues: Byte): boolean;
Begin
Result := WriteProcessMemory(AtProc, Pointer(Address), @ChangeValues,
SizeOf(ChangeValues), Written);
End;
//Where AtProc = OpenProcess(PROCESS_ALL_ACCESS, False, Process_ID);
...
|
|
|
05/14/2013, 13:40
|
#6
|
elite*gold: 20
Join Date: Jan 2008
Posts: 2,012
Received Thanks: 2,885
|
have a look at the date of posts
|
|
|
05/15/2013, 11:41
|
#7
|
elite*gold: 0
Join Date: Apr 2013
Posts: 6
Received Thanks: 5
|
I didn't noticed that was so old O_O
The forum are showing it to me on "Similar Threads" i think that was a new post.
|
|
|
 |
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 6
10/31/2009 - General Coding - 0 Replies
Hi ich suche einen funktionierenden DL-Link von Delphi 6 (die kostenlose Version) habe nämlich keine Lust die Testversion von Embarcadero zu benutzen. Auch wenn ich erst anfange möchte ich wenigstens eine Version die kostenlos ist.
Hoffe das ihr mir helfen könntet.
|
WTS WR LVL 94 Delphi
08/16/2009 - Perfect World Trading - 0 Replies
hi i sell my wr lvl 94 on delphi server
full hh 90 eq all eq + 4
pm me with offers
http://pic.ipicture.ru/uploads/090816/0R6aEiSjtU. jpg
http://pic.ipicture.ru/uploads/090816/MJnZPenKdT. jpg
|
delphi
06/02/2008 - Cabal Online - 0 Replies
was trying to create a UCE after formatting my computer. but nw my delphi does not work anymore. it keep saying my reg key is invalid. is there any crack of delphi 7?
|
All times are GMT +1. The time now is 11:13.
|
|